53#ifdef INITIATOR_DRIVER
83 TI_DBG1((
"ttdsaSMPCompleted: start\n"));
86 TI_DBG1((
"ttdsaSMPCompleted: tiRoot is NULL, wrong\n"));
92 TI_DBG1((
"ttdsaSMPCompleted: ttdsaXchg is NULL, wrong\n"));
118 TI_DBG1((
"ttdsaNotSupportSend:\n"));
124 agSMPFrame = &(agSASRequestBody->
smpFrame);
188 TI_DBG1((
"ttdsaDiscoverRespSend:\n"));
197 agSMPFrame = &(agSASRequestBody->
smpFrame);
299 TI_DBG1((
"ttdsaReportGeneralRespSend:\n"));
308 agSMPFrame = &(agSASRequestBody->
smpFrame);
382 TI_DBG1((
"ttdsaSMPReqReceived: start\n"));
386 if (oneDeviceData ==
agNULL)
388 TI_DBG1((
"ttdsaSMPReqReceived: no device data\n"));
396 TI_DBG1((
"ttdsaSMPReqReceived: no free xchg structures\n"));
402 oneDeviceData->
agRoot = agRoot;
407 ttdsaXchg->
agRoot = agRoot;
419 TI_DBG1((
"ttdsaSMPReqReceived: REPORT_GENERAL\n"));
426 TI_DBG1((
"ttdsaSMPReqReceived: REPORT_MANUFACTURE_INFORMATION\n"));
433 TI_DBG1((
"ttdsaSMPReqReceived: DISCOVER\n"));
439 TI_DBG1((
"ttdsaSMPReqReceived: UKNOWN or not yet supported 0x%x\n", agFrameHeader->
smpFunction));
#define SAS_EDGE_EXPANDER_DEVICE
#define UNKNOWN_SMP_FUNCTION
#define SMP_REPORT_MANUFACTURE_INFORMATION
struct smpRespDiscover_s smpRespDiscover_t
#define SMP_FUNCTION_ACCEPTED
#define SMP_REPORT_GENERAL
struct smpRespReportGeneral_s smpRespReportGeneral_t
#define SMP_DIRECT_PAYLOAD_LIMIT
#define osti_memset(s, c, n)
#define osti_memcpy(des, src, n)
The file defines the constants, data structure, and functions defined by LL API.
void * agsaFrameHandle_t
handle to access frame
#define AGSA_SMP_TGT_RESPONSE
The file defines the declaration of tSDK APIs.
GLOBAL bit32 saSMPStart(agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 queueNum, agsaDevHandle_t *agDevHandle, bit32 agRequestType, agsaSASRequestBody_t *agRequestBody, ossaSMPCompletedCB_t agCB)
Start SMP request.
The file defines the declaration of OS APIs.
GLOBAL void ossaSMPCompleted(agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, agsaFrameHandle_t agFrameHandle)
ossaSMPCompleted
data structure stores OS specific and LL specific context
bit8 attachedSasAddressHi[4]
bit8 attached_SataPS_Ssp_Stp_Smp_Sata_Target
bit8 programmedAndHardware_MaxPhyLinkRate
bit8 attachedPhyIdentifier
bit8 virtualPhy_partialPathwayTimeout
bit8 negotiatedPhyLinkRate
bit8 attachedSasAddressLo[4]
bit8 attached_Ssp_Stp_Smp_Sata_Initiator
bit8 programmedAndHardware_MinPhyLinkRate
bit8 expanderChangeCount16[2]
bit8 configuring_configurable
bit8 expanderRouteIndexes16[2]
data structure for SAS device list This structure maintains the device as a list and information abou...
agsaDevHandle_t * agDevHandle
data structure OS root from the view of lower layer. TD Layer interrupt/non-interrupt context support...
agsaSASRequestBody_t agSASRequestBody
agsaIORequest_t agIORequest
ttdsaDmaMemoryArea_t smpresp
struct tdsaDeviceData_s * DeviceData
tdssSMPRequestBody_t SMPRequestBody
void tdhexdump(const char *ptitle, bit8 *pbuf, int len)
osGLOBAL ttdsaXchg_t * ttdsaXchgGetStruct(agsaRoot_t *agRoot)
osGLOBAL void ttdsaXchgFreeStruct(tiRoot_t *tiRoot, ttdsaXchg_t *ttdsaXchg)
osGLOBAL void ttdsaNotSupportRespSend(agsaRoot_t *agRoot, agsaDevHandle_t *agDevHandle, ttdsaXchg_t *ttdsaXchg, bit8 smpfn)
osGLOBAL void ttdsaDiscoverRespSend(agsaRoot_t *agRoot, agsaDevHandle_t *agDevHandle, ttdsaXchg_t *ttdsaXchg)
osGLOBAL void ttdsaSMPReqReceived(agsaRoot_t *agRoot, agsaDevHandle_t *agDevHandle, agsaSMPFrameHeader_t *agFrameHeader, agsaFrameHandle_t agFrameHandle, bit32 agFrameLength, bit32 phyId)
osGLOBAL void ttdsaSMPCompleted(agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, agsaFrameHandle_t agFrameHandle)
osGLOBAL void ttdsaReportGeneralRespSend(agsaRoot_t *agRoot, agsaDevHandle_t *agDevHandle, ttdsaXchg_t *ttdsaXchg)
union data structure specifies a request