com_IPMI_IPMB.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 <stdint.h>
  26. #include <com_IPMIDefs.h>
  27. #pragma pack( 1 )
  28. /**
  29. * @struct IPMIEvtMsgHdr_T
  30. * @brief IPMI Event Message Header.
  31. **/
  32. typedef struct
  33. {
  34. IPMIMsgHdr_T IPMIMsgHdr;
  35. uint8_t EvMRev;
  36. uint8_t SensorType;
  37. uint8_t SensorNum;
  38. uint8_t Ev_Type_Dir;
  39. uint8_t EventData1;
  40. uint8_t EventData2;
  41. uint8_t EventData3;
  42. uint8_t ChkSum;
  43. } IPMIEvtMsgHdr_T;
  44. /**
  45. * @struct EvtRecord_T
  46. * @brief Event Record structure.
  47. **/
  48. typedef struct
  49. {
  50. uint8_t GeneratorID;
  51. uint8_t EvMRev; /**< Event Message format version. */
  52. uint8_t SensorType; /**< Sensor Type Code. */
  53. uint8_t SensorNum; /**< Number of sensor that generated the event. */
  54. uint8_t Ev_Type_Dir; /**< [7] - 0b = Assertion event
  55. - 1b = Deassertion event.
  56. [6:0] - Event Type Code. */
  57. uint8_t EventData1; /**< Event Data Field Contents. */
  58. uint8_t EventData2; /**< Event Data Field Contents. */
  59. uint8_t EventData3; /**< Event Data Field Contents. */
  60. } EvtRecord_T;
  61. #pragma pack( )
  62. #endif /* IPMI_IPMB_H */