51 #ifndef CL_USE_CHASSIS_MANAGER
58 #define clCmLibInitialize 0
59 #define clCmLibFinalize 0
64 #define CL_CM_VERSION {(ClUint8T)'B', 0x1, 0x1}
74 #define CL_CM_EVENT_CHANNEL "CM_EVENT_CHANNEL"
82 #define CL_CM_FRU_STATE_TRANSITION_EVENT_STR "cmFruStateTranstionEvent"
87 typedef struct ClCmFruEventInfo {
97 ClInt32T physicalSlot;
103 SaHpiHsStateT previousState;
108 SaHpiHsStateT presentState;
115 typedef struct ClCmSensorEventInfo {
117 SaHpiRptEntryT rptEntry;
119 SaHpiSensorEventT sensorEvent;
123 } ClCmSensorEventInfoT;
128 SaHpiEntityPathT eventReporter;
129 SaHpiEntityPathT *pImpactedEntities;
133 } ClCmEventCorrelatorT;
136 typedef ClRcT (* ClCmEventCallBackT) (SaHpiSessionIdT sessionid ,
137 SaHpiEventT *pEvent ,
138 SaHpiRptEntryT *pRptEntry,
141 typedef ClRcT (* ClCmEventCallBackT) (
unsigned int sessionid ,
149 SaHpiEntityPathT impactedEntity;
151 ClCmEventCallBackT userEventHandler;
155 typedef enum ClCmThresholdLevel
158 CL_CM_THRESHOLD_LOWER_MINOR = SAHPI_ES_LOWER_MINOR,
159 CL_CM_THRESHOLD_LOWER_MAJOR = SAHPI_ES_LOWER_MAJOR,
160 CL_CM_THRESHOLD_LOWER_CRIT = SAHPI_ES_LOWER_CRIT,
161 CL_CM_THRESHOLD_UPPER_MINOR = SAHPI_ES_UPPER_MINOR,
162 CL_CM_THRESHOLD_UPPER_MAJOR = SAHPI_ES_UPPER_MAJOR,
163 CL_CM_THRESHOLD_UPPER_CRIT = SAHPI_ES_UPPER_CRIT,
164 }ClCmThresholdLevelT;
171 #define CL_CM_ALARM_EVENT_STR "cmAlarmEvent"
182 #define CL_ERR_CM_HPI_ERROR (CL_ERR_COMMON_MAX+1)
187 #define CL_ERR_CM_HPI_INVALID_PHY_SLOT (CL_ERR_COMMON_MAX+2)
258 #define clCmFruStateGet(hMoId,pState) CL_RC(CL_CID_CM,CL_ERR_NOT_SUPPORTED)
290 #define clCmFruOperationRequest(hMoId,request) CL_RC(CL_CID_CM,CL_ERR_NOT_SUPPORTED)
312 #define clCmVersionVerify(version) CL_RC(CL_CID_CM,CL_ERR_NOT_SUPPORTED)
350 #define clCmBladeOperationRequest(chassisId,physSlot,request) CL_RC(CL_CID_CM,CL_ERR_NOT_SUPPORTED)
355 #define clCmThresholdStateGet(slot, pLevel,pStateAsserted) CL_RC(CL_CID_CM,CL_ERR_NOT_SUPPORTED)
361 extern ClRcT clCmLibInitialize(
void);
362 extern ClRcT clCmLibFinalize(
void);
364 #include <clChassisMgrApi.h>
Typical defines found in any software project.
Common Error Codes shared across multiple Clovis ASP Components.
Header file of all MetaData data structures.
ClCmFruOperationT
Possible FRU operations for the clCmFruOperationRequest() function.
Definition: clCmApi.h:193
@ CL_CM_POWERON_REQUEST
Request to power on the FRU.
Definition: clCmApi.h:197
@ CL_CM_RESET_DEASSERT_REQUEST
Request to de-assert the reset state of FRU.
Definition: clCmApi.h:229
@ CL_CM_INSERT_REQUEST
Request an FRU insertion.
Definition: clCmApi.h:209
@ CL_CM_POWER_CYCLE_REQUEST
Request to power cycle the FRU.
Definition: clCmApi.h:205
@ CL_CM_POWEROFF_REQUEST
Request to power off the FRU.
Definition: clCmApi.h:201
@ CL_CM_EXTRACT_REQUEST
Request an FRU extraction.
Definition: clCmApi.h:213
@ CL_CM_RESET_ASSERT_REQUEST
Request to assert the reset state of FRU.
Definition: clCmApi.h:225
@ CL_CM_WARM_RESET_REQUEST
Request a warm reset of FRU.
Definition: clCmApi.h:221
@ CL_CM_RESET_REQUEST
Request a cold reset of FRU.
Definition: clCmApi.h:217
ClUint32T ClRcT
Clovis return code type.
Definition: clCommon.h:168