patch-2.2.12 linux/include/linux/isdn_compat.h

Next file: linux/include/linux/isdnif.h
Previous file: linux/include/linux/isdn.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.11/linux/include/linux/isdn_compat.h linux/include/linux/isdn_compat.h
@@ -16,6 +16,7 @@
 #include <linux/mm.h>
 
 #define ioremap vremap
+#define ioremap_nocache vremap
 #define iounmap vfree
 
 static inline unsigned long copy_from_user(void *to, const void *from, unsigned long n)
@@ -88,6 +89,11 @@
 
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,1,91)
 #define COMPAT_HAS_NEW_PCI
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
+#define get_pcibase(ps, nr) ps->base_address[nr]
+#else
+#define get_pcibase(ps, nr) ps->resource[nr].start
+#endif
 #endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,127)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)