patch-2.1.101 linux/include/asm-arm/arch-nexuspci/mmu.h
Next file: linux/include/asm-arm/arch-nexuspci/processor.h
Previous file: linux/include/asm-arm/arch-nexuspci/mmap.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Fri May 8 00:42:40 1998
- Orig file:
v2.1.100/linux/include/asm-arm/arch-nexuspci/mmu.h
- Orig date:
Tue Jan 20 16:39:42 1998
diff -u --recursive --new-file v2.1.100/linux/include/asm-arm/arch-nexuspci/mmu.h linux/include/asm-arm/arch-nexuspci/mmu.h
@@ -1,16 +1,26 @@
/*
* linux/include/asm-arm/arch-nexuspci/mmu.h
*
- * Copyright (c) 1997 Philip Blundell.
+ * Copyright (c) 1997, 1998 Philip Blundell.
*
*/
#ifndef __ASM_ARCH_MMU_H
#define __ASM_ARCH_MMU_H
/*
- * On NexusPCI, the dram is contiguous
+ * On NexusPCI, the DRAM is contiguous
*/
#define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET + 0x40000000)
#define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET - 0x40000000)
+#define __virt_to_phys__is_a_macro
+#define __phys_to_virt__is_a_macro
+
+/*
+ * These are exactly the same as the physical memory view.
+ */
+#define __virt_to_bus__is_a_macro
+#define __virt_to_bus(x) __virt_to_phys(x)
+#define __bus_to_virt__is_a_macro
+#define __bus_to_virt(x) __phys_to_virt(x)
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov