123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- #ifndef __LIBIPMI_PEF_H__
- #define __LIBIPMI_PEF_H__
- /* LIIPMI core header files */
- #include "libipmi_session.h"
- #include "libipmi_errorcodes.h"
- /* command specific header files */
- #pragma pack(1)
- #include "com_IPMI_PEF.h"
- #pragma pack()
- #include "com_IPMI_SensorEvent.h"
- #define SET_IN_PROGRESS_PARAM 0x00
- #define SET_IN_PROGRESS_MASK 0x03
- #define SET_COMPLETE 0x00
- #define SET_IN_PROGRESS 0x01
- #define COMMIT_WRITE 0x02
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Get PEF Capabilities Command */
- uint16_t IPMICMD_GetPEFCapabilities( IPMI20_UDS_SESSION_T *pUDSSession,
- GetPEFCapRes_T *pResGetPEFCap,
- int timeout);
- /* Arm PEF Postpone Timer Command */
- uint16_t IPMICMD_ArmPEFTimer( IPMI20_UDS_SESSION_T *pUDSSession/*in*/,
- uint8_t* pReqTmrTimeout/*in*/,
- ArmPEFTmrRes_T *pResArmPEFTmr/*out*/,
- int timeout/*in*/);
- /* Set PEF Configuration Parameters Command */
- uint16_t IPMICMD_SetPEFConf( IPMI20_UDS_SESSION_T *pUDSSession/*in*/,
- uint8_t *pReqSetPEFConf/*in*/,
- uint32_t dwReqBufLen,
- uint8_t *pResSetPEFConf/*out*/,
- int timeout/*in*/);
- /* Get PEF Configuration Parameters Command */
- uint16_t IPMICMD_GetPEFConf( IPMI20_UDS_SESSION_T *pUDSSession/*in*/,
- GetPEFConfigReq_T *pReqGetPEFConf/*in*/,
- uint8_t *pResGetPEFConf/*out*/,
- int timeout/*in*/);
- /* Set Last Processed Event ID Command */
- uint16_t IPMICMD_SetLastEventID( IPMI20_UDS_SESSION_T *pUDSSession/*in*/,
- SetLastEvtIDReq_T *pReqSetLastEvt/*in*/,
- uint8_t *pResSetLastEvt/*out*/,
- int timeout/*in*/);
- /* Get Last Processed Event ID Command */
- uint16_t IPMICMD_GetLastEventID( IPMI20_UDS_SESSION_T *pUDSSession/*in*/,
- GetLastEvtIDRes_T *pResGetLastEvt/*out*/,
- int timeout/*in*/);
- /* Alert Immediate Command */
- uint16_t IPMICMD_AlertImmediate( IPMI20_UDS_SESSION_T *pUDSSession/*in*/,
- AlertImmReq_T *pReqAlertImmediate/*in*/,
- AlertImmRes_T *pResAlertImmediate/*out*/,
- int timeout/*in*/);
- /* PET Acknowledge Command */
- uint16_t IPMICMD_PETAck( IPMI20_UDS_SESSION_T *pUDSSession/*in*/,
- PETAckReq_T *pReqPETAck /*out*/,
- uint8_t *pResPETACK /*out*/,
- int timeout/*in*/);
- /*---------- PEF Higher level routines -----------*/
- /*********** Alert Table **********/
- uint16_t LIBIPMI_HL_GetNumOfAlertPolicyEntries(IPMI20_UDS_SESSION_T *pUDSSession,
- uint8_t* pNumOfAlertPolicyEntries,
- int timeout);
- uint16_t LIBIPMI_HL_GetAnAlertEntry(IPMI20_UDS_SESSION_T *pUDSSession,
- uint8_t AlertEntryNumber,
- AlertPolicyTblEntry_T* pAlertEntry,
- int timeout);
- uint16_t LIBIPMI_HL_SetAnAlertEntry(IPMI20_UDS_SESSION_T *pUDSSession,
- uint8_t AlertEntryNumber,
- AlertPolicyTblEntry_T* pAlertEntry,
- int timeout);
- uint16_t LIBIPMI_HL_GetAlertTable(IPMI20_UDS_SESSION_T *pUDSSession,
- AlertPolicyTblEntry_T* pAlertTable,
- uint8_t* pNumOfAlertEntries,
- int timeout);
- uint16_t LIBIPMI_HL_SetGraspAlertLevel(IPMI20_UDS_SESSION_T *pUDSSession,
- uint8_t IndexNum,
- uint8_t AlertLevel,
- uint8_t Channel,
- int timeout);
- uint16_t LIBIPMI_HL_GetGraspAlertLevel(IPMI20_UDS_SESSION_T *pUDSSession,
- uint8_t IndexNum,
- uint8_t* AlertLevel,
- uint8_t* DestIndex,
- int timeout);
- /*********** PEF Table ********/
- uint16_t LIBIPMI_HL_GetPEFTable(IPMI20_UDS_SESSION_T *pUDSSession,
- EvtFilterTblEntry_T* pPEFTable,
- uint8_t* pNumOfPEFEntries,
- int timeout);
- uint16_t LIBIPMI_HL_GetPEFEntry(IPMI20_UDS_SESSION_T *pUDSSession,
- uint8_t PEFEntryNumber,
- EvtFilterTblEntry_T* pPEFEntry,
- int timeout);
- uint16_t LIBIPMI_HL_SetPEFEntry(IPMI20_UDS_SESSION_T *pUDSSession,
- uint8_t PEFEntryNumber,
- EvtFilterTblEntry_T* pPEFEntry,
- int timeout);
- uint16_t LIBIPMI_HL_GetNumOfPEFEntries(IPMI20_UDS_SESSION_T *pUDSSession,
- uint8_t* pNumOfPEFEntries,
- int timeout);
- #ifdef __cplusplus
- }
- #endif
- #endif
|