2 * linux/include/asm-arm/arch-tbox/memory.h
4 * Copyright (c) 1996-1999 Russell King.
5 * Copyright (c) 1998-1999 Phil Blundell
7 #ifndef __ASM_ARCH_MEMORY_H
8 #define __ASM_ARCH_MEMORY_H
13 #define TASK_SIZE (0xbf000000UL)
14 #define TASK_SIZE_26 (0x04000000UL)
17 * This decides where the kernel will search for a free chunk of vm
18 * space during mmap's.
20 #define TASK_UNMAPPED_BASE (0x40000000)
25 #define PAGE_OFFSET (0xc0000000UL)
26 #define PHYS_OFFSET (0x80000000UL)
31 #define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET + PHYS_OFFSET)
32 #define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET - PHYS_OFFSET)
33 #define __virt_to_phys__is_a_macro
34 #define __phys_to_virt__is_a_macro
37 * Bus view is the same as physical view
39 #define __virt_to_bus__is_a_macro
40 #define __virt_to_bus(x) __virt_to_phys(x)
41 #define __bus_to_virt__is_a_macro
42 #define __bus_to_virt(x) __phys_to_virt(x)