aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavem <davem>2001-12-21 01:23:21 +0000
committerdavem <davem>2001-12-21 01:23:21 +0000
commit27ebc37c8a00ae54902205d067af9ee026e989ee (patch)
treeb64bbd0d6b8b4823520851582248642db2f44644
parentcece48c5f8ccb9f4dbc22ac62dc9e3f6a77e5c2b (diff)
downloadnetdev-vger-cvs-27ebc37c8a00ae54902205d067af9ee026e989ee.tar.gz
Kill virt_to_bus/bus_to_virt.
Define page_to_phys.
-rw-r--r--include/asm-sparc/io.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/asm-sparc/io.h b/include/asm-sparc/io.h
index 5e7e0d5c6..bf05cd868 100644
--- a/include/asm-sparc/io.h
+++ b/include/asm-sparc/io.h
@@ -1,5 +1,5 @@
/*
- * $Id: io.h,v 1.29 2001-11-10 09:28:34 davem Exp $
+ * $Id: io.h,v 1.30 2001-12-21 01:23:21 davem Exp $
*/
#ifndef __SPARC_IO_H
#define __SPARC_IO_H
@@ -11,8 +11,7 @@
#include <asm/page.h> /* IO address mapping routines need this */
#include <asm/system.h>
-#define virt_to_bus virt_to_phys
-#define bus_to_virt phys_to_virt
+#define page_to_phys(page) ((page - mem_map) << PAGE_SHIFT)
static __inline__ u32 flip_dword (u32 d)
{