xref: /illumos-gate/usr/src/lib/fm/topo/libtopo/common/topo_hc.h (revision 643e2e74e1c00e6b3d1896a6a67dbdb7308135c3)
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 2008 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	BAY		"bay"
40 #define	BRANCH		"branch"
41 #define	CMP		"CMP"
42 #define	CENTERPLANE	"centerplane"
43 #define	CHASSIS		"chassis"
44 #define	CHIP		"chip"
45 #define	CHIP_SELECT	"chip-select"
46 #define	CONTROLLER	"controller"
47 #define	CPU		"cpu"
48 #define	CPUBOARD	"cpuboard"
49 #define	DIMM		"dimm"
50 #define	DISK		"disk"
51 #define	DRAMCHANNEL	"dram-channel"
52 #define	FAN		"fan"
53 #define	FANMODULE	"fanmodule"
54 #define	HOSTBRIDGE	"hostbridge"
55 #define	INTERCONNECT	"interconnect"
56 #define	IOBOARD		"ioboard"
57 #define	MEMBOARD	"memboard"
58 #define	MEMORYCONTROL	"memory-controller"
59 #define	MOTHERBOARD	"motherboard"
60 #define	NIU		"niu"
61 #define	NIUFN		"niufn"
62 #define	PCI_BUS		"pcibus"
63 #define	PCI_DEVICE	"pcidev"
64 #define	PCI_FUNCTION    "pcifn"
65 #define	PCIEX_BUS	"pciexbus"
66 #define	PCIEX_DEVICE	"pciexdev"
67 #define	PCIEX_FUNCTION  "pciexfn"
68 #define	PCIEX_ROOT	"pciexrc"
69 #define	PCIEX_SWUP	"pciexswu"
70 #define	PCIEX_SWDWN	"pciexswd"
71 #define	POWERMODULE	"powermodule"
72 #define	PSU		"psu"
73 #define	RANK		"rank"
74 #define	SES_ENCLOSURE	"ses-enclosure"
75 #define	SYSTEMBOARD	"systemboard"
76 #define	XAUI		"xaui"
77 #define	XFP		"xfp"
78 
79 /*
80  * Allowable hc node property group and property names
81  */
82 #define	TOPO_PGROUP_IO		"io"
83 #define	TOPO_IO_DEVTYPE		"devtype"
84 #define	TOPO_IO_DRIVER		"driver"
85 #define	TOPO_IO_MODULE		"module"
86 #define	TOPO_IO_DEV		"dev"
87 #define	TOPO_IO_DEVID		"devid"
88 #define	TOPO_IO_DEV_PATH	"devfs-path"
89 #define	TOPO_IO_AP_PATH		"ap-path"
90 #define	TOPO_IO_PHYS_PATH	"phys-path"
91 
92 #define	TOPO_PGROUP_PCI		"pci"
93 #define	TOPO_PCI_VENDID		"vendor-id"
94 #define	TOPO_PCI_DEVID		"device-id"
95 #define	TOPO_PCI_EXCAP		"extended-capabilities"
96 #define	TOPO_PCI_BDF		"BDF"
97 #define	TOPO_PCI_CLASS		"class-code"
98 #define	TOPO_PCI_AADDR		"assigned-addresses"
99 
100 #ifdef	__cplusplus
101 }
102 #endif
103 
104 #endif	/* _TOPO_HC_H */
105