patch-2.4.20 linux-2.4.20/include/asm-m68k/io.h

Next file: linux-2.4.20/include/asm-m68k/irq.h
Previous file: linux-2.4.20/include/asm-m68k/apollodma.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/include/asm-m68k/io.h linux-2.4.20/include/asm-m68k/io.h
@@ -240,7 +240,7 @@
 #define readb   isa_readb
 #define readw   isa_readw
 #define writeb  isa_writeb
-#define writew  isa_writeb
+#define writew  isa_writew
 #endif /* CONFIG_ISA */
 
 #if defined(CONFIG_PCI)
@@ -286,6 +286,11 @@
 #define IOMAP_NOCACHE_NONSER		2
 #define IOMAP_WRITETHROUGH		3
 
+/*
+ * Change "struct page" to physical address.
+ */
+#define page_to_phys(page)	((page - mem_map) << PAGE_SHIFT)
+
 extern void iounmap(void *addr);
 
 extern void *__ioremap(unsigned long physaddr, unsigned long size,

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