patch-1.3.10 linux/include/asm-alpha/lca.h

Next file: linux/include/asm-alpha/termios.h
Previous file: linux/include/asm-alpha/a.out.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.9/linux/include/asm-alpha/lca.h linux/include/asm-alpha/lca.h
@@ -304,8 +304,15 @@
 #define inb_p inb
 #define outb_p outb
 
-#define readl(addr)	__readl(addr)
-#define writel(b,addr)	__writel(b,addr)
+extern inline unsigned long readl(unsigned long addr)
+{
+	return __readl(addr);
+}
+
+extern inline void writel(unsigned int b, unsigned long addr)
+{
+	__writel(b, addr);
+}
 
 #undef vuip
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this