ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-ebsa110 / memory.h
1 /*
2  *  linux/include/asm-arm/arch-ebsa110/memory.h
3  *
4  *  Copyright (C) 1996-1999 Russell King.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  *  Changelog:
11  *   20-Oct-1996 RMK    Created
12  *   31-Dec-1997 RMK    Fixed definitions to reduce warnings
13  *   21-Mar-1999 RMK    Renamed to memory.h
14  *               RMK    Moved TASK_SIZE and PAGE_OFFSET here
15  */
16 #ifndef __ASM_ARCH_MEMORY_H
17 #define __ASM_ARCH_MEMORY_H
18
19 /*
20  * Task size: 3GB
21  */
22 #define TASK_SIZE       (0xbf000000UL)
23 #define TASK_SIZE_26    (0x04000000UL)
24
25 /*
26  * This decides where the kernel will search for a free chunk of vm
27  * space during mmap's.
28  */
29 #define TASK_UNMAPPED_BASE (0x40000000)
30
31 /*
32  * Page offset: 3GB
33  */
34 #define PAGE_OFFSET     (0xc0000000UL)
35 #define PHYS_OFFSET     (0x00000000UL)
36
37 #define __virt_to_phys__is_a_macro
38 #define __virt_to_phys(vpage)   ((vpage) - PAGE_OFFSET)
39 #define __phys_to_virt__is_a_macro
40 #define __phys_to_virt(ppage)   ((ppage) + PAGE_OFFSET)
41
42 /*
43  * We keep this 1:1 so that we don't interfere
44  * with the PCMCIA memory regions
45  */
46 #define __virt_to_bus__is_a_macro
47 #define __virt_to_bus(x)        (x)
48 #define __bus_to_virt__is_a_macro
49 #define __bus_to_virt(x)        (x)
50
51 #endif