10eb822a1Scindi /* 20eb822a1Scindi * CDDL HEADER START 30eb822a1Scindi * 40eb822a1Scindi * The contents of this file are subject to the terms of the 50eb822a1Scindi * Common Development and Distribution License (the "License"). 60eb822a1Scindi * You may not use this file except in compliance with the License. 70eb822a1Scindi * 80eb822a1Scindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90eb822a1Scindi * or http://www.opensolaris.org/os/licensing. 100eb822a1Scindi * See the License for the specific language governing permissions 110eb822a1Scindi * and limitations under the License. 120eb822a1Scindi * 130eb822a1Scindi * When distributing Covered Code, include this CDDL HEADER in each 140eb822a1Scindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150eb822a1Scindi * If applicable, add the following below this CDDL HEADER, with the 160eb822a1Scindi * fields enclosed by brackets "[]" replaced with your own identifying 170eb822a1Scindi * information: Portions Copyright [yyyy] [name of copyright owner] 180eb822a1Scindi * 190eb822a1Scindi * CDDL HEADER END 200eb822a1Scindi */ 210eb822a1Scindi 220eb822a1Scindi /* 2344ed9dbbSStephen Hanson * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 240eb822a1Scindi */ 250eb822a1Scindi 260eb822a1Scindi #ifndef _TOPO_HC_H 270eb822a1Scindi #define _TOPO_HC_H 280eb822a1Scindi 290eb822a1Scindi #ifdef __cplusplus 300eb822a1Scindi extern "C" { 310eb822a1Scindi #endif 320eb822a1Scindi 330eb822a1Scindi /* 340eb822a1Scindi * Allowable hardware component names for hc FMRIs 350eb822a1Scindi */ 36908f1e13Ssd #define BANK "bank" 37184cd04cScth #define BAY "bay" 38908f1e13Ssd #define BLADE "blade" 3914ea4bb7Ssd #define BRANCH "branch" 400eb822a1Scindi #define CMP "CMP" 410eb822a1Scindi #define CENTERPLANE "centerplane" 420eb822a1Scindi #define CHASSIS "chassis" 430eb822a1Scindi #define CHIP "chip" 44908f1e13Ssd #define CORE "core" 45e3d60c9bSAdrian Frost #define STRAND "strand" 46e3d60c9bSAdrian Frost #define CHIP_SELECT "chip-select" 47940d71d2Seschrock #define CONTROLLER "controller" 480eb822a1Scindi #define CPU "cpu" 4913faa912Ssd #define CPUBOARD "cpuboard" 500eb822a1Scindi #define DIMM "dimm" 510eb822a1Scindi #define DISK "disk" 52908f1e13Ssd #define DRAM "dram" 530eb822a1Scindi #define DRAMCHANNEL "dram-channel" 542eeaed14Srobj #define FAN "fan" 55*ded93414SHyon Kim #define FANBOARD "fanboard" 562eeaed14Srobj #define FANMODULE "fanmodule" 570eb822a1Scindi #define HOSTBRIDGE "hostbridge" 580eb822a1Scindi #define INTERCONNECT "interconnect" 590eb822a1Scindi #define IOBOARD "ioboard" 60ac88567aSHyon Kim #define IPORT "iport" 6113faa912Ssd #define MEMBOARD "memboard" 62908f1e13Ssd #define MEMORYBUFFER "memory-buffer" 630eb822a1Scindi #define MEMORYCONTROL "memory-controller" 64908f1e13Ssd #define MICROCORE "micro-core" 650eb822a1Scindi #define MOTHERBOARD "motherboard" 6614ea4bb7Ssd #define NIU "niu" 6714ea4bb7Ssd #define NIUFN "niufn" 680eb822a1Scindi #define PCI_BUS "pcibus" 690eb822a1Scindi #define PCI_DEVICE "pcidev" 700eb822a1Scindi #define PCI_FUNCTION "pcifn" 710eb822a1Scindi #define PCIEX_BUS "pciexbus" 720eb822a1Scindi #define PCIEX_DEVICE "pciexdev" 730eb822a1Scindi #define PCIEX_FUNCTION "pciexfn" 740eb822a1Scindi #define PCIEX_ROOT "pciexrc" 750eb822a1Scindi #define PCIEX_SWUP "pciexswu" 760eb822a1Scindi #define PCIEX_SWDWN "pciexswd" 77*ded93414SHyon Kim #define POWERBOARD "powerboard" 782eeaed14Srobj #define POWERMODULE "powermodule" 792eeaed14Srobj #define PSU "psu" 800eb822a1Scindi #define RANK "rank" 81ac88567aSHyon Kim #define RECEPTACLE "receptacle" 82908f1e13Ssd #define RISER "riser" 83ac88567aSHyon Kim #define SASEXPANDER "sas-expander" 84908f1e13Ssd #define SHELF "shelf" 85ac88567aSHyon Kim #define SCSI_DEVICE "scsi-device" 86940d71d2Seschrock #define SES_ENCLOSURE "ses-enclosure" 87ac88567aSHyon Kim #define SMP_DEVICE "smp-device" 884df55fdeSJanie Lu #define SP "sp" 8953dbcc59SSundeep Panicker #define SUBCHASSIS "subchassis" 900eb822a1Scindi #define SYSTEMBOARD "systemboard" 9114ea4bb7Ssd #define XAUI "xaui" 9214ea4bb7Ssd #define XFP "xfp" 930eb822a1Scindi 940eb822a1Scindi /* 950eb822a1Scindi * Allowable hc node property group and property names 960eb822a1Scindi */ 970eb822a1Scindi #define TOPO_PGROUP_IO "io" 980eb822a1Scindi #define TOPO_IO_DEVTYPE "devtype" 990eb822a1Scindi #define TOPO_IO_DRIVER "driver" 1009dd0f810Scindi #define TOPO_IO_MODULE "module" 1010eb822a1Scindi #define TOPO_IO_DEV "dev" 102602ca9eaScth #define TOPO_IO_DEVID "devid" 1030eb822a1Scindi #define TOPO_IO_DEV_PATH "devfs-path" 1040eb822a1Scindi #define TOPO_IO_AP_PATH "ap-path" 105602ca9eaScth #define TOPO_IO_PHYS_PATH "phys-path" 1060eb822a1Scindi 1070eb822a1Scindi #define TOPO_PGROUP_PCI "pci" 1080eb822a1Scindi #define TOPO_PCI_VENDID "vendor-id" 1090eb822a1Scindi #define TOPO_PCI_DEVID "device-id" 1100eb822a1Scindi #define TOPO_PCI_EXCAP "extended-capabilities" 1110eb822a1Scindi #define TOPO_PCI_BDF "BDF" 1120eb822a1Scindi #define TOPO_PCI_CLASS "class-code" 113eae2e508Skrishnae #define TOPO_PCI_AADDR "assigned-addresses" 1140eb822a1Scindi 115ac88567aSHyon Kim #define TOPO_PGROUP_BINDING "binding" 116ac88567aSHyon Kim #define TOPO_BINDING_OCCUPANT "occupant-path" 117ac88567aSHyon Kim 11844ed9dbbSStephen Hanson #define TOPO_PGROUP_STORAGE "storage" 119ac88567aSHyon Kim #define TOPO_STORAGE_INITIATOR_PORT "initiator-port" 120ac88567aSHyon Kim #define TOPO_STORAGE_INITIATOR_PORT_PM "initiator-port-pm" 121ac88567aSHyon Kim #define TOPO_STORAGE_TARGET_PORT "target-port" 12244ed9dbbSStephen Hanson #define TOPO_STORAGE_TARGET_PORT_L0ID "target-port-l0id" 12344ed9dbbSStephen Hanson #define TOPO_STORAGE_TARGET_PORT_L0IDS "target-port-l0ids" 124ac88567aSHyon Kim #define TOPO_STORAGE_ATTACHED_PORT "attached-port" 125ac88567aSHyon Kim #define TOPO_STORAGE_TARGET_PORT_PM "target-port-pm" 126ac88567aSHyon Kim #define TOPO_STORAGE_ATTACHED_PORT_PM "attached-port-pm" 127ac88567aSHyon Kim #define TOPO_STORAGE_DEVID "devid" 128ac88567aSHyon Kim #define TOPO_STORAGE_LUN64 "lun64" 129ac88567aSHyon Kim #define TOPO_STORAGE_DEVICE_TYPE "inquiry-device-type" 130ac88567aSHyon Kim #define TOPO_STORAGE_MANUFACTURER "manufacturer" 131ac88567aSHyon Kim #define TOPO_STORAGE_MODEL "model" 132ac88567aSHyon Kim #define TOPO_STORAGE_FIRMWARE_REV "firmware-revision" 133ac88567aSHyon Kim #define TOPO_STORAGE_SAS_PHY_MASK "receptacle-pm" 134ac88567aSHyon Kim #define TOPO_STORAGE_SAS_CONNECTOR_TYPE "sas-connector-type" 13503f9f63dSTom Pothier 136e58a33b6SStephen Hanson #define TOPO_PGROUP_SES "ses" 137e58a33b6SStephen Hanson /* Applied any SES standard related topo node. */ 138e58a33b6SStephen Hanson #define TOPO_PROP_NODE_ID "node-id" 139e58a33b6SStephen Hanson #define TOPO_PROP_TARGET_PATH "target-path" 140e58a33b6SStephen Hanson #define TOPO_PROP_SES_DEVID "ses-devid" 141e58a33b6SStephen Hanson #define TOPO_PROP_SES_DEV_PATH "ses-devfs-path" 142e58a33b6SStephen Hanson #define TOPO_PROP_SES_PHYS_PATH "ses-phys-path" 143e58a33b6SStephen Hanson #define TOPO_PROP_SES_TARGET_PORT "ses-target-port" 144e58a33b6SStephen Hanson 145e58a33b6SStephen Hanson #define TOPO_PGROUP_SMP "smp" 146e58a33b6SStephen Hanson /* host SMP target related info for an expander node. */ 147e58a33b6SStephen Hanson #define TOPO_PROP_SMP_DEVID "smp-devid" 148e58a33b6SStephen Hanson #define TOPO_PROP_SMP_DEV_PATH "smp-devfs-path" 149e58a33b6SStephen Hanson #define TOPO_PROP_SMP_PHYS_PATH "smp-phys-path" 150e58a33b6SStephen Hanson #define TOPO_PROP_SMP_TARGET_PORT "smp-target-port" 151e58a33b6SStephen Hanson #define TOPO_PROP_SAS_ADDR "sas-address" 152e58a33b6SStephen Hanson #define TOPO_PROP_PHY_COUNT "phy-count" 153e58a33b6SStephen Hanson #define TOPO_PROP_PATHS "paths" 154e58a33b6SStephen Hanson #define TOPO_PROP_CHASSIS_TYPE "chassis-type" 155e58a33b6SStephen Hanson #define TOPO_PROP_SAS_PHY_MASK "phy-mask" 156e58a33b6SStephen Hanson #define TOPO_PROP_SAS_CONNECTOR_TYPE "sas-connector-type" 157e58a33b6SStephen Hanson 1580eb822a1Scindi #ifdef __cplusplus 1590eb822a1Scindi } 1600eb822a1Scindi #endif 1610eb822a1Scindi 1620eb822a1Scindi #endif /* _TOPO_HC_H */ 163