Re: API change for bus_dma
From: Scott Long (scott_long_at_btc.adaptec.com)
Date: 06/27/03
- Previous message: Andrew Gallatin: "Re: API change for bus_dma"
- In reply to: Andrew Gallatin: "Re: API change for bus_dma"
- Next in thread: Andrew Gallatin: "Re: API change for bus_dma"
- Reply: Andrew Gallatin: "Re: API change for bus_dma"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 27 Jun 2003 14:43:38 -0600 To: Andrew Gallatin <gallatin@cs.duke.edu>
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
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Andrew Gallatin: "Re: API change for bus_dma"
- In reply to: Andrew Gallatin: "Re: API change for bus_dma"
- Next in thread: Andrew Gallatin: "Re: API change for bus_dma"
- Reply: Andrew Gallatin: "Re: API change for bus_dma"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]