Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2002 17:33:37 -0800
From:      "mike varga" <mike.varga@cavium.com>
To:        "Steve Kargl" <sgk@troutmask.apl.washington.edu>, <freebsd-arch@freebsd.org>
Subject:   Re: bus_dma_load_uio() function
Message-ID:  <000701c1b42e$7835eda0$b210a8c0@netscreen5>
References:  <00d401c1b428$e4929df0$b210a8c0@netscreen5> <20020212172445.A85182@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <sgk@troutmask.apl.washington.edu>
To: "mike varga" <mike.varga@cavium.com>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000701c1b42e$7835eda0$b210a8c0>