IPMI_BrMgmt.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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_BrMgmt.h
  17. * Bridge Management Commands
  18. *
  19. * Author: Gowtham.M.S <gowthamms@amiindia.co.in>
  20. *
  21. *****************************************************************/
  22. #ifndef IPMI_BR_MGMT_H
  23. #define IPMI_BR_MGMT_H
  24. #include "Types.h"
  25. #pragma pack( 1 )
  26. /*** External Definitions ***/
  27. #define BRIDGE_DISABLED 0
  28. #define BRIDGE_ENABLED 1
  29. #define BRIDGE_ASSIGNING 2
  30. #define BRIDGE_ERROR 3
  31. #define ICMB_ID_STR_LEN 0x10
  32. /* GetBridgeStateRes_T */
  33. typedef struct
  34. {
  35. INT8U CompletionCode;
  36. INT8U State;
  37. } PACKED GetBridgeStateRes_T;
  38. /* SetBridgeStateRes_T */
  39. typedef struct
  40. {
  41. INT8U State;
  42. } PACKED SetBridgeStateReq_T;
  43. /* GetICMBAddrRes_T */
  44. typedef struct
  45. {
  46. INT8U CompletionCode;
  47. INT16U Addr;
  48. } PACKED GetICMBAddrRes_T;
  49. /* SetICMBAddrReq_T */
  50. typedef struct
  51. {
  52. INT16U Addr;
  53. } PACKED SetICMBAddrReq_T;
  54. /* GetBrStatisticsReq_T */
  55. typedef struct
  56. {
  57. INT8U StatSelector;
  58. } PACKED GetBrStatisticsReq_T;
  59. /* ICMBStats0_T */
  60. typedef struct
  61. {
  62. INT16U RuntCmd;
  63. INT16U BadCmd;
  64. INT16U SpuriousResp;
  65. } PACKED ICMBStats0_T;
  66. /* ICMBStats1_T */
  67. typedef struct
  68. {
  69. INT16U Sent;
  70. INT16U Received;
  71. INT16U OtherAddr;
  72. INT16U RuntPkt;
  73. INT16U BadChecksum;
  74. INT16U UnkType;
  75. INT16U NotStart;
  76. INT16U Restart;
  77. INT16U ArbWins;
  78. INT16U ArbLosses;
  79. } PACKED ICMBStats1_T;
  80. /* ICMBStats_T */
  81. typedef union
  82. {
  83. ICMBStats0_T ICMBStats0;
  84. ICMBStats1_T ICMBStats1;
  85. } ICMBStats_T;
  86. /* GetBrStatisticsRes_T */
  87. typedef struct
  88. {
  89. INT8U CompletionCode;
  90. INT8U StatSelector;
  91. ICMBStats_T ICMBStats;
  92. } PACKED GetBrStatisticsRes_T;
  93. /* GetICMBCapbRes_T */
  94. typedef struct
  95. {
  96. INT8U CompletionCode;
  97. INT8U ICMBVersion;
  98. INT8U ICMBRevision;
  99. INT8U FeatureSupport;
  100. } PACKED GetICMBCapbRes_T;
  101. /* GetBrProxyAddrRes_T */
  102. typedef struct
  103. {
  104. INT8U CompletionCode;
  105. INT16U ICMBAddr;
  106. INT8U IPMBAddr;
  107. INT8U LUN;
  108. } PACKED GetBrProxyAddrRes_T;
  109. /* SetBrProxyAddrReq_T */
  110. typedef struct
  111. {
  112. INT16U ICMBAddr;
  113. INT8U IPMBAddr;
  114. INT8U LUN;
  115. } PACKED SetBrProxyAddrReq_T;
  116. /* GetICMBConnInfoReq_T */
  117. typedef struct
  118. {
  119. INT8U NumericID;
  120. } PACKED GetICMBConnInfoReq_T;
  121. /* GetICMBConnInfoRes_T */
  122. typedef struct
  123. {
  124. INT8U CompletionCode;
  125. INT8U Flags;
  126. INT8U NoConnectors;
  127. INT8U ConnectorType;
  128. INT8U TypeLength;
  129. INT8U IDString [ICMB_ID_STR_LEN];
  130. } PACKED GetICMBConnInfoRes_T;
  131. /* GetICMBConnIDRes_T */
  132. typedef struct
  133. {
  134. INT8U CompletionCode;
  135. INT8U NumericID;
  136. INT8U TypeLength;
  137. INT8U IDString [ICMB_ID_STR_LEN];
  138. } PACKED GetICMBConnIDRes_T;
  139. /* SendICMBConnIDRes_T */
  140. typedef struct
  141. {
  142. INT8U CompletionCode;
  143. INT8U rCompletionCode;
  144. INT8U NumericID;
  145. INT8U TypeLength;
  146. INT8U IDString [ICMB_ID_STR_LEN];
  147. } PACKED SendICMBConnIDRes_T;
  148. #pragma pack( )
  149. #endif /*IPMI_BR_MGMT_H*/