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 (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
24  */
25 
26 #ifndef _TOPO_HC_H
27 #define	_TOPO_HC_H
28 
29 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 /*
34  * Allowable hardware component names for hc FMRIs
35  */
36 #define	BANK		"bank"
37 #define	BAY		"bay"
38 #define	BLADE		"blade"
39 #define	BRANCH		"branch"
40 #define	CMP		"CMP"
41 #define	CENTERPLANE	"centerplane"
42 #define	CHASSIS		"chassis"
43 #define	CHIP		"chip"
44 #define	CORE		"core"
45 #define	STRAND		"strand"
46 #define	CHIP_SELECT	"chip-select"
47 #define	CONTROLLER	"controller"
48 #define	CPU		"cpu"
49 #define	CPUBOARD	"cpuboard"
50 #define	DIMM		"dimm"
51 #define	DISK		"disk"
52 #define	DRAM		"dram"
53 #define	DRAMCHANNEL	"dram-channel"
54 #define	FAN		"fan"
55 #define	FANBOARD	"fanboard"
56 #define	FANMODULE	"fanmodule"
57 #define	HOSTBRIDGE	"hostbridge"
58 #define	INTERCONNECT	"interconnect"
59 #define	IOBOARD		"ioboard"
60 #define	IPORT		"iport"
61 #define	MEMBOARD	"memboard"
62 #define	MEMORYBUFFER	"memory-buffer"
63 #define	MEMORYCONTROL	"memory-controller"
64 #define	MICROCORE	"micro-core"
65 #define	MOTHERBOARD	"motherboard"
66 #define	NIU		"niu"
67 #define	NIUFN		"niufn"
68 #define	PCI_BUS		"pcibus"
69 #define	PCI_DEVICE	"pcidev"
70 #define	PCI_FUNCTION    "pcifn"
71 #define	PCIEX_BUS	"pciexbus"
72 #define	PCIEX_DEVICE	"pciexdev"
73 #define	PCIEX_FUNCTION  "pciexfn"
74 #define	PCIEX_ROOT	"pciexrc"
75 #define	PCIEX_SWUP	"pciexswu"
76 #define	PCIEX_SWDWN	"pciexswd"
77 #define	POWERBOARD	"powerboard"
78 #define	POWERMODULE	"powermodule"
79 #define	PSU		"psu"
80 #define	RANK		"rank"
81 #define	RECEPTACLE	"receptacle"
82 #define	RISER		"riser"
83 #define	SASEXPANDER	"sas-expander"
84 #define	SHELF		"shelf"
85 #define	SCSI_DEVICE	"scsi-device"
86 #define	SES_ENCLOSURE	"ses-enclosure"
87 #define	SMP_DEVICE	"smp-device"
88 #define	SP		"sp"
89 #define	SUBCHASSIS	"subchassis"
90 #define	SYSTEMBOARD	"systemboard"
91 #define	XAUI		"xaui"
92 #define	XFP		"xfp"
93 
94 /*
95  * Allowable hc node property group and property names
96  */
97 #define	TOPO_PGROUP_IO		"io"
98 #define	TOPO_IO_DEVTYPE		"devtype"
99 #define	TOPO_IO_DRIVER		"driver"
100 #define	TOPO_IO_MODULE		"module"
101 #define	TOPO_IO_DEV		"dev"
102 #define	TOPO_IO_DEVID		"devid"
103 #define	TOPO_IO_DEV_PATH	"devfs-path"
104 #define	TOPO_IO_AP_PATH		"ap-path"
105 #define	TOPO_IO_PHYS_PATH	"phys-path"
106 
107 #define	TOPO_PGROUP_PCI		"pci"
108 #define	TOPO_PCI_VENDID		"vendor-id"
109 #define	TOPO_PCI_DEVID		"device-id"
110 #define	TOPO_PCI_EXCAP		"extended-capabilities"
111 #define	TOPO_PCI_BDF		"BDF"
112 #define	TOPO_PCI_CLASS		"class-code"
113 #define	TOPO_PCI_AADDR		"assigned-addresses"
114 
115 #define	TOPO_PGROUP_BINDING	"binding"
116 #define	TOPO_BINDING_OCCUPANT	"occupant-path"
117 
118 #define	TOPO_PGROUP_STORAGE	"storage"
119 #define	TOPO_STORAGE_INITIATOR_PORT	"initiator-port"
120 #define	TOPO_STORAGE_INITIATOR_PORT_PM	"initiator-port-pm"
121 #define	TOPO_STORAGE_TARGET_PORT	"target-port"
122 #define	TOPO_STORAGE_TARGET_PORT_L0ID	"target-port-l0id"
123 #define	TOPO_STORAGE_TARGET_PORT_L0IDS	"target-port-l0ids"
124 #define	TOPO_STORAGE_ATTACHED_PORT	"attached-port"
125 #define	TOPO_STORAGE_TARGET_PORT_PM	"target-port-pm"
126 #define	TOPO_STORAGE_ATTACHED_PORT_PM	"attached-port-pm"
127 #define	TOPO_STORAGE_DEVID		"devid"
128 #define	TOPO_STORAGE_LUN64		"lun64"
129 #define	TOPO_STORAGE_DEVICE_TYPE	"inquiry-device-type"
130 #define	TOPO_STORAGE_MANUFACTURER	"manufacturer"
131 #define	TOPO_STORAGE_MODEL		"model"
132 #define	TOPO_STORAGE_FIRMWARE_REV	"firmware-revision"
133 #define	TOPO_STORAGE_SAS_PHY_MASK	"receptacle-pm"
134 #define	TOPO_STORAGE_SAS_CONNECTOR_TYPE	"sas-connector-type"
135 
136 #define	TOPO_PGROUP_SES		"ses"
137 /* Applied  any SES standard related topo node. */
138 #define	TOPO_PROP_NODE_ID	"node-id"
139 #define	TOPO_PROP_TARGET_PATH	"target-path"
140 #define	TOPO_PROP_SES_DEVID	"ses-devid"
141 #define	TOPO_PROP_SES_DEV_PATH	"ses-devfs-path"
142 #define	TOPO_PROP_SES_PHYS_PATH	"ses-phys-path"
143 #define	TOPO_PROP_SES_TARGET_PORT "ses-target-port"
144 
145 #define	TOPO_PGROUP_SMP		"smp"
146 /* host SMP target related info for an expander node. */
147 #define	TOPO_PROP_SMP_DEVID	"smp-devid"
148 #define	TOPO_PROP_SMP_DEV_PATH	"smp-devfs-path"
149 #define	TOPO_PROP_SMP_PHYS_PATH	"smp-phys-path"
150 #define	TOPO_PROP_SMP_TARGET_PORT	"smp-target-port"
151 #define	TOPO_PROP_SAS_ADDR	"sas-address"
152 #define	TOPO_PROP_PHY_COUNT	"phy-count"
153 #define	TOPO_PROP_PATHS		"paths"
154 #define	TOPO_PROP_CHASSIS_TYPE	"chassis-type"
155 #define	TOPO_PROP_SAS_PHY_MASK	"phy-mask"
156 #define	TOPO_PROP_SAS_CONNECTOR_TYPE	"sas-connector-type"
157 
158 #ifdef	__cplusplus
159 }
160 #endif
161 
162 #endif	/* _TOPO_HC_H */
163