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

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

diff -u --recursive --new-file v2.4.9/linux/include/asm-alpha/core_wildfire.h linux/include/asm-alpha/core_wildfire.h
@@ -326,11 +326,18 @@
  * Memory functions.  all accesses are done through linear space.
  */
 
-__EXTERN_INLINE unsigned long wildfire_ioremap(unsigned long addr)
+__EXTERN_INLINE unsigned long wildfire_ioremap(unsigned long addr, 
+					       unsigned long size
+					       __attribute__((unused)))
 {
 	return addr + WILDFIRE_MEM_BIAS;
 }
 
+__EXTERN_INLINE void wildfire_iounmap(unsigned long addr)
+{
+	return;
+}
+
 __EXTERN_INLINE int wildfire_is_ioaddr(unsigned long addr)
 {
 	return addr >= WILDFIRE_BASE;
@@ -397,7 +404,8 @@
 #define __writew(x,a)		wildfire_writew((x),(unsigned long)(a))
 #define __writel(x,a)		wildfire_writel((x),(unsigned long)(a))
 #define __writeq(x,a)		wildfire_writeq((x),(unsigned long)(a))
-#define __ioremap(a)		wildfire_ioremap((unsigned long)(a))
+#define __ioremap(a,s)		wildfire_ioremap((unsigned long)(a),(s))
+#define __iounmap(a)		wildfire_iounmap((unsigned long)(a))
 #define __is_ioaddr(a)		wildfire_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)