Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2003 14:43:38 -0600
From:      Scott Long <scott_long@btc.adaptec.com>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: API change for bus_dma
Message-ID:  <3EFCAC7A.6060305@btc.adaptec.com>
In-Reply-To: <16124.43999.333761.397624@grasshopper.cs.duke.edu>
References:  <3EF3C12F.9060303@btc.adaptec.com> <16124.39930.142492.356163@grasshopper.cs.duke.edu> <3EFC9F2D.6020908@btc.adaptec.com> <16124.43999.333761.397624@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EFCAC7A.6060305>