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 2005 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _PICLDEFS_H 28 #define _PICLDEFS_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 /* 37 * PICL Tree paths 38 */ 39 #define PLATFORM_PATH "/platform" 40 #define MEMORY_PATH "/platform/memory" 41 #define FRUTREE_PATH "/frutree" 42 #define PICL_FRUTREE_CHASSIS "/frutree/chassis" 43 44 /* 45 * PICL classes 46 */ 47 #define PICL_CLASS_BYTE "byte" 48 #define PICL_CLASS_BLOCK "block" 49 #define PICL_CLASS_DISK "disk" 50 #define PICL_CLASS_CDROM "cdrom" 51 #define PICL_CLASS_FLOPPY "floppy" 52 #define PICL_CLASS_TAPE "tape" 53 #define PICL_CLASS_FABRIC "fabric" 54 #define PICL_CLASS_ATTACHMENT_POINT "attachment-point" 55 #define PICL_CLASS_DISPLAY "display" 56 #define PICL_CLASS_SERIAL "serial" 57 #define PICL_CLASS_PARALLEL "parallel" 58 #define PICL_CLASS_SEEPROM "seeprom" 59 #define PICL_CLASS_KEYBOARD "keyboard" 60 #define PICL_CLASS_MOUSE "mouse" 61 #define PICL_CLASS_MEMORY "memory" 62 #define PICL_CLASS_I2C "i2c" 63 #define PICL_CLASS_USB "usb" 64 #define PICL_CLASS_ISA "isa" 65 #define PICL_CLASS_DMA "dma" 66 #define PICL_CLASS_OBP_DEVICE "obp-device" 67 #define PICL_CLASS_TEMPERATURE_DEVICE "temperature-device" 68 #define PICL_CLASS_TEMPERATURE_SENSOR "temperature-sensor" 69 #define PICL_CLASS_TEMPERATURE_INDICATOR "temperature-indicator" 70 #define PICL_CLASS_VOLTAGE_INDICATOR "voltage-indicator" 71 #define PICL_CLASS_VOLTAGE_SENSOR "voltage-sensor" 72 #define PICL_CLASS_CURRENT_INDICATOR "current-indicator" 73 #define PICL_CLASS_CURRENT_SENSOR "current-sensor" 74 #define PICL_CLASS_LED "led" 75 #define PICL_CLASS_FAN "fan" 76 #define PICL_CLASS_FAN_CONTROL "fan-control" 77 #define PICL_CLASS_KEYSWITCH "keyswitch" 78 #define PICL_CLASS_EBUS "ebus" 79 #define PICL_CLASS_SYSTEM_CONTROLLER "system-controller" 80 #define PICL_CLASS_SERVICE_PROCESSOR "service-processor" 81 #define PICL_CLASS_HARDWARE_MONITOR "hardware-monitor" 82 #define PICL_CLASS_FLASHPROM "flashprom" 83 #define PICL_CLASS_SEEPROM "seeprom" 84 #define PICL_CLASS_FIREWIRE "firewire" 85 #define PICL_CLASS_I86CPUS "cpus" 86 #define PICL_CLASS_CPU "cpu" 87 #define PICL_CLASS_UPA "upa" 88 #define PICL_CLASS_PCI "pci" 89 #define PICL_CLASS_PCIEX "pciex" 90 #define PICL_CLASS_PMU "pmu" 91 #define PICL_CLASS_SOUND "sound" 92 #define PICL_CLASS_SBUS "sbus" 93 #define PICL_CLASS_SCSI "scsi" 94 #define PICL_CLASS_SCSI2 "scsi-2" 95 #define PICL_CLASS_GPTWO "gptwo" 96 #define PICL_CLASS_JBUS "jbus" 97 #define PICL_CLASS_MEMORY "memory" 98 #define PICL_CLASS_MEMORY_SEGMENT "memory-segment" 99 #define PICL_CLASS_MEMORY_BANK "memory-bank" 100 #define PICL_CLASS_MEMORY_CONTROLLER "memory-controller" 101 #define PICL_CLASS_MEMORY_MODULE_GROUP "memory-module-group" 102 #define PICL_CLASS_MEMORY_MODULE "memory-module" 103 #define PICL_CLASS_FRU "fru" 104 #define PICL_CLASS_LOCATION "location" 105 #define PICL_CLASS_SECTION "fru-section" 106 #define PICL_CLASS_SEGMENT "fru-segment" 107 #define PICL_CLASS_PORT "port" 108 #define PICL_CLASS_WATCHDOG_CONTROLLER "watchdog-controller" 109 #define PICL_CLASS_WATCHDOG_TIMER "watchdog-timer" 110 #define PICL_CLASS_CHASSIS_SERIAL_NUM "chassis-serial-number" 111 112 /* 113 * Solaris driver property names 114 */ 115 #define PICL_PROP_INSTANCE "instance" 116 #define PICL_PROP_BINDING_NAME "binding-name" 117 #define PICL_PROP_BUS_ADDR "bus-addr" 118 #define PICL_PROP_DRIVER_NAME "driver-name" 119 #define PICL_PROP_DEVFS_PATH "devfs-path" 120 #define PICL_PROP_STATUS "status" 121 122 /* 123 * PICL property names 124 */ 125 #define PICL_PROP_PLATFORM_NAME "PlatformName" 126 #define PICL_PROP_SYSNAME "OS-Name" 127 #define PICL_PROP_NODENAME "HostName" 128 #define PICL_PROP_MACHINE "PlatformGroup" 129 #define PICL_PROP_RELEASE "OS-Release" 130 #define PICL_PROP_VERSION "OS-Version" 131 #define PICL_PROP_SIZE "Size" 132 #define PICL_PROP_ID "ID" 133 #define PICL_PROP_STATE "State" 134 #define PICL_PROP_PROCESSOR_TYPE "ProcessorType" 135 #define PICL_PROP_FPUTYPE "FPUType" 136 #define PICL_PROP_STATE_BEGIN "StateBegin" 137 #define PICL_PROP_FFB_BOARD_REV "FFB-Board-Rev" 138 #define PICL_PROP_FFB_FBRAM_VER "FFB-FBRAM-Ver" 139 #define PICL_PROP_FFB_DAC_VER "FFB-DAC-Ver" 140 #define PICL_PROP_UNIT_ADDRESS "UnitAddress" 141 #define PICL_PROP_SLOT "Slot" 142 #define PICL_PROP_DEVICE_ID "DeviceID" 143 #define PICL_PROP_TRANSFER_SIZE "TransferSize" 144 #define PICL_PROP_BASEADDRESS "BaseAddress" 145 #define PICL_PROP_INTERLEAVE_FACTOR "InterleaveFactor" 146 #define PICL_PROP_ADDRESSMASK "AddressMask" 147 #define PICL_PROP_ADDRESSMATCH "AddressMatch" 148 #define PICL_PROP_LABEL "Label" 149 #define PICL_PROP_CONTAINER "Container" 150 #define PICL_PROP_OFFSET "Offset" 151 #define PICL_PROP_LENGTH "Length" 152 #define PICL_PROP_PROTECTED "Protected" 153 #define PICL_PROP_NUM_SEGMENTS "#Segments" 154 #define PICL_PROP_DESCRIPTOR "Descriptor" 155 #define PICL_PROP_PACKET_TABLE "PacketTable" 156 #define PICL_PROP_NUM_TAGS "#Packets" 157 #define PICL_PROP_ADD_SEGMENT "AddSegment" 158 #define PICL_PROP_DELETE_PACKET "DeletePacket" 159 #define PICL_PROP_ADD_PACKET "AddPacket" 160 #define PICL_PROP_DELETE_SEGMENT "DeleteSegment" 161 #define PICL_PROP_TAG "Tag" 162 #define PICL_PROP_PAYLOAD "Payload" 163 #define PICL_PROP_FRUDATA_AVAIL "FRUDataAvailable" 164 #define PICL_PROP_DEVICEPATH "FRUDevicePath" 165 #define PICL_PROP_FAN_SPEED "Speed" 166 #define PICL_PROP_FAN_SPEED_UNIT "SpeedUnit" 167 #define PICL_PROP_TEMPERATURE "Temperature" 168 #define PICL_PROP_CPU_AMB_TEMP "AmbientTemperature" 169 #define PICL_PROP_CPU_DIE_TEMP "Temperature" 170 #define PICL_PROP_IS_LOCATOR "IsLocator" 171 #define PICL_PROP_LOCATOR_NAME "LocatorName" 172 #define PICL_PROP_DEVICES "Devices" 173 #define PICL_PROP_ENV "Environment" 174 #define PICL_PROP_COLOR "Color" 175 #define PICL_PROP_SC_HANDLE "SC_handle" 176 #define PICL_PROP_FRU_TYPE "FRUType" 177 #define PICL_PROP_SLOT_TYPE "SlotType" 178 #define PICL_PROP_OPERATIONAL_STATUS "OperationalStatus" 179 #define PICL_PROP_VOLTAGE "Voltage" 180 #define PICL_PROP_CURRENT "Current" 181 #define PICL_PROP_CLASS "Class" 182 #define PICL_PROP_CONDITION "Condition" 183 #define PICL_REFPROP_LOC_PARENT "_location_parent" 184 #define PICL_REFPROP_FRU_PARENT "_fru_parent" 185 #define PICL_REFPROP_PORT_PARENT "_port_parent" 186 #define PICL_REFPROP_MEMORY_MODULE_GROUP "_memory-module-group_" 187 #define PICL_REFPROP_MEMORY_MODULE "_memory-module_" 188 #define PICL_REFPROP_SEEPROM_SRC "_seeprom_source" 189 #define PICL_PROP_DEVICE_TYPE "device_type" 190 #define PICL_PROP_PROBE_PATH "PdevProbePath" 191 #define PICL_PROP_WATCHDOG_ACTION "WdAction" 192 #define PICL_PROP_WATCHDOG_TIMEOUT "WdTimeout" 193 #define PICL_PROP_WATCHDOG_OPERATION "WdOp" 194 #define PICL_PROP_STATUS_TIME "StatusTime" 195 #define PICL_PROP_CONDITION "Condition" 196 #define PICL_PROP_CONDITION_TIME "ConditionTime" 197 #define PICL_PROP_CHASSIS_TYPE "ChassisType" 198 #define PICL_PROP_GEO_ADDR "GeoAddr" 199 #define PICL_PROP_ADMIN_LOCK "AdminLock" 200 #define PICL_PROP_PORT_TYPE "PortType" 201 #define PICL_PROP_SERIAL_NUMBER "SerialNumber" 202 203 #define PICL_UNITADDR_LEN_MAX 256 204 205 /* 206 * Various threshold property names 207 */ 208 #define PICL_PROP_LOW_POWER_OFF "LowPowerOffThreshold" 209 #define PICL_PROP_LOW_SHUTDOWN "LowShutdownThreshold" 210 #define PICL_PROP_LOW_WARNING "LowWarningThreshold" 211 #define PICL_PROP_TARGET_TEMPERATURE "TargetTemperature" 212 #define PICL_PROP_HIGH_POWER_OFF "HighPowerOffThreshold" 213 #define PICL_PROP_HIGH_SHUTDOWN "HighShutdownThreshold" 214 #define PICL_PROP_HIGH_WARNING "HighWarningThreshold" 215 216 /* 217 * OBP property names 218 */ 219 #define OBP_PROP_UPA_PORTID "upa-portid" 220 #define OBP_PROP_PORTID "portid" 221 #define OBP_PROP_CPUID "cpuid" 222 #define OBP_PROP_SIZE_CELLS "#size-cells" 223 #define OBP_PROP_ADDRESS_CELLS "#address-cells" 224 225 /* 226 * PICL Event names 227 */ 228 #define PICLEVENT_SYSEVENT_DEVICE_ADDED "sysevent-device-added" 229 #define PICLEVENT_SYSEVENT_DEVICE_REMOVED "sysevent-device-removed" 230 #define PICLEVENT_DR_AP_STATE_CHANGE "dr-ap-state-change" 231 #define PICLEVENT_MC_ADDED "picl-memory-controller-added" 232 #define PICLEVENT_MC_REMOVED "picl-memory-controller-removed" 233 #define PICLEVENT_STATE_CHANGE "picl-state-change" 234 #define PICLEVENT_CONDITION_CHANGE "picl-condition-change" 235 #define PICLEVENT_CPU_STATE_CHANGE "picl-cpu-node-state-change" 236 #define PICLEVENT_DR_REQ "dr-req" 237 238 /* 239 * Contract Private 240 */ 241 #define PICL_FRU_ADDED "picl-fru-added" /* PSARC/2000/546 */ 242 #define PICL_FRU_REMOVED "picl-fru-removed" /* PSARC/2000/546 */ 243 244 /* 245 * PICL Event Argument Names 246 */ 247 #define PICLEVENTARG_DEVFS_PATH "devfs-path" 248 #define PICLEVENTARG_AP_ID "ap-id" 249 #define PICLEVENTARG_HINT "hint" 250 #define PICLEVENTARG_NODEHANDLE "picl-nodehandle" 251 #define PICLEVENTARG_DR_REQ_TYPE "req-type" 252 #define PICLEVENTARG_CPU_EV_TYPE "cpu-ev-type" 253 #define PICLEVENTARG_STATE "State" 254 #define PICLEVENTARG_LAST_STATE "LastState" 255 #define PICLEVENTARG_CONDITION "Condition" 256 257 /* 258 * PICL Label Names 259 */ 260 #define PICL_PROPVAL_LABEL_DIE "Die" 261 #define PICL_PROPVAL_LABEL_AMBIENT "Ambient" 262 263 /* 264 * Contract Private 265 */ 266 #define PICLEVENTARG_FRUHANDLE "picl-fru-handle" /* PSARC/2000/546 */ 267 #define PICLEVENTARG_PARENTHANDLE "picl-parent-handle" /* 2000/546 */ 268 269 /* 270 * The following are PICL PRIVATE event argument names 271 */ 272 #define PICLEVENTARG_EVENT_NAME "piclevent-name" 273 #define PICLEVENTARG_DATA_TYPE "piclevent-data-type" 274 275 /* 276 * The following are values of piclevent-data-type (PRIVATE) 277 */ 278 #define PICLEVENTARG_PICLEVENT_DATA "piclevent-data" 279 280 /* These values are used for PICLEVENT_CPU_STATE_CHANGE event */ 281 #define PICLEVENTARGVAL_ONLINE "Online" 282 #define PICLEVENTARGVAL_OFFLINE "Offline" 283 284 /* 285 * These values are used for PICLEVENT_STATE_CHANGE, 286 * PICLEVENT_CONDITION_CHANGE event 287 */ 288 #define PICLEVENTARGVAL_UNKNOWN "unknown" 289 #define PICLEVENTARGVAL_OK "ok" 290 #define PICLEVENTARGVAL_FAILING "failing" 291 #define PICLEVENTARGVAL_FAILED "failed" 292 #define PICLEVENTARGVAL_TESTING "testing" 293 #define PICLEVENTARGVAL_UNUSABLE "unusable" 294 #define PICLEVENTARGVAL_CONNECTING "connecting" 295 #define PICLEVENTARGVAL_DISCONNECTING "disconnecting" 296 #define PICLEVENTARGVAL_CONNECTED "connected" 297 #define PICLEVENTARGVAL_DISCONNECTED "disconnected" 298 #define PICLEVENTARGVAL_EMPTY "empty" 299 #define PICLEVENTARGVAL_CONFIGURED "configured" 300 #define PICLEVENTARGVAL_UNCONFIGURED "unconfigured" 301 #define PICLEVENTARGVAL_CONFIGURING "configuring" 302 #define PICLEVENTARGVAL_UNCONFIGURING "unconfiguring" 303 #define PICLEVENTARGVAL_UP "up" 304 #define PICLEVENTARGVAL_DOWN "down" 305 306 /* PSARC 2003/163 */ 307 #define PICLEVENTARGVAL_SENSOR_COND_WARNING "warning" 308 #define PICLEVENTARGVAL_SENSOR_COND_SHUTDOWN "shutdown" 309 310 /* PSARC 2003/231 */ 311 /* watchdog property values */ 312 #define PICL_PROPVAL_WD_OP_ARM "arm" 313 #define PICL_PROPVAL_WD_OP_DISARM "disarm" 314 #define PICL_PROPVAL_WD_ACTION_NONE "none" 315 #define PICL_PROPVAL_WD_ACTION_REBOOT "reboot" 316 #define PICL_PROPVAL_WD_ACTION_ALARM "alarm" 317 #define PICL_PROPVAL_WD_ACTION_RESET "reset" 318 #define PICL_PROPVAL_WD_STATE_ARMED "armed" 319 #define PICL_PROPVAL_WD_STATE_DISARMED "disarmed" 320 #define PICL_PROPVAL_WD_STATE_EXPIRED "expired" 321 322 #ifdef __cplusplus 323 } 324 #endif 325 326 #endif /* _PICLDEFS_H */ 327