PEFDevice.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. * PEFDevice.h
  17. * PEF 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 PEFDEVICE_H
  26. #define PEFDEVICE_H
  27. #include "Types.h"
  28. /*** Macro Definitions ***/
  29. #define PARAMETER_REVISION_FORMAT 0x11
  30. /**
  31. * @defgroup pefc PEF and Alerting Commands
  32. * @ingroup senevt
  33. * IPMI PEF Device and Alerting Command Handlers. Invoked by the message handler
  34. * @{
  35. **/
  36. extern int GetPEFCapabilities (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  37. extern int ArmPEFPostponeTimer (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  38. extern int SetPEFConfigParams (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  39. extern int GetPEFConfigParams (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  40. extern int SetLastProcessedEventId (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  41. extern int GetLastProcessedEventId (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  42. extern int AlertImmediate (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  43. extern int PETAcknowledge (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  44. /** @} */
  45. #define SEND_ALERT_IMM 0x0
  46. #define GET_ALERT_IMM_STATUS 0x1
  47. #define CLEAR_ALERT_IMM_STATUS 0x2
  48. #define PEF_CONTROL 1
  49. #define PEF_ACTION_CONTROL 2
  50. #define PEF_STARTUP_DELAY 3
  51. #define PEF_ALERT_STARTUP_DELAY 4
  52. #define NUM_EVT_ENTRIES 5
  53. #define EVT_ENTRY 6
  54. #define EVT_ENTRY_BYTE1 7
  55. #define NUM_ALERT_ENTRIES 8
  56. #define ALERT_ENTRY 9
  57. #define GUID 10
  58. #define NUM_ALERT_STR 11
  59. #define ALERT_STRING_KEYS 12
  60. #define ALERT_STRINGS 13
  61. #endif /* APPDEVICE_H */