patch-2.2.0-pre6 linux/include/asm-arm/io.h
Next file: linux/include/asm-arm/ioc.h
Previous file: linux/include/asm-arm/init.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Jan 7 15:51:33 1999
- Orig file:
v2.2.0-pre5/linux/include/asm-arm/io.h
- Orig date:
Wed Sep 9 14:51:12 1998
diff -u --recursive --new-file v2.2.0-pre5/linux/include/asm-arm/io.h linux/include/asm-arm/io.h
@@ -31,7 +31,7 @@
* to an address that the kernel can use.
*/
#define virt_to_bus(x) (__virt_to_bus((unsigned long)(x)))
-#define bus_to_virt(x) ((void *)(__bus_to_virt(x)))
+#define bus_to_virt(x) ((void *)(__bus_to_virt((unsigned long)(x))))
/*
* These macros actually build the multi-value IO function prototypes
@@ -172,6 +172,8 @@
#undef ARCH_IO_CONSTANT
#ifdef __KERNEL__
+
+extern void * __ioremap(unsigned long offset, unsigned long size, unsigned long flags);
/*
* String version of IO memory access ops:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov