Import 2.3.25pre1
[davej-history.git] / include / asm-arm / arch-sa1100 / memory.h
blob884157c86405d7e4348005135d2c5e5b27804f1d
1 /*
2 * linux/include/asm-arm/arch-sa1100/memory.h
4 * Copyright (c) 1999 Nicolas Pitre <nico@visuaide.com>
5 */
7 #ifndef __ASM_ARCH_MEMORY_H
8 #define __ASM_ARCH_MEMORY_H
12 * Task size: 3GB
14 #define TASK_SIZE (0xc0000000UL)
17 * Page offset: 3GB
19 #define PAGE_OFFSET (0xc0000000UL)
20 #define PHYS_OFFSET (0x00000000UL)
22 #define __virt_to_phys__is_a_macro
23 #define __phys_to_virt__is_a_macro
26 * The following gives a maximum memory size of 128MB (32MB in each bank).
28 * Does this still need to be optimised for one bank machines?
30 #define __virt_to_phys(x) (((x) & 0xe0ffffff) | ((x) & 0x06000000) << 2)
31 #define __phys_to_virt(x) (((x) & 0xe7ffffff) | ((x) & 0x30000000) >> 2)
34 * Virtual view <-> DMA view memory address translations
35 * virt_to_bus: Used to translate the virtual address to an
36 * address suitable to be passed to set_dma_addr
37 * bus_to_virt: Used to convert an address for DMA operations
38 * to an address that the kernel can use.
40 * On the SA1100, bus addresses are equivalent to physical addresses.
42 #define __virt_to_bus__is_a_macro
43 #define __bus_to_virt__is_a_macro
44 #define __virt_to_bus(x) __virt_to_phys(x)
45 #define __bus_to_virt(x) __phys_to_virt(x)
47 #endif