1 /* 2 * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * Redistribution of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 11 * Redistribution in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 15 * Neither the name of Sun Microsystems, Inc. or the names of 16 * contributors may be used to endorse or promote products derived 17 * from this software without specific prior written permission. 18 * 19 * This software is provided "AS IS," without a warranty of any kind. 20 * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, 21 * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A 22 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. 23 * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE 24 * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING 25 * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL 26 * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, 27 * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR 28 * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF 29 * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 30 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 31 */ 32 33 #include <stddef.h> 34 #include <ipmitool/ipmi_strings.h> 35 #include <ipmitool/ipmi_constants.h> 36 #include <ipmitool/ipmi_sensor.h> 37 #include <ipmitool/ipmi_sel.h> /* for IPMI_OEM */ 38 39 const struct valstr ipmi_oem_info[] = { 40 41 { IPMI_OEM_UNKNOWN, "Unknown" }, 42 { IPMI_OEM_HP, "Hewlett-Packard" }, 43 { IPMI_OEM_SUN, "Sun Microsystems" }, 44 { IPMI_OEM_INTEL, "Intel Corporation" }, 45 { IPMI_OEM_LMC, "LMC" }, 46 { IPMI_OEM_RADISYS, "RadiSys Corporation" }, 47 { IPMI_OEM_TYAN, "Tyan Computer Corporation" }, 48 { IPMI_OEM_NEWISYS, "Newisys" }, 49 { IPMI_OEM_SUPERMICRO, "Supermicro" }, 50 { IPMI_OEM_GOOGLE, "Google" }, 51 { IPMI_OEM_KONTRON, "Kontron" }, 52 { IPMI_OEM_NOKIA, "Nokia" }, 53 { IPMI_OEM_PICMG, "PICMG" }, 54 { IPMI_OEM_PEPPERCON, "Peppercon AG" }, 55 { IPMI_OEM_DELL, "DELL Inc" }, 56 { IPMI_OEM_NEC, "NEC" }, 57 { IPMI_OEM_MAGNUM, "Magnum Technologies" }, 58 { IPMI_OEM_FUJITSU_SIEMENS, "Fujitsu Siemens" }, 59 { IPMI_OEM_TATUNG, "Tatung" }, 60 { IPMI_OEM_AMI, "AMI" }, 61 { IPMI_OEM_RARITAN, "Raritan" }, 62 { IPMI_OEM_AVOCENT, "Avocent" }, 63 { IPMI_OEM_OSA, "OSA" }, 64 { IPMI_OEM_TOSHIBA, "Toshiba" }, 65 { IPMI_OEM_HITACHI_116, "Hitachi" }, 66 { IPMI_OEM_HITACHI_399, "Hitachi" }, 67 { IPMI_OEM_NOKIA_SIEMENS_NETWORKS, "Nokia Siemens Networks" }, 68 { IPMI_OEM_BULL, "Bull Company" }, 69 { IPMI_OEM_PPS, "Pigeon Point Systems" }, 70 { IPMI_OEM_BROADCOM, "Broadcom Corporation" }, 71 { IPMI_OEM_ERICSSON, "Ericsson AB"}, 72 { IPMI_OEM_QUANTA, "Quanta" }, 73 { IPMI_OEM_ADVANTECH, "Advantech" }, 74 { 0xffff , NULL }, 75 }; 76 77 const struct oemvalstr ipmi_oem_product_info[] = { 78 /* Keep OEM grouped together */ 79 /* Intel stuff, thanks to Tim Bell */ 80 { IPMI_OEM_INTEL, 0x000C, "TSRLT2" }, 81 { IPMI_OEM_INTEL, 0x001B, "TIGPR2U" }, 82 { IPMI_OEM_INTEL, 0x0022, "TIGI2U" }, 83 { IPMI_OEM_INTEL, 0x0026, "Bridgeport" }, 84 { IPMI_OEM_INTEL, 0x0028, "S5000PAL" }, 85 { IPMI_OEM_INTEL, 0x0029, "S5000PSL" }, 86 { IPMI_OEM_INTEL, 0x0100, "Tiger4" }, 87 { IPMI_OEM_INTEL, 0x0103, "McCarran" }, 88 { IPMI_OEM_INTEL, 0x0800, "ZT5504" }, 89 { IPMI_OEM_INTEL, 0x0808, "MPCBL0001" }, 90 { IPMI_OEM_INTEL, 0x0811, "TIGW1U" }, 91 { IPMI_OEM_INTEL, 0x4311, "NSI2U" }, 92 /* Kontron */ 93 { IPMI_OEM_KONTRON,4000, "AM4000 AdvancedMC" }, 94 { IPMI_OEM_KONTRON,4001, "AM4001 AdvancedMC" }, 95 { IPMI_OEM_KONTRON,4002, "AM4002 AdvancedMC" }, 96 { IPMI_OEM_KONTRON,4010, "AM4010 AdvancedMC" }, 97 { IPMI_OEM_KONTRON,5503, "AM4500/4520 AdvancedMC" }, 98 { IPMI_OEM_KONTRON,5504, "AM4300 AdvancedMC" }, 99 { IPMI_OEM_KONTRON,5507, "AM4301 AdvancedMC" }, 100 { IPMI_OEM_KONTRON,5508, "AM4330 AdvancedMC" }, 101 { IPMI_OEM_KONTRON,5520, "KTC5520/EATX" }, 102 { IPMI_OEM_KONTRON,5703, "RTM8020" }, 103 { IPMI_OEM_KONTRON,5704, "RTM8030" }, 104 { IPMI_OEM_KONTRON,5705, "RTM8050" }, 105 { IPMI_OEM_KONTRON,6000, "CP6000" }, 106 { IPMI_OEM_KONTRON,6006, "DT-64" }, 107 { IPMI_OEM_KONTRON,6010, "CP6010" }, 108 { IPMI_OEM_KONTRON,6011, "CP6011" }, 109 { IPMI_OEM_KONTRON,6012, "CP6012" }, 110 { IPMI_OEM_KONTRON,6014, "CP6014" }, 111 { IPMI_OEM_KONTRON,5002, "AT8001" }, 112 { IPMI_OEM_KONTRON,5003, "AT8010" }, 113 { IPMI_OEM_KONTRON,5004, "AT8020" }, 114 { IPMI_OEM_KONTRON,5006, "AT8030 IPMC" }, 115 { IPMI_OEM_KONTRON,2025, "AT8030 MMC" }, 116 { IPMI_OEM_KONTRON,5007, "AT8050" }, 117 { IPMI_OEM_KONTRON,5301, "AT8400" }, 118 { IPMI_OEM_KONTRON,5303, "AT8901" }, 119 /* Broadcom */ 120 { IPMI_OEM_BROADCOM, 5725, "BCM5725" }, 121 /* Ericsson */ 122 { IPMI_OEM_ERICSSON, 0x0054, "Phantom" }, 123 /* Advantech */ 124 /* ATCA Blades */ 125 { IPMI_OEM_ADVANTECH, 0x3393, "MIC-3393" }, 126 { IPMI_OEM_ADVANTECH, 0x3395, "MIC-3395" }, 127 { IPMI_OEM_ADVANTECH, 0x3396, "MIC-3396" }, 128 { IPMI_OEM_ADVANTECH, 0x5302, "MIC-5302" }, 129 { IPMI_OEM_ADVANTECH, 0x5304, "MIC-5304" }, 130 { IPMI_OEM_ADVANTECH, 0x5320, "MIC-5320" }, 131 { IPMI_OEM_ADVANTECH, 0x5321, "MIC-5321" }, 132 { IPMI_OEM_ADVANTECH, 0x5322, "MIC-5322" }, 133 { IPMI_OEM_ADVANTECH, 0x5332, "MIC-5332" }, 134 { IPMI_OEM_ADVANTECH, 0x5333, "MIC-5333" }, 135 { IPMI_OEM_ADVANTECH, 0x5342, "MIC-5342" }, 136 { IPMI_OEM_ADVANTECH, 0x5343, "MIC-5343" }, 137 { IPMI_OEM_ADVANTECH, 0x5344, "MIC-5344" }, 138 { IPMI_OEM_ADVANTECH, 0x5345, "MIC-5345" }, 139 { IPMI_OEM_ADVANTECH, 0x5201, "MIC-5201 Dual 10GE AMC"}, 140 { IPMI_OEM_ADVANTECH, 0x5203, "MIC-5203 Quad GbE AMC"}, 141 { IPMI_OEM_ADVANTECH, 0x5212, "MIC-5212 Dual 10GE AMC"}, 142 /* AdvancedMC */ 143 { IPMI_OEM_ADVANTECH, 0x5401, "MIC-5401" }, 144 { IPMI_OEM_ADVANTECH, 0x5601, "MIC-5601" }, 145 { IPMI_OEM_ADVANTECH, 0x5602, "MIC-5602" }, 146 { IPMI_OEM_ADVANTECH, 0x5604, "MIC-5604" }, 147 { IPMI_OEM_ADVANTECH, 0x5603, "MIC-5603" }, 148 { IPMI_OEM_ADVANTECH, 0x6311, "MIC-6311" }, 149 { IPMI_OEM_ADVANTECH, 0x6313, "MIC-6313" }, 150 { IPMI_OEM_ADVANTECH, 0x8301, "MIC-8301" }, 151 { IPMI_OEM_ADVANTECH, 0x8302, "MIC-8302" }, 152 { IPMI_OEM_ADVANTECH, 0x8304, "MIC-8304" }, 153 { IPMI_OEM_ADVANTECH, 0x5101, "RTM-5101" }, 154 { IPMI_OEM_ADVANTECH, 0x5102, "RTM-5102" }, 155 { IPMI_OEM_ADVANTECH, 0x5106, "RTM-5106" }, 156 { IPMI_OEM_ADVANTECH, 0x5107, "RTM-5107" }, 157 { IPMI_OEM_ADVANTECH, 0x5210, "RTM-5210" }, 158 { IPMI_OEM_ADVANTECH, 0x5220, "RTM-5220" }, 159 { IPMI_OEM_ADVANTECH, 0x5104, "RTM-5104" }, 160 { IPMI_OEM_ADVANTECH, 0x5500, "UTCA-5500"}, 161 { IPMI_OEM_ADVANTECH, 0x5503, "UTCA-5503"}, 162 { IPMI_OEM_ADVANTECH, 0x5504, "UTCA-5504"}, 163 { IPMI_OEM_ADVANTECH, 0x5801, "UTCA-5801"}, 164 { IPMI_OEM_ADVANTECH, 0x2210, "NCPB-2210"}, 165 { IPMI_OEM_ADVANTECH, 0x2305, "NCPB-2305"}, 166 { IPMI_OEM_ADVANTECH, 0x2320, "NCPB-2320"}, 167 { IPMI_OEM_ADVANTECH, 0x3109, "NCP-3109" }, 168 { IPMI_OEM_ADVANTECH, 0x3110, "NCP-3110" }, 169 { IPMI_OEM_ADVANTECH, 0x3200, "NCP-3200" }, 170 { IPMI_OEM_ADVANTECH, 0x5060, "SMM-5060" }, 171 { IPMI_OEM_ADVANTECH, 0x3210, "FWA-3210" }, 172 { IPMI_OEM_ADVANTECH, 0x3220, "FWA-3220" }, 173 { IPMI_OEM_ADVANTECH, 0x3221, "FWA-3221" }, 174 { IPMI_OEM_ADVANTECH, 0x3230, "FWA-3230" }, 175 { IPMI_OEM_ADVANTECH, 0x3231, "FWA-3231" }, 176 { IPMI_OEM_ADVANTECH, 0x3233, "FWA-3233" }, 177 { IPMI_OEM_ADVANTECH, 0x3250, "FWA-3250" }, 178 { IPMI_OEM_ADVANTECH, 0x3260, "FWA-3260" }, 179 { IPMI_OEM_ADVANTECH, 0x5020, "FWA-5020" }, 180 { IPMI_OEM_ADVANTECH, 0x6510, "FWA-6510" }, 181 { IPMI_OEM_ADVANTECH, 0x6511, "FWA-6511" }, 182 { IPMI_OEM_ADVANTECH, 0x6512, "FWA-6512" }, 183 { IPMI_OEM_ADVANTECH, 0x6520, "FWA-6520" }, 184 { IPMI_OEM_ADVANTECH, 0x6521, "FWA-6521" }, 185 { IPMI_OEM_ADVANTECH, 0x6522, "FWA-6522" }, 186 { IPMI_OEM_ADVANTECH, 0x7310, "ATCA-7310"}, 187 { IPMI_OEM_ADVANTECH, 0x7330, "ATCA-7330"}, 188 { IPMI_OEM_ADVANTECH, 0x7410, "ATCA-7410"}, 189 { IPMI_OEM_ADVANTECH, 0x9023, "ATCA-9023"}, 190 { IPMI_OEM_ADVANTECH, 0x9112, "ATCA-9112"}, 191 { IPMI_OEM_ADVANTECH, 0x4201, "AMC-4201" }, 192 { IPMI_OEM_ADVANTECH, 0x4202, "AMC-4202" }, 193 { IPMI_OEM_ADVANTECH, 0x3211, "NAMB-3211"}, 194 { IPMI_OEM_ADVANTECH, 0x1207, "CPCI-1207"}, 195 { IPMI_OEM_ADVANTECH, 0x120E, "CPCI-1207 Test Board"}, 196 { IPMI_OEM_ADVANTECH, 0x1304, "CPCI-1304"}, 197 { IPMI_OEM_ADVANTECH, 0x7001, "CPCI-7001"}, 198 { IPMI_OEM_ADVANTECH, 0x8220, "CPCI-8220"}, 199 { IPMI_OEM_ADVANTECH, 0x9001, "ESP-9001" }, 200 { IPMI_OEM_ADVANTECH, 0x9002, "ESP-9002" }, 201 { IPMI_OEM_ADVANTECH, 0x9012, "ESP-9012" }, 202 { IPMI_OEM_ADVANTECH, 0x9212, "ESP-9212" }, 203 { IPMI_OEM_ADVANTECH, 0x6000, "CGS-6000" }, 204 { IPMI_OEM_ADVANTECH, 0x6010, "CGS-6010" }, 205 206 { 0xffffff , 0xffff , NULL }, 207 }; 208 209 const struct oemvalstr ipmi_oem_sdr_type_vals[] = { 210 /* Keep OEM grouped together */ 211 { IPMI_OEM_KONTRON , 0xC0 , "OEM Firmware Info" }, 212 { IPMI_OEM_KONTRON , 0xC2 , "OEM Init Agent" }, 213 { IPMI_OEM_KONTRON , 0xC3 , "OEM IPMBL Link State" }, 214 { IPMI_OEM_KONTRON , 0xC4 , "OEM Board Reset" }, 215 { IPMI_OEM_KONTRON , 0xC5 , "OEM FRU Information Agent" }, 216 { IPMI_OEM_KONTRON , 0xC6 , "OEM POST Value Sensor" }, 217 { IPMI_OEM_KONTRON , 0xC7 , "OEM FWUM Status" }, 218 { IPMI_OEM_KONTRON , 0xC8 , "OEM Switch Mngt Software Status" }, 219 { IPMI_OEM_KONTRON , 0xC9 , "OEM OEM Diagnostic Status" }, 220 { IPMI_OEM_KONTRON , 0xCA , "OEM Component Firmware Upgrade" }, 221 { IPMI_OEM_KONTRON , 0xCB , "OEM FRU Over Current" }, 222 { IPMI_OEM_KONTRON , 0xCC , "OEM FRU Sensor Error" }, 223 { IPMI_OEM_KONTRON , 0xCD , "OEM FRU Power Denied" }, 224 { IPMI_OEM_KONTRON , 0xCE , "OEM Reserved" }, 225 { IPMI_OEM_KONTRON , 0xCF , "OEM Board Reset" }, 226 { IPMI_OEM_KONTRON , 0xD0 , "OEM Clock Resource Control" }, 227 { IPMI_OEM_KONTRON , 0xD1 , "OEM Power State" }, 228 { IPMI_OEM_KONTRON , 0xD2 , "OEM FRU Mngt Power Failure" }, 229 { IPMI_OEM_KONTRON , 0xD3 , "OEM Jumper Status" }, 230 { IPMI_OEM_KONTRON , 0xF2 , "OEM RTM Module Hotswap" }, 231 232 { IPMI_OEM_PICMG , 0xF0 , "PICMG FRU Hotswap" }, 233 { IPMI_OEM_PICMG , 0xF1 , "PICMG IPMB0 Link State" }, 234 { IPMI_OEM_PICMG , 0xF2 , "PICMG Module Hotswap" }, 235 236 { 0xffffff, 0x00, NULL } 237 }; 238 239 const struct valstr ipmi_netfn_vals[] = { 240 { IPMI_NETFN_CHASSIS, "Chassis" }, 241 { IPMI_NETFN_BRIDGE, "Bridge" }, 242 { IPMI_NETFN_SE, "SensorEvent" }, 243 { IPMI_NETFN_APP, "Application" }, 244 { IPMI_NETFN_FIRMWARE, "Firmware" }, 245 { IPMI_NETFN_STORAGE, "Storage" }, 246 { IPMI_NETFN_TRANSPORT, "Transport" }, 247 { 0xff, NULL }, 248 }; 249 250 /* 251 * From table 26-4 of the IPMI v2 specification 252 */ 253 const struct valstr ipmi_bit_rate_vals[] = { 254 { 0x00, "IPMI-Over-Serial-Setting"}, /* Using the value in the IPMI Over Serial Config */ 255 { 0x06, "9.6" }, 256 { 0x07, "19.2" }, 257 { 0x08, "38.4" }, 258 { 0x09, "57.6" }, 259 { 0x0A, "115.2" }, 260 { 0x00, NULL }, 261 }; 262 263 const struct valstr ipmi_channel_activity_type_vals[] = { 264 { 0, "IPMI Messaging session active" }, 265 { 1, "Callback Messaging session active" }, 266 { 2, "Dial-out Alert active" }, 267 { 3, "TAP Page Active" }, 268 { 0x00, NULL }, 269 }; 270 271 272 const struct valstr ipmi_privlvl_vals[] = { 273 { IPMI_SESSION_PRIV_CALLBACK, "CALLBACK" }, 274 { IPMI_SESSION_PRIV_USER, "USER" }, 275 { IPMI_SESSION_PRIV_OPERATOR, "OPERATOR" }, 276 { IPMI_SESSION_PRIV_ADMIN, "ADMINISTRATOR" }, 277 { IPMI_SESSION_PRIV_OEM, "OEM" }, 278 { 0xF, "NO ACCESS" }, 279 { 0xFF, NULL }, 280 }; 281 282 283 const struct valstr ipmi_set_in_progress_vals[] = { 284 { IPMI_SET_IN_PROGRESS_SET_COMPLETE, "set-complete" }, 285 { IPMI_SET_IN_PROGRESS_IN_PROGRESS, "set-in-progress" }, 286 { IPMI_SET_IN_PROGRESS_COMMIT_WRITE, "commit-write" }, 287 { 0, NULL }, 288 }; 289 290 291 const struct valstr ipmi_authtype_session_vals[] = { 292 { IPMI_SESSION_AUTHTYPE_NONE, "NONE" }, 293 { IPMI_SESSION_AUTHTYPE_MD2, "MD2" }, 294 { IPMI_SESSION_AUTHTYPE_MD5, "MD5" }, 295 { IPMI_SESSION_AUTHTYPE_PASSWORD, "PASSWORD" }, 296 { IPMI_SESSION_AUTHTYPE_OEM, "OEM" }, 297 { IPMI_SESSION_AUTHTYPE_RMCP_PLUS,"RMCP+" }, 298 { 0xFF, NULL }, 299 }; 300 301 302 const struct valstr ipmi_authtype_vals[] = { 303 { IPMI_1_5_AUTH_TYPE_BIT_NONE, "NONE" }, 304 { IPMI_1_5_AUTH_TYPE_BIT_MD2, "MD2" }, 305 { IPMI_1_5_AUTH_TYPE_BIT_MD5, "MD5" }, 306 { IPMI_1_5_AUTH_TYPE_BIT_PASSWORD, "PASSWORD" }, 307 { IPMI_1_5_AUTH_TYPE_BIT_OEM, "OEM" }, 308 { 0, NULL }, 309 }; 310 311 const struct valstr entity_id_vals[] = { 312 { 0x00, "Unspecified" }, 313 { 0x01, "Other" }, 314 { 0x02, "Unknown" }, 315 { 0x03, "Processor" }, 316 { 0x04, "Disk or Disk Bay" }, 317 { 0x05, "Peripheral Bay" }, 318 { 0x06, "System Management Module" }, 319 { 0x07, "System Board" }, 320 { 0x08, "Memory Module" }, 321 { 0x09, "Processor Module" }, 322 { 0x0a, "Power Supply" }, 323 { 0x0b, "Add-in Card" }, 324 { 0x0c, "Front Panel Board" }, 325 { 0x0d, "Back Panel Board" }, 326 { 0x0e, "Power System Board" }, 327 { 0x0f, "Drive Backplane" }, 328 { 0x10, "System Internal Expansion Board" }, 329 { 0x11, "Other System Board" }, 330 { 0x12, "Processor Board" }, 331 { 0x13, "Power Unit" }, 332 { 0x14, "Power Module" }, 333 { 0x15, "Power Management" }, 334 { 0x16, "Chassis Back Panel Board" }, 335 { 0x17, "System Chassis" }, 336 { 0x18, "Sub-Chassis" }, 337 { 0x19, "Other Chassis Board" }, 338 { 0x1a, "Disk Drive Bay" }, 339 { 0x1b, "Peripheral Bay" }, 340 { 0x1c, "Device Bay" }, 341 { 0x1d, "Fan Device" }, 342 { 0x1e, "Cooling Unit" }, 343 { 0x1f, "Cable/Interconnect" }, 344 { 0x20, "Memory Device" }, 345 { 0x21, "System Management Software" }, 346 { 0x22, "BIOS" }, 347 { 0x23, "Operating System" }, 348 { 0x24, "System Bus" }, 349 { 0x25, "Group" }, 350 { 0x26, "Remote Management Device" }, 351 { 0x27, "External Environment" }, 352 { 0x28, "Battery" }, 353 { 0x29, "Processing Blade" }, 354 { 0x2A, "Connectivity Switch" }, 355 { 0x2B, "Processor/Memory Module" }, 356 { 0x2C, "I/O Module" }, 357 { 0x2D, "Processor/IO Module" }, 358 { 0x2E, "Management Controller Firmware" }, 359 { 0x2F, "IPMI Channel" }, 360 { 0x30, "PCI Bus" }, 361 { 0x31, "PCI Express Bus" }, 362 { 0x32, "SCSI Bus (parallel)" }, 363 { 0x33, "SATA/SAS Bus" }, 364 { 0x34, "Processor/Front-Side Bus" }, 365 { 0x35, "Real Time Clock(RTC)" }, 366 { 0x36, "Reserved" }, 367 { 0x37, "Air Inlet" }, 368 { 0x38, "Reserved" }, 369 { 0x39, "Reserved" }, 370 { 0x3A, "Reserved" }, 371 { 0x3B, "Reserved" }, 372 { 0x3C, "Reserved" }, 373 { 0x3D, "Reserved" }, 374 { 0x3E, "Reserved" }, 375 { 0x3F, "Reserved" }, 376 { 0x40, "Air Inlet" }, 377 { 0x41, "Processor" }, 378 { 0x42, "Baseboard/Main System Board" }, 379 /* PICMG */ 380 { 0xA0, "PICMG Front Board" }, 381 { 0xC0, "PICMG Rear Transition Module" }, 382 { 0xC1, "PICMG AdvancedMC Module" }, 383 { 0xF0, "PICMG Shelf Management Controller" }, 384 { 0xF1, "PICMG Filtration Unit" }, 385 { 0xF2, "PICMG Shelf FRU Information" }, 386 { 0xF3, "PICMG Alarm Panel" }, 387 { 0x00, NULL }, 388 }; 389 390 const struct valstr entity_device_type_vals[] = { 391 { 0x00, "Reserved" }, 392 { 0x01, "Reserved" }, 393 { 0x02, "DS1624 temperature sensor" }, 394 { 0x03, "DS1621 temperature sensor" }, 395 { 0x04, "LM75 Temperature Sensor" }, 396 { 0x05, "Heceta ASIC" }, 397 { 0x06, "Reserved" }, 398 { 0x07, "Reserved" }, 399 { 0x08, "EEPROM, 24C01" }, 400 { 0x09, "EEPROM, 24C02" }, 401 { 0x0a, "EEPROM, 24C04" }, 402 { 0x0b, "EEPROM, 24C08" }, 403 { 0x0c, "EEPROM, 24C16" }, 404 { 0x0d, "EEPROM, 24C17" }, 405 { 0x0e, "EEPROM, 24C32" }, 406 { 0x0f, "EEPROM, 24C64" }, 407 { 0x1000, "IPMI FRU Inventory" }, 408 { 0x1001, "DIMM Memory ID" }, 409 { 0x1002, "IPMI FRU Inventory" }, 410 { 0x1003, "System Processor Cartridge FRU" }, 411 { 0x11, "Reserved" }, 412 { 0x12, "Reserved" }, 413 { 0x13, "Reserved" }, 414 { 0x14, "PCF 8570 256 byte RAM" }, 415 { 0x15, "PCF 8573 clock/calendar" }, 416 { 0x16, "PCF 8574A I/O Port" }, 417 { 0x17, "PCF 8583 clock/calendar" }, 418 { 0x18, "PCF 8593 clock/calendar" }, 419 { 0x19, "Clock calendar" }, 420 { 0x1a, "PCF 8591 A/D, D/A Converter" }, 421 { 0x1b, "I/O Port" }, 422 { 0x1c, "A/D Converter" }, 423 { 0x1d, "D/A Converter" }, 424 { 0x1e, "A/D, D/A Converter" }, 425 { 0x1f, "LCD Controller/Driver" }, 426 { 0x20, "Core Logic (Chip set) Device" }, 427 { 0x21, "LMC6874 Intelligent Battery controller" }, 428 { 0x22, "Intelligent Batter controller" }, 429 { 0x23, "Combo Management ASIC" }, 430 { 0x24, "Maxim 1617 Temperature Sensor" }, 431 { 0xbf, "Other/Unspecified" }, 432 { 0x00, NULL }, 433 }; 434 435 const struct valstr ipmi_channel_protocol_vals[] = { 436 { 0x00, "reserved" }, 437 { 0x01, "IPMB-1.0" }, 438 { 0x02, "ICMB-1.0" }, 439 { 0x03, "reserved" }, 440 { 0x04, "IPMI-SMBus" }, 441 { 0x05, "KCS" }, 442 { 0x06, "SMIC" }, 443 { 0x07, "BT-10" }, 444 { 0x08, "BT-15" }, 445 { 0x09, "TMode" }, 446 { 0x1c, "OEM 1" }, 447 { 0x1d, "OEM 2" }, 448 { 0x1e, "OEM 3" }, 449 { 0x1f, "OEM 4" }, 450 { 0x00, NULL }, 451 }; 452 453 454 const struct valstr ipmi_channel_medium_vals[] = { 455 { IPMI_CHANNEL_MEDIUM_RESERVED, "reserved" }, 456 { IPMI_CHANNEL_MEDIUM_IPMB_I2C, "IPMB (I2C)" }, 457 { IPMI_CHANNEL_MEDIUM_ICMB_1, "ICMB v1.0" }, 458 { IPMI_CHANNEL_MEDIUM_ICMB_09, "ICMB v0.9" }, 459 { IPMI_CHANNEL_MEDIUM_LAN, "802.3 LAN" }, 460 { IPMI_CHANNEL_MEDIUM_SERIAL, "Serial/Modem" }, 461 { IPMI_CHANNEL_MEDIUM_LAN_OTHER,"Other LAN" }, 462 { IPMI_CHANNEL_MEDIUM_SMBUS_PCI,"PCI SMBus" }, 463 { IPMI_CHANNEL_MEDIUM_SMBUS_1, "SMBus v1.0/v1.1" }, 464 { IPMI_CHANNEL_MEDIUM_SMBUS_2, "SMBus v2.0" }, 465 { IPMI_CHANNEL_MEDIUM_USB_1, "USB 1.x" }, 466 { IPMI_CHANNEL_MEDIUM_USB_2, "USB 2.x" }, 467 { IPMI_CHANNEL_MEDIUM_SYSTEM, "System Interface" }, 468 { 0x00, NULL }, 469 }; 470 471 const struct valstr completion_code_vals[] = { 472 { 0x00, "Command completed normally" }, 473 { 0xc0, "Node busy" }, 474 { 0xc1, "Invalid command" }, 475 { 0xc2, "Invalid command on LUN" }, 476 { 0xc3, "Timeout" }, 477 { 0xc4, "Out of space" }, 478 { 0xc5, "Reservation cancelled or invalid" }, 479 { 0xc6, "Request data truncated" }, 480 { 0xc7, "Request data length invalid" }, 481 { 0xc8, "Request data field length limit exceeded" }, 482 { 0xc9, "Parameter out of range" }, 483 { 0xca, "Cannot return number of requested data bytes" }, 484 { 0xcb, "Requested sensor, data, or record not found" }, 485 { 0xcc, "Invalid data field in request" }, 486 { 0xcd, "Command illegal for specified sensor or record type" }, 487 { 0xce, "Command response could not be provided" }, 488 { 0xcf, "Cannot execute duplicated request" }, 489 { 0xd0, "SDR Repository in update mode" }, 490 { 0xd1, "Device firmeware in update mode" }, 491 { 0xd2, "BMC initialization in progress" }, 492 { 0xd3, "Destination unavailable" }, 493 { 0xd4, "Insufficient privilege level" }, 494 { 0xd5, "Command not supported in present state" }, 495 { 0xd6, "Cannot execute command, command disabled" }, 496 { 0xff, "Unspecified error" }, 497 { 0x00, NULL } 498 }; 499 500 const struct valstr ipmi_chassis_power_control_vals[] = { 501 { IPMI_CHASSIS_CTL_POWER_DOWN, "Down/Off" }, 502 { IPMI_CHASSIS_CTL_POWER_UP, "Up/On" }, 503 { IPMI_CHASSIS_CTL_POWER_CYCLE, "Cycle" }, 504 { IPMI_CHASSIS_CTL_HARD_RESET, "Reset" }, 505 { IPMI_CHASSIS_CTL_PULSE_DIAG, "Diag" }, 506 { IPMI_CHASSIS_CTL_ACPI_SOFT, "Soft" }, 507 { 0x00, NULL }, 508 }; 509 510 const struct valstr ipmi_auth_algorithms[] = { 511 { IPMI_AUTH_RAKP_NONE, "none" }, 512 { IPMI_AUTH_RAKP_HMAC_SHA1, "hmac_sha1" }, 513 { IPMI_AUTH_RAKP_HMAC_MD5, "hmac_md5" }, 514 { 0x00, NULL } 515 }; 516 517 const struct valstr ipmi_integrity_algorithms[] = { 518 { IPMI_INTEGRITY_NONE, "none" }, 519 { IPMI_INTEGRITY_HMAC_SHA1_96, "hmac_sha1_96" }, 520 { IPMI_INTEGRITY_HMAC_MD5_128, "hmac_md5_128" }, 521 { IPMI_INTEGRITY_MD5_128 , "md5_128" }, 522 { 0x00, NULL } 523 }; 524 525 const struct valstr ipmi_encryption_algorithms[] = { 526 { IPMI_CRYPT_NONE, "none" }, 527 { IPMI_CRYPT_AES_CBC_128, "aes_cbc_128" }, 528 { IPMI_CRYPT_XRC4_128, "xrc4_128" }, 529 { IPMI_CRYPT_XRC4_40, "xrc4_40" }, 530 { 0x00, NULL } 531 }; 532 533 const struct valstr picmg_frucontrol_vals[] = { 534 { 0, "Cold Reset" }, 535 { 1, "Warm Reset" }, 536 { 2, "Graceful Reboot" }, 537 { 3, "Issue Diagnostic Interrupt" }, 538 { 4, "Quiesce" }, 539 { 5, NULL }, 540 }; 541 542 const struct valstr picmg_clk_family_vals[] = { 543 { 0x00, "Unspecified" }, 544 { 0x01, "SONET/SDH/PDH" }, 545 { 0x02, "Reserved for PCI Express" }, 546 { 0x03, "Reserved" }, /* from 03h to C8h */ 547 { 0xC9, "Vendor defined clock family" }, /* from C9h to FFh */ 548 { 0x00, NULL }, 549 }; 550 551 const struct oemvalstr picmg_clk_accuracy_vals[] = { 552 { 0x01, 10, "PRS" }, 553 { 0x01, 20, "STU" }, 554 { 0x01, 30, "ST2" }, 555 { 0x01, 40, "TNC" }, 556 { 0x01, 50, "ST3E" }, 557 { 0x01, 60, "ST3" }, 558 { 0x01, 70, "SMC" }, 559 { 0x01, 80, "ST4" }, 560 { 0x01, 90, "DUS" }, 561 { 0x02, 0xE0, "PCI Express Generation 2" }, 562 { 0x02, 0xF0, "PCI Express Generation 1" }, 563 { 0xffffff, 0x00, NULL } 564 }; 565 566 const struct oemvalstr picmg_clk_resource_vals[] = { 567 { 0x0, 0, "On-Carrier Device 0" }, 568 { 0x0, 1, "On-Carrier Device 1" }, 569 { 0x1, 1, "AMC Site 1 - A1" }, 570 { 0x1, 2, "AMC Site 1 - A2" }, 571 { 0x1, 3, "AMC Site 1 - A3" }, 572 { 0x1, 4, "AMC Site 1 - A4" }, 573 { 0x1, 5, "AMC Site 1 - B1" }, 574 { 0x1, 6, "AMC Site 1 - B2" }, 575 { 0x1, 7, "AMC Site 1 - B3" }, 576 { 0x1, 8, "AMC Site 1 - B4" }, 577 { 0x2, 0, "ATCA Backplane" }, 578 { 0xffffff, 0x00, NULL } 579 }; 580 581 const struct oemvalstr picmg_clk_id_vals[] = { 582 { 0x0, 0, "Clock 0" }, 583 { 0x0, 1, "Clock 1" }, 584 { 0x0, 2, "Clock 2" }, 585 { 0x0, 3, "Clock 3" }, 586 { 0x0, 4, "Clock 4" }, 587 { 0x0, 5, "Clock 5" }, 588 { 0x0, 6, "Clock 6" }, 589 { 0x0, 7, "Clock 7" }, 590 { 0x0, 8, "Clock 8" }, 591 { 0x0, 9, "Clock 9" }, 592 { 0x0, 10, "Clock 10" }, 593 { 0x0, 11, "Clock 11" }, 594 { 0x0, 12, "Clock 12" }, 595 { 0x0, 13, "Clock 13" }, 596 { 0x0, 14, "Clock 14" }, 597 { 0x0, 15, "Clock 15" }, 598 { 0x1, 1, "TCLKA" }, 599 { 0x1, 2, "TCLKB" }, 600 { 0x1, 3, "TCLKC" }, 601 { 0x1, 4, "TCLKD" }, 602 { 0x1, 5, "FLCKA" }, 603 { 0x2, 1, "CLK1A" }, 604 { 0x2, 2, "CLK1A" }, 605 { 0x2, 3, "CLK1A" }, 606 { 0x2, 4, "CLK1A" }, 607 { 0x2, 5, "CLK1A" }, 608 { 0x2, 6, "CLK1A" }, 609 { 0x2, 7, "CLK1A" }, 610 { 0x2, 8, "CLK1A" }, 611 { 0x2, 9, "CLK1A" }, 612 { 0xffffff, 0x00, NULL } 613 }; 614 615 const struct valstr picmg_busres_id_vals[] = { 616 { 0x0, "Metallic Test Bus pair #1" }, 617 { 0x1, "Metallic Test Bus pair #2" }, 618 { 0x2, "Synch clock group 1 (CLK1)" }, 619 { 0x3, "Synch clock group 2 (CLK2)" }, 620 { 0x4, "Synch clock group 3 (CLK3)" }, 621 { 0x5, NULL } 622 }; 623 const struct valstr picmg_busres_board_cmd_vals[] = { 624 { 0x0, "Query" }, 625 { 0x1, "Release" }, 626 { 0x2, "Force" }, 627 { 0x3, "Bus Free" }, 628 { 0x4, NULL } 629 }; 630 631 const struct valstr picmg_busres_shmc_cmd_vals[] = { 632 { 0x0, "Request" }, 633 { 0x1, "Relinquish" }, 634 { 0x2, "Notify" }, 635 { 0x3, NULL } 636 }; 637 638 const struct oemvalstr picmg_busres_board_status_vals[] = { 639 { 0x0, 0x0, "In control" }, 640 { 0x0, 0x1, "No control" }, 641 { 0x1, 0x0, "Ack" }, 642 { 0x1, 0x1, "Refused" }, 643 { 0x1, 0x2, "No control" }, 644 { 0x2, 0x0, "Ack" }, 645 { 0x2, 0x1, "No control" }, 646 { 0x3, 0x0, "Accept" }, 647 { 0x3, 0x1, "Not Needed" }, 648 { 0xffffff, 0x00, NULL } 649 }; 650 651 const struct oemvalstr picmg_busres_shmc_status_vals[] = { 652 { 0x0, 0x0, "Grant" }, 653 { 0x0, 0x1, "Busy" }, 654 { 0x0, 0x2, "Defer" }, 655 { 0x0, 0x3, "Deny" }, 656 657 { 0x1, 0x0, "Ack" }, 658 { 0x1, 0x1, "Error" }, 659 660 { 0x2, 0x0, "Ack" }, 661 { 0x2, 0x1, "Error" }, 662 { 0x2, 0x2, "Deny" }, 663 664 { 0xffffff, 0x00, NULL } 665 }; 666