FreeBSD kernel pms device code
|
The file implements the timerTick function. More...
#include <sys/cdefs.h>
#include <dev/pms/config.h>
#include <dev/pms/RefTisa/sallsdk/spc/saglobal.h>
Go to the source code of this file.
Functions | |
__FBSDID ("$FreeBSD$") | |
GLOBAL void | saTimerTick (agsaRoot_t *agRoot) |
TimerTick. More... | |
GLOBAL agsaTimerDesc_t * | siTimerAdd (agsaRoot_t *agRoot, bit32 timeout, agsaCallback_t pfnTimeout, bit32 Event, void *pParm) |
add a timer More... | |
GLOBAL void | siTimerRemove (agsaRoot_t *agRoot, agsaTimerDesc_t *pTimer) |
remove a valid timer More... | |
GLOBAL void | siTimerRemoveAll (agsaRoot_t *agRoot) |
remove all valid timer More... | |
The file implements the timerTick function.
Definition in file satimer.c.
__FBSDID | ( | "$FreeBSD$" | ) |
GLOBAL void saTimerTick | ( | agsaRoot_t * | agRoot | ) |
TimerTick.
TimerTick
agRoot | handles for this instance of SAS/SATA hardware |
Definition at line 54 of file satimer.c.
References agFALSE, agNULL, mpiOCQueue_s::agRoot, mpiOCQueue_s::consumerIdx, agsaTimerDesc_s::Event, agsaLLRoot_s::freeTimers, GEN_MSGU_ODMR, GEN_MSGU_ODR, agsaLLRoot_s::interruptVecIndexBitMap, agsaTimerDesc_s::linkNode, LL_TIMER_LOCK, mpiOCQueue_s::numElements, agsaQueueConfig_s::numOutboundQueues, ossaHwRegReadExt(), ossaSingleThreadedEnter(), ossaSingleThreadedLeave(), agsaLLRoot_s::OurInterrupt, agsaLLRoot_s::outboundQueue, agsaEchoCmd_s::payload, agsaTimerDesc_s::pfnTimeout, mpiOCQueue_s::piPointer, agsaTimerDesc_s::pParm, mpiOCQueue_s::producerIdx, agsaLLRoot_s::QueueConfig, agsaLLRoot_s::ResetFailed, SA_DBG1, SA_DBG3, SA_DBG4, saEchoCommand(), saLlistAdd, saLlistGetHead, saLlistRemove, saSystemInterruptsEnable(), agsaContext_s::sdkData, siHalRegReadExt(), smIS64bInt, agsaLLRoot_s::sysIntsActive, agsaEchoCmd_s::tag, agsaTimerDesc_s::timeoutTick, agsaLLRoot_s::timeTick, V_Outbound_Doorbell_Mask_Set_Register, V_Outbound_Doorbell_Mask_Set_RegisterU, V_Outbound_Doorbell_Set_Register, V_Outbound_Doorbell_Set_RegisterU, agsaTimerDesc_s::valid, and agsaLLRoot_s::validTimers.
Referenced by tiCOMTimerTick().
GLOBAL agsaTimerDesc_t * siTimerAdd | ( | agsaRoot_t * | agRoot, |
bit32 | timeout, | ||
agsaCallback_t | pfnTimeout, | ||
bit32 | Event, | ||
void * | pParm | ||
) |
add a timer
add a timer
agRoot | handles for this instance of SAS/SATA hardware |
pTimer | the pointer to the timer being added |
timeout | the timeout ticks from now |
pfnTimeout | callback function when time is out |
Event | the Event code passed to callback function |
pParm | the pointer to parameter passed to callback function |
Definition at line 230 of file satimer.c.
References agNULL, agTRUE, agsaTimerDesc_s::Event, agsaLLRoot_s::freeTimers, hpDBG_VERY_LOUD, agsaTimerDesc_s::linkNode, LL_TIMER_LOCK, ossaSingleThreadedEnter(), ossaSingleThreadedLeave(), agsaTimerDesc_s::pfnTimeout, agsaTimerDesc_s::pParm, saLlinkInitialize, saLlistAdd, saLlistGetHead, saLlistGetNext, saLlistInsert, saLlistRemove, agsaContext_s::sdkData, smTraceFuncEnter, smTraceFuncExit, agsaTimerDesc_s::timeoutTick, agsaLLRoot_s::timeTick, agsaTimerDesc_s::valid, and agsaLLRoot_s::validTimers.
Referenced by saInitialize().
GLOBAL void siTimerRemove | ( | agsaRoot_t * | agRoot, |
agsaTimerDesc_t * | pTimer | ||
) |
remove a valid timer
remove a timer
agRoot | handles for this instance of SAS/SATA hardware |
pTimer | the timer to be removed |
Definition at line 335 of file satimer.c.
References agFALSE, agTRUE, agsaLLRoot_s::freeTimers, hpDBG_VERY_LOUD, agsaTimerDesc_s::linkNode, LL_TIMER_LOCK, ossaSingleThreadedEnter(), ossaSingleThreadedLeave(), saLlistAdd, saLlistRemove, agsaContext_s::sdkData, smTraceFuncEnter, smTraceFuncExit, agsaTimerDesc_s::valid, and agsaLLRoot_s::validTimers.
GLOBAL void siTimerRemoveAll | ( | agsaRoot_t * | agRoot | ) |
remove all valid timer
remove all timer
agRoot | handles for this instance of SAS/SATA hardware |
Definition at line 373 of file satimer.c.
References agFALSE, agNULL, agsaLLRoot_s::freeTimers, hpDBG_VERY_LOUD, agsaTimerDesc_s::linkNode, LL_TIMER_LOCK, ossaSingleThreadedEnter(), ossaSingleThreadedLeave(), saLlistAdd, saLlistGetHead, saLlistRemove, agsaContext_s::sdkData, smTraceFuncEnter, smTraceFuncExit, agsaTimerDesc_s::valid, and agsaLLRoot_s::validTimers.