ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-tbox / memory.h
1 /*
2  * linux/include/asm-arm/arch-tbox/memory.h
3  *
4  * Copyright (c) 1996-1999 Russell King.
5  * Copyright (c) 1998-1999 Phil Blundell
6  */
7 #ifndef __ASM_ARCH_MEMORY_H
8 #define __ASM_ARCH_MEMORY_H
9
10 /*
11  * Task size: 3GB
12  */
13 #define TASK_SIZE       (0xbf000000UL)
14 #define TASK_SIZE_26    (0x04000000UL)
15
16 /*
17  * This decides where the kernel will search for a free chunk of vm
18  * space during mmap's.
19  */
20 #define TASK_UNMAPPED_BASE (0x40000000)
21
22 /*
23  * Page offset: 3GB
24  */
25 #define PAGE_OFFSET             (0xc0000000UL)
26 #define PHYS_OFFSET             (0x80000000UL)
27
28 /*
29  * DRAM is contiguous
30  */
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
35
36 /*
37  * Bus view is the same as physical view
38  */
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)
43
44 #endif