FreeBSD kernel pms device code
|
Go to the source code of this file.
Functions | |
void | agtiapi_DelayMSec (U32) |
void | agtiapi_DelaySec (U32) |
void | agtiapi_DisplayRsc (ag_card_info_t *) |
agBOOLEAN | agtiapi_InitResource (ag_card_info_t *) |
agBOOLEAN | agtiapi_typhAlloc (ag_card_info_t *) |
int | agtiapi_ScopeDMARes (ag_card_info_t *) |
void | agtiapi_ReleasePCIMem (ag_card_info_t *) |
STATIC agBOOLEAN | agtiapi_MemAlloc (ag_card_info_t *thisCardInst, void **VirtAlloc, vm_paddr_t *pDmaAddr, void **VirtAddr, U32 *pPhysAddrUp, U32 *pPhysAddrLow, U32 MemSize, U32 Type, U32 Align) |
void | agtiapi_MemFree (ag_card_info_t *) |
U32 | agtiapi_PCIMemSize (device_t, U32, U32) |
void | agtiapi_Probe (void) |
int | agtiapi_ProbeCard (device_t, ag_card_info_t *, int) |
void | agtiapi_Setup (S08 *, S32 *) |
void agtiapi_DelayMSec | ( | U32 | MiliSeconds | ) |
Definition at line 44 of file lxutil.c.
Referenced by agtiapi_CheckCB(), agtiapi_DiscoverTgt(), and agtiapi_InitCardHW().
void agtiapi_DelaySec | ( | U32 | ) |
void agtiapi_DisplayRsc | ( | ag_card_info_t * | ) |
agBOOLEAN agtiapi_InitResource | ( | ag_card_info_t * | thisCardInst | ) |
Definition at line 131 of file lxutil.c.
References agNULL, AGTIAPI_64BIT_ALIGN, AGTIAPI_FAIL, AGTIAPI_INITIATOR, agtiapi_MemAlloc(), AGTIAPI_PRINTK, AGTIAPI_SUCCESS, agtiapi_typhAlloc(), tiMem::alignment, BIT, _ag_card_info::cacheIndex, tiLoLevelMem::count, tiInitiatorMem::count, _ag_card_info::dmaIndex, _ag_dma_addr::dmaPhysAddr, _ag_dma_addr::dmaVirtAddr, agtiapi_softc::flags, tiInitiatorResource::initiatorMem, tiInitiatorResource::initiatorOption, tiLoLevelResource::loLevelMem, tiLoLevelResource::loLevelOption, tiLoLevelMem::mem, _ag_dma_addr::memSize, NULL, _ag_card_info::pCard, tiLoLevelOption::pciFunctionNumber, _ag_card_info::pciMemBase, _ag_card_info::pciMemSize, _ag_card_info::pciMemVirtAddr, _ag_card_info::pPCIDev, tiInitiatorMem::tdCachedMem, tiTdSharedMem::tdSharedCachedMem1, TI_CACHED_DMA_MEM, TI_CACHED_MEM, TI_DMA_MEM, TI_DMA_MEM_CHIP, _ag_card_info::tiCachedMem, _ag_card_info::tiDmaMem, _ag_resource_info::tiInitiatorResource, _ag_resource_info::tiLoLevelResource, _ag_card_info::tiRscInfo, _ag_resource_info::tiSharedMem, tiMem::totalLength, _ag_dma_addr::type, tiMem::type, agtiapi_softc::typh_busaddr, agtiapi_softc::typhn, USEC_PER_TICK, tiLoLevelOption::usecsPerTick, tiInitiatorOption::usecsPerTick, and tiMem::virtPtr.
Referenced by agtiapi_attach().
STATIC agBOOLEAN agtiapi_MemAlloc | ( | ag_card_info_t * | thisCardInst, |
void ** | VirtAlloc, | ||
vm_paddr_t * | pDmaAddr, | ||
void ** | VirtAddr, | ||
U32 * | pPhysAddrUp, | ||
U32 * | pPhysAddrLow, | ||
U32 | MemSize, | ||
U32 | Type, | ||
U32 | Align | ||
) |
Definition at line 623 of file lxutil.c.
References AGTIAPI_FAIL, AGTIAPI_PRINTK, AGTIAPI_SUCCESS, BIT, HIGH_32_BITS, LOW_32_BITS, _ag_card_info::pCard, TI_CACHED_MEM, agtiapi_softc::typh_busaddr, agtiapi_softc::typh_mem, agtiapi_softc::typhIdx, and agtiapi_softc::tyPhsIx.
Referenced by agtiapi_InitResource().
void agtiapi_MemFree | ( | ag_card_info_t * | pCardInfo | ) |
Definition at line 686 of file lxutil.c.
References AGTIAPI_PRINTK, _ag_card_info::cacheIndex, NULL, _ag_card_info::pCard, agtiapi_softc::pCardInfo, _ag_card_info::tiCachedMem, agtiapi_softc::typh_busaddr, agtiapi_softc::typh_dmat, agtiapi_softc::typh_mapp, and agtiapi_softc::typh_mem.
Referenced by agtiapi_ReleaseHBA().
void agtiapi_Probe | ( | void | ) |
int agtiapi_ProbeCard | ( | device_t | dev, |
ag_card_info_t * | thisCardInst, | ||
int | thisCard | ||
) |
Definition at line 755 of file lxutil.c.
References ag_card_names, ag_card_type, agCardInfoList, AGTIAPI_PRINTK, _ag_card_info::cardID, _ag_card_info::cardIdIndex, _ag_card_id::cardNameIndex, _ag_card_info::cardNameIndex, COUNT, and _ag_card_info::pPCIDev.
Referenced by agtiapi_probe().
void agtiapi_ReleasePCIMem | ( | ag_card_info_t * | pCardInfo | ) |
Definition at line 587 of file lxutil.c.
References NULL, and _ag_card_info::pPCIDev.
Referenced by agtiapi_ReleaseHBA().
int agtiapi_ScopeDMARes | ( | ag_card_info_t * | thisCardInst | ) |
Definition at line 491 of file lxutil.c.
References AGTIAPI_64BIT_ALIGN, AGTIAPI_PRINTK, tiMem::alignment, BIT, _ag_card_info::cacheIndex, tiLoLevelMem::count, tiLoLevelResource::loLevelMem, tiLoLevelMem::mem, _ag_card_info::pCard, tiTdSharedMem::tdSharedCachedMem1, TI_CACHED_DMA_MEM, TI_CACHED_MEM, TI_DMA_MEM, _ag_card_info::tiCachedMem, _ag_resource_info::tiLoLevelResource, _ag_card_info::tiRscInfo, _ag_resource_info::tiSharedMem, tiMem::totalLength, tiMem::type, and agtiapi_softc::typhn.
Referenced by agtiapi_attach().
agBOOLEAN agtiapi_typhAlloc | ( | ag_card_info_t * | thisCardInst | ) |
Definition at line 61 of file lxutil.c.
References AGTIAPI_FAIL, agtiapi_MemoryCB(), AGTIAPI_SUCCESS, agtiapi_softc::my_dev, NULL, _ag_card_info::pCard, agtiapi_softc::typh_busaddr, agtiapi_softc::typh_dmat, agtiapi_softc::typh_mapp, agtiapi_softc::typh_mem, agtiapi_softc::typhIdx, agtiapi_softc::typhn, and agtiapi_softc::tyPhsIx.
Referenced by agtiapi_InitResource().