BridgeEvt.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. * BridgeEvt.h
  16. * Bridge Event Commands
  17. *
  18. * Author: Gowtham.M.S <gowthamms@amiindia.co.in>
  19. *
  20. *****************************************************************/
  21. #ifndef BRIDGE_EVT_H
  22. #define BRIDGE_EVT_H
  23. #include "Types.h"
  24. #pragma pack( 1 )
  25. /**
  26. * @struct BridgeEvt_T
  27. * @brief Bridge event message.
  28. **/
  29. typedef struct {
  30. INT8U EvtCount;
  31. INT16U EvtDestAddr;
  32. INT8U EvtState;
  33. INT8U EvtSlaveAddr;
  34. INT8U EvtLUN;
  35. } PACKED BridgeEvt_T;
  36. #pragma pack( )
  37. /**
  38. * @defgroup bef Bridge Event Command handlers
  39. * @ingroup bridge
  40. * IPMI Intelligent Chassis Management Bus Bridge Event command interface.
  41. * Implemented as per ICMB ver 1.0, Revision 1.3
  42. * @{
  43. **/
  44. extern int GetEventCount (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  45. extern int SetEventDest (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  46. extern int SetEventReceptionState (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  47. extern int SendICMBEventMsg(_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  48. extern int GetEventDest (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  49. extern int GetEventReceptionState (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  50. /** @} */
  51. #endif /*BRIDGE_EVT_H*/