Slot Control API

The callback function has the following prototype:

VOID (*HSI_SLOT_EVENT_CALLBACK)(

IN void *pContext,

IN BOOLEAN HscError,

IN HSI_SLOT_EVENT_INFO *pSlotInfo );

The arguments have the following semantics:

pContext -

Opaque context pointer. This is the same value that was originally passed

 

to HsiSetSlotEventCallback().

HscError -

The value TRUE indicates that a hardware error has been detected in the

 

Hot Swap Controller, and FALSE indicates a state change in one of the

 

slots.

pSlotInfo -

If HscError is FALSE, this argument is the pointer to the structure that

 

contains the slot number and the new state of the slot that has changed

 

its state. If HscError is TRUE, the value of this argument is reserved and

 

undefined.

The slot event information structure is defined as follows.

typedef struct

HSI_SLOT_EVENT_INFO_STRUCT

{

UINT32 SlotNumber;

BOOLEAN Present;

BOOLEAN Powered;

BOOLEAN Healthy;

BOOLEAN InReset;

} HSI_SLOT_EVENT_INFO;

with the fields specified as:

SlotNumber -

the number of the slot that has changed its state

Present -

the board presence status for the slot

Powered -

the power status for the slot

Healthy -

the health status for the board in the slot

InReset -

the reset status of the slot

Note: If Powered is TRUE, the value for Present is not valid, and that if Powered is FALSE, the value for Healthy is not valid.

This function shall be implemented as part of the HA Slot Control Interface on platforms where the Hot Swap Controller can automatically detect and signal the occurrence of slot status changes.

94

High Availability Software for the Intel® NetStructureTM ZT 4901 Technical Product Specification

Page 94
Image 94
Intel ZT 4901 manual Void *HSISLOTEVENTCALLBACK, Hsisloteventinfostruct