2 * linux/include/asm-arm/arch-adifcc/memory.h
4 * Copyright (c) 2001 MontaVista Software, Inc.
7 #ifndef __ASM_ARCH_MEMORY_H
8 #define __ASM_ARCH_MEMORY_H
14 #define TASK_SIZE (0xbf000000UL)
15 #define TASK_SIZE_26 (0x04000000UL)
18 * This decides where the kernel will search for a free chunk of vm
19 * space during mmap's.
21 #define TASK_UNMAPPED_BASE (0x40000000)
26 #define PAGE_OFFSET (0xc0000000UL)
29 * Physical DRAM offset.
31 #define PHYS_OFFSET (0xC0000000UL)
34 * physical vs virtual ram conversion
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)
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.
48 * These are dummies for now.
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)