10eb822a1Scindi /*
20eb822a1Scindi  * CDDL HEADER START
30eb822a1Scindi  *
40eb822a1Scindi  * The contents of this file are subject to the terms of the
50eb822a1Scindi  * Common Development and Distribution License (the "License").
60eb822a1Scindi  * You may not use this file except in compliance with the License.
70eb822a1Scindi  *
80eb822a1Scindi  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90eb822a1Scindi  * or http://www.opensolaris.org/os/licensing.
100eb822a1Scindi  * See the License for the specific language governing permissions
110eb822a1Scindi  * and limitations under the License.
120eb822a1Scindi  *
130eb822a1Scindi  * When distributing Covered Code, include this CDDL HEADER in each
140eb822a1Scindi  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150eb822a1Scindi  * If applicable, add the following below this CDDL HEADER, with the
160eb822a1Scindi  * fields enclosed by brackets "[]" replaced with your own identifying
170eb822a1Scindi  * information: Portions Copyright [yyyy] [name of copyright owner]
180eb822a1Scindi  *
190eb822a1Scindi  * CDDL HEADER END
200eb822a1Scindi  */
210eb822a1Scindi 
220eb822a1Scindi /*
232eeaed14Srobj  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
240eb822a1Scindi  * Use is subject to license terms.
250eb822a1Scindi  */
260eb822a1Scindi 
270eb822a1Scindi #ifndef _TOPO_HC_H
280eb822a1Scindi #define	_TOPO_HC_H
290eb822a1Scindi 
300eb822a1Scindi #pragma ident	"%Z%%M%	%I%	%E% SMI"
310eb822a1Scindi 
320eb822a1Scindi #ifdef	__cplusplus
330eb822a1Scindi extern "C" {
340eb822a1Scindi #endif
350eb822a1Scindi 
360eb822a1Scindi /*
370eb822a1Scindi  * Allowable hardware component names for hc FMRIs
380eb822a1Scindi  */
39*908f1e13Ssd #define	BANK		"bank"
40184cd04cScth #define	BAY		"bay"
41*908f1e13Ssd #define	BLADE		"blade"
4214ea4bb7Ssd #define	BRANCH		"branch"
430eb822a1Scindi #define	CMP		"CMP"
440eb822a1Scindi #define	CENTERPLANE	"centerplane"
450eb822a1Scindi #define	CHASSIS		"chassis"
460eb822a1Scindi #define	CHIP		"chip"
470eb822a1Scindi #define	CHIP_SELECT	"chip-select"
48*908f1e13Ssd #define	CORE		"core"
49940d71d2Seschrock #define	CONTROLLER	"controller"
500eb822a1Scindi #define	CPU		"cpu"
5113faa912Ssd #define	CPUBOARD	"cpuboard"
520eb822a1Scindi #define	DIMM		"dimm"
530eb822a1Scindi #define	DISK		"disk"
54*908f1e13Ssd #define	DRAM		"dram"
550eb822a1Scindi #define	DRAMCHANNEL	"dram-channel"
562eeaed14Srobj #define	FAN		"fan"
572eeaed14Srobj #define	FANMODULE	"fanmodule"
580eb822a1Scindi #define	HOSTBRIDGE	"hostbridge"
590eb822a1Scindi #define	INTERCONNECT	"interconnect"
600eb822a1Scindi #define	IOBOARD		"ioboard"
6113faa912Ssd #define	MEMBOARD	"memboard"
62*908f1e13Ssd #define	MEMORYBUFFER	"memory-buffer"
630eb822a1Scindi #define	MEMORYCONTROL	"memory-controller"
64*908f1e13Ssd #define	MICROCORE	"micro-core"
650eb822a1Scindi #define	MOTHERBOARD	"motherboard"
6614ea4bb7Ssd #define	NIU		"niu"
6714ea4bb7Ssd #define	NIUFN		"niufn"
680eb822a1Scindi #define	PCI_BUS		"pcibus"
690eb822a1Scindi #define	PCI_DEVICE	"pcidev"
700eb822a1Scindi #define	PCI_FUNCTION    "pcifn"
710eb822a1Scindi #define	PCIEX_BUS	"pciexbus"
720eb822a1Scindi #define	PCIEX_DEVICE	"pciexdev"
730eb822a1Scindi #define	PCIEX_FUNCTION  "pciexfn"
740eb822a1Scindi #define	PCIEX_ROOT	"pciexrc"
750eb822a1Scindi #define	PCIEX_SWUP	"pciexswu"
760eb822a1Scindi #define	PCIEX_SWDWN	"pciexswd"
772eeaed14Srobj #define	POWERMODULE	"powermodule"
782eeaed14Srobj #define	PSU		"psu"
790eb822a1Scindi #define	RANK		"rank"
80*908f1e13Ssd #define	RISER		"riser"
81*908f1e13Ssd #define	SHELF		"shelf"
82940d71d2Seschrock #define	SES_ENCLOSURE	"ses-enclosure"
830eb822a1Scindi #define	SYSTEMBOARD	"systemboard"
8414ea4bb7Ssd #define	XAUI		"xaui"
8514ea4bb7Ssd #define	XFP		"xfp"
860eb822a1Scindi 
870eb822a1Scindi /*
880eb822a1Scindi  * Allowable hc node property group and property names
890eb822a1Scindi  */
900eb822a1Scindi #define	TOPO_PGROUP_IO		"io"
910eb822a1Scindi #define	TOPO_IO_DEVTYPE		"devtype"
920eb822a1Scindi #define	TOPO_IO_DRIVER		"driver"
939dd0f810Scindi #define	TOPO_IO_MODULE		"module"
940eb822a1Scindi #define	TOPO_IO_DEV		"dev"
95602ca9eaScth #define	TOPO_IO_DEVID		"devid"
960eb822a1Scindi #define	TOPO_IO_DEV_PATH	"devfs-path"
970eb822a1Scindi #define	TOPO_IO_AP_PATH		"ap-path"
98602ca9eaScth #define	TOPO_IO_PHYS_PATH	"phys-path"
990eb822a1Scindi 
1000eb822a1Scindi #define	TOPO_PGROUP_PCI		"pci"
1010eb822a1Scindi #define	TOPO_PCI_VENDID		"vendor-id"
1020eb822a1Scindi #define	TOPO_PCI_DEVID		"device-id"
1030eb822a1Scindi #define	TOPO_PCI_EXCAP		"extended-capabilities"
1040eb822a1Scindi #define	TOPO_PCI_BDF		"BDF"
1050eb822a1Scindi #define	TOPO_PCI_CLASS		"class-code"
106eae2e508Skrishnae #define	TOPO_PCI_AADDR		"assigned-addresses"
1070eb822a1Scindi 
1080eb822a1Scindi #ifdef	__cplusplus
1090eb822a1Scindi }
1100eb822a1Scindi #endif
1110eb822a1Scindi 
1120eb822a1Scindi #endif	/* _TOPO_HC_H */
113