IPMI_IPMB.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /****************************************************************
  2. ****************************************************************
  3. ** **
  4. ** (C)Copyright 2005-2006, American Megatrends Inc. **
  5. ** **
  6. ** All Rights Reserved. **
  7. ** **
  8. ** 6145-F, Northbelt Parkway, Norcross, **
  9. ** **
  10. ** Georgia - 30071, USA. Phone-(770)-246-8600. **
  11. ** **
  12. ****************************************************************
  13. ****************************************************************
  14. ****************************************************************
  15. *
  16. * IPMI_IPMB.H
  17. * IPMB IPMI related structures
  18. *
  19. * Author: Rama Bisa <ramab@ami.com>
  20. *
  21. *
  22. *****************************************************************/
  23. #ifndef IPMI_IPMB_H
  24. #define IPMI_IPMB_H
  25. #include "Types.h"
  26. #pragma pack( 1 )
  27. /**
  28. * @struct IPMIEvtMsgHdr_T
  29. * @brief IPMI Event Message Header.
  30. **/
  31. typedef struct
  32. {
  33. IPMIMsgHdr_T IPMIMsgHdr;
  34. INT8U EvMRev;
  35. INT8U SensorType;
  36. INT8U SensorNum;
  37. INT8U Ev_Type_Dir;
  38. INT8U EventData1;
  39. INT8U EventData2;
  40. INT8U EventData3;
  41. INT8U ChkSum;
  42. } PACKED IPMIEvtMsgHdr_T;
  43. /**
  44. * @struct EvtRecord_T
  45. * @brief Event Record structure.
  46. **/
  47. typedef struct
  48. {
  49. INT8U GeneratorID;
  50. INT8U EvMRev; /**< Event Message format version. */
  51. INT8U SensorType; /**< Sensor Type Code. */
  52. INT8U SensorNum; /**< Number of sensor that generated the event. */
  53. INT8U Ev_Type_Dir; /**< [7] - 0b = Assertion event
  54. - 1b = Deassertion event.
  55. [6:0] - Event Type Code. */
  56. INT8U EventData1; /**< Event Data Field Contents. */
  57. INT8U EventData2; /**< Event Data Field Contents. */
  58. INT8U EventData3; /**< Event Data Field Contents. */
  59. } PACKED EvtRecord_T;
  60. #pragma pack( )
  61. #endif /* IPMI_IPMB_H */