Date: Tue, 12 Feb 2002 11:02:44 -0800 From: "mike varga" <mike.varga@cavium.com> To: <freebsd-arch@freebsd.org> Subject: dmamap Message-ID: <009401c1b3f9$1ffe6980$b210a8c0@netscreen5>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_008F_01C1B3B4.CC16DC60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am modifying a driver to=20 map user addresses into kernel space to be used by DMA. Is there a facility like what exists within Linux that will allow me to map and wire user pages? Linux: alloc_kiovec(), map_user_kiobuf(), kmap(); I did find these, are they appropriate? FreeBSD: vm_map_create(), vm_map_user_pagable(); Also, is there an example or documentation that exists for what I am trying. ------=_NextPart_000_008F_01C1B3B4.CC16DC60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>I am modifying a driver to = </FONT></DIV> <DIV><FONT face=3DArial size=3D2>map user addresses into kernel = space</FONT></DIV> <DIV><FONT face=3DArial size=3D2>to be used </FONT><FONT face=3DArial = size=3D2>by=20 DMA.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Is there a facility like</FONT></DIV> <DIV><FONT face=3DArial size=3D2>what exists within Linux</FONT></DIV> <DIV><FONT face=3DArial size=3D2>that will allow me to map</FONT></DIV> <DIV><FONT face=3DArial size=3D2>and wire user pages?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Linux: alloc_kiovec(), = map_user_kiobuf(),=20 kmap();</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I did find these, are they=20 appropriate?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>FreeBSD: vm_map_create(),=20 vm_map_user_pagable();</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Also, is there an example = or</FONT></DIV> <DIV><FONT face=3DArial size=3D2>documentation that exists = for</FONT></DIV> <DIV><FONT face=3DArial size=3D2>what I am trying.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_008F_01C1B3B4.CC16DC60-- 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?009401c1b3f9$1ffe6980$b210a8c0>