BridgeMgmt.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. * BridgMgmt.h
  16. * Bridge Management Commands
  17. *
  18. * Author: Gowtham.M.S <gowthamms@amiindia.co.in>
  19. *
  20. *****************************************************************/
  21. #ifndef BRIDGE_MGMT_H
  22. #define BRIDGE_MGMT_H
  23. #include "Types.h"
  24. #include "IPMI_BrMgmt.h"
  25. #pragma pack( 1 )
  26. /**
  27. * @struct BridgeMgmtSHM_T
  28. * @brief Bridge management information in Shared Memory.
  29. **/
  30. typedef struct {
  31. INT8S State;
  32. INT16U ICMBAddr;
  33. INT16U ICMBProxyAddr;
  34. INT8U IPMBProxyAddr;
  35. INT8U ProxyLUN;
  36. ICMBStats0_T ICMBStats0;
  37. ICMBStats1_T ICMBStats1;
  38. } PACKED BridgeMgmtSHM_T;
  39. #pragma pack( )
  40. /**
  41. * @defgroup bmf Bridge Management Command handlers
  42. * @ingroup bridge
  43. * IPMI Intelligent Chassis Management Bus Bridge Management command interface.
  44. * Implemented as per ICMB ver 1.0, Revision 1.3
  45. * @{
  46. **/
  47. extern int GetBridgeState (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  48. extern int SetBridgeState (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  49. extern int GetICMBAddr (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  50. extern int SetICMBAddr (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  51. extern int SetBridgeProxyAddr (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  52. extern int GetBridgeProxyAddr (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  53. extern int GetBridgeStatistics (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  54. extern int ClearBridgeStatistics (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  55. extern int GetICMBCaps (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  56. extern int GetICMBConnectorInfo (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  57. extern int GetICMBConnectionID (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  58. extern int SendICMBConnectionID (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  59. /** @} */
  60. #endif /*BRIDGE_MGMT_H*/