API change for bus_dma
Scott Long
scott_long at btc.adaptec.com
Fri Jun 27 13:46:55 PDT 2003
Andrew Gallatin wrote:
> Scott Long writes:
> >
> > As you hinted below, BUS_DMA_NOWAIT does what you want. It will return
> > ENOMEM to the caller if the bounce buffers cannot be pre-allocated
> > during bus_dmamap_load().
>
> OK, thanks. I looks like sparc64 also returns ENOMEM if it runs out of
> sgmap space..
>
> One more question: What's the FreeBSD equivalent of Solaris'
> DDI_DMA_CONSISTENT and DDI_DMA_STREAMING?
>
> Thanks,
>
> Drew
I'm not familiar with Solaris DDI. bus_dmamem_alloc() is guaranteed to
give you contiguous memory that doesn't require bouncing (or ENOMEM if
that's not possible). I can't imagine what DDI_DMA_STREAMING is.
Scott
More information about the freebsd-arch
mailing list