/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _OPL_TOPO_H
#define _OPL_TOPO_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <fm/topo_mod.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* OPL uses the Jupiter Bus Bindings (see FWARC/2005/076) which specifies
* the hostbridge port id (the part of the bus address before the comma) as
* [10:9] = 00
* [8] = LSB_ID[4] = 0
* [7:4] = LSB_ID[3:0]
* [3] = IO_Channel#[2] = 0
* [2:1] = IO_Channel#[1:0]
* [0] = PCI Leaf Number (0=leaf-A, 1=leaf-B)
* where the LSB_ID is the logical system board, the IO_Channel is the
* hostbridge, and the PCI leaf is the root complex. The definitions
* allow up to 32 system boards, 8 hostbridges per system board, and
* two root complexes per hostbridge.
*/
/* Common OPL limits */
/* Macros for manipulating px driver bus address. */
/* Macros for manipulating mc-opl driver bus address. */
/* Structure listing devices on an ioboard */
typedef struct {
int count;
/* Shared device tree root node */
#ifdef __cplusplus
}
#endif
#endif /* _OPL_TOPO_H */