FreeBSD kernel pms device code
saframe.c File Reference

The file implements the functions to read frame content. More...

#include <sys/cdefs.h>
#include <dev/pms/config.h>
#include <dev/pms/RefTisa/sallsdk/spc/saglobal.h>
Include dependency graph for saframe.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
GLOBAL bit32 saFrameReadBit32 (agsaRoot_t *agRoot, agsaFrameHandle_t agFrame, bit32 frameOffset)
 Read 32 bits from a frame. More...
 
GLOBAL void saFrameReadBlock (agsaRoot_t *agRoot, agsaFrameHandle_t agFrame, bit32 frameOffset, void *frameBuffer, bit32 frameBufLen)
 Read a block from a frame. More...
 

Detailed Description

The file implements the functions to read frame content.

Definition in file saframe.c.

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ saFrameReadBit32()

GLOBAL bit32 saFrameReadBit32 ( agsaRoot_t agRoot,
agsaFrameHandle_t  agFrame,
bit32  frameOffset 
)

Read 32 bits from a frame.

Read 32 bits from a frame

Parameters
agRootHandles for this instance of SAS/SATA LLL
agFrameThe frame handler
frameOffsetOffset in bytes from the beginning of valid frame bytes or IU to the 32-bit value to read
Returns
The read value

Definition at line 55 of file saframe.c.

References agNULL, hpDBG_VERY_LOUD, smTraceFuncEnter, and smTraceFuncExit.

◆ saFrameReadBlock()

GLOBAL void saFrameReadBlock ( agsaRoot_t agRoot,
agsaFrameHandle_t  agFrame,
bit32  frameOffset,
void *  frameBuffer,
bit32  frameBufLen 
)

Read a block from a frame.

Read a block from a frame

Parameters
agRootHandles for this instance of SAS/SATA LLL
agFrameThe frame handler
frameOffsetThe offset of the frame to start read
frameBufferThe pointer to the destination of data read from the frame
frameBufLenNumber of bytes to read from the frame
Returns
-void-

Definition at line 96 of file saframe.c.

References agNULL, hpDBG_VERY_LOUD, SA_ASSERT, smTraceFuncEnter, and smTraceFuncExit.

Referenced by itdssIOCompleted(), itdssIOSuccessHandler(), itdssTaskCompleted(), ossaSATAEvent(), ossaSMPCAMCompleted(), ossaSMPCompleted(), ossaSSPEvent(), smsatLogSenseCB(), smsatRequestSenseCB(), smSMPCompleted(), tiCOMFrameReadBlock(), and ttdsaSSPReqReceived().

Here is the caller graph for this function: