CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2015/03/30 14:30:22

Modified files:
        sys/arch/sparc/conf: SUN4C files.sparc 
        sys/arch/sparc/dev: dma.c fga.c lebuffer.c obio.c qec.c 
                            qlw_sbus.c sbus.c sbusvar.h 
        sys/arch/sparc/include: autoconf.h bus.h param.h vmparam.h 
        sys/arch/sparc/sparc: autoconf.c iommu.c machdep.c vm_machdep.c 
Added files:
        sys/arch/sparc/sparc: dvma.c 

Log message:
Add a bus_dma_tag_t for DVMA usage, suitable for use for devices not sitting
behind a sun4m iommu.

Move the existing dvma routines from vm_machdep.c to this new dvma.c; this
allows for a few declarations to be removed from public headers.

Extend the device attachment arguments (struct confargs) to pass a
bus_dma_tag_t. mainbus receives the dvma bus_dma_tag_t, and devices pass the
tag unchanged to their children, except for iommu(4) which replaces it with
its own.

Change the few sun4m-only drivers to pick the bus_dma_tag_t from confargs
rather than assume iommu; this allows qlw(4) to attach and work on sun4c.

ok kettenis@

Reply via email to