VxWorks Reference Manual : Libraries

mmuL64862Lib

NAME

mmuL64862Lib - LSI Logic L64862 MBus-to-SBus Interface: I/O DMA library (SPARC)

ROUTINES

mmuL64862DmaInit( ) - initialize the L64862 I/O MMU DMA data structures (SPARC)

DESCRIPTION

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.

INCLUDE FILES

arch/sparc/l64862.h

SEE ALSO

mmuL64862Lib, cacheLib, vmLib


Libraries : Routines

mmuL64862DmaInit( )

NAME

mmuL64862DmaInit( ) - initialize the L64862 I/O MMU DMA data structures (SPARC)

SYNOPSIS

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 */
    )

DESCRIPTION

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);

RETURNS

OK, or ERROR if the request cannot be satisfied.

SEE ALSO

mmuL64862Lib