xref: /illumos-gate/usr/src/lib/fm/topo/libtopo/common/topo_hc.h (revision 4e93fb0f6383eaac21897dcdae56b87118131e4d)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef _TOPO_HC_H
28 #define	_TOPO_HC_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * Allowable hardware component names for hc FMRIs
38  */
39 #define	BRANCH		"branch"
40 #define	CMP		"CMP"
41 #define	CENTERPLANE	"centerplane"
42 #define	CHASSIS		"chassis"
43 #define	CHIP		"chip"
44 #define	CHIP_SELECT	"chip-select"
45 #define	CPU		"cpu"
46 #define	DIMM		"dimm"
47 #define	DISK		"disk"
48 #define	DRAMCHANNEL	"dram-channel"
49 #define	HOSTBRIDGE	"hostbridge"
50 #define	INTERCONNECT	"interconnect"
51 #define	IOBOARD		"ioboard"
52 #define	MEMORYCONTROL	"memory-controller"
53 #define	MOTHERBOARD	"motherboard"
54 #define	NIU		"niu"
55 #define	NIUFN		"niufn"
56 #define	PCI_BUS		"pcibus"
57 #define	PCI_DEVICE	"pcidev"
58 #define	PCI_FUNCTION    "pcifn"
59 #define	PCIEX_BUS	"pciexbus"
60 #define	PCIEX_DEVICE	"pciexdev"
61 #define	PCIEX_FUNCTION  "pciexfn"
62 #define	PCIEX_ROOT	"pciexrc"
63 #define	PCIEX_SWUP	"pciexswu"
64 #define	PCIEX_SWDWN	"pciexswd"
65 #define	RANK		"rank"
66 #define	SATA_PORT	"sata-port"
67 #define	SYSTEMBOARD	"systemboard"
68 #define	XAUI		"xaui"
69 #define	XFP		"xfp"
70 
71 /*
72  * Allowable hc node property group and property names
73  */
74 #define	TOPO_PGROUP_IO		"io"
75 #define	TOPO_IO_DEVTYPE		"devtype"
76 #define	TOPO_IO_DRIVER		"driver"
77 #define	TOPO_IO_MODULE		"module"
78 #define	TOPO_IO_DEV		"dev"
79 #define	TOPO_IO_DEV_PATH	"devfs-path"
80 #define	TOPO_IO_AP_PATH		"ap-path"
81 
82 #define	TOPO_PGROUP_PCI		"pci"
83 #define	TOPO_PCI_VENDID		"vendor-id"
84 #define	TOPO_PCI_DEVID		"device-id"
85 #define	TOPO_PCI_EXCAP		"extended-capabilities"
86 #define	TOPO_PCI_BDF		"BDF"
87 #define	TOPO_PCI_CLASS		"class-code"
88 
89 #ifdef	__cplusplus
90 }
91 #endif
92 
93 #endif	/* _TOPO_HC_H */
94