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/dev/usb/udl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c index 36651bc19b9..5995bfba6f3 100644 --- a/sys/dev/usb/udl.c +++ b/sys/dev/usb/udl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udl.c,v 1.64 2010/10/16 07:06:20 maja Exp $ */ +/* $OpenBSD: udl.c,v 1.65 2010/12/26 15:41:00 miod Exp $ */ /* * Copyright (c) 2009 Marcus Glocker @@ -593,11 +593,7 @@ udl_mmap(void *v, off_t off, int prot) udl_fbmem_free(sc); return (-1); } -#if defined(__powerpc__) || defined(__sparc64__) return (pa); -#else - return (atop(pa)); -#endif } int -- cgit v1.2.3