com_IPMI_App+.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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_App.h
  17. * AppDevice Commands Handler
  18. *
  19. * Author: Govind Kothandapani <govindk@ami.com>
  20. * : Rama Bisa <ramab@ami.com>
  21. * : Basavaraj Astekar <basavaraja@ami.com>
  22. * : Bakka Ravinder Reddy <bakkar@ami.com>
  23. *
  24. *****************************************************************/
  25. #ifndef IPMI_APPDEV_PLUS_H
  26. #define IPMI_APPDEV_PLUS_H
  27. #include <stdint.h>
  28. /*** Macro Definitions ***/
  29. #define MAX_PLD_ENABLES 4
  30. #pragma pack(1)
  31. /* ActivatePayloadReq_T */
  32. typedef struct
  33. {
  34. uint8_t PayldType;
  35. uint8_t PayldInst;
  36. uint8_t AuxData [4];
  37. } ActivatePayloadReq_T;
  38. /* ActivatePayloadRes_T */
  39. typedef struct
  40. {
  41. uint8_t CompletionCode;
  42. uint8_t AuxData [4];
  43. uint16_t InboundPayldSize;
  44. uint16_t OutboundPayldSize;
  45. uint16_t UDPPort;
  46. uint16_t VLANNo;
  47. } ActivatePayloadRes_T;
  48. /* DeactivatePayloadReq_T */
  49. typedef struct
  50. {
  51. uint8_t PayldType;
  52. uint8_t PayldInst;
  53. uint8_t AuxData [4];
  54. } DeactivatePayloadReq_T;
  55. /* GetPayldActStatRes_T */
  56. typedef struct
  57. {
  58. uint8_t CompletionCode;
  59. uint8_t InstCap;
  60. uint16_t ActivatedInst;
  61. } GetPayldActStatRes_T;
  62. /* GetPayldInstInfoReq_T */
  63. typedef struct
  64. {
  65. uint8_t PayldType;
  66. uint8_t PayldInst;
  67. } GetPayldInstInfoReq_T;
  68. /* GetPayldInstInfoRes_T */
  69. typedef struct
  70. {
  71. uint8_t CompletionCode;
  72. uint32_t SessionID;
  73. uint8_t SpecificInfo [8];
  74. } GetPayldInstInfoRes_T;
  75. /* SetUsrPayldAccReq_T */
  76. typedef struct
  77. {
  78. uint8_t ChannelNum;
  79. uint8_t UserId;
  80. uint8_t PayloadEnables [MAX_PLD_ENABLES];
  81. } SetUsrPayldAccReq_T;
  82. /* GetUsrPayldAccReq_T */
  83. typedef struct
  84. {
  85. uint8_t ChannelNum;
  86. uint8_t UserId;
  87. } GetUsrPayldAccReq_T;
  88. /* GetUsrPayldAccRes_T */
  89. typedef struct
  90. {
  91. uint8_t CompletionCode;
  92. uint8_t PayloadEnables [MAX_PLD_ENABLES];
  93. } GetUsrPayldAccRes_T;
  94. /* GetChPayldSupRes_T */
  95. typedef struct
  96. {
  97. uint8_t CompletionCode;
  98. uint8_t StdPldtype1;
  99. uint8_t StdPldtype2;
  100. uint8_t SessStpPldtype1;
  101. uint8_t SessStpPldtype2;
  102. uint8_t OemPldtype1;
  103. uint8_t OemPldtype2;
  104. uint16_t Rsvd;
  105. } GetChPayldSupRes_T;
  106. /* GetChPayldVerReq_T */
  107. typedef struct
  108. {
  109. uint8_t ChannelNum;
  110. uint8_t PayloadNum;
  111. } GetChPayldVerReq_T;
  112. /* GetChPayldVerRes_T */
  113. typedef struct
  114. {
  115. uint8_t CompletionCode;
  116. uint8_t FormatVer;
  117. } GetChPayldVerRes_T;
  118. /* GetChOemPayldInfoReq_T */
  119. typedef struct
  120. {
  121. uint8_t ChannelNum;
  122. uint8_t PayloadNum;
  123. uint8_t OemIANA [3];
  124. uint8_t OemPyldId [2];
  125. } GetChOemPayldInfoReq_T;
  126. /* GetChOemPayldInfoRes_T */
  127. typedef struct
  128. {
  129. uint8_t CompletionCode;
  130. uint8_t PayloadNum;
  131. uint8_t OemIANA [3];
  132. uint8_t OemPyldId [2];
  133. uint8_t FormatVer;
  134. } GetChOemPayldInfoRes_T;
  135. /* SusResPayldEncryptReq_T */
  136. typedef struct
  137. {
  138. uint8_t PayldType;
  139. uint8_t PayldInst;
  140. uint8_t Operation;
  141. } SusResPayldEncryptReq_T;
  142. /* SetChSecurityKeysReq_T */
  143. typedef struct
  144. {
  145. uint8_t ChannelNum;
  146. uint8_t Operation;
  147. uint8_t KeyID;
  148. } SetChSecurityKeysReq_T;
  149. /* SetChSecurityKeysRes_T */
  150. typedef struct
  151. {
  152. uint8_t CompletionCode;
  153. } SetChSecurityKeysRes_T;
  154. /* GetSysIfcCapsRes_T */
  155. typedef struct
  156. {
  157. uint8_t CompletionCode;
  158. uint8_t Rsrvd;
  159. } GetSysIfcCapsRes_T;
  160. /* GetChCipherSuitesReq_T */
  161. typedef struct
  162. {
  163. uint8_t ChannelNum;
  164. uint8_t PayloadType;
  165. uint8_t ListIndex;
  166. } GetChCipherSuitesReq_T;
  167. /* GetChCipherSuitesRes_T */
  168. typedef struct
  169. {
  170. uint8_t CompletionCode;
  171. uint8_t ChannelNum;
  172. } GetChCipherSuitesRes_T;
  173. #pragma pack()
  174. #endif /* IPMI_APPDEV_PLUS_H */