Update of /cvsroot/linux-mips/linux/arch/mips/mm
In directory usw-pr-cvs1:/tmp/cvs-serv1203/arch/mips/mm
Modified Files:
ioremap.c
Log Message:
Added an __ioremap_fixup function to help some 36 bit platforms.
Index: ioremap.c
===================================================================
RCS file: /cvsroot/linux-mips/linux/arch/mips/mm/ioremap.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ioremap.c 9 Mar 2002 01:37:31 -0000 1.5
+++ ioremap.c 9 Mar 2002 01:38:39 -0000 1.6
@@ -94,6 +94,17 @@
}
/*
+ * Allow physical addresses to be fixed up to help 36 bit
+ * peripherals.
+ */
+static phys_t def_ioremap_fixup(phys_t phys_addr, phys_t size)
+{
+ return phys_addr;
+}
+
+phys_t (*__ioremap_fixup)(phys_t phys_addr, phys_t size) = def_ioremap_fixup;
+
+/*
* Generic mapping function (not visible outside):
*/
@@ -115,6 +126,8 @@
unsigned long offset;
phys_t last_addr;
void * addr;
+
+ phys_addr = __ioremap_fixup(phys_addr, size);
/* Don't allow wraparound or zero size */
last_addr = phys_addr + size - 1;
|