patch-2.4.21 linux-2.4.21/include/asm-s390x/io.h

Next file: linux-2.4.21/include/asm-s390x/page.h
Previous file: linux-2.4.21/include/asm-s390x/ide.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/asm-s390x/io.h linux-2.4.21/include/asm-s390x/io.h
@@ -40,6 +40,11 @@
         return __io_virt(address);
 }
 
+/*
+ * Change "struct page" to physical address.
+ */
+#define page_to_phys(page)	((page - mem_map) << PAGE_SHIFT)
+
 extern void * __ioremap(unsigned long offset, unsigned long size, unsigned long flags);
 
 extern inline void * ioremap (unsigned long offset, unsigned long size)

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