patch-2.4.21 linux-2.4.21/include/asm-s390/io.h
Next file: linux-2.4.21/include/asm-s390/page.h
Previous file: linux-2.4.21/include/asm-s390/ide.h
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
2003-06-13 07:51:38.000000000 -0700
-  Orig file: 
linux-2.4.20/include/asm-s390/io.h
-  Orig date: 
2001-07-25 14:12:02.000000000 -0700
diff -urN linux-2.4.20/include/asm-s390/io.h linux-2.4.21/include/asm-s390/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)