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	CMP		"CMP"
40 #define	CENTERPLANE	"centerplane"
41 #define	CHASSIS		"chassis"
42 #define	CHIP		"chip"
43 #define	CHIP_SELECT	"chip-select"
44 #define	CPU		"cpu"
45 #define	DIMM		"dimm"
46 #define	DISK		"disk"
47 #define	DRAMCHANNEL	"dram-channel"
48 #define	HOSTBRIDGE	"hostbridge"
49 #define	INTERCONNECT	"interconnect"
50 #define	IOBOARD		"ioboard"
51 #define	MEMORYCONTROL	"memory-controller"
52 #define	MOTHERBOARD	"motherboard"
53 #define	PCI_BUS		"pcibus"
54 #define	PCI_DEVICE	"pcidev"
55 #define	PCI_FUNCTION    "pcifn"
56 #define	PCIEX_BUS	"pciexbus"
57 #define	PCIEX_DEVICE	"pciexdev"
58 #define	PCIEX_FUNCTION  "pciexfn"
59 #define	PCIEX_ROOT	"pciexrc"
60 #define	PCIEX_SWUP	"pciexswu"
61 #define	PCIEX_SWDWN	"pciexswd"
62 #define	RANK		"rank"
63 #define	SATA_PORT	"sata-port"
64 #define	SYSTEMBOARD	"systemboard"
65 
66 /*
67  * Allowable hc node property group and property names
68  */
69 #define	TOPO_PGROUP_IO		"io"
70 #define	TOPO_IO_DEVTYPE		"devtype"
71 #define	TOPO_IO_DRIVER		"driver"
72 #define	TOPO_IO_MODULE		"module"
73 #define	TOPO_IO_DEV		"dev"
74 #define	TOPO_IO_DEV_PATH	"devfs-path"
75 #define	TOPO_IO_AP_PATH		"ap-path"
76 
77 #define	TOPO_PGROUP_PCI		"pci"
78 #define	TOPO_PCI_VENDID		"vendor-id"
79 #define	TOPO_PCI_DEVID		"device-id"
80 #define	TOPO_PCI_EXCAP		"extended-capabilities"
81 #define	TOPO_PCI_BDF		"BDF"
82 #define	TOPO_PCI_CLASS		"class-code"
83 
84 #ifdef	__cplusplus
85 }
86 #endif
87 
88 #endif	/* _TOPO_HC_H */
89