ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-cl7500 / memory.h
1 /*
2  * linux/include/asm-arm/arch-cl7500/memory.h
3  *
4  * Copyright (c) 1996,1997,1998 Russell King.
5  *
6  * Changelog:
7  *  20-Oct-1996 RMK     Created
8  *  31-Dec-1997 RMK     Fixed definitions to reduce warnings
9  *  11-Jan-1998 RMK     Uninlined to reduce hits on cache
10  *  08-Feb-1998 RMK     Added __virt_to_bus and __bus_to_virt
11  *  21-Mar-1999 RMK     Renamed to memory.h
12  *              RMK     Added TASK_SIZE and PAGE_OFFSET
13  */
14 #ifndef __ASM_ARCH_MMU_H
15 #define __ASM_ARCH_MMU_H
16
17 /*
18  * Task size: 3GB
19  */
20 #define TASK_SIZE       (0xbf000000UL)
21 #define TASK_SIZE_26    (0x04000000UL)
22
23 /*
24  * This decides where the kernel will search for a free chunk of vm
25  * space during mmap's.
26  */
27 #define TASK_UNMAPPED_BASE (0x40000000)
28
29 /*
30  * Page offset: 3GB
31  */
32 #define PAGE_OFFSET     (0xc0000000UL)
33 #define PHYS_OFFSET     (0x10000000UL)
34
35 #define __virt_to_phys__is_a_macro
36 #define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET + PHYS_OFFSET)
37 #define __phys_to_virt__is_a_macro
38 #define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET - PHYS_OFFSET)
39
40 /*
41  * These are exactly the same on the RiscPC as the
42  * physical memory view.
43  */
44 #define __virt_to_bus__is_a_macro
45 #define __virt_to_bus(x) __virt_to_phys(x)
46 #define __bus_to_virt__is_a_macro
47 #define __bus_to_virt(x) __phys_to_virt(x)
48
49 #endif