com_IPMI_SDR.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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_sdr.c
  17. * IPMI SDR Record
  18. *
  19. * Author: Govind Kothandapani <govindk@ami.com>
  20. *
  21. ******************************************************************/
  22. #ifndef IPMI_SDR_H
  23. #define IPMI_SDR_H
  24. //#include "main.h"
  25. /*** External Definitions ***/
  26. #define INVALID_RECORD_ID 0x00
  27. #define OVERFLOW_FLAG 0x80
  28. #pragma pack( 1 )
  29. /* ReserveSDRRepositoryRes_T */
  30. typedef struct
  31. {
  32. uint8_t CompletionCode;
  33. uint16_t ReservationID;
  34. } ReserveSDRRepositoryRes_T;
  35. /* GetSDRReq_T */
  36. typedef struct
  37. {
  38. uint16_t ReservationID;
  39. uint16_t RecID;
  40. uint8_t Offset;
  41. uint8_t Size;
  42. } GetSDRReq_T;
  43. /* GetSDRRes_T */
  44. typedef struct
  45. {
  46. uint8_t CompletionCode;
  47. uint16_t NextRecID;
  48. } GetSDRRes_T;
  49. /* AddSDRRes_T */
  50. typedef struct
  51. {
  52. uint8_t CompletionCode;
  53. uint16_t RecID;
  54. } AddSDRRes_T;
  55. /* PartialAddSDRReq_T */
  56. typedef struct
  57. {
  58. uint16_t ReservationID;
  59. uint16_t RecID;
  60. uint8_t Offset;
  61. uint8_t Progress;
  62. } PartialAddSDRReq_T;
  63. /* PartialAddSDRRes_T */
  64. typedef struct
  65. {
  66. uint8_t CompletionCode;
  67. uint16_t RecID;
  68. } PartialAddSDRRes_T;
  69. /* DeleteSDRReq_T */
  70. typedef struct
  71. {
  72. uint16_t ReservationID;
  73. uint16_t RecID;
  74. } DeleteSDRReq_T;
  75. /* DeleteSDRRes_T */
  76. typedef struct
  77. {
  78. uint8_t CompletionCode;
  79. uint16_t RecID;
  80. } DeleteSDRRes_T;
  81. /* ClearSDRReq_T */
  82. typedef struct
  83. {
  84. uint16_t ReservationID;
  85. uint8_t CLR [3];
  86. uint8_t InitOrStatus;
  87. } ClearSDRReq_T;
  88. /* ClearSDRRes_T */
  89. typedef struct
  90. {
  91. uint8_t CompletionCode;
  92. uint8_t EraseProgress;
  93. } ClearSDRRes_T;
  94. /* GetSDRRepositoryTimeRes_T */
  95. typedef struct
  96. {
  97. uint8_t CompletionCode;
  98. uint32_t Time;
  99. } GetSDRRepositoryTimeRes_T;
  100. /* SetSDRRepositoryTimeReq_T */
  101. typedef struct
  102. {
  103. uint32_t Time;
  104. } SetSDRRepositoryTimeReq_T;
  105. /* EnterSDRUpdateModeRes_T */
  106. typedef struct
  107. {
  108. uint8_t CompletionCode;
  109. } EnterSDRUpdateModeRes_T;
  110. /* ExitSDRUpdateModeRes_T */
  111. typedef struct
  112. {
  113. uint8_t CompletionCode;
  114. } ExitSDRUpdateModeRes_T;
  115. /* RunInitAgentReq_T */
  116. typedef struct
  117. {
  118. uint8_t RunStatus;
  119. } RunInitAgentReq_T;
  120. /* RunInitAgentRes_T */
  121. typedef struct
  122. {
  123. uint8_t CompletionCode;
  124. uint8_t Status;
  125. } RunInitAgentRes_T;
  126. #pragma pack()
  127. #endif /* IPMI_SDR_H */