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_QUANTA, "Quanta" }, 72 { 0xffff , NULL }, 73 }; 74 75 const struct oemvalstr ipmi_oem_product_info[] = { 76 /* Keep OEM grouped together */ 77 /* Intel stuff, thanks to Tim Bell */ 78 { IPMI_OEM_INTEL, 0x000C, "TSRLT2" }, 79 { IPMI_OEM_INTEL, 0x001B, "TIGPR2U" }, 80 { IPMI_OEM_INTEL, 0x0022, "TIGI2U" }, 81 { IPMI_OEM_INTEL, 0x0026, "Bridgeport" }, 82 { IPMI_OEM_INTEL, 0x0028, "S5000PAL" }, 83 { IPMI_OEM_INTEL, 0x0029, "S5000PSL" }, 84 { IPMI_OEM_INTEL, 0x0100, "Tiger4" }, 85 { IPMI_OEM_INTEL, 0x0103, "McCarran" }, 86 { IPMI_OEM_INTEL, 0x0800, "ZT5504" }, 87 { IPMI_OEM_INTEL, 0x0808, "MPCBL0001" }, 88 { IPMI_OEM_INTEL, 0x0811, "TIGW1U" }, 89 { IPMI_OEM_INTEL, 0x4311, "NSI2U" }, 90 /* Kontron */ 91 { IPMI_OEM_KONTRON,4000, "AM4000 AdvancedMC" }, 92 { IPMI_OEM_KONTRON,4001, "AM4001 AdvancedMC" }, 93 { IPMI_OEM_KONTRON,4002, "AM4002 AdvancedMC" }, 94 { IPMI_OEM_KONTRON,4010, "AM4010 AdvancedMC" }, 95 { IPMI_OEM_KONTRON,5503, "AM4500/4520 AdvancedMC" }, 96 { IPMI_OEM_KONTRON,5504, "AM4300 AdvancedMC" }, 97 { IPMI_OEM_KONTRON,5507, "AM4301 AdvancedMC" }, 98 { IPMI_OEM_KONTRON,5508, "AM4330 AdvancedMC" }, 99 { IPMI_OEM_KONTRON,5520, "KTC5520/EATX" }, 100 { IPMI_OEM_KONTRON,5703, "RTM8020" }, 101 { IPMI_OEM_KONTRON,5704, "RTM8030" }, 102 { IPMI_OEM_KONTRON,5705, "RTM8050" }, 103 { IPMI_OEM_KONTRON,6000, "CP6000" }, 104 { IPMI_OEM_KONTRON,6006, "DT-64" }, 105 { IPMI_OEM_KONTRON,6010, "CP6010" }, 106 { IPMI_OEM_KONTRON,6011, "CP6011" }, 107 { IPMI_OEM_KONTRON,6012, "CP6012" }, 108 { IPMI_OEM_KONTRON,6014, "CP6014" }, 109 { IPMI_OEM_KONTRON,5002, "AT8001" }, 110 { IPMI_OEM_KONTRON,5003, "AT8010" }, 111 { IPMI_OEM_KONTRON,5004, "AT8020" }, 112 { IPMI_OEM_KONTRON,5006, "AT8030 IPMC" }, 113 { IPMI_OEM_KONTRON,2025, "AT8030 MMC" }, 114 { IPMI_OEM_KONTRON,5007, "AT8050" }, 115 { IPMI_OEM_KONTRON,5301, "AT8400" }, 116 { IPMI_OEM_KONTRON,5303, "AT8901" }, 117 /* Broadcom */ 118 { IPMI_OEM_BROADCOM, 5725, "BCM5725" }, 119 120 { 0xffffff , 0xffff , NULL }, 121 }; 122 123 const struct oemvalstr ipmi_oem_sdr_type_vals[] = { 124 /* Keep OEM grouped together */ 125 { IPMI_OEM_KONTRON , 0xC0 , "OEM Firmware Info" }, 126 { IPMI_OEM_KONTRON , 0xC2 , "OEM Init Agent" }, 127 { IPMI_OEM_KONTRON , 0xC3 , "OEM IPMBL Link State" }, 128 { IPMI_OEM_KONTRON , 0xC4 , "OEM Board Reset" }, 129 { IPMI_OEM_KONTRON , 0xC5 , "OEM FRU Information Agent" }, 130 { IPMI_OEM_KONTRON , 0xC6 , "OEM POST Value Sensor" }, 131 { IPMI_OEM_KONTRON , 0xC7 , "OEM FWUM Status" }, 132 { IPMI_OEM_KONTRON , 0xC8 , "OEM Switch Mngt Software Status" }, 133 { IPMI_OEM_KONTRON , 0xC9 , "OEM OEM Diagnostic Status" }, 134 { IPMI_OEM_KONTRON , 0xCA , "OEM Component Firmware Upgrade" }, 135 { IPMI_OEM_KONTRON , 0xCB , "OEM FRU Over Current" }, 136 { IPMI_OEM_KONTRON , 0xCC , "OEM FRU Sensor Error" }, 137 { IPMI_OEM_KONTRON , 0xCD , "OEM FRU Power Denied" }, 138 { IPMI_OEM_KONTRON , 0xCE , "OEM Reserved" }, 139 { IPMI_OEM_KONTRON , 0xCF , "OEM Board Reset" }, 140 { IPMI_OEM_KONTRON , 0xD0 , "OEM Clock Resource Control" }, 141 { IPMI_OEM_KONTRON , 0xD1 , "OEM Power State" }, 142 { IPMI_OEM_KONTRON , 0xD2 , "OEM FRU Mngt Power Failure" }, 143 { IPMI_OEM_KONTRON , 0xD3 , "OEM Jumper Status" }, 144 { IPMI_OEM_KONTRON , 0xF2 , "OEM RTM Module Hotswap" }, 145 146 { IPMI_OEM_PICMG , 0xF0 , "PICMG FRU Hotswap" }, 147 { IPMI_OEM_PICMG , 0xF1 , "PICMG IPMB0 Link State" }, 148 { IPMI_OEM_PICMG , 0xF2 , "PICMG Module Hotswap" }, 149 150 { 0xffffff, 0x00, NULL } 151 }; 152 153 const struct valstr ipmi_netfn_vals[] = { 154 { IPMI_NETFN_CHASSIS, "Chassis" }, 155 { IPMI_NETFN_BRIDGE, "Bridge" }, 156 { IPMI_NETFN_SE, "SensorEvent" }, 157 { IPMI_NETFN_APP, "Application" }, 158 { IPMI_NETFN_FIRMWARE, "Firmware" }, 159 { IPMI_NETFN_STORAGE, "Storage" }, 160 { IPMI_NETFN_TRANSPORT, "Transport" }, 161 { 0xff, NULL }, 162 }; 163 164 /* 165 * From table 26-4 of the IPMI v2 specification 166 */ 167 const struct valstr ipmi_bit_rate_vals[] = { 168 { 0x00, "IPMI-Over-Serial-Setting"}, /* Using the value in the IPMI Over Serial Config */ 169 { 0x06, "9.6" }, 170 { 0x07, "19.2" }, 171 { 0x08, "38.4" }, 172 { 0x09, "57.6" }, 173 { 0x0A, "115.2" }, 174 { 0x00, NULL }, 175 }; 176 177 const struct valstr ipmi_channel_activity_type_vals[] = { 178 { 0, "IPMI Messaging session active" }, 179 { 1, "Callback Messaging session active" }, 180 { 2, "Dial-out Alert active" }, 181 { 3, "TAP Page Active" }, 182 { 0x00, NULL }, 183 }; 184 185 186 const struct valstr ipmi_privlvl_vals[] = { 187 { IPMI_SESSION_PRIV_CALLBACK, "CALLBACK" }, 188 { IPMI_SESSION_PRIV_USER, "USER" }, 189 { IPMI_SESSION_PRIV_OPERATOR, "OPERATOR" }, 190 { IPMI_SESSION_PRIV_ADMIN, "ADMINISTRATOR" }, 191 { IPMI_SESSION_PRIV_OEM, "OEM" }, 192 { 0xF, "NO ACCESS" }, 193 { 0xFF, NULL }, 194 }; 195 196 197 const struct valstr ipmi_set_in_progress_vals[] = { 198 { IPMI_SET_IN_PROGRESS_SET_COMPLETE, "set-complete" }, 199 { IPMI_SET_IN_PROGRESS_IN_PROGRESS, "set-in-progress" }, 200 { IPMI_SET_IN_PROGRESS_COMMIT_WRITE, "commit-write" }, 201 { 0, NULL }, 202 }; 203 204 205 const struct valstr ipmi_authtype_session_vals[] = { 206 { IPMI_SESSION_AUTHTYPE_NONE, "NONE" }, 207 { IPMI_SESSION_AUTHTYPE_MD2, "MD2" }, 208 { IPMI_SESSION_AUTHTYPE_MD5, "MD5" }, 209 { IPMI_SESSION_AUTHTYPE_PASSWORD, "PASSWORD" }, 210 { IPMI_SESSION_AUTHTYPE_OEM, "OEM" }, 211 { IPMI_SESSION_AUTHTYPE_RMCP_PLUS,"RMCP+" }, 212 { 0xFF, NULL }, 213 }; 214 215 216 const struct valstr ipmi_authtype_vals[] = { 217 { IPMI_1_5_AUTH_TYPE_BIT_NONE, "NONE" }, 218 { IPMI_1_5_AUTH_TYPE_BIT_MD2, "MD2" }, 219 { IPMI_1_5_AUTH_TYPE_BIT_MD5, "MD5" }, 220 { IPMI_1_5_AUTH_TYPE_BIT_PASSWORD, "PASSWORD" }, 221 { IPMI_1_5_AUTH_TYPE_BIT_OEM, "OEM" }, 222 { 0, NULL }, 223 }; 224 225 const struct valstr entity_id_vals[] = { 226 { 0x00, "Unspecified" }, 227 { 0x01, "Other" }, 228 { 0x02, "Unknown" }, 229 { 0x03, "Processor" }, 230 { 0x04, "Disk or Disk Bay" }, 231 { 0x05, "Peripheral Bay" }, 232 { 0x06, "System Management Module" }, 233 { 0x07, "System Board" }, 234 { 0x08, "Memory Module" }, 235 { 0x09, "Processor Module" }, 236 { 0x0a, "Power Supply" }, 237 { 0x0b, "Add-in Card" }, 238 { 0x0c, "Front Panel Board" }, 239 { 0x0d, "Back Panel Board" }, 240 { 0x0e, "Power System Board" }, 241 { 0x0f, "Drive Backplane" }, 242 { 0x10, "System Internal Expansion Board" }, 243 { 0x11, "Other System Board" }, 244 { 0x12, "Processor Board" }, 245 { 0x13, "Power Unit" }, 246 { 0x14, "Power Module" }, 247 { 0x15, "Power Management" }, 248 { 0x16, "Chassis Back Panel Board" }, 249 { 0x17, "System Chassis" }, 250 { 0x18, "Sub-Chassis" }, 251 { 0x19, "Other Chassis Board" }, 252 { 0x1a, "Disk Drive Bay" }, 253 { 0x1b, "Peripheral Bay" }, 254 { 0x1c, "Device Bay" }, 255 { 0x1d, "Fan Device" }, 256 { 0x1e, "Cooling Unit" }, 257 { 0x1f, "Cable/Interconnect" }, 258 { 0x20, "Memory Device" }, 259 { 0x21, "System Management Software" }, 260 { 0x22, "BIOS" }, 261 { 0x23, "Operating System" }, 262 { 0x24, "System Bus" }, 263 { 0x25, "Group" }, 264 { 0x26, "Remote Management Device" }, 265 { 0x27, "External Environment" }, 266 { 0x28, "Battery" }, 267 { 0x29, "Processing Blade" }, 268 { 0x2A, "Connectivity Switch" }, 269 { 0x2B, "Processor/Memory Module" }, 270 { 0x2C, "I/O Module" }, 271 { 0x2D, "Processor/IO Module" }, 272 { 0x2E, "Management Controller Firmware" }, 273 { 0x2F, "IPMI Channel" }, 274 { 0x30, "PCI Bus" }, 275 { 0x31, "PCI Express Bus" }, 276 { 0x32, "SCSI Bus (parallel)" }, 277 { 0x33, "SATA/SAS Bus" }, 278 { 0x34, "Processor/Front-Side Bus" }, 279 { 0x35, "Real Time Clock(RTC)" }, 280 { 0x36, "Reserved" }, 281 { 0x37, "Air Inlet" }, 282 { 0x38, "Reserved" }, 283 { 0x39, "Reserved" }, 284 { 0x3A, "Reserved" }, 285 { 0x3B, "Reserved" }, 286 { 0x3C, "Reserved" }, 287 { 0x3D, "Reserved" }, 288 { 0x3E, "Reserved" }, 289 { 0x3F, "Reserved" }, 290 { 0x40, "Air Inlet" }, 291 { 0x41, "Processor" }, 292 { 0x42, "Baseboard/Main System Board" }, 293 /* PICMG */ 294 { 0xA0, "PICMG Front Board" }, 295 { 0xC0, "PICMG Rear Transition Module" }, 296 { 0xC1, "PICMG AdvancedMC Module" }, 297 { 0xF0, "PICMG Shelf Management Controller" }, 298 { 0xF1, "PICMG Filtration Unit" }, 299 { 0xF2, "PICMG Shelf FRU Information" }, 300 { 0xF3, "PICMG Alarm Panel" }, 301 { 0x00, NULL }, 302 }; 303 304 const struct valstr entity_device_type_vals[] = { 305 { 0x00, "Reserved" }, 306 { 0x01, "Reserved" }, 307 { 0x02, "DS1624 temperature sensor" }, 308 { 0x03, "DS1621 temperature sensor" }, 309 { 0x04, "LM75 Temperature Sensor" }, 310 { 0x05, "Heceta ASIC" }, 311 { 0x06, "Reserved" }, 312 { 0x07, "Reserved" }, 313 { 0x08, "EEPROM, 24C01" }, 314 { 0x09, "EEPROM, 24C02" }, 315 { 0x0a, "EEPROM, 24C04" }, 316 { 0x0b, "EEPROM, 24C08" }, 317 { 0x0c, "EEPROM, 24C16" }, 318 { 0x0d, "EEPROM, 24C17" }, 319 { 0x0e, "EEPROM, 24C32" }, 320 { 0x0f, "EEPROM, 24C64" }, 321 { 0x1000, "IPMI FRU Inventory" }, 322 { 0x1001, "DIMM Memory ID" }, 323 { 0x1002, "IPMI FRU Inventory" }, 324 { 0x1003, "System Processor Cartridge FRU" }, 325 { 0x11, "Reserved" }, 326 { 0x12, "Reserved" }, 327 { 0x13, "Reserved" }, 328 { 0x14, "PCF 8570 256 byte RAM" }, 329 { 0x15, "PCF 8573 clock/calendar" }, 330 { 0x16, "PCF 8574A I/O Port" }, 331 { 0x17, "PCF 8583 clock/calendar" }, 332 { 0x18, "PCF 8593 clock/calendar" }, 333 { 0x19, "Clock calendar" }, 334 { 0x1a, "PCF 8591 A/D, D/A Converter" }, 335 { 0x1b, "I/O Port" }, 336 { 0x1c, "A/D Converter" }, 337 { 0x1d, "D/A Converter" }, 338 { 0x1e, "A/D, D/A Converter" }, 339 { 0x1f, "LCD Controller/Driver" }, 340 { 0x20, "Core Logic (Chip set) Device" }, 341 { 0x21, "LMC6874 Intelligent Battery controller" }, 342 { 0x22, "Intelligent Batter controller" }, 343 { 0x23, "Combo Management ASIC" }, 344 { 0x24, "Maxim 1617 Temperature Sensor" }, 345 { 0xbf, "Other/Unspecified" }, 346 { 0x00, NULL }, 347 }; 348 349 const struct valstr ipmi_channel_protocol_vals[] = { 350 { 0x00, "reserved" }, 351 { 0x01, "IPMB-1.0" }, 352 { 0x02, "ICMB-1.0" }, 353 { 0x03, "reserved" }, 354 { 0x04, "IPMI-SMBus" }, 355 { 0x05, "KCS" }, 356 { 0x06, "SMIC" }, 357 { 0x07, "BT-10" }, 358 { 0x08, "BT-15" }, 359 { 0x09, "TMode" }, 360 { 0x1c, "OEM 1" }, 361 { 0x1d, "OEM 2" }, 362 { 0x1e, "OEM 3" }, 363 { 0x1f, "OEM 4" }, 364 { 0x00, NULL }, 365 }; 366 367 368 const struct valstr ipmi_channel_medium_vals[] = { 369 { IPMI_CHANNEL_MEDIUM_RESERVED, "reserved" }, 370 { IPMI_CHANNEL_MEDIUM_IPMB_I2C, "IPMB (I2C)" }, 371 { IPMI_CHANNEL_MEDIUM_ICMB_1, "ICMB v1.0" }, 372 { IPMI_CHANNEL_MEDIUM_ICMB_09, "ICMB v0.9" }, 373 { IPMI_CHANNEL_MEDIUM_LAN, "802.3 LAN" }, 374 { IPMI_CHANNEL_MEDIUM_SERIAL, "Serial/Modem" }, 375 { IPMI_CHANNEL_MEDIUM_LAN_OTHER,"Other LAN" }, 376 { IPMI_CHANNEL_MEDIUM_SMBUS_PCI,"PCI SMBus" }, 377 { IPMI_CHANNEL_MEDIUM_SMBUS_1, "SMBus v1.0/v1.1" }, 378 { IPMI_CHANNEL_MEDIUM_SMBUS_2, "SMBus v2.0" }, 379 { IPMI_CHANNEL_MEDIUM_USB_1, "USB 1.x" }, 380 { IPMI_CHANNEL_MEDIUM_USB_2, "USB 2.x" }, 381 { IPMI_CHANNEL_MEDIUM_SYSTEM, "System Interface" }, 382 { 0x00, NULL }, 383 }; 384 385 const struct valstr completion_code_vals[] = { 386 { 0x00, "Command completed normally" }, 387 { 0xc0, "Node busy" }, 388 { 0xc1, "Invalid command" }, 389 { 0xc2, "Invalid command on LUN" }, 390 { 0xc3, "Timeout" }, 391 { 0xc4, "Out of space" }, 392 { 0xc5, "Reservation cancelled or invalid" }, 393 { 0xc6, "Request data truncated" }, 394 { 0xc7, "Request data length invalid" }, 395 { 0xc8, "Request data field length limit exceeded" }, 396 { 0xc9, "Parameter out of range" }, 397 { 0xca, "Cannot return number of requested data bytes" }, 398 { 0xcb, "Requested sensor, data, or record not found" }, 399 { 0xcc, "Invalid data field in request" }, 400 { 0xcd, "Command illegal for specified sensor or record type" }, 401 { 0xce, "Command response could not be provided" }, 402 { 0xcf, "Cannot execute duplicated request" }, 403 { 0xd0, "SDR Repository in update mode" }, 404 { 0xd1, "Device firmeware in update mode" }, 405 { 0xd2, "BMC initialization in progress" }, 406 { 0xd3, "Destination unavailable" }, 407 { 0xd4, "Insufficient privilege level" }, 408 { 0xd5, "Command not supported in present state" }, 409 { 0xd6, "Cannot execute command, command disabled" }, 410 { 0xff, "Unspecified error" }, 411 { 0x00, NULL } 412 }; 413 414 const struct valstr ipmi_chassis_power_control_vals[] = { 415 { IPMI_CHASSIS_CTL_POWER_DOWN, "Down/Off" }, 416 { IPMI_CHASSIS_CTL_POWER_UP, "Up/On" }, 417 { IPMI_CHASSIS_CTL_POWER_CYCLE, "Cycle" }, 418 { IPMI_CHASSIS_CTL_HARD_RESET, "Reset" }, 419 { IPMI_CHASSIS_CTL_PULSE_DIAG, "Diag" }, 420 { IPMI_CHASSIS_CTL_ACPI_SOFT, "Soft" }, 421 { 0x00, NULL }, 422 }; 423 424 const struct valstr ipmi_auth_algorithms[] = { 425 { IPMI_AUTH_RAKP_NONE, "none" }, 426 { IPMI_AUTH_RAKP_HMAC_SHA1, "hmac_sha1" }, 427 { IPMI_AUTH_RAKP_HMAC_MD5, "hmac_md5" }, 428 { 0x00, NULL } 429 }; 430 431 const struct valstr ipmi_integrity_algorithms[] = { 432 { IPMI_INTEGRITY_NONE, "none" }, 433 { IPMI_INTEGRITY_HMAC_SHA1_96, "hmac_sha1_96" }, 434 { IPMI_INTEGRITY_HMAC_MD5_128, "hmac_md5_128" }, 435 { IPMI_INTEGRITY_MD5_128 , "md5_128" }, 436 { 0x00, NULL } 437 }; 438 439 const struct valstr ipmi_encryption_algorithms[] = { 440 { IPMI_CRYPT_NONE, "none" }, 441 { IPMI_CRYPT_AES_CBC_128, "aes_cbc_128" }, 442 { IPMI_CRYPT_XRC4_128, "xrc4_128" }, 443 { IPMI_CRYPT_XRC4_40, "xrc4_40" }, 444 { 0x00, NULL } 445 }; 446 447 const struct valstr picmg_frucontrol_vals[] = { 448 { 0, "Cold Reset" }, 449 { 1, "Warm Reset" }, 450 { 2, "Graceful Reboot" }, 451 { 3, "Issue Diagnostic Interrupt" }, 452 { 4, "Quiesce" }, 453 { 5, NULL }, 454 }; 455 456 const struct valstr picmg_clk_family_vals[] = { 457 { 0x00, "Unspecified" }, 458 { 0x01, "SONET/SDH/PDH" }, 459 { 0x02, "Reserved for PCI Express" }, 460 { 0x03, "Reserved" }, /* from 03h to C8h */ 461 { 0xC9, "Vendor defined clock family" }, /* from C9h to FFh */ 462 { 0x00, NULL }, 463 }; 464 465 const struct oemvalstr picmg_clk_accuracy_vals[] = { 466 { 0x01, 10, "PRS" }, 467 { 0x01, 20, "STU" }, 468 { 0x01, 30, "ST2" }, 469 { 0x01, 40, "TNC" }, 470 { 0x01, 50, "ST3E" }, 471 { 0x01, 60, "ST3" }, 472 { 0x01, 70, "SMC" }, 473 { 0x01, 80, "ST4" }, 474 { 0x01, 90, "DUS" }, 475 { 0x02, 0xE0, "PCI Express Generation 2" }, 476 { 0x02, 0xF0, "PCI Express Generation 1" }, 477 { 0xffffff, 0x00, NULL } 478 }; 479 480 const struct oemvalstr picmg_clk_resource_vals[] = { 481 { 0x0, 0, "On-Carrier Device 0" }, 482 { 0x0, 1, "On-Carrier Device 1" }, 483 { 0x1, 1, "AMC Site 1 - A1" }, 484 { 0x1, 2, "AMC Site 1 - A2" }, 485 { 0x1, 3, "AMC Site 1 - A3" }, 486 { 0x1, 4, "AMC Site 1 - A4" }, 487 { 0x1, 5, "AMC Site 1 - B1" }, 488 { 0x1, 6, "AMC Site 1 - B2" }, 489 { 0x1, 7, "AMC Site 1 - B3" }, 490 { 0x1, 8, "AMC Site 1 - B4" }, 491 { 0x2, 0, "ATCA Backplane" }, 492 { 0xffffff, 0x00, NULL } 493 }; 494 495 const struct oemvalstr picmg_clk_id_vals[] = { 496 { 0x0, 0, "Clock 0" }, 497 { 0x0, 1, "Clock 1" }, 498 { 0x0, 2, "Clock 2" }, 499 { 0x0, 3, "Clock 3" }, 500 { 0x0, 4, "Clock 4" }, 501 { 0x0, 5, "Clock 5" }, 502 { 0x0, 6, "Clock 6" }, 503 { 0x0, 7, "Clock 7" }, 504 { 0x0, 8, "Clock 8" }, 505 { 0x0, 9, "Clock 9" }, 506 { 0x0, 10, "Clock 10" }, 507 { 0x0, 11, "Clock 11" }, 508 { 0x0, 12, "Clock 12" }, 509 { 0x0, 13, "Clock 13" }, 510 { 0x0, 14, "Clock 14" }, 511 { 0x0, 15, "Clock 15" }, 512 { 0x1, 1, "TCLKA" }, 513 { 0x1, 2, "TCLKB" }, 514 { 0x1, 3, "TCLKC" }, 515 { 0x1, 4, "TCLKD" }, 516 { 0x1, 5, "FLCKA" }, 517 { 0x2, 1, "CLK1A" }, 518 { 0x2, 2, "CLK1A" }, 519 { 0x2, 3, "CLK1A" }, 520 { 0x2, 4, "CLK1A" }, 521 { 0x2, 5, "CLK1A" }, 522 { 0x2, 6, "CLK1A" }, 523 { 0x2, 7, "CLK1A" }, 524 { 0x2, 8, "CLK1A" }, 525 { 0x2, 9, "CLK1A" }, 526 { 0xffffff, 0x00, NULL } 527 }; 528 529 const struct valstr picmg_busres_id_vals[] = { 530 { 0x0, "Metallic Test Bus pair #1" }, 531 { 0x1, "Metallic Test Bus pair #2" }, 532 { 0x2, "Synch clock group 1 (CLK1)" }, 533 { 0x3, "Synch clock group 2 (CLK2)" }, 534 { 0x4, "Synch clock group 3 (CLK3)" }, 535 { 0x5, NULL } 536 }; 537 const struct valstr picmg_busres_board_cmd_vals[] = { 538 { 0x0, "Query" }, 539 { 0x1, "Release" }, 540 { 0x2, "Force" }, 541 { 0x3, "Bus Free" }, 542 { 0x4, NULL } 543 }; 544 545 const struct valstr picmg_busres_shmc_cmd_vals[] = { 546 { 0x0, "Request" }, 547 { 0x1, "Relinquish" }, 548 { 0x2, "Notify" }, 549 { 0x3, NULL } 550 }; 551 552 const struct oemvalstr picmg_busres_board_status_vals[] = { 553 { 0x0, 0x0, "In control" }, 554 { 0x0, 0x1, "No control" }, 555 { 0x1, 0x0, "Ack" }, 556 { 0x1, 0x1, "Refused" }, 557 { 0x1, 0x2, "No control" }, 558 { 0x2, 0x0, "Ack" }, 559 { 0x2, 0x1, "No control" }, 560 { 0x3, 0x0, "Accept" }, 561 { 0x3, 0x1, "Not Needed" }, 562 { 0xffffff, 0x00, NULL } 563 }; 564 565 const struct oemvalstr picmg_busres_shmc_status_vals[] = { 566 { 0x0, 0x0, "Grant" }, 567 { 0x0, 0x1, "Busy" }, 568 { 0x0, 0x2, "Defer" }, 569 { 0x0, 0x3, "Deny" }, 570 571 { 0x1, 0x0, "Ack" }, 572 { 0x1, 0x1, "Error" }, 573 574 { 0x2, 0x0, "Ack" }, 575 { 0x2, 0x1, "Error" }, 576 { 0x2, 0x2, "Deny" }, 577 578 { 0xffffff, 0x00, NULL } 579 }; 580