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/tisa/api/titypes.h>
#include <dev/pms/RefTisa/sallsdk/api/sa.h>
#include <dev/pms/RefTisa/sallsdk/api/saapi.h>
#include <dev/pms/RefTisa/sallsdk/api/saosapi.h>
#include <dev/pms/RefTisa/sat/api/sm.h>
#include <dev/pms/RefTisa/sat/api/smapi.h>
#include <dev/pms/RefTisa/sat/api/tdsmapi.h>
#include <dev/pms/RefTisa/sat/src/smdefs.h>
#include <dev/pms/RefTisa/sat/src/smproto.h>
#include <dev/pms/RefTisa/sat/src/smtypes.h>
Go to the source code of this file.
Functions | |
__FBSDID ("$FreeBSD$") | |
osGLOBAL void | smGetRequirements (smRoot_t *smRoot, smSwConfig_t *swConfig, smMemoryRequirement_t *memoryRequirement, bit32 *usecsPerTick, bit32 *maxNumLocks) |
osGLOBAL bit32 | smInitialize (smRoot_t *smRoot, agsaRoot_t *agRoot, smMemoryRequirement_t *memoryAllocated, smSwConfig_t *swConfig, bit32 usecsPerTick) |
osGLOBAL void | smInitTimers (smRoot_t *smRoot) |
osGLOBAL void | smDeviceDataReInit (smRoot_t *smRoot, smDeviceData_t *oneDeviceData) |
osGLOBAL void | smDeviceDataInit (smRoot_t *smRoot, bit32 max_dev) |
osGLOBAL void | smIOInit (smRoot_t *smRoot) |
FORCEINLINE void | smIOReInit (smRoot_t *smRoot, smIORequestBody_t *smIORequestBody) |
Variables | |
smRoot_t * | gsmRoot = agNULL |
__FBSDID | ( | "$FreeBSD$" | ) |
Definition at line 370 of file sminit.c.
References smDeviceData_s::agDevHandle, smDeviceData_s::agExpDevHandle, agFALSE, agNULL, smDeviceData_s::directlyAttached, smDeviceData_s::freeSATAFDMATagBitmap, smDeviceData_s::id, smDeviceData_s::ID_Retries, smDeviceData_s::IDDeviceValid, smDeviceData_s::NumOfFCA, smDeviceData_s::NumOfIDRetries, smDeviceData_s::OSAbortAll, smDeviceData_s::phyID, SAT_DEV_STATE_NORMAL, SAT_MAX_INT_IO, SAT_NCQ_MAX, smDeviceData_s::satDriveState, smDeviceData_s::satFreeIntIoLinkList, smDeviceData_s::satIntIo, smDeviceData_s::satNCQMaxIO, smDeviceData_s::satPendingIO, smDeviceData_s::satPendingNCQIO, smDeviceData_s::satPendingNONNCQIO, smDeviceData_s::satSaDeviceData, SM_DBG2, sm_memset(), smDeviceData_s::SMAbortAll, smIntRoot_s::smAllShared, smContext_t::smData, smDeviceData_s::smDevHandle, smInitTimerRequest(), SMLIST_ENQUEUE_AT_TAIL, SMLIST_INIT_ELEMENT, SMLIST_INIT_HDR, smDeviceData_s::SMNumOfFCA, smDeviceData_s::smRoot, and smDeviceData_s::valid.
Referenced by smInitialize().
osGLOBAL void smDeviceDataReInit | ( | smRoot_t * | smRoot, |
smDeviceData_t * | oneDeviceData | ||
) |
Definition at line 314 of file sminit.c.
References smDeviceData_s::agDevHandle, smDeviceData_s::agExpDevHandle, agFALSE, agNULL, smDeviceData_s::directlyAttached, smDeviceData_s::freeSATAFDMATagBitmap, smSatInternalIo_s::id, smDeviceData_s::id, smDeviceData_s::ID_Retries, smDeviceData_s::IDDeviceValid, smDeviceData_s::NumOfFCA, smDeviceData_s::NumOfIDRetries, smDeviceData_s::OSAbortAll, smDeviceData_s::phyID, SAT_DEV_STATE_NORMAL, SAT_MAX_INT_IO, SAT_NCQ_MAX, smDeviceData_s::satDriveState, smDeviceData_s::satIdentifyData, smDeviceData_s::satIntIo, smDeviceData_s::satMaxLBA, smDeviceData_s::satNCQMaxIO, smDeviceData_s::satPendingIO, smDeviceData_s::satPendingNCQIO, smDeviceData_s::satPendingNONNCQIO, smDeviceData_s::satSaDeviceData, SM_DBG1, SM_DBG2, sm_memset(), smDeviceData_s::SMAbortAll, smDeviceData_s::smDevHandle, smDeviceData_s::SMNumOfFCA, smsatFreeIntIoResource(), and smDeviceData_s::valid.
Referenced by smRemoveFromSharedcontext().
osGLOBAL void smGetRequirements | ( | smRoot_t * | smRoot, |
smSwConfig_t * | swConfig, | ||
smMemoryRequirement_t * | memoryRequirement, | ||
bit32 * | usecsPerTick, | ||
bit32 * | maxNumLocks | ||
) |
Definition at line 51 of file sminit.c.
References agNULL, smMem_t::alignment, smMemoryRequirement_t::count, DEFAULT_KEY_BUFFER_SIZE, smSwConfig_t::maxActiveIOs, smSwConfig_t::numDevHandles, smMem_t::numElements, osti_strncmp, osti_strtoul, smMem_t::singleElementLength, SM_ASSERT, SM_CACHED_MEM, SM_DBG2, SM_DBG3, SM_DEVICE_MEM_INDEX, SM_IO_MEM_INDEX, SM_MAX_DEV, SM_MAX_IO, SM_MAX_LOCKS, sm_memset(), SM_RC_SUCCESS, SM_ROOT_MEM_INDEX, SM_USECS_PER_TICK, smMemoryRequirement_t::smMemory, tdsmGetTransportParam(), smMem_t::totalLength, and smMem_t::type.
Referenced by tdsaLoLevelGetResource(), and tiCOMInit().
osGLOBAL bit32 smInitialize | ( | smRoot_t * | smRoot, |
agsaRoot_t * | agRoot, | ||
smMemoryRequirement_t * | memoryAllocated, | ||
smSwConfig_t * | swConfig, | ||
bit32 | usecsPerTick | ||
) |
< Initialize the TDM data part of the interrupt context
< initializes timers
< initializes devices
< initializes IOs
Definition at line 160 of file sminit.c.
References agNULL, smIntContext_s::agRoot, agTRUE, smMem_t::alignment, smMemoryRequirement_t::count, DEFAULT_KEY_BUFFER_SIZE, smIntContext_s::DeviceMem, smIntContext_s::FCA, gsmRoot, smIntContext_s::IOMem, smMem_t::numElements, smMem_t::osHandle, osti_strncmp, osti_strtoul, smMem_t::physAddrLower, smMem_t::physAddrUpper, smMem_t::reserved, smMem_t::singleElementLength, SM_ASSERT, SM_DBG1, SM_DBG2, SM_DBG3, SM_DEVICE_MEM_INDEX, SM_IO_MEM_INDEX, SM_MAX_DEV, sm_memset(), SM_RC_FAILURE, SM_RC_SUCCESS, SM_ROOT_MEM_INDEX, smRootOsData_s::smAllShared, smIntRoot_s::smAllShared, smContext_t::smData, smDeviceDataInit(), smInitTimers(), smIOInit(), smMemoryRequirement_t::smMemory, smRootOsData_s::smRoot, smIntContext_s::smRootOsData, tdsmGetTransportParam(), smMem_t::totalLength, smMem_t::type, smIntContext_s::usecsPerTick, and smMem_t::virtPtr.
Referenced by tiCOMPortInit().
Definition at line 298 of file sminit.c.
References SM_DBG2, smIntRoot_s::smAllShared, smContext_t::smData, and SMLIST_INIT_HDR.
Referenced by smInitialize().
Definition at line 446 of file sminit.c.
References agFALSE, agNULL, smIORequestBody_s::agSATARequestBody, smIORequestBody_s::id, smIORequestBody_s::InUse, smIORequestBody_s::ioCompleted, smIORequestBody_s::ioStarted, smIORequestBody_s::reTries, smIORequestBody_s::SATA, smIORequestBody_s::satIOContext, smSatIOContext_s::satOrgIOContext, SM_DBG3, SM_MAX_IO, sm_memset(), smIntRoot_s::smAllShared, smContext_t::smData, smIORequestBody_s::smDevHandle, smIORequestBody_s::smIORequest, smIORequestBody_s::smIOToBeAbortedRequest, SMLIST_ENQUEUE_AT_TAIL, SMLIST_INIT_ELEMENT, SMLIST_INIT_HDR, and smIORequestBody_s::transport.
Referenced by smInitialize().
FORCEINLINE void smIOReInit | ( | smRoot_t * | smRoot, |
smIORequestBody_t * | smIORequestBody | ||
) |
Definition at line 484 of file sminit.c.
References agFALSE, agNULL, agTRUE, smIORequestBody_s::InUse, smIORequestBody_s::ioCompleted, smIORequestBody_s::ioStarted, smIORequestBody_s::reTries, smIORequestBody_s::SATA, smIORequestBody_s::satIOContext, smSatIOContext_s::satOrgIOContext, SM_DBG3, smIORequestBody_s::smDevHandle, smIORequestBody_s::smIORequest, smIORequestBody_s::smIOToBeAbortedRequest, and smIORequestBody_s::transport.
Referenced by smDequeueIO(), smIDStart(), smIOAbort(), smIOAbortAll(), smIOStart(), smsatAbort(), smsatReadLogExtCB(), smSuperIOStart(), and smTaskManagement().
Definition at line 47 of file sminit.c.
Referenced by ossaSATAEvent(), smaSATAAbortCB(), smInitialize(), smLocalPhyControlCB(), and smSMPCompleted().