ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-adifcc / memory.h
1 /*
2  * linux/include/asm-arm/arch-adifcc/memory.h
3  *
4  * Copyright (c) 2001 MontaVista Software, Inc.
5  */
6
7 #ifndef __ASM_ARCH_MEMORY_H
8 #define __ASM_ARCH_MEMORY_H
9
10
11 /*
12  * Task size: 3GB
13  */
14 #define TASK_SIZE       (0xbf000000UL)
15 #define TASK_SIZE_26    (0x04000000UL)
16
17 /*
18  * This decides where the kernel will search for a free chunk of vm
19  * space during mmap's.
20  */
21 #define TASK_UNMAPPED_BASE (0x40000000)
22
23 /*
24  * Page offset: 3GB
25  */
26 #define PAGE_OFFSET     (0xc0000000UL)
27
28 /*
29  * Physical DRAM offset.
30  */
31 #define PHYS_OFFSET     (0xC0000000UL)
32
33 /*
34  * physical vs virtual ram conversion
35  */
36 #define __virt_to_phys__is_a_macro
37 #define __phys_to_virt__is_a_macro
38 #define __virt_to_phys(x)       ((x) - PAGE_OFFSET + PHYS_OFFSET)
39 #define __phys_to_virt(x)       ((x) - PHYS_OFFSET + PAGE_OFFSET)
40
41 /*
42  * Virtual view <-> DMA view memory address translations
43  * virt_to_bus: Used to translate the virtual address to an
44  *              address suitable to be passed to set_dma_addr
45  * bus_to_virt: Used to convert an address for DMA operations
46  *              to an address that the kernel can use.
47  *
48  * These are dummies for now.
49  */
50 #define __virt_to_bus__is_a_macro
51 #define __bus_to_virt__is_a_macro
52 #define __virt_to_bus(x)         __virt_to_phys(x)
53 #define __bus_to_virt(x)         __phys_to_virt(x)
54
55 #endif