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. --- sys/arch/octeon/octeon/bus_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/octeon') diff --git a/sys/arch/octeon/octeon/bus_dma.c b/sys/arch/octeon/octeon/bus_dma.c index 76201128876..fa3f5a95748 100644 --- a/sys/arch/octeon/octeon/bus_dma.c +++ b/sys/arch/octeon/octeon/bus_dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_dma.c,v 1.1 2010/09/20 06:32:30 syuu Exp $ */ +/* $OpenBSD: bus_dma.c,v 1.2 2010/12/26 15:41:00 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -529,7 +529,7 @@ _dmamem_mmap(bus_dma_tag_t t, bus_dma_segment_t *segs, int nsegs, off_t off, continue; } - return (atop((*t->_device_to_pa)(segs[i].ds_addr) + off)); + return ((*t->_device_to_pa)(segs[i].ds_addr) + off); } /* Page not found. */ -- cgit v1.2.3