2 * linux/include/asm-arm/arch-nexuspci/memory.h
4 * Copyright (c) 1997, 1998, 2000 FutureTV Labs Ltd.
5 * Copyright (c) 1999 Russell King
8 #ifndef __ASM_ARCH_MMU_H
9 #define __ASM_ARCH_MMU_H
14 #define TASK_SIZE (0xbf000000UL)
15 #define TASK_SIZE_26 (0x04000000UL)
18 * This decides where the kernel will search for a free chunk of vm
19 * space during mmap's.
21 #define TASK_UNMAPPED_BASE (0x40000000)
26 #define PAGE_OFFSET (0xc0000000UL)
27 #define PHYS_OFFSET (0x40000000UL)
28 #define BUS_OFFSET (0xe0000000UL)
33 #define __virt_to_phys(vpage) ((unsigned long)(vpage) - PAGE_OFFSET + PHYS_OFFSET)
34 #define __phys_to_virt(ppage) ((unsigned long)(ppage) + PAGE_OFFSET - PHYS_OFFSET)
35 #define __virt_to_phys__is_a_macro
36 #define __phys_to_virt__is_a_macro
39 * On the PCI bus the DRAM appears at address 0xe0000000
41 #define __virt_to_bus__is_a_macro
42 #define __virt_to_bus(x) ((unsigned long)(x) - PAGE_OFFSET + BUS_OFFSET)
43 #define __bus_to_virt__is_a_macro
44 #define __bus_to_virt(x) ((unsigned long)(x) + PAGE_OFFSET - BUS_OFFSET)