2 IPMI 2.0 definitions from the IPMI Specification Version 2.0, Revision 1.1.
4 This file contains all NetFn Storage commands, including:
5 FRU Inventory Commands (Chapter 34)
6 SDR Repository (Chapter 33)
7 System Event Log(SEL) Commands (Chapter 31)
8 SEL Record Formats (Chapter 32)
10 See IPMI specification, Appendix G, Command Assignments
11 and Appendix H, Sub-function Assignments.
13 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
14 This program and the accompanying materials
15 are licensed and made available under the terms and conditions of the BSD License
16 which accompanies this distribution. The full text of the license may be found at
17 http://opensource.org/licenses/bsd-license.php
19 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
20 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
23 #ifndef _IPMI_NET_FN_STORAGE_H_
24 #define _IPMI_NET_FN_STORAGE_H_
28 // Net function definition for Storage command
30 #define IPMI_NETFN_STORAGE 0x0A
33 // All Storage commands and their structure definitions to follow here
37 // Below is Definitions for FRU Inventory Commands (Chapter 34)
41 // Definitions for Get Fru Inventory Area Info command
43 #define IPMI_STORAGE_GET_FRU_INVENTORY_AREAINFO 0x10
46 // Constants and Structure definitions for "Get Fru Inventory Area Info" command to follow here
50 } IPMI_GET_FRU_INVENTORY_AREA_INFO_REQUEST
;
54 UINT16 InventoryAreaSize
;
56 } IPMI_GET_FRU_INVENTORY_AREA_INFO_RESPONSE
;
59 // Definitions for Read Fru Data command
61 #define IPMI_STORAGE_READ_FRU_DATA 0x11
64 // Constants and Structure definitions for "Read Fru Data" command to follow here
69 } IPMI_FRU_COMMON_DATA
;
72 IPMI_FRU_COMMON_DATA Data
;
74 } IPMI_FRU_READ_COMMAND
;
78 UINT16 InventoryOffset
;
80 } IPMI_READ_FRU_DATA_REQUEST
;
86 } IPMI_READ_FRU_DATA_RESPONSE
;
89 // Definitions for Write Fru Data command
91 #define IPMI_STORAGE_WRITE_FRU_DATA 0x12
94 // Constants and Structure definitions for "Write Fru Data" command to follow here
97 IPMI_FRU_COMMON_DATA Data
;
99 } IPMI_FRU_WRITE_COMMAND
;
103 UINT16 InventoryOffset
;
105 } IPMI_WRITE_FRU_DATA_REQUEST
;
108 UINT8 CompletionCode
;
110 } IPMI_WRITE_FRU_DATA_RESPONSE
;
113 // Below is Definitions for SDR Repository (Chapter 33)
117 // Definitions for Get SDR Repository Info command
119 #define IPMI_STORAGE_GET_SDR_REPOSITORY_INFO 0x20
122 // Constants and Structure definitions for "Get SDR Repository Info" command to follow here
126 UINT8 SdrRepAllocInfoCmd
: 1;
127 UINT8 SdrRepReserveCmd
: 1;
128 UINT8 PartialAddSdrCmd
: 1;
129 UINT8 DeleteSdrRepCmd
: 1;
131 UINT8 SdrRepUpdateOp
: 2;
135 } IPMI_SDR_OPERATION_SUPPORT
;
138 UINT8 CompletionCode
;
142 UINT32 RecentAdditionTimeStamp
;
143 UINT32 RecentEraseTimeStamp
;
144 IPMI_SDR_OPERATION_SUPPORT OperationSupport
;
145 } IPMI_GET_SDR_REPOSITORY_INFO_RESPONSE
;
148 // Definitions for Get SDR Repository Allocateion Info command
150 #define IPMI_STORAGE_GET_SDR_REPOSITORY_ALLOCATION_INFO 0x21
153 // Constants and Structure definitions for "Get SDR Repository Allocateion Info" command to follow here
157 // Definitions for Reserve SDR Repository command
159 #define IPMI_STORAGE_RESERVE_SDR_REPOSITORY 0x22
162 // Constants and Structure definitions for "Reserve SDR Repository" command to follow here
165 UINT8 CompletionCode
;
166 UINT8 ReservationId
[2]; // Reservation ID. LS byte first.
167 } IPMI_RESERVE_SDR_REPOSITORY_RESPONSE
;
170 // Definitions for Get SDR command
172 #define IPMI_STORAGE_GET_SDR 0x23
175 // Constants and Structure definitions for "Get SDR" command to follow here
179 UINT8 EventScanningEnabled
: 1;
180 UINT8 EventScanningDisabled
: 1;
181 UINT8 InitSensorType
: 1;
182 UINT8 InitHysteresis
: 1;
183 UINT8 InitThresholds
: 1;
185 UINT8 InitScanning
: 1;
186 UINT8 SettableSensor
: 1;
189 } IPMI_SDR_RECORD_SENSOR_INIT
;
193 UINT8 EventMessageControl
: 2;
194 UINT8 ThresholdAccessSupport
: 2;
195 UINT8 HysteresisSupport
: 2;
196 UINT8 ReArmSupport
: 1;
197 UINT8 IgnoreSensor
: 1;
200 } IPMI_SDR_RECORD_SENSOR_CAP
;
204 UINT8 Linearization
: 7;
208 } IPMI_SDR_RECORD_LINEARIZATION
;
216 } IPMI_SDR_RECORD_M_TOLERANCE
;
220 UINT8 AccuracyLow
: 6;
224 } IPMI_SDR_RECORD_B_ACCURACY
;
229 UINT8 AccuracyExp
: 2;
230 UINT8 AccuracyHi
: 4;
233 } IPMI_SDR_RECORD_ACCURACY_SENSOR_DIR
;
241 } IPMI_SDR_RECORD_R_EXP_B_EXP
;
245 UINT8 NominalReadingSpscified
: 1;
246 UINT8 NominalMaxSpscified
: 1;
247 UINT8 NominalMinSpscified
: 1;
251 } IPMI_SDR_RECORD_ANALOG_FLAGS
;
254 UINT16 RecordId
; // 1
256 UINT8 RecordType
; // 4
257 UINT8 RecordLength
; // 5
260 UINT8 SensorNumber
; // 8
262 UINT8 EntityInstance
; // 10
263 IPMI_SDR_RECORD_SENSOR_INIT SensorInitialization
; // 11
264 IPMI_SDR_RECORD_SENSOR_CAP SensorCapabilities
; // 12
265 UINT8 SensorType
; // 13
266 UINT8 EventType
; // 14
267 UINT8 Reserved1
[7]; // 15
268 UINT8 UnitType
; // 22
269 UINT8 Reserved2
; // 23
270 IPMI_SDR_RECORD_LINEARIZATION Linearization
; // 24
272 IPMI_SDR_RECORD_M_TOLERANCE MHiTolerance
; // 26
274 IPMI_SDR_RECORD_B_ACCURACY BHiAccuracyLo
; // 28
275 IPMI_SDR_RECORD_ACCURACY_SENSOR_DIR AccuracySensorDirection
; // 29
276 IPMI_SDR_RECORD_R_EXP_B_EXP RExpBExp
; // 30
277 IPMI_SDR_RECORD_ANALOG_FLAGS AnalogFlags
; // 31
278 UINT8 NominalReading
; // 32
279 UINT8 Reserved3
[4]; // 33
280 UINT8 UpperNonRecoverThreshold
; // 37
281 UINT8 UpperCriticalThreshold
; // 38
282 UINT8 UpperNonCriticalThreshold
; // 39
283 UINT8 LowerNonRecoverThreshold
; // 40
284 UINT8 LowerCriticalThreshold
; // 41
285 UINT8 LowerNonCriticalThreshold
; // 42
286 UINT8 Reserved4
[5]; // 43
287 UINT8 IdStringLength
; // 48
288 UINT8 AsciiIdString
[16]; // 49 - 64
289 } IPMI_SDR_RECORD_STRUCT_1
;
292 UINT16 RecordId
; // 1
294 UINT8 RecordType
; // 4
295 UINT8 RecordLength
; // 5
298 UINT8 SensorNumber
; // 8
300 UINT8 EntityInstance
; // 10
301 IPMI_SDR_RECORD_SENSOR_INIT SensorInitialization
; // 11
302 IPMI_SDR_RECORD_SENSOR_CAP SensorCapabilities
; // 12
303 UINT8 SensorType
; // 13
304 UINT8 EventType
; // 14
305 UINT8 Reserved1
[7]; // 15
306 UINT8 UnitType
; // 22
307 UINT8 Reserved2
[9]; // 23
308 UINT8 IdStringLength
; // 32
309 UINT8 AsciiIdString
[16]; // 33 - 48
310 } IPMI_SDR_RECORD_STRUCT_2
;
315 UINT8 ControllerSlaveAddress
: 7;
320 UINT8 LogicalFruDevice
: 1;
322 UINT8 ChannelNumber
: 4;
325 } IPMI_FRU_DATA_INFO
;
331 UINT8 StringType
: 3;
334 } IPMI_SDR_RECORD_DEV_ID_STR_TYPE_LENGTH
;
337 UINT16 RecordId
; // 1
339 UINT8 RecordType
; // 4
340 UINT8 RecordLength
; // 5
341 IPMI_FRU_DATA_INFO FruDeviceData
; // 6
342 UINT8 Reserved
; // 10
343 UINT8 DeviceType
; // 11
344 UINT8 DeviceTypeModifier
; // 12
345 UINT8 FruEntityId
; // 13
346 UINT8 FruEntityInstance
; // 14
347 UINT8 OemReserved
; // 15
348 IPMI_SDR_RECORD_DEV_ID_STR_TYPE_LENGTH StringTypeLength
; // 16
349 UINT8 String
[16]; // 17
350 } IPMI_SDR_RECORD_STRUCT_11
;
355 UINT8 RecordType
; //4
356 UINT8 RecordLength
; //5
357 UINT8 ManufacturerId
[3]; //6
358 UINT8 StringChars
[20];
359 } IPMI_SDR_RECORD_STRUCT_C0
;
364 UINT8 RecordType
; //4
365 UINT8 RecordLength
; //5
366 } IPMI_SDR_RECORD_STRUCT_HEADER
;
369 IPMI_SDR_RECORD_STRUCT_1 SensorType1
;
370 IPMI_SDR_RECORD_STRUCT_2 SensorType2
;
371 IPMI_SDR_RECORD_STRUCT_11 SensorType11
;
372 IPMI_SDR_RECORD_STRUCT_C0 SensorTypeC0
;
373 IPMI_SDR_RECORD_STRUCT_HEADER SensorHeader
;
374 } IPMI_SENSOR_RECORD_STRUCT
;
377 UINT16 ReservationId
;
381 } IPMI_GET_SDR_REQUEST
;
384 UINT8 CompletionCode
;
386 IPMI_SENSOR_RECORD_STRUCT RecordData
;
387 } IPMI_GET_SDR_RESPONSE
;
390 // Definitions for Add SDR command
392 #define IPMI_STORAGE_ADD_SDR 0x24
395 // Constants and Structure definitions for "Add SDR" command to follow here
399 // Definitions for Partial Add SDR command
401 #define IPMI_STORAGE_PARTIAL_ADD_SDR 0x25
404 // Constants and Structure definitions for "Partial Add SDR" command to follow here
408 // Definitions for Delete SDR command
410 #define IPMI_STORAGE_DELETE_SDR 0x26
413 // Constants and Structure definitions for "Delete SDR" command to follow here
417 // Definitions for Clear SDR Repository command
419 #define IPMI_STORAGE_CLEAR_SDR 0x27
422 // Constants and Structure definitions for "Clear SDR Repository" command to follow here
426 // Definitions for Get SDR Repository Time command
428 #define IPMI_STORAGE_GET_SDR_REPOSITORY_TIME 0x28
431 // Constants and Structure definitions for "Get SDR Repository Time" command to follow here
435 // Definitions for Set SDR Repository Time command
437 #define IPMI_STORAGE_SET_SDR_REPOSITORY_TIME 0x29
440 // Constants and Structure definitions for "Set SDR Repository Time" command to follow here
444 // Definitions for Enter SDR Repository Update Mode command
446 #define IPMI_STORAGE_ENTER_SDR_UPDATE_MODE 0x2A
449 // Constants and Structure definitions for "Enter SDR Repository Update Mode" command to follow here
453 // Definitions for Exit SDR Repository Update Mode command
455 #define IPMI_STORAGE_EXIT_SDR_UPDATE_MODE 0x2B
458 // Constants and Structure definitions for "Exit SDR Repository Update Mode" command to follow here
462 // Definitions for Run Initialize Agent command
464 #define IPMI_STORAGE_RUN_INIT_AGENT 0x2C
467 // Constants and Structure definitions for "Run Initialize Agent" command to follow here
471 // Below is Definitions for System Event Log(SEL) Commands (Chapter 31)
475 // Definitions for Get SEL Info command
477 #define IPMI_STORAGE_GET_SEL_INFO 0x40
480 // Constants and Structure definitions for "Get SEL Info" command to follow here
482 #define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_GET_SEL_ALLOCATION_INFO_CMD BIT0
483 #define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_RESERVE_SEL_CMD BIT1
484 #define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_PARTIAL_ADD_SEL_ENTRY_CMD BIT2
485 #define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_DELETE_SEL_CMD BIT3
486 #define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_OVERFLOW_FLAG BIT7
489 UINT8 CompletionCode
;
490 UINT8 Version
; // Version of SEL
491 UINT16 NoOfEntries
; // No of Entries in the SEL
492 UINT16 FreeSpace
; // Free space in Bytes
493 UINT32 RecentAddTimeStamp
; // Most Recent Addition of Time Stamp
494 UINT32 RecentEraseTimeStamp
; // Most Recent Erasure of Time Stamp
495 UINT8 OperationSupport
; // Operation Support
496 } IPMI_GET_SEL_INFO_RESPONSE
;
499 // Definitions for Get SEL Allocation Info command
501 #define IPMI_STORAGE_GET_SEL_ALLOCATION_INFO 0x41
504 // Constants and Structure definitions for "Get SEL Allocation Info" command to follow here
508 // Definitions for Reserve SEL command
510 #define IPMI_STORAGE_RESERVE_SEL 0x42
513 // Constants and Structure definitions for "Reserve SEL" command to follow here
516 UINT8 CompletionCode
;
517 UINT8 ReservationId
[2]; // Reservation ID. LS byte first.
518 } IPMI_RESERVE_SEL_RESPONSE
;
521 // Definitions for Get SEL Entry command
523 #define IPMI_STORAGE_GET_SEL_ENTRY 0x43
526 // Constants and Structure definitions for "Get SEL Entry" command to follow here
530 // Below is Definitions for SEL Record Formats (Chapter 32)
544 } IPMI_SEL_EVENT_RECORD_DATA
;
548 UINT8 RecordType
; // C0h-DFh = OEM system event record
550 UINT8 ManufacturerId
[3];
552 } IPMI_TIMESTAMPED_OEM_SEL_RECORD_DATA
;
556 UINT8 RecordType
; // E0h-FFh = OEM system event record
557 UINT8 OEMDefined
[13];
558 } IPMI_NON_TIMESTAMPED_OEM_SEL_RECORD_DATA
;
561 UINT8 ReserveId
[2]; // Reservation ID, LS Byte First
562 UINT8 SelRecID
[2]; // Sel Record ID, LS Byte First
563 UINT8 Offset
; // Offset Into Record
564 UINT8 BytesToRead
; // Bytes to be Read, 0xFF for entire record
565 } IPMI_GET_SEL_ENTRY_REQUEST
;
568 UINT8 CompletionCode
;
569 UINT16 NextSelRecordId
; // Next SEL Record ID, LS Byte first
570 IPMI_SEL_EVENT_RECORD_DATA RecordData
;
571 } IPMI_GET_SEL_ENTRY_RESPONSE
;
574 // Definitions for Add SEL Entry command
576 #define IPMI_STORAGE_ADD_SEL_ENTRY 0x44
579 // Constants and Structure definitions for "Add SEL Entry" command to follow here
582 IPMI_SEL_EVENT_RECORD_DATA RecordData
;
583 } IPMI_ADD_SEL_ENTRY_REQUEST
;
586 UINT8 CompletionCode
;
587 UINT16 RecordId
; // Record ID for added record, LS Byte first
588 } IPMI_ADD_SEL_ENTRY_RESPONSE
;
591 // Definitions for Partial Add SEL Entry command
593 #define IPMI_STORAGE_PARTIAL_ADD_SEL_ENTRY 0x45
596 // Constants and Structure definitions for "Partial Add SEL Entry" command to follow here
599 UINT16 ReservationId
;
601 UINT8 OffsetIntoRecord
;
604 } IPMI_PARTIAL_ADD_SEL_ENTRY_REQUEST
;
607 UINT8 CompletionCode
;
609 } IPMI_PARTIAL_ADD_SEL_ENTRY_RESPONSE
;
612 // Definitions for Delete SEL Entry command
614 #define IPMI_STORAGE_DELETE_SEL_ENTRY 0x46
617 // Constants and Structure definitions for "Delete SEL Entry" command to follow here
620 UINT8 ReserveId
[2]; // Reservation ID, LS byte first
621 UINT8 RecordToDelete
[2]; // Record to Delete, LS Byte First
622 } IPMI_DELETE_SEL_ENTRY_REQUEST
;
624 #define IPMI_DELETE_SEL_ENTRY_RESPONSE_TYPE_UNSUPPORTED 0x80
625 #define IPMI_DELETE_SEL_ENTRY_RESPONSE_ERASE_IN_PROGRESS 0x81
628 UINT8 CompletionCode
;
629 UINT16 RecordId
; // Record ID added. LS byte first
630 } IPMI_DELETE_SEL_ENTRY_RESPONSE
;
633 // Definitions for Clear SEL command
635 #define IPMI_STORAGE_CLEAR_SEL 0x47
638 // Constants and Structure definitions for "Clear SEL" command to follow here
640 #define IPMI_CLEAR_SEL_REQUEST_C_CHAR_ASCII 0x43
641 #define IPMI_CLEAR_SEL_REQUEST_L_CHAR_ASCII 0x4C
642 #define IPMI_CLEAR_SEL_REQUEST_R_CHAR_ASCII 0x52
643 #define IPMI_CLEAR_SEL_REQUEST_INITIALIZE_ERASE 0xAA
644 #define IPMI_CLEAR_SEL_REQUEST_GET_ERASE_STATUS 0x00
647 UINT8 Reserve
[2]; // Reserve ID, LSB first
648 UINT8 AscC
; // Ascii for 'C' (0x43)
649 UINT8 AscL
; // Ascii for 'L' (0x4c)
650 UINT8 AscR
; // Ascii for 'R' (0x52)
651 UINT8 Erase
; // 0xAA, Initiate Erase, 0x00 Get Erase Status
652 } IPMI_CLEAR_SEL_REQUEST
;
654 #define IPMI_CLEAR_SEL_RESPONSE_ERASURE_IN_PROGRESS 0x00
655 #define IPMI_CLEAR_SEL_RESPONSE_ERASURE_COMPLETED 0x01
658 UINT8 CompletionCode
;
659 UINT8 ErasureProgress
;
660 } IPMI_CLEAR_SEL_RESPONSE
;
663 // Definitions for Get SEL Time command
665 #define IPMI_STORAGE_GET_SEL_TIME 0x48
668 // Constants and Structure definitions for "Get SEL Time" command to follow here
671 UINT8 CompletionCode
;
672 UINT32 Timestamp
; // Present Timestamp clock reading. LS byte first.
673 } IPMI_GET_SEL_TIME_RESPONSE
;
676 // Definitions for Set SEL Time command
678 #define IPMI_STORAGE_SET_SEL_TIME 0x49
681 // Constants and Structure definitions for "Set SEL Time" command to follow here
685 } IPMI_SET_SEL_TIME_REQUEST
;
688 // Definitions for Get Auxillary Log Status command
690 #define IPMI_STORAGE_GET_AUXILLARY_LOG_STATUS 0x5A
693 // Constants and Structure definitions for "Get Auxillary Log Status" command to follow here
697 // Definitions for Set Auxillary Log Status command
699 #define IPMI_STORAGE_SET_AUXILLARY_LOG_STATUS 0x5B
702 // Constants and Structure definitions for "Set Auxillary Log Status" command to follow here
706 // Definitions for Get SEL Time UTC Offset command
708 #define IPMI_STORAGE_GET_SEL_TIME_UTC_OFFSET 0x5C
711 // Constants and Structure definitions for "Get SEL Time UTC Offset" command to follow here
714 UINT8 CompletionCode
;
716 // 16-bit, 2s-complement signed integer for the offset in minutes from UTC to SEL Time.
717 // LS-byte first. (ranges from -1440 to 1440)
720 } IPMI_GET_SEL_TIME_UTC_OFFSET_RESPONSE
;
723 // Definitions for Set SEL Time UTC Offset command
725 #define IPMI_STORAGE_SET_SEL_TIME_UTC_OFFSET 0x5D
728 // Constants and Structure definitions for "Set SEL Time UTC Offset" command to follow here
731 #define IPMI_COMPLETE_SEL_RECORD 0xFF
733 #define IPMI_SEL_SYSTEM_RECORD 0x02
734 #define IPMI_SEL_OEM_TIME_STAMP_RECORD_START 0xC0
735 #define IPMI_SEL_OEM_TIME_STAMP_RECORD_END 0xDF
736 #define IPMI_SEL_OEM_NO_TIME_STAMP_RECORD_START 0xE0
737 #define IPMI_SEL_OEM_NO_TIME_STAMP_RECORD_END 0xFF
739 #define IPMI_SEL_EVENT_DIR(EventDirType) (EventDirType >> 7)
740 #define IPMI_SEL_EVENT_DIR_ASSERTION_EVENT 0x00
741 #define IPMI_SEL_EVENT_DIR_DEASSERTION_EVENT 0x01
743 #define IPMI_SEL_EVENT_TYPE(EventDirType) (EventDirType & 0x7F)
745 // Event/Reading Type Code Ranges (Chapter 42)
747 #define IPMI_SEL_EVENT_TYPE_UNSPECIFIED 0x00
748 #define IPMI_SEL_EVENT_TYPE_THRESHOLD 0x01
749 #define IPMI_SEL_EVENT_TYPE_GENERIC_START 0x02
750 #define IPMI_SEL_EVENT_TYPE_GENERIC_END 0x0C
751 #define IPMI_SEL_EVENT_TYPE_SENSOR_SPECIFIC 0x6F
752 #define IPMI_SEL_EVENT_TYPE_OEM_START 0x70
753 #define IPMI_SEL_EVENT_TYPE_OEM_END 0x7F
755 #define SOFTWARE_ID_FROM_GENERATOR_ID(GeneratorId) ((GeneratorId & 0xFF) >> 1)
757 // System Software IDs definitions (Section 5.5)
759 #define IPMI_SWID_BIOS_RANGE_START 0x00
760 #define IPMI_SWID_BIOS_RANGE_END 0x0F
761 #define IPMI_SWID_SMI_HANDLER_RANGE_START 0x10
762 #define IPMI_SWID_SMI_HANDLER_RANGE_END 0x1F
763 #define IPMI_SWID_SMS_RANGE_START 0x20
764 #define IPMI_SWID_SMS_RANGE_END 0x2F
765 #define IPMI_SWID_OEM_RANGE_START 0x30
766 #define IPMI_SWID_OEM_RANGE_END 0x3F
767 #define IPMI_SWID_REMOTE_CONSOLE_RANGE_START 0x40
768 #define IPMI_SWID_REMOTE_CONSOLE_RANGE_END 0x46
769 #define IPMI_SWID_TERMINAL_REMOTE_CONSOLE_ID 0x47
771 #define SLAVE_ADDRESS_FROM_GENERATOR_ID(GeneratorId) ((GeneratorId & 0xFF) >> 1)
772 #define LUN_FROM_GENERATOR_ID(GeneratorId) ((GeneratorId >> 8) & 0x03)
773 #define CHANNEL_NUMBER_FROM_GENERATOR_ID(GeneratorId) ((GeneratorId >> 12) & 0x0F)
775 #define IPMI_EVM_REVISION 0x04
776 #define IPMI_BIOS_ID 0x18
777 #define IPMI_FORMAT_REV 0x00
778 #define IPMI_FORMAT_REV1 0x01
779 #define IPMI_SOFTWARE_ID 0x01
780 #define IPMI_PLATFORM_VAL_ID 0x01
781 #define IPMI_GENERATOR_ID(i,f) ((i << 1) | (f << 1) | IPMI_SOFTWARE_ID)
783 #define IPMI_SENSOR_TYPE_EVENT_CODE_DISCRETE 0x6F
785 #define IPMI_OEM_SPECIFIC_DATA 0x02
786 #define IPMI_SENSOR_SPECIFIC_DATA 0x03