1 1414 cindi /* 2 1414 cindi * CDDL HEADER START 3 1414 cindi * 4 1414 cindi * The contents of this file are subject to the terms of the 5 1414 cindi * Common Development and Distribution License (the "License"). 6 1414 cindi * You may not use this file except in compliance with the License. 7 1414 cindi * 8 1414 cindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 1414 cindi * or http://www.opensolaris.org/os/licensing. 10 1414 cindi * See the License for the specific language governing permissions 11 1414 cindi * and limitations under the License. 12 1414 cindi * 13 1414 cindi * When distributing Covered Code, include this CDDL HEADER in each 14 1414 cindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 1414 cindi * If applicable, add the following below this CDDL HEADER, with the 16 1414 cindi * fields enclosed by brackets "[]" replaced with your own identifying 17 1414 cindi * information: Portions Copyright [yyyy] [name of copyright owner] 18 1414 cindi * 19 1414 cindi * CDDL HEADER END 20 1414 cindi */ 21 1414 cindi 22 1414 cindi /* 23 10519 Sundeep * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 1414 cindi * Use is subject to license terms. 25 1414 cindi */ 26 1414 cindi 27 3062 cindi #ifndef _TOPO_HC_H 28 3062 cindi #define _TOPO_HC_H 29 1414 cindi 30 1414 cindi #ifdef __cplusplus 31 1414 cindi extern "C" { 32 1414 cindi #endif 33 1414 cindi 34 1414 cindi /* 35 3062 cindi * Allowable hardware component names for hc FMRIs 36 1414 cindi */ 37 7205 sd77468 #define BANK "bank" 38 4582 cth #define BAY "bay" 39 7205 sd77468 #define BLADE "blade" 40 3325 sd77468 #define BRANCH "branch" 41 3062 cindi #define CMP "CMP" 42 3062 cindi #define CENTERPLANE "centerplane" 43 3062 cindi #define CHASSIS "chassis" 44 3062 cindi #define CHIP "chip" 45 7349 Adrian #define CORE "core" 46 7349 Adrian #define STRAND "strand" 47 3062 cindi #define CHIP_SELECT "chip-select" 48 6869 eschrock #define CONTROLLER "controller" 49 3062 cindi #define CPU "cpu" 50 5430 sd77468 #define CPUBOARD "cpuboard" 51 3062 cindi #define DIMM "dimm" 52 3062 cindi #define DISK "disk" 53 7205 sd77468 #define DRAM "dram" 54 3062 cindi #define DRAMCHANNEL "dram-channel" 55 6070 robj #define FAN "fan" 56 6070 robj #define FANMODULE "fanmodule" 57 3062 cindi #define HOSTBRIDGE "hostbridge" 58 3062 cindi #define INTERCONNECT "interconnect" 59 3062 cindi #define IOBOARD "ioboard" 60 5430 sd77468 #define MEMBOARD "memboard" 61 7205 sd77468 #define MEMORYBUFFER "memory-buffer" 62 3062 cindi #define MEMORYCONTROL "memory-controller" 63 7205 sd77468 #define MICROCORE "micro-core" 64 3062 cindi #define MOTHERBOARD "motherboard" 65 3325 sd77468 #define NIU "niu" 66 3325 sd77468 #define NIUFN "niufn" 67 3062 cindi #define PCI_BUS "pcibus" 68 3062 cindi #define PCI_DEVICE "pcidev" 69 3062 cindi #define PCI_FUNCTION "pcifn" 70 3062 cindi #define PCIEX_BUS "pciexbus" 71 3062 cindi #define PCIEX_DEVICE "pciexdev" 72 3062 cindi #define PCIEX_FUNCTION "pciexfn" 73 3062 cindi #define PCIEX_ROOT "pciexrc" 74 3062 cindi #define PCIEX_SWUP "pciexswu" 75 3062 cindi #define PCIEX_SWDWN "pciexswd" 76 6070 robj #define POWERMODULE "powermodule" 77 6070 robj #define PSU "psu" 78 3062 cindi #define RANK "rank" 79 7205 sd77468 #define RISER "riser" 80 7205 sd77468 #define SHELF "shelf" 81 6869 eschrock #define SES_ENCLOSURE "ses-enclosure" 82 10519 Sundeep #define SUBCHASSIS "subchassis" 83 3062 cindi #define SYSTEMBOARD "systemboard" 84 3325 sd77468 #define XAUI "xaui" 85 3325 sd77468 #define XFP "xfp" 86 1414 cindi 87 3062 cindi /* 88 3062 cindi * Allowable hc node property group and property names 89 3062 cindi */ 90 3062 cindi #define TOPO_PGROUP_IO "io" 91 3062 cindi #define TOPO_IO_DEVTYPE "devtype" 92 3062 cindi #define TOPO_IO_DRIVER "driver" 93 3323 cindi #define TOPO_IO_MODULE "module" 94 3062 cindi #define TOPO_IO_DEV "dev" 95 6640 cth #define TOPO_IO_DEVID "devid" 96 3062 cindi #define TOPO_IO_DEV_PATH "devfs-path" 97 3062 cindi #define TOPO_IO_AP_PATH "ap-path" 98 6640 cth #define TOPO_IO_PHYS_PATH "phys-path" 99 3062 cindi 100 3062 cindi #define TOPO_PGROUP_PCI "pci" 101 3062 cindi #define TOPO_PCI_VENDID "vendor-id" 102 3062 cindi #define TOPO_PCI_DEVID "device-id" 103 3062 cindi #define TOPO_PCI_EXCAP "extended-capabilities" 104 3062 cindi #define TOPO_PCI_BDF "BDF" 105 3062 cindi #define TOPO_PCI_CLASS "class-code" 106 6313 krishnae #define TOPO_PCI_AADDR "assigned-addresses" 107 1414 cindi 108 1414 cindi #ifdef __cplusplus 109 1414 cindi } 110 1414 cindi #endif 111 1414 cindi 112 3062 cindi #endif /* _TOPO_HC_H */ 113