From 55d0ea063b25d8b25fea5135f59de22437ecd4ea Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 26 Dec 2010 15:41:01 +0000 Subject: 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. --- share/man/man9/bus_dma.9 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'share/man/man9') 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: -- cgit v1.2.3