patch-2.4.10 linux/include/asm-alpha/core_polaris.h

Next file: linux/include/asm-alpha/core_t2.h
Previous file: linux/include/asm-alpha/core_mcpcia.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/include/asm-alpha/core_polaris.h linux/include/asm-alpha/core_polaris.h
@@ -153,11 +153,18 @@
 	*(vulp)addr = b;
 }
 
-__EXTERN_INLINE unsigned long polaris_ioremap(unsigned long addr)
+__EXTERN_INLINE unsigned long polaris_ioremap(unsigned long addr,
+					      unsigned long size
+					      __attribute__((unused)))
 {
 	return addr + POLARIS_DENSE_MEM_BASE;
 }
 
+__EXTERN_INLINE void polaris_iounmap(unsigned long addr)
+{
+	return;
+}
+
 __EXTERN_INLINE int polaris_is_ioaddr(unsigned long addr)
 {
 	return addr >= POLARIS_SPARSE_MEM_BASE;
@@ -184,7 +191,8 @@
 #define __writew(x,a)		polaris_writew((x),(unsigned long)(a))
 #define __writel(x,a)		polaris_writel((x),(unsigned long)(a))
 #define __writeq(x,a)		polaris_writeq((x),(unsigned long)(a))
-#define __ioremap(a)		polaris_ioremap((unsigned long)(a))
+#define __ioremap(a,s)		polaris_ioremap((unsigned long)(a),(s))
+#define __iounmap(a)		polaris_iounmap((unsigned long)(a))
 #define __is_ioaddr(a)		polaris_is_ioaddr((unsigned long)(a))
 
 #define inb(p)			__inb(p)

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