FreeBSD kernel pms device code
|
#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>
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) |
Copyright 2006 PMC-Sierra, Inc.
This file contains initiator IO related functions in TD layer
Definition in file ttdsmp.c.
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().
osGLOBAL void ttdsaNotSupportRespSend | ( | agsaRoot_t * | agRoot, |
agsaDevHandle_t * | agDevHandle, | ||
ttdsaXchg_t * | ttdsaXchg, | ||
bit8 | smpfn | ||
) |
Definition at line 104 of file ttdsmp.c.
References tdssSMPRequestBody_s::agIORequest, AGSA_SMP_TGT_RESPONSE, tdssSMPRequestBody_s::agSASRequestBody, ossaSMPCompleted(), osti_memcpy, osti_memset, agsaSMPFrame_s::outFrameAddrLower32, agsaSMPFrame_s::outFrameAddrUpper32, agsaSMPFrame_s::outFrameBuf, agsaSMPFrame_s::outFrameLen, ttdsaDmaMemoryArea_t::phyAddrLower, ttdsaDmaMemoryArea_t::phyAddrUpper, saSMPStart(), SMP_DIRECT_PAYLOAD_LIMIT, 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, and UNKNOWN_SMP_FUNCTION.
Referenced by ttdsaSMPReqReceived().
osGLOBAL void ttdsaReportGeneralRespSend | ( | agsaRoot_t * | agRoot, |
agsaDevHandle_t * | agDevHandle, | ||
ttdsaXchg_t * | ttdsaXchg | ||
) |
Definition at line 284 of file ttdsmp.c.
References tdssSMPRequestBody_s::agIORequest, AGSA_SMP_TGT_RESPONSE, tdssSMPRequestBody_s::agSASRequestBody, smpRespReportGeneral_s::configuring_configurable, smpRespReportGeneral_s::expanderChangeCount16, smpRespReportGeneral_s::expanderRouteIndexes16, smpRespReportGeneral_s::numOfPhys, ossaSMPCompleted(), osti_memcpy, osti_memset, agsaSMPFrame_s::outFrameAddrLower32, agsaSMPFrame_s::outFrameAddrUpper32, agsaSMPFrame_s::outFrameBuf, agsaSMPFrame_s::outFrameLen, ttdsaDmaMemoryArea_t::phyAddrLower, ttdsaDmaMemoryArea_t::phyAddrUpper, smp_resp_s::RespData, saSMPStart(), SMP_DIRECT_PAYLOAD_LIMIT, SMP_FUNCTION_ACCEPTED, SMP_REPORT_GENERAL, SMP_RESPONSE, agsaSASRequestBody_u::smpFrame, tdssSMPFrameHeader_s::smpFrameType, tdssSMPFrameHeader_s::smpFunction, tdssSMPFrameHeader_s::smpFunctionResult, ttdsaXchg_s::SMPRequestBody, tdssSMPFrameHeader_s::smpReserved, ttdsaXchg_s::smpresp, tdhexdump(), TI_DBG1, and ttdsaDmaMemoryArea_t::virtAddr.
Referenced by ttdsaSMPReqReceived().
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().
osGLOBAL void ttdsaSMPReqReceived | ( | agsaRoot_t * | agRoot, |
agsaDevHandle_t * | agDevHandle, | ||
agsaSMPFrameHeader_t * | agFrameHeader, | ||
agsaFrameHandle_t | agFrameHandle, | ||
bit32 | agFrameLength, | ||
bit32 | phyId | ||
) |
Definition at line 367 of file ttdsmp.c.
References tdsaDeviceData_s::agDevHandle, tdssSMPRequestBody_s::agIORequest, agNULL, tdsaDeviceData_s::agRoot, ttdsaXchg_s::agRoot, ttdsaXchg_s::DeviceData, agsaContext_s::osData, agsaContext_s::sdkData, SMP_DISCOVER, SMP_REPORT_GENERAL, SMP_REPORT_MANUFACTURE_INFORMATION, agsaSMPFrameHeader_s::smpFunction, ttdsaXchg_s::SMPphyId, ttdsaXchg_s::SMPRequestBody, TI_DBG1, tdsaRootOsData_s::tiRoot, ttdsaXchg_s::tiRoot, ttdsaDiscoverRespSend(), ttdsaNotSupportRespSend(), ttdsaReportGeneralRespSend(), and ttdsaXchgGetStruct().
Referenced by tdsaJumpTableInit().