FreeBSD kernel pms device code
tdmisc.c File Reference
Include dependency graph for tdmisc.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
osGLOBAL bit32 tdsaAbortAll (tiRoot_t *tiRoot, agsaRoot_t *agRoot, tdsaDeviceData_t *oneDeviceData)
 
osGLOBAL void tiCOMReset (tiRoot_t *tiRoot, bit32 option)
 
osGLOBAL void ossaReenableInterrupts (agsaRoot_t *agRoot, bit32 outboundChannelNum)
 ossaReenableInterrupts More...
 
osGLOBAL void tiCOMShutDown (tiRoot_t *tiRoot)
 
osGLOBAL void ossaDisableInterrupts (agsaRoot_t *agRoot, bit32 outboundChannelNum)
 ossaDisableInterrupts More...
 
osGLOBAL void tiCOMFrameReadBlock (tiRoot_t *tiRoot, void *agFrame, bit32 FrameOffset, void *FrameBuffer, bit32 FrameBufLen)
 
osGLOBAL void tdsaPhyControlFailureRespRcvd (tiRoot_t *tiRoot, agsaRoot_t *agRoot, tdsaDeviceData_t *oneDeviceData, tdssSMPFrameHeader_t *frameHeader, agsaFrameHandle_t frameHandle, tiIORequest_t *CurrentTaskTag)
 
osGLOBAL void tdsaPhyControlRespRcvd (tiRoot_t *tiRoot, agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, tdsaDeviceData_t *oneDeviceData, tdssSMPFrameHeader_t *frameHeader, agsaFrameHandle_t frameHandle, tiIORequest_t *CurrentTaskTag)
 
osGLOBAL void tdsaDeregisterDevicesInPort (tiRoot_t *tiRoot, tdsaPortContext_t *onePortContext)
 
osGLOBAL void tdsaPrintSwConfig (agsaSwConfig_t *SwConfig)
 
osGLOBAL void tdsaPrintHwConfig (agsaHwConfig_t *HwConfig)
 
osGLOBAL void tdssPrintSASIdentify (agsaSASIdentify_t *id)
 
osGLOBAL void tdsaInitTimerHandler (tiRoot_t *tiRoot, void *timerData)
 
osGLOBAL void print_tdlist_flink (tdList_t *hdr, int type, int flag)
 
osGLOBAL void print_tdlist_blink (tdList_t *hdr, int flag)
 
void tdhexdump (const char *ptitle, bit8 *pbuf, int len)
 
void tdsaSingleThreadedEnter (tiRoot_t *ptiRoot, bit32 queueId)
 
void tdsaSingleThreadedLeave (tiRoot_t *ptiRoot, bit32 queueId)
 

Detailed Description

This file contains TB misc. functions

Definition in file tdmisc.c.

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ ossaDisableInterrupts()

osGLOBAL void ossaDisableInterrupts ( agsaRoot_t agRoot,
bit32  outboundChannelNum 
)

ossaDisableInterrupts

Purpose: This routine is called to disable interrupt

Parameters
agRootPointer to chip/driver Instance.
outboundChannelNumZero-base channel number
Returns
None.
Note
- The scope is shared target and initiator.

Definition at line 1890 of file tdmisc.c.

References agsaContext_s::osData, ostiInterruptDisable(), and tdsaRootOsData_s::tiRoot.

Referenced by saDelayedInterruptHandler(), saFatalInterruptHandler(), saInitialize(), saInterruptHandler(), and siFatalInterruptHandler().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaReenableInterrupts()

osGLOBAL void ossaReenableInterrupts ( agsaRoot_t agRoot,
bit32  outboundChannelNum 
)

ossaReenableInterrupts

\biref tiINIReportErrorToEventLog

Purpose: This function is called to report errors that needs to be logged into event log.

Parameters
tiRootPointer to initiator specific root data structure for this instance of the driver.
agEventDataEvent data structure.
Returns
None.

Purpose: This routine is called to enable interrupt

Parameters
agRootPointer to chip/driver Instance.
outboundChannelNumZero-base channel number
Returns
None.
Note
- The scope is shared target and initiator.

Definition at line 628 of file tdmisc.c.

References agsaContext_s::osData, ostiInterruptEnable(), and tdsaRootOsData_s::tiRoot.

Referenced by saDelayedInterruptHandler(), saInitialize(), saSystemInterruptsActive(), and saSystemInterruptsEnable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_tdlist_blink()

osGLOBAL void print_tdlist_blink ( tdList_t hdr,
int  flag 
)

Definition at line 2807 of file tdmisc.c.

References tdList_s::blink, hdr, tdsaPortContext_s::id, NULL, TDLIST_OBJECT_BASE, and TI_DBG6.

◆ print_tdlist_flink()

osGLOBAL void print_tdlist_flink ( tdList_t hdr,
int  type,
int  flag 
)

Definition at line 2733 of file tdmisc.c.

References tdList_s::flink, hdr, tdsaDeviceData_s::id, tdsaPortContext_s::id, NULL, TDLIST_OBJECT_BASE, and TI_DBG6.

Referenced by ossaHwCB().

Here is the caller graph for this function:

◆ tdhexdump()

void tdhexdump ( const char *  ptitle,
bit8 pbuf,
int  len 
)

hexidecimal dump

Definition at line 2836 of file tdmisc.c.

References TI_DBG1, and TI_DBG2.

Referenced by itdssIOSuccessHandler(), ossaEchoCB(), ossaGetDeviceInfoCB(), ossaGetNVMDResponseCB(), ossaHwCB(), ossaSGpioCB(), ossaSSPEvent(), tiINISMPStart(), and ttdsaReportGeneralRespSend().

Here is the caller graph for this function:

◆ tdsaAbortAll()

◆ tdsaDeregisterDevicesInPort()

◆ tdsaInitTimerHandler()

osGLOBAL void tdsaInitTimerHandler ( tiRoot_t tiRoot,
void *  timerData 
)

Definition at line 2717 of file tdmisc.c.

References TI_DBG6.

◆ tdsaPhyControlFailureRespRcvd()

◆ tdsaPhyControlRespRcvd()

◆ tdsaPrintHwConfig()

osGLOBAL void tdsaPrintHwConfig ( agsaHwConfig_t HwConfig)

Definition at line 2672 of file tdmisc.c.

References agNULL, agsaHwConfig_s::phyCount, and TI_DBG6.

Referenced by tiCOMPortInit().

Here is the caller graph for this function:

◆ tdsaPrintSwConfig()

osGLOBAL void tdsaPrintSwConfig ( agsaSwConfig_t SwConfig)

Definition at line 2652 of file tdmisc.c.

References agNULL, agsaSwConfig_s::maxActiveIOs, agsaSwConfig_s::smpReqTimeout, and TI_DBG6.

Referenced by tdsaLoLevelGetResource(), and tiCOMPortInit().

Here is the caller graph for this function:

◆ tdsaSingleThreadedEnter()

◆ tdsaSingleThreadedLeave()

◆ tdssPrintSASIdentify()

◆ tiCOMFrameReadBlock()

osGLOBAL void tiCOMFrameReadBlock ( tiRoot_t tiRoot,
void *  agFrame,
bit32  FrameOffset,
void *  FrameBuffer,
bit32  FrameBufLen 
)

Definition at line 1908 of file tdmisc.c.

References agNULL, saFrameReadBlock(), tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG6.

Here is the call graph for this function:

◆ tiCOMReset()

◆ tiCOMShutDown()