summaryrefslogtreecommitdiff
path: root/share/man/man9/bus_dma.9
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-12-26 15:41:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-12-26 15:41:01 +0000
commit55d0ea063b25d8b25fea5135f59de22437ecd4ea (patch)
tree42c739678ad68f903e06cc29eb0db1df3bf6298e /share/man/man9/bus_dma.9
parent47f20d782a94ebc11fb4c7b43294559377be4989 (diff)
Kill pmap_phys_address(), and force every driver's mmap() routine to return
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
Diffstat (limited to 'share/man/man9/bus_dma.9')
-rw-r--r--share/man/man9/bus_dma.99
1 files changed, 5 insertions, 4 deletions
diff --git a/share/man/man9/bus_dma.9 b/share/man/man9/bus_dma.9
index 13b71fa6420..f5ac8a9be8f 100644
--- a/share/man/man9/bus_dma.9
+++ b/share/man/man9/bus_dma.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bus_dma.9,v 1.28 2009/04/20 00:46:47 oga Exp $
+.\" $OpenBSD: bus_dma.9,v 1.29 2010/12/26 15:40:57 miod Exp $
.\" $NetBSD: bus_dma.9,v 1.14 2000/06/14 06:49:19 cgd Exp $
.\"
.\" Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 20 2009 $
+.Dd $Mdocdate: December 26 2010 $
.Dt BUS_DMA 9
.Os
.Sh NAME
@@ -781,8 +781,9 @@ of DMA-safe memory.
is to be called by a device driver's
.Fn (*d_mmap)
entry point, which is called by the device pager for each page to be mapped.
-This function returns an opaque value to be interpreted by the device
-pager, or -1 on failure.
+This function returns a physical address to be passed to
+.Fn pmap_enter
+by the device pager, or -1 on failure.
.Fn bus_dmamem_mmap
arguments are
as follows: