PMC-Sierra PM5358 S/UNI 4x622 Power Screwdriver User Manual


 
PM5358 S/UNI-4x622 Driver Manual
RTOS Interface
Proprietary and Confidential to PMC-Sierra, Inc. 114
Document ID: PMC-2010419, Issue 1
Failure = <any other value>
Getting an ISV Buffer: sysSuni4x622ISVBufferGet
This function gets a buffer from the RTOS that will be used by the ISR code to create an
Interrupt-Service Vector (ISV). The ISV consists of data transferred from the devices interrupt
status registers.
Format
#define sysSuni4x622ISVBufferGet()
Prototype
sSUNI4x622_ISV *sysSuni4x622ISVBufferGet(void)
Inputs
None
Outputs
None
Returns
Success = (pointer to) a ISV buffer
Failure = NULL (pointer)
Returning an ISV Buffer: sysSuni4x622ISVBufferRtn
This function returns an ISV buffer to the RTOS when the information in the block is no longer
needed by the DPR.
Format
#define sysSuni4x622ISVBufferRtn(pISV)
Prototype
void sysSuni4x622ISVBufferRtn(sSUNI4x622_ISV *pISV)
Inputs
pISV : (pointer to) a ISV buffer
Outputs
None
Returns
None
Getting a DPV Buffer: sysSuni4x622DPVBufferGet
This function gets a buffer from the RTOS that will be used by the DPR code to create a
Deferred-Processing Vector (DPV). The DPV consists of information about the state of the device
that is to be passed to the USER via a callback function.
Format
#define sysSuni4x622DPVBufferGet()
Prototype
sSUNI4x622_DPV *sysSuni4x622DPVBufferGet(void)
Inputs
None
Outputs
None
Returns
Success = (pointer to) a DPV buffer
Failure = NULL (pointer)