FreeBSD kernel pms device code
ttdsmp.c File Reference
#include <osenv.h>
#include <ostypes.h>
#include <osdebug.h>
#include <sa.h>
#include <saapi.h>
#include <saosapi.h>
#include <titypes.h>
#include <ostiapi.h>
#include <tiapi.h>
#include <tiglobal.h>
#include <tdtypes.h>
#include <osstring.h>
#include <tdutil.h>
#include <tdsatypes.h>
#include <tdproto.h>
Include dependency graph for ttdsmp.c:

Go to the source code of this file.

Functions

osGLOBAL void ttdsaSMPCompleted (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, agsaFrameHandle_t agFrameHandle)
 
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 ttdsaReportGeneralRespSend (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)
 

Detailed Description

RCSfile
ttdsmp.c,v

Copyright 2006 PMC-Sierra, Inc.

Author
hasungwo
Revision
112322
Date
2012-01-04 19:23:42 -0800 (Wed, 04 Jan 2012)

This file contains initiator IO related functions in TD layer

Definition in file ttdsmp.c.

Function Documentation

◆ ttdsaDiscoverRespSend()

osGLOBAL void ttdsaDiscoverRespSend ( agsaRoot_t agRoot,
agsaDevHandle_t agDevHandle,
ttdsaXchg_t ttdsaXchg 
)

Definition at line 173 of file ttdsmp.c.

References tdssSMPRequestBody_s::agIORequest, AGSA_SMP_TGT_RESPONSE, tdssSMPRequestBody_s::agSASRequestBody, smpRespDiscover_s::attached_SataPS_Ssp_Stp_Smp_Sata_Target, smpRespDiscover_s::attached_Ssp_Stp_Smp_Sata_Initiator, smpRespDiscover_s::attachedDeviceType, smpRespDiscover_s::attachedPhyIdentifier, smpRespDiscover_s::attachedSasAddressHi, smpRespDiscover_s::attachedSasAddressLo, smpRespDiscover_s::negotiatedPhyLinkRate, ossaSMPCompleted(), osti_memcpy, osti_memset, agsaSMPFrame_s::outFrameAddrLower32, agsaSMPFrame_s::outFrameAddrUpper32, agsaSMPFrame_s::outFrameBuf, agsaSMPFrame_s::outFrameLen, ttdsaDmaMemoryArea_t::phyAddrLower, ttdsaDmaMemoryArea_t::phyAddrUpper, smpRespDiscover_s::phyChangeCount, smpRespDiscover_s::phyIdentifier, smpRespDiscover_s::programmedAndHardware_MaxPhyLinkRate, smpRespDiscover_s::programmedAndHardware_MinPhyLinkRate, smpRespDiscover_s::reserved13, smp_resp_s::RespData, smpRespDiscover_s::routingAttribute, SAS_EDGE_EXPANDER_DEVICE, smpRespDiscover_s::sasAddressHi, smpRespDiscover_s::sasAddressLo, saSMPStart(), SMP_DIRECT_PAYLOAD_LIMIT, SMP_DISCOVER, SMP_FUNCTION_ACCEPTED, SMP_RESPONSE, agsaSASRequestBody_u::smpFrame, tdssSMPFrameHeader_s::smpFrameType, tdssSMPFrameHeader_s::smpFunction, tdssSMPFrameHeader_s::smpFunctionResult, ttdsaXchg_s::SMPRequestBody, tdssSMPFrameHeader_s::smpReserved, ttdsaXchg_s::smpresp, TI_DBG1, smpRespDiscover_s::vendorSpecific, ttdsaDmaMemoryArea_t::virtAddr, and smpRespDiscover_s::virtualPhy_partialPathwayTimeout.

Referenced by ttdsaSMPReqReceived().

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

◆ ttdsaNotSupportRespSend()

◆ ttdsaReportGeneralRespSend()

◆ ttdsaSMPCompleted()

osGLOBAL void ttdsaSMPCompleted ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  agIOStatus,
bit32  agIOInfoLen,
agsaFrameHandle_t  agFrameHandle 
)

Definition at line 69 of file ttdsmp.c.

References agNULL, agsaContext_s::osData, TI_DBG1, tdsaRootOsData_s::tiRoot, and ttdsaXchgFreeStruct().

Referenced by ttdsaXchgInit().

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

◆ ttdsaSMPReqReceived()