FreeBSD kernel pms device code
|
#include <sys/cdefs.h>
#include <dev/pms/config.h>
#include <dev/pms/freebsd/driver/common/osenv.h>
#include <dev/pms/freebsd/driver/common/ostypes.h>
#include <dev/pms/freebsd/driver/common/osdebug.h>
#include <dev/pms/RefTisa/sallsdk/api/sa.h>
#include <dev/pms/RefTisa/sallsdk/api/saapi.h>
#include <dev/pms/RefTisa/sallsdk/spc/sadefs.h>
#include <dev/pms/RefTisa/sallsdk/api/saosapi.h>
#include <dev/pms/RefTisa/tisa/api/titypes.h>
#include <dev/pms/RefTisa/tisa/api/ostiapi.h>
#include <dev/pms/RefTisa/tisa/api/tiapi.h>
#include <dev/pms/RefTisa/tisa/api/tiglobal.h>
#include <dev/pms/RefTisa/tisa/sassata/sas/common/tdtypes.h>
#include <dev/pms/freebsd/driver/common/osstring.h>
#include <dev/pms/RefTisa/tisa/sassata/common/tdutil.h>
#include <dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h>
#include <dev/pms/RefTisa/tisa/sassata/common/tdproto.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/aap1img.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/ilaimg.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/iopimg.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/istrimg.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/aap18008.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/iop8008.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/ila8008.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/raae8070.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/iop8070.h>
#include <dev/pms/RefTisa/sallsdk/hda/64k/ila8070.h>
Go to the source code of this file.
Variables | |
bit32 | gSSC_Disable = 0 |
bit32 volatile | sgpioResponseSet = 0 |
tdport.c This file contains port realted functions such as tiCOMPortStart()
Definition in file tdport.c.
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 4606 of file tdport.c.
References agNULL, AGSA_WRITE_SGPIO_REGISTER, agsaSGpioReqResponse_s::function, tiIOCTLPayload::FunctionSpecificArea, IOCTL_CALL_FAIL, IOCTL_CALL_PENDING, IOCTL_ERR_STATUS_OK, IOCTL_MJ_SGPIO, tiIOCTLPayload::Length, tiIOCTLPayload::MajorFunction, agsaSGpioReqResponse_s::readWriteData, agsaSGpioReqResponse_s::registerCount, agsaSGpioReqResponse_s::registerIndex, agsaSGpioReqResponse_s::registerType, sgpioResponseSet, SMP_REQUEST, agsaSGpioReqResponse_s::smpFrameType, status, tiIOCTLPayload::Status, tdsaSGpioIoctlSetup(), tiCOMDelayedInterruptHandler(), tiError, tiNonInterruptContext, and tiSuccess.
Referenced by tiCOMConfigureSgpio().
void t_MacroCheck | ( | agsaRoot_t * | agRoot | ) |
Definition at line 8025 of file tdport.c.
References TI_DBG1, tiIS_HIL, tiIS_SPC, tiIS_SPC6V, tiIS_SPC_ENC, tIsSPC, tIsSPC12Gv, tIsSPC12Gve, tIsSPC12Gveplus, tIsSPC12Gvplus, tIsSPCADAPveplus, tIsSPCADAPvplus, tIsSPCHIL, tIsSPCv, tIsSPCV12G, tIsSPCve, tIsSPCveplus, and tIsSPCvplus.
Referenced by tiCOMPortInit().
Definition at line 3123 of file tdport.c.
References agFALSE, agNULL, agTRUE, DEFAULT_KEY_BUFFER_SIZE, osti_memset, osti_sprintf, osti_strncmp, osti_strtoul, ostiGetTransportParam(), SA_IDFRM_GET_SAS_ADDRESSHI, SA_IDFRM_GET_SAS_ADDRESSLO, TD_MAX_NUM_PHYS, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, tdsaParseLinkRateMode(), TI_DBG2, TI_DBG6, tiIS_8PHY, and tiSuccess.
Referenced by tiCOMPortStart().
Definition at line 3407 of file tdport.c.
References agFALSE, agNULL, agTRUE, DEFAULT_KEY_BUFFER_SIZE, osti_memset, osti_sprintf, osti_strncmp, osti_strtoul, ostiGetTransportParam(), SA_IDFRM_GET_SAS_ADDRESSHI, SA_IDFRM_GET_SAS_ADDRESSLO, TD_MAX_NUM_PHYS, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, tdsaParseLinkRateMode(), TI_DBG2, TI_DBG6, tiIS_16PHY, tiIS_8PHY, tiIS_SPC, and tiSuccess.
Referenced by tiCOMPortStart().
Definition at line 2588 of file tdport.c.
References agNULL, DEFAULT_FW_MAX_PORTS, DEFAULT_KEY_BUFFER_SIZE, agsaHwConfig_s::hwInterruptCoalescingControl, agsaHwConfig_s::hwInterruptCoalescingTimer, agsaHwConfig_s::hwOption, agsaHwConfig_s::intReassertionOption, MAX_INDEX, osti_memset, osti_sprintf, osti_strncmp, osti_strtoul, ostiGetTransportParam(), agsaHwConfig_s::phyAnalogConfig, agsaPhyAnalogSetupTable_s::phyAnalogSetupRegisters, agsaHwConfig_s::phyCount, agsaPhyAnalogSetupRegisters_s::spaRegister0, agsaPhyAnalogSetupRegisters_s::spaRegister1, agsaPhyAnalogSetupRegisters_s::spaRegister2, agsaPhyAnalogSetupRegisters_s::spaRegister3, agsaPhyAnalogSetupRegisters_s::spaRegister4, agsaPhyAnalogSetupRegisters_s::spaRegister5, agsaPhyAnalogSetupRegisters_s::spaRegister6, agsaPhyAnalogSetupRegisters_s::spaRegister7, agsaPhyAnalogSetupRegisters_s::spaRegister8, agsaPhyAnalogSetupRegisters_s::spaRegister9, TD_MAX_NUM_PHYS, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG6, and tiSuccess.
Referenced by tiCOMPortInit().
Definition at line 3768 of file tdport.c.
References agNULL, DEFAULT_KEY_BUFFER_SIZE, osti_memset, osti_strncmp, osti_strtoul, ostiGetTransportParam(), tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG6, and tiSuccess.
Definition at line 123 of file tdport.c.
References agFALSE, agNULL, AGSA_MAX_INBOUND_Q, AGSA_MAX_OUTBOUND_Q, agTRUE, DEFAULT_EVENT_LOG_OPTION, DEFAULT_INBOUND_QUEUE_ELE_SIZE, DEFAULT_INBOUND_QUEUE_PRIORITY, DEFAULT_INBOUND_QUEUE_SIZE, DEFAULT_KEY_BUFFER_SIZE, DEFAULT_MAX_ACTIVE_IOS, DEFAULT_MAX_DEV, DEFAULT_NUM_INBOUND_QUEUE, DEFAULT_NUM_OUTBOUND_QUEUE, DEFAULT_NUM_REG_CLIENTS, DEFAULT_OUTBOUND_INTERRUPT_ENABLE, DEFAULT_OUTBOUND_QUEUE_ELE_SIZE, DEFAULT_OUTBOUND_QUEUE_INTERRUPT_COUNT, DEFAULT_OUTBOUND_QUEUE_INTERRUPT_DELAY, DEFAULT_OUTBOUND_QUEUE_SIZE, DEFAULT_QUEUE_OPTION, DEFAULT_SMP_TIMEOUT, agsaSwConfig_s::disableMDF, agsaSwConfig_s::enableDIF, agsaSwConfig_s::enableEncryption, agsaSwConfig_s::eventLog1Option, agsaSwConfig_s::eventLog2Option, agsaSwConfig_s::fatalErrorInterruptEnable, agsaSwConfig_s::fatalErrorInterruptVector, agsaSwConfig_s::FWConfig, HOST_EVENT_LOG_SIZE, agsaSwConfig_s::hostDirectAccessMode, agsaSwConfig_s::hostDirectAccessSupport, agsaQueueConfig_s::iqHighPriorityProcessingDepth, agsaQueueConfig_s::iqNormalPriorityProcessingDepth, IT_NEXUS_TIMEOUT, agsaSwConfig_s::maxActiveIOs, agsaSwConfig_s::mpiContextTable, agsaSwConfig_s::mpiContextTablelen, tdsaContext_s::MpiOverride, agsaMPIContext_s::MPITableType, agsaSwConfig_s::numberOfEventRegClients, agsaSwConfig_s::numDevHandles, agsaQueueConfig_s::numInboundQueues, agsaQueueConfig_s::numOutboundQueues, agsaMPIContext_s::offset, osti_memset, osti_sprintf, osti_strncmp, osti_strtoul, ostiGetTransportParam(), agsaSwConfig_s::param1, agsaSwConfig_s::param2, PORT_RECOVERY_TIMEOUT, agsaSwConfig_s::sizefEventLog1, agsaSwConfig_s::sizefEventLog2, agsaSwConfig_s::smpReqTimeout, STP_IDLE_TIME, tdsaContext_s::SwConfig, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_DBG2, TI_DBG6, tiSuccess, and agsaMPIContext_s::value.
Referenced by tdsaQueueConfigInit(), and tiCOMPortInit().
osGLOBAL void tdsaParseLinkRateMode | ( | tiRoot_t * | tiRoot, |
bit32 | index, | ||
bit32 | LinkRateRead, | ||
bit32 | ModeRead, | ||
bit32 | OpticalModeRead, | ||
bit32 | LinkRate, | ||
bit32 | Mode, | ||
bit32 | OpticalMode | ||
) |
Definition at line 2450 of file tdport.c.
References agTRUE, index, TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_DBG2, TI_DBG3, and tIsSPCV12or6G.
Referenced by tdsaGetCardPhyParams(), and tdsaGetGlobalPhyParams().
FORCEINLINE bit32 tdsaRotateQnumber | ( | tiRoot_t * | tiRoot, |
tdsaDeviceData_t * | oneDeviceData | ||
) |
Definition at line 7956 of file tdport.c.
References agNULL, tdsaDeviceData_s::InQID, tdsaDeviceData_s::OutQID, and TI_DBG6.
Referenced by itdssDsNonOperationalHandler(), itdssOpenCnxErrorConnectionRateNotSupportedHandler(), itdssTaskCompleted(), itdssXferOpenRetryTimeoutHandler(), ossaDeviceRegistrationCB(), ossaEchoCB(), ossaGetPhyProfileCB(), ossaHwCB(), ossaLocalPhyControlCB(), ossaSMPAbortCB(), tdsaAbortAll(), tdsaDeregisterDevicesInPort(), tdsaGetPhyGeneralStatusIoctl(), tdsaPhyControlRespRcvd(), tiCOMPortInit(), tiINIIOStart(), tiINISuperIOStart(), tiTGTIOStart(), and ttdsaSendResp().
osGLOBAL bit32 tdsaRotateQnumber1 | ( | tiRoot_t * | tiRoot, |
tdsaDeviceData_t * | oneDeviceData | ||
) |
Definition at line 7971 of file tdport.c.
References agNULL, agsaQueueConfig_s::numInboundQueues, agsaQueueConfig_s::numOutboundQueues, tdsaContext_s::QueueConfig, tiRoot::tdData, and tdsaRoot_s::tdsaAllShared.
osGLOBAL void tdssAddSASToSharedcontext | ( | tdsaPortContext_t * | tdsaPortContext_Instance, |
agsaRoot_t * | agRoot, | ||
agsaDevHandle_t * | agDevHandle, | ||
tdsaSASSubID_t * | agSASSubID, | ||
bit32 | registered, | ||
bit8 | phyID, | ||
bit32 | flag | ||
) |
Definition at line 6487 of file tdport.c.
References tdsaDeviceData_s::agContext, tdsaDeviceData_s::agDevHandle, tdsaDeviceData_s::agDeviceInfo, agFALSE, agNULL, tdsaPortContext_s::agPortContext, tdsaDeviceData_s::agRoot, agTRUE, tdsaPortContext_s::Count, DEFAULT_SMP_TIMEOUT, DEVICE_IS_SATA_DEVICE, DEVICE_IS_SMP_TARGET, DEVICE_IS_SSP_TARGET, DEVICE_IS_STP_TARGET, tdsaDeviceData_s::DeviceType, DEVINFO_PUT_DEV_S_RATE, DEVINFO_PUT_FBS, DEVINFO_PUT_FLAG, DEVINFO_PUT_ITNEXUSTO, DEVINFO_PUT_SAS_ADDRESSHI, DEVINFO_PUT_SAS_ADDRESSLO, DEVINFO_PUT_SMPTO, tdsaDeviceData_s::directlyAttached, agsaDeviceInfo_s::flag, tdList_s::flink, tdsaContext_s::FreeDeviceList, tdsaDeviceData_s::id, tdsaPortContext_s::id, tdsaDeviceData_s::initiator_ssp_stp_smp, tdsaSASSubID_s::initiator_ssp_stp_smp, tdsaDeviceData_s::InQID, tdsaContext_s::itNexusTimeout, tdsaPortContext_s::LinkRate, tdsaContext_s::MainDeviceList, tdsaDeviceData_s::MainLink, tdsaContext_s::MainPortContextList, agsaQueueConfig_s::numInboundQueues, agsaQueueConfig_s::numOutboundQueues, agsaContext_s::osData, tdsaDeviceData_s::OutQID, tdsaDeviceData_s::phyID, tdsaContext_s::QueueConfig, tdsaDeviceData_s::registered, saRegisterNewDevice(), SAS_DEVICE_TYPE, TDSASAddressID_s::sasAddressHi, tdsaSASSubID_s::sasAddressHi, tdsaDeviceData_s::SASAddressID, TDSASAddressID_s::sasAddressLo, tdsaSASSubID_s::sasAddressLo, agsaContext_s::sdkData, tdsaContext_s::sflag, tdsaDeviceData_s::target_ssp_stp_smp, tdsaSASSubID_s::target_ssp_stp_smp, TD_DEVICE_LOCK, TD_OPERATION_INITIATOR, TD_OPERATION_TARGET, TD_SAS_DEVICE, TD_XFER_RDY_PRIORTY_DEVICE_FLAG, tiRoot::tdData, TDLIST_DEQUEUE_FROM_HEAD, TDLIST_ENQUEUE_AT_TAIL, TDLIST_NOT_EMPTY, TDLIST_OBJECT_BASE, tdsaDeviceData_s::tdPortContext, tdsaRoot_s::tdsaAllShared, tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), TI_DBG1, TI_DBG3, TI_DBG4, tdsaRootOsData_s::tiRoot, and tdsaDeviceData_s::valid.
Referenced by ossaDeviceHandleAccept(), and ossaHwCB().
osGLOBAL void tdssRemoveAllDevicelistFromPortcontext | ( | tdsaPortContext_t * | PortContext_Ins, |
agsaRoot_t * | agRoot | ||
) |
Definition at line 6875 of file tdport.c.
References agFALSE, agNULL, tdsaPortContext_s::Count, tdList_s::flink, tdsaDeviceData_s::id, tdsaPortContext_s::id, tdsaContext_s::MainDeviceList, agsaContext_s::osData, tiRoot::tdData, TDLIST_OBJECT_BASE, tdsaDeviceData_s::tdPortContext, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_DBG4, TI_DBG6, tdsaRootOsData_s::tiRoot, and tdsaDeviceData_s::valid.
osGLOBAL void tdssRemoveSASFromSharedcontext | ( | tdsaPortContext_t * | tdsaPortContext_Ins, |
tdsaDeviceData_t * | tdsaDeviceData_Ins, | ||
agsaRoot_t * | agRoot | ||
) |
Definition at line 6790 of file tdport.c.
References tdsaDeviceData_s::agDeviceInfo, agFALSE, agNULL, agTRUE, tdList_s::flink, tdsaDeviceData_s::id, tdsaPortContext_s::id, tdsaContext_s::MainDeviceList, tdsaContext_s::MainPortContextList, agsaContext_s::osData, SA_DEVINFO_GET_SAS_ADDRESSHI, SA_DEVINFO_GET_SAS_ADDRESSLO, TDSASAddressID_s::sasAddressHi, tdsaDeviceData_s::SASAddressID, TDSASAddressID_s::sasAddressLo, tiRoot::tdData, TDLIST_OBJECT_BASE, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_DBG3, TI_DBG4, TI_DBG6, tdsaRootOsData_s::tiRoot, and tdsaDeviceData_s::valid.
Definition at line 4680 of file tdport.c.
References AGSA_SGPIO_CONFIG_REG, AGSA_SGPIO_DRIVE_BY_DRIVE_TRANSMIT_REG, agsaSGpioCfg1::forceActOff, agsaSGpioCfg0::gpioEnable, agsaSGpioCfg1::maxActOn, OSSA_SGPIO_MAX_READ_DATA_COUNT, tdsaContext_s::phyCount, SendSgpioRequest(), status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, tiError, and tiSuccess.
Referenced by tiCOMPortInit().
osGLOBAL bit32 tiCOMEncryptDekAdd | ( | tiRoot_t * | tiRoot, |
bit32 | kekIndex, | ||
bit32 | dekTableSelect, | ||
bit32 | dekAddrHi, | ||
bit32 | dekAddrLo, | ||
bit32 | dekIndex, | ||
bit32 | dekNumberOfEntries, | ||
bit32 | dekBlobFormat, | ||
bit32 | dekTableKeyEntrySize | ||
) |
Definition at line 5566 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, dekBlobFormat, dekIndex, dekTableKeyEntrySize, kekIndex, saEncryptDekCacheUpdate(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
Definition at line 5647 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_NOT_SUPPORTED, AGSA_RC_SUCCESS, dekIndex, tiEncryptDek::dekIndex, dekTable, tiEncryptDek::dekTable, tiEncryptPort::encryptEvent, ostiPortEvent(), tiEncryptPort::pData, saEncryptDekCacheInvalidate(), tiEncryptPort::subEvent, TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiEncryptDekInvalidate, tiEncryptOperation, tiError, tiNotSupported, and tiSuccess.
Definition at line 5380 of file tdport.c.
References agNULL, AGSA_RC_NOT_SUPPORTED, AGSA_RC_SUCCESS, agsaEncryptCipherModeXTS, agsaEncryptSMA, agsaEncryptSMB, agsaEncryptSMF, tiEncryptPort::encryptEvent, agsaEncryptInfo_s::encryptionCipherMode, agsaEncryptInfo_s::encryptionSecurityMode, NULL, osti_memset, ostiPortEvent(), tiEncryptPort::pData, saEncryptGetMode(), tiEncryptInfo::securityCipherMode, agsaEncryptInfo_s::status, tiEncryptInfo::status, tiEncryptPort::subEvent, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_ENCRYPT_ATTRIB_CIPHER_XTS, TI_ENCRYPT_SEC_MODE_A, TI_ENCRYPT_SEC_MODE_B, TI_ENCRYPT_SEC_MODE_FACT_INIT, tiEncryptGetInfo, tiEncryptOperation, tiError, tiNotSupported, and tiSuccess.
osGLOBAL bit32 tiCOMEncryptKekAdd | ( | tiRoot_t * | tiRoot, |
bit32 | kekIndex, | ||
bit32 | wrapperKekIndex, | ||
bit32 | blobFormat, | ||
tiEncryptKekBlob_t * | encryptKekBlob | ||
) |
Definition at line 5727 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_ENCRYPT_STORE_NVRAM, AGSA_RC_BUSY, AGSA_RC_SUCCESS, blobFormat, kekIndex, saEncryptKekUpdate(), tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, tiSuccess, and wrapperKekIndex.
Definition at line 5920 of file tdport.c.
References tdsaContext_s::agRootNonInt, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and tiError.
Definition at line 5861 of file tdport.c.
References tdsaContext_s::agRootNonInt, kekIndex, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, and tiError.
osGLOBAL bit32 tiCOMEncryptSelfTest | ( | tiRoot_t * | tiRoot, |
bit32 | type, | ||
bit32 | length, | ||
void * | TestDescriptor | ||
) |
Definition at line 5979 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, saEncryptSelftestExecute(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_ENCRYPTION_TEST_TYPE_BIST, TI_ENCRYPTION_TEST_TYPE_HMAC, tiBusy, tiError, and tiSuccess.
Definition at line 5474 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, agsaEncryptCipherModeXTS, agsaEncryptSMA, agsaEncryptSMB, agsaEncryptInfo_s::encryptionCipherMode, agsaEncryptInfo_s::encryptionSecurityMode, saEncryptSetMode(), securityCipherMode, agsaEncryptInfo_s::status, TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_ENCRYPT_ATTRIB_CIPHER_ECB, TI_ENCRYPT_ATTRIB_CIPHER_XTS, TI_ENCRYPT_SEC_MODE_A, TI_ENCRYPT_SEC_MODE_B, tiBusy, tiError, and tiSuccess.
osGLOBAL bit32 tiCOMGetControllerConfig | ( | tiRoot_t * | tiRoot, |
bit32 | modePage, | ||
bit32 | flag, | ||
void * | context | ||
) |
Definition at line 5317 of file tdport.c.
References tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, saGetControllerConfig(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
Definition at line 6139 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, saGetOperator(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
osGLOBAL bit32 tiCOMGetPortInfo | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | portalContext, | ||
tiPortInfo_t * | tiPortInfo | ||
) |
Definition at line 5135 of file tdport.c.
References agFALSE, agNULL, agTRUE, tdList_s::flink, tdsaPortContext_s::id, tiPortInfo::localName, tiPortInfo::localNameLen, osti_memcpy, osti_memset, tiPortInfo::remoteName, tdsaPortContext_s::remoteName, tiPortInfo::remoteNameLen, tdsaPortContext_s::sasLocalAddressHi, tdsaPortContext_s::sasLocalAddressLo, tdsaPortContext_s::sasRemoteAddressHi, tdsaPortContext_s::sasRemoteAddressLo, TD_PORT_LOCK, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaRoot_s::tdsaAllShared, tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), TI_DBG1, TI_DBG3, TI_DBG6, tiError, tdsaPortContext_s::tiPortalContext, tiSuccess, and tdsaPortContext_s::valid.
Referenced by agtiapi_GetDevHandle(), agtiapi_InitCardHW(), and agtiapi_ResetCard().
osGLOBAL bit32 tiCOMOperatorManagement | ( | tiRoot_t * | tiRoot, |
bit32 | flag, | ||
bit8 | role, | ||
tiID_t * | idString, | ||
tiEncryptKekBlob_t * | kekBlob | ||
) |
Definition at line 6228 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, saOperatorManagement(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
Definition at line 3862 of file tdport.c.
References aap1array, agsaFwImg_s::aap1Img, agsaFwImg_s::aap1Len, agsaMemoryRequirement_s::agMemory, agNULL, tdsaContext_s::agRootInt, tdsaContext_s::agRootNonInt, AGSA_CACHED_DMA_MEM, AGSA_CACHED_MEM, AGSA_DMA_MEM, AGSA_NUM_MEM_CHUNKS, AGSA_RC_FAILURE, AGSA_RC_VERSION_INCOMPATIBLE, agTRUE, dmMem_t::alignment, agsaMem_s::alignment, smMem_t::alignment, tiMem::alignment, dmMemoryRequirement_t::count, agsaMemoryRequirement_s::count, smMemoryRequirement_t::count, tiLoLevelMem::count, tdsaContext_s::currentOperation, DEFAULT_INBOUND_QUEUE_PRIORITY, DM_RC_FAILURE, DM_RC_VERSION_INCOMPATIBLE, dmGetRequirements(), dmInitialize(), dmMemoryRequirement_t::dmMemory, agsaQueueInbound_s::elementCount, agsaQueueOutbound_s::elementCount, agsaQueueInbound_s::elementSize, agsaQueueOutbound_s::elementSize, agsaSwConfig_s::fatalErrorInterruptVector, tiLoLevelOption::flag, tdsaContext_s::flags, tdsaPortStartInfo_s::flags, agsaSwConfig_s::FWConfig, agsaSwConfig_s::hostDirectAccessSupport, tdsaContext_s::HwConfig, ilaarray, agsaFwImg_s::ilaImg, agsaFwImg_s::ilaLen, tdsaContext_s::InboundQueueEleSize, tdsaContext_s::InboundQueuePriority, agsaQueueConfig_s::inboundQueues, tdsaContext_s::InboundQueueSize, agsaQueueOutbound_s::interruptCount, agsaQueueOutbound_s::interruptDelay, agsaQueueOutbound_s::interruptEnable, agsaQueueOutbound_s::interruptVectorIndex, ioparray, agsaFwImg_s::iopImg, agsaFwImg_s::iopLen, istrarray, agsaFwImg_s::istrImg, agsaFwImg_s::istrLen, agsaSwConfig_s::legacyInt_X, tiLoLevelResource::loLevelMem, tiLoLevelResource::loLevelOption, tdsaContext_s::loResource, agsaSwConfig_s::max_MSI_InterruptVectors, tiLoLevelOption::max_MSI_InterruptVectors, agsaSwConfig_s::max_MSIX_InterruptVectors, tiLoLevelOption::maxInterruptVectors, tiLoLevelMem::mem, dmMem_t::numElements, agsaMem_s::numElements, smMem_t::numElements, tiMem::numElements, agsaQueueConfig_s::numInboundQueues, agsaQueueConfig_s::numOutboundQueues, dmMem_t::osHandle, agsaMem_s::osHandle, smMem_t::osHandle, tiMem::osHandle, OSSA_EVENT_SOURCE_DEVICE_HANDLE_ADDED, OSSA_EVENT_SOURCE_DEVICE_HANDLE_REMOVED, ossaDeregisterDeviceHandleCB(), ossaDeviceRegistrationCB(), ossaHwRegReadConfig32(), osti_memcpy, osti_memset, tdsaContext_s::OutboundQueueEleSize, tdsaContext_s::OutboundQueueInterruptCount, tdsaContext_s::OutboundQueueInterruptDelay, tdsaContext_s::OutboundQueueInterruptEnable, agsaQueueConfig_s::outboundQueues, tdsaContext_s::OutboundQueueSize, agsaSwConfig_s::param1, agsaSwConfig_s::param2, agsaSwConfig_s::param3, agsaSwConfig_s::param4, agsaMem_s::phyAddrLower, agsaMem_s::phyAddrUpper, dmMem_t::physAddrLower, smMem_t::physAddrLower, tiMem::physAddrLower, dmMem_t::physAddrUpper, smMem_t::physAddrUpper, tiMem::physAddrUpper, tdssPortFlags_s::portInitialized, agsaSwConfig_s::PortRecoveryResetTimer, tdsaContext_s::Ports, agsaQueueInbound_s::priority, tdsaContext_s::QueueConfig, agsaQueueConfig_s::queueOption, tdsaContext_s::QueueOption, dmMem_t::reserved, agsaQueueInbound_s::reserved, agsaMem_s::reserved, smMem_t::reserved, tiMem::reserved, tdsaComMemFlags_s::resetInProgress, saEchoCommand(), saEncryptGetMode(), saGetControllerInfo(), saGetControllerStatus(), saGetRequirements(), saInitialize(), saRegisterEventCallback(), agsaContext_s::sdkData, dmMem_t::singleElementLength, agsaMem_s::singleElementLength, smMem_t::singleElementLength, tiMem::singleElementLength, SM_RC_FAILURE, SM_RC_VERSION_INCOMPATIBLE, smInitialize(), smMemoryRequirement_t::smMemory, tdsaContext_s::SMPQNum, spcv12g_ilaarray, spcv12g_ioparray, spcv12g_raaearray, spcv_aap1array, spcv_ilaarray, spcv_ioparray, agsaSwConfig_s::stallUsec, status, tdsaContext_s::SwConfig, tdsaComMemFlags_s::sysIntsActive, t_MacroCheck(), TD_MAX_NUM_PHYS, TD_OPERATION_TARGET, tiRoot::tdData, tdsaContext_s::tdDeviceIdVendId, tdsaContext_s::tdFWControlEx, tdsaRoot_s::tdsaAllShared, tdsaGetHwConfigParams(), tdsaGetSwConfigParams(), tdsaPrintHwConfig(), tdsaPrintSwConfig(), tdsaRotateQnumber(), tdsaContext_s::tdSubVendorId, TI_CACHED_DMA_MEM, TI_CACHED_MEM, TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG6, TI_DMA_MEM, tiCOMConfigureSgpio(), tiError, tiIS_SPC, tiIS_SPC6V, tIsSPCV12G, tiSuccess, dmMem_t::totalLength, agsaMem_s::totalLength, smMem_t::totalLength, tiMem::totalLength, ttdssGetTargetParams(), dmMem_t::type, agsaMem_s::type, smMem_t::type, tiMem::type, tiLoLevelOption::usecsPerTick, dmMem_t::virtPtr, agsaMem_s::virtPtr, smMem_t::virtPtr, and tiMem::virtPtr.
Referenced by agtiapi_InitCardSW(), and agtiapi_ResetCard().
osGLOBAL bit32 tiCOMPortStart | ( | tiRoot_t * | tiRoot, |
bit32 | portID, | ||
tiPortalContext_t * | portalContext, | ||
bit32 | option | ||
) |
Definition at line 4765 of file tdport.c.
References agFALSE, agNULL, AGSA_DEV_TYPE_END_DEVICE, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_SAS_PROTOCOL_TIMER_CONFIG_PAGE, agTRUE, agsaSASProtocolTimerConfigurationPage_s::Data_Cmd_OPNRJT_RTRY_THR, agsaSASProtocolTimerConfigurationPage_s::Data_Cmd_OPNRJT_RTRY_TMO, gSSC_Disable, agsaSASProtocolTimerConfigurationPage_s::MAX_AIP, agsaSASProtocolTimerConfigurationPage_s::MST_MSI, NULL, agsaSASProtocolTimerConfigurationPage_s::OPNRJT_RTRY_INTVL, osti_memset, ostiPortEvent(), agsaSASProtocolTimerConfigurationPage_s::pageCode, SA_IDFRM_SMP_BIT, SA_IDFRM_SSP_BIT, SA_IDFRM_STP_BIT, saPhyStart(), saSetControllerConfig(), status, agsaSASProtocolTimerConfigurationPage_s::STP_FRM_TMO, agsaSASProtocolTimerConfigurationPage_s::STP_IDLE_TMO, agsaSASProtocolTimerConfigurationPage_s::STP_SSP_MCT_TMO, tiPortalContext::tdData, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, tdsaGetCardPhyParams(), tdsaGetGlobalPhyParams(), tdssPrintSASIdentify(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG4, TI_DBG6, tiError, tiPortStarted, tIsSPCV12or6G, and tiSuccess.
Referenced by agtiapi_InitCardHW(), agtiapi_ResetCard(), and tiCOMMgntIOCTL().
osGLOBAL bit32 tiCOMPortStop | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | portalContext | ||
) |
Definition at line 5009 of file tdport.c.
References AG_SA_DISCOVERY_OPTION_FULL_START, tdsaPortContext_s::agContext, agFALSE, agNULL, AGSA_PHY_CLEAR_ERROR_COUNTS, AGSA_PHY_GET_BW_COUNTS, AGSA_PHY_GET_ERROR_COUNTS, AGSA_SAS_PHY_ANALOG_SETTINGS_PAGE, AGSA_SAS_PHY_BW_COUNTERS_PAGE, AGSA_SAS_PHY_ERR_COUNTERS_CLR_PAGE, AGSA_SAS_PHY_ERR_COUNTERS_PAGE, AGSA_SAS_PHY_GENERAL_STATUS_PAGE, agTRUE, tdsaPortContext_s::Count, tdsaPortContext_s::discoveryOptions, tdsaPortContext_s::DiscoveryState, tdList_s::flink, tdsaPortContext_s::id, ITD_DSTATE_NOT_STARTED, agsaContext_s::osData, tdsaPortContext_s::PhyIDList, saGetControllerStatus(), saGetPhyProfile(), saLocalPhyControl(), saPhyStop(), TD_MAX_NUM_PHYS, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_DBG3, TI_DBG6, tiError, tiIS_SPC, tdsaPortContext_s::tiPortalContext, and tiSuccess.
Referenced by tiCOMMgntIOCTL().
osGLOBAL bit32 tiCOMSetControllerConfig | ( | tiRoot_t * | tiRoot, |
bit32 | modePage, | ||
bit32 | length, | ||
void * | buffer, | ||
void * | context | ||
) |
Definition at line 5242 of file tdport.c.
References tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, saSetControllerConfig(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_ENCRYPTION_CONTROL_PARM_PAGE, TI_ENCRYPTION_DEK_CONFIG_PAGE, TI_ENCRYPTION_GENERAL_CONFIG_PAGE, TI_ENCRYPTION_HMAC_CONFIG_PAGE, TI_INTERRUPT_CONFIGURATION_PAGE, TI_SAS_PROTOCOL_TIMER_CONFIG_PAGE, tiBusy, tiError, and tiSuccess.
Definition at line 6068 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, saSetOperator(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
bit32 gSSC_Disable = 0 |
Definition at line 96 of file tdport.c.
Referenced by tiCOMPortStart().
bit32 volatile sgpioResponseSet = 0 |
Definition at line 97 of file tdport.c.
Referenced by ostiSgpioIoctlRsp(), and SendSgpioRequest().