FreeBSD kernel pms device code
ttdinit.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 ttdinit.c:

Go to the source code of this file.

Functions

void TDTraceInit (void)
 
osGLOBAL bit32 ttdssInit (tiRoot_t *tiRoot, tiTargetResource_t *targetResource, tiTdSharedMem_t *tdSharedMem)
 
osGLOBAL void ttdssGetOperatingOptionParams (tiRoot_t *tiRoot, ttdssOperatingOption_t *OperatingOption)
 
osGLOBAL void ttdssGetResource (tiRoot_t *tiRoot, tiTargetResource_t *targetResource)
 
osGLOBAL void ttdssGetTargetParams (tiRoot_t *tiRoot)
 
osGLOBAL agBOOLEAN ttdsaXchgInit (tiRoot_t *tiRoot, ttdsaXchgData_t *ttdsaXchgData, tiTargetMem_t *tgtMem, bit32 maxNumXchgs)
 
osGLOBAL void ttdsaXchgLinkInit (tiRoot_t *tiRoot, ttdsaXchg_t *ttdsaXchg)
 
osGLOBAL void ttdsaXchgFreeStruct (tiRoot_t *tiRoot, ttdsaXchg_t *ttdsaXchg)
 
osGLOBAL ttdsaXchg_tttdsaXchgGetStruct (agsaRoot_t *agRoot)
 
osGLOBAL void ttdsaDumpallXchg (tiRoot_t *tiRoot)
 

Detailed Description

RCSfile
ttdinit.c,v

Copyright 2006 PMC-Sierra, Inc.

Author
vempatin
Revision
113679
Date
2012-04-16 14:35:19 -0700 (Mon, 16 Apr 2012)

This file contains initiator IO related functions in TD layer

Definition in file ttdinit.c.

Function Documentation

◆ TDTraceInit()

void TDTraceInit ( void  )

Definition at line 99 of file ttdio.c.

References osti_memset, and TraceData.

Referenced by ttdsaXchgInit().

Here is the caller graph for this function:

◆ ttdsaDumpallXchg()

osGLOBAL void ttdsaDumpallXchg ( tiRoot_t tiRoot)

◆ ttdsaXchgFreeStruct()

◆ ttdsaXchgGetStruct()

◆ ttdsaXchgInit()

osGLOBAL agBOOLEAN ttdsaXchgInit ( tiRoot_t tiRoot,
ttdsaXchgData_t ttdsaXchgData,
tiTargetMem_t tgtMem,
bit32  maxNumXchgs 
)

Definition at line 468 of file ttdinit.c.

References agFALSE, tdIORequestBody_s::agIORequest, tdssSMPRequestBody_s::agIORequest, agNULL, ttdsaXchg_s::agSSPCmndIU, agTRUE, agsaSSPCmdInfoUnit_s::cdb, ttdsaXchg_s::DeviceData, ttdsaXchg_s::id, ttdsaXchg_s::index, ttdsaXchg_s::io_found, tdIORequestBody_s::IOCompletionFunc, ttdsaXchg_s::IORequestBody, tdIORequestBody_s::IOType, ttdsaDmaMemoryArea_t::length, agsaSSPCmdInfoUnit_s::lun, ttdsaXchgData_s::maxNumXchgs, agsaContext_s::osData, ttdsaDmaMemoryArea_t::phyAddrLower, ttdsaDmaMemoryArea_t::phyAddrUpper, tiMem::physAddrLower, tiMem::physAddrUpper, tiTargetScsiCmnd_t::reqCDB, ttdsaXchg_s::resp, ttdsaXchg_s::respLen, ttdsaXchg_s::retries, tiTargetScsiCmnd_t::scsiLun, tiMem::singleElementLength, tdssSMPRequestBody_s::SMPCompletionFunc, ttdsaXchg_s::SMPRequestBody, ttdsaXchg_s::smpresp, ttdsaXchg_s::smprespLen, tdIORequestBody_s::TargetIO, TD_XCHG_CONTEXT_NO_CMD_RCVD, TD_XCHG_CONTEXT_NO_FREED, TD_XCHG_CONTEXT_NO_IO_COMPLETED, TD_XCHG_CONTEXT_NO_SEND_RSP, TD_XCHG_CONTEXT_NO_START_IO, TD_XCHG_CONTEXT_NO_USED, TD_XCHG_SET_STATE, TD_XCHG_STATE_INACTIVE, tiIORequest::tdData, TDLIST_INIT_ELEMENT, TDLIST_INIT_HDR, tiTargetMem::tdMem, TDTraceInit(), TI_DBG5, tdIORequestBody_s::tiIORequest, ttdsaXchg_s::tiTgtScsiCmnd, ttdsaXchg_s::TLR, ttdsaIOCompleted(), ttdsaSMPCompleted(), ttdsaXchgLinkInit(), ttdsaXchg_s::usedEsgl, ttdsaDmaMemoryArea_t::virtAddr, tiMem::virtPtr, ttdsaXchgData_s::xchgBusyList, ttdsaXchgData_s::xchgFreeList, and ttdsaXchg_s::XchgLinks.

Referenced by ttdssInit().

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

◆ ttdsaXchgLinkInit()

◆ ttdssGetOperatingOptionParams()

osGLOBAL void ttdssGetOperatingOptionParams ( tiRoot_t tiRoot,
ttdssOperatingOption_t OperatingOption 
)

◆ ttdssGetResource()

◆ ttdssGetTargetParams()

osGLOBAL void ttdssGetTargetParams ( tiRoot_t tiRoot)

Definition at line 459 of file ttdinit.c.

References TI_DBG6.

Referenced by tiCOMPortInit().

Here is the caller graph for this function:

◆ ttdssInit()