VxWorks Reference Manual : Libraries
mmuL64862Lib - LSI Logic L64862 MBus-to-SBus Interface: I/O DMA library (SPARC)
mmuL64862DmaInit( ) - initialize the L64862 I/O MMU DMA data structures (SPARC)
This library contains the architecture-specific routine mmuL64862DmaInit( ), needed to set up the I/O mapping for S-Bus DMA devices using the LSI Logic L64862 architecture.
arch/sparc/l64862.h
mmuL64862DmaInit( ) - initialize the L64862 I/O MMU DMA data structures (SPARC)
STATUS mmuL64862DmaInit ( void * vrtBase, /* First valid DMA virtual address */ void * vrtTop, /* Last valid DMA virtual address */ UINT range /* range covered by I/O Page Table */ )
This routine initializes the I/O MMU in the LSI Logic L64862 MBus to SBus Interface Chip (MS) for S-Bus DMA with the TI TMS390 SuperSPARC. It assumes cacheLib and vmLib have been initialized and that the TI TMS390 Processor MMU is enabled.
It initializes the I/O MMU to map all valid virtual addresses >= vrtBase and <= vrtTop. It is usually called as follows:
(void)mmuL64862DmaInit ((void *) LOCAL_MEM_LOCAL_ADRS, (void *) (LOCAL_MEM_LOCAL_ADRS + LOCAL_MEM_SIZE - 1), IOMMU_IOCR_RANGE);
OK, or ERROR if the request cannot be satisfied.