SDRRecord.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. * SDRRecord.h
  17. * SDR record structures.
  18. *
  19. * Author: Govind Kothandapani <govindk@ami.com>
  20. *
  21. ******************************************************************/
  22. #ifndef SDR_RECORD_H
  23. #define SDR_RECORD_H
  24. #include "com_IPMI_SDRRecord.h"
  25. #include "com_BmcType.h"
  26. #pragma pack( 1 )
  27. /*** External Definitions */
  28. #define SHARED_RECD_COUNT 0x000F
  29. /**
  30. * @brief Number of various record types
  31. **/
  32. #define SDR_REPOSITORY_HEADER 16
  33. /**
  34. * @struct HdrFullSensorRec_T
  35. * @brief Record Tables With Valid & Length Fields Header
  36. **/
  37. typedef struct
  38. {
  39. uint8_t Valid;
  40. uint8_t Len;
  41. FullSensorRec_T FullSensorRec;
  42. } HdrFullSensorRec_T;
  43. /**
  44. * @struct HdrMgmtCtrlrConfirmRec_T
  45. * @brief Management Controller Confirmation Record
  46. **/
  47. typedef struct
  48. {
  49. uint8_t Valid;
  50. uint8_t Len;
  51. MgmtCtrlrConfirmRec_T MgmtCtrlrConfirmRec;
  52. } HdrMgmtCtrlrConfirmRec_T;
  53. /**
  54. * @struct HdrMgmtCtrlrDevLocator_T
  55. * @brief Management Controller Device Locator Record
  56. **/
  57. typedef struct
  58. {
  59. uint8_t Valid;
  60. uint8_t Len;
  61. MgmtCtrlrDevLocator_T MgmtCtrlrDevLocator;
  62. } HdrMgmtCtrlrDevLocator_T;
  63. /**
  64. * @struct HdrBMCMsgChannelInfoRec_T
  65. * @brief BMC Message Channel Information Record
  66. **/
  67. typedef struct
  68. {
  69. uint8_t Valid;
  70. uint8_t Len;
  71. BMCMsgChannelInfoRec_T BMCMsgChannelInfoRec;
  72. } HdrBMCMsgChannelInfoRec_T;
  73. /**
  74. * @struct HdrGnrcDevLocatorRec_T
  75. * @brief Generic Device Locator Record
  76. **/
  77. typedef struct
  78. {
  79. uint8_t Valid;
  80. uint8_t Len;
  81. GnrcDevLocatorRec_T GnrcDevLocatorRec;
  82. } HdrGnrcDevLocatorRec_T;
  83. /**
  84. * @struct HdrCompactSensorRec_T
  85. * @brief Compact Sensor Record
  86. **/
  87. typedef struct
  88. {
  89. uint8_t Valid;
  90. uint8_t Len;
  91. CompactSensorRec_T CompactSensorRec;
  92. } HdrCompactSensorRec_T;
  93. // /**
  94. // * @struct SDRRepository_T
  95. // * @brief SDR Repository organisation
  96. // **/
  97. // typedef struct
  98. // {
  99. // uint8_t Signature [4]; /* $SDR */
  100. // uint16_t NumRecords; /* Number of records */
  101. // uint16_t Size; /* Size of the SDR Records Data */
  102. // uint32_t AddTimeStamp; /* Most recent addition timestamp */
  103. // uint32_t EraseTimeStamp; /* Most recent erase timestamp */
  104. // } SDRRepository_T;
  105. #pragma pack( )
  106. #endif /* SDR_RECORD_H */