From owner-freebsd-arch Tue Feb 12 17:54:16 2002 Delivered-To: freebsd-arch@freebsd.org Received: from philotas.hosting.pacbell.net (philotas.hosting.pacbell.net [216.100.99.24]) by hub.freebsd.org (Postfix) with ESMTP id 910D737B419 for ; Tue, 12 Feb 2002 17:54:07 -0800 (PST) Received: from misha1 (adsl-64-172-38-74.dsl.snfc21.pacbell.net [64.172.38.74]) by philotas.hosting.pacbell.net id UAA02654; Tue, 12 Feb 2002 20:54:06 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <000701c1b42e$7835eda0$b210a8c0@netscreen5> Reply-To: "mike varga" From: "mike varga" To: "Steve Kargl" , References: <00d401c1b428$e4929df0$b210a8c0@netscreen5> <20020212172445.A85182@troutmask.apl.washington.edu> Subject: Re: bus_dma_load_uio() function Date: Tue, 12 Feb 2002 17:33:37 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes I did, but thank you for replying. My question essentially boils down to,"How do you map and lock user pages (buffers) for use in a driver that wants to do a DMA directly from/to them. It removes unnecessary copies. ----- Original Message ----- From: "Steve Kargl" To: "mike varga" Sent: Tuesday, February 12, 2002 5:24 PM Subject: Re: bus_dma_load_uio() function > On Tue, Feb 12, 2002 at 04:51:25PM -0800, mike varga wrote: > > In FreeBSD does there exist a similar function > > or a combination of functions to do > > the same thing as NetBSD's > > bus_dmamap_load_uio()? > > > > This function is a variation of > > the bus_dmamap_load(), which maps > > buffers pointed to by uio for > > DMA transfers. The value of > > uio->uio_segflg determins if the > > buffer is in user or kernel space. > > > > I assume you didn't try the obvious. > > find /usr/include -type file | xargs grep _dma | more > > Gives among others things /usr/include/machine/bus_at386.h > to look over. > > -- > Steve > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message