Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | raw e-mail

[-- Attachment #1 --]
I am modifying a driver to 
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.







[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am modifying a driver to </FONT></DIV>
<DIV><FONT face=Arial size=2>map user addresses into kernel space</FONT></DIV>
<DIV><FONT face=Arial size=2>to be used </FONT><FONT face=Arial size=2>by 
DMA.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Is there a facility like</FONT></DIV>
<DIV><FONT face=Arial size=2>what exists within Linux</FONT></DIV>
<DIV><FONT face=Arial size=2>that will allow me to map</FONT></DIV>
<DIV><FONT face=Arial size=2>and wire user pages?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Linux: alloc_kiovec(), map_user_kiobuf(), 
kmap();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I did find these, are they 
appropriate?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>FreeBSD: vm_map_create(), 
vm_map_user_pagable();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Also, is there an example or</FONT></DIV>
<DIV><FONT face=Arial size=2>documentation that exists for</FONT></DIV>
<DIV><FONT face=Arial size=2>what I am trying.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009401c1b3f9$1ffe6980$b210a8c0>