patch-2.3.16 linux/include/asm-i386/io.h
Next file: linux/include/asm-i386/kmap_types.h
Previous file: linux/include/asm-i386/fixmap.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Tue Aug 31 16:12:10 1999
- Orig file:
v2.3.15/linux/include/asm-i386/io.h
- Orig date:
Thu Aug 26 13:05:41 1999
diff -u --recursive --new-file v2.3.15/linux/include/asm-i386/io.h linux/include/asm-i386/io.h
@@ -27,6 +27,7 @@
/*
* Bit simplified and optimized by Jan Hubicka
+ * Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999.
*/
#ifdef SLOW_IO_BY_JUMPING
@@ -98,6 +99,7 @@
#ifdef __KERNEL__
+#include <linux/config.h>
#include <linux/vmalloc.h>
#include <asm/page.h>
@@ -109,12 +111,20 @@
*/
extern inline unsigned long virt_to_phys(volatile void * address)
{
+#ifdef CONFIG_BIGMEM
+ return __pa(address);
+#else
return __io_phys(address);
+#endif
}
extern inline void * phys_to_virt(unsigned long address)
{
+#ifdef CONFIG_BIGMEM
+ return __va(address);
+#else
return __io_virt(address);
+#endif
}
extern void * __ioremap(unsigned long offset, unsigned long size, unsigned long flags);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)