Subject: Re: busspaceifying
To: Reinoud Zandijk <imago@kabel065011.kabel.utwente.nl>
From: Ben Harris <bjh21@netbsd.org>
List: tech-kern
Date: 02/14/2001 19:31:42
On Wed, 14 Feb 2001, Reinoud Zandijk wrote:

> +       if (bus_dmamem_alloc(mb, NBPG, 0, 0, &(sc->bus_dmamem_segment), 1,
> +               &(sc->num_bus_dmamem_segments), BUS_DMA_NOWAIT) == 0)
> +                       panic("beep: Cannot allocate buffer memory\n");

You need to pass a bus_dma_tag_t to bus_dmamem_alloc, not a
struct mainbus_attach_args *.  Have a look at bus_dma(9).  You may also
need to implement a bus_dma tag to do the job -- I'm not sure.

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>