summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2002-04-05 00:23:11 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-04-05 00:23:11 -0800
commit0637845a3ba816890ecac21153af808d14b57e70 (patch)
treefd585a9cbcb0fac9afea1fddf0fe9c3c55fa7a02 /include
parentdb3c911707b0672061b01c001f0c0686e0638815 (diff)
Make legacy drivers who use "virt_to_bus()" and friends work on x86.
It's up to other architectures to worry about portability for now.
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/io.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-i386/io.h b/include/asm-i386/io.h
index a54484360fa9..44996d06ecc3 100644
--- a/include/asm-i386/io.h
+++ b/include/asm-i386/io.h
@@ -166,11 +166,11 @@ extern void bt_iounmap(void *addr, unsigned long size);
/*
* However PCI ones are not necessarily 1:1 and therefore these interfaces
* are forbidden in portable PCI drivers.
+ *
+ * Allow them on x86 for legacy drivers, though.
*/
-extern unsigned long virt_to_bus_not_defined_use_pci_map(volatile void *addr);
-#define virt_to_bus virt_to_bus_not_defined_use_pci_map
-extern unsigned long bus_to_virt_not_defined_use_pci_map(volatile void *addr);
-#define bus_to_virt bus_to_virt_not_defined_use_pci_map
+#define virt_to_bus virt_to_phys
+#define bus_to_virt phys_to_virt
/*
* readX/writeX() are used to access memory mapped devices. On some