From owner-freebsd-arch@FreeBSD.ORG Fri Jun 27 13:46:54 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D424537B401 for ; Fri, 27 Jun 2003 13:46:54 -0700 (PDT) Received: from magic.adaptec.com (magic-mail.adaptec.com [208.236.45.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5474543FD7 for ; Fri, 27 Jun 2003 13:46:54 -0700 (PDT) (envelope-from scott_long@btc.adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.11.6/8.11.6) with ESMTP id h5RKk3826500; Fri, 27 Jun 2003 13:46:03 -0700 Received: from btc.adaptec.com (hollin.btc.adaptec.com [10.100.253.56]) by redfish.adaptec.com (8.8.8p2+Sun/8.8.8) with ESMTP id NAA18343; Fri, 27 Jun 2003 13:46:53 -0700 (PDT) Message-ID: <3EFCAC7A.6060305@btc.adaptec.com> Date: Fri, 27 Jun 2003 14:43:38 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Gallatin 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> In-Reply-To: <16124.43999.333761.397624@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-arch@freebsd.org Subject: Re: API change for bus_dma X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 20:46:55 -0000 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