2 * linux/include/asm-arm/arch-l7200/memory.h
4 * Copyright (c) 2000 Steve Hill (sjhill@cotw.com)
5 * Copyright (c) 2000 Rob Scott (rscott@mtrob.fdns.net)
8 * 03-13-2000 SJH Created
9 * 04-13-2000 RS Changed bus macros for new addr
10 * 05-03-2000 SJH Removed bus macros and fixed virt_to_phys macro
12 #ifndef __ASM_ARCH_MEMORY_H
13 #define __ASM_ARCH_MEMORY_H
18 #define TASK_SIZE (0xbf000000UL)
19 #define TASK_SIZE_26 (0x04000000UL)
22 * This decides where the kernel will search for a free chunk of vm
23 * space during mmap's.
25 #define TASK_UNMAPPED_BASE (0x40000000)
30 #define PAGE_OFFSET (0xc0000000UL)
33 * Physical DRAM offset on the L7200 SDB.
35 #define PHYS_OFFSET (0xf0000000UL)
38 * The DRAM is contiguous.
40 #define __virt_to_phys__is_a_macro
41 #define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET + PHYS_OFFSET)
42 #define __phys_to_virt__is_a_macro
43 #define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET - PHYS_OFFSET)
45 #define __virt_to_bus__is_a_macro
46 #define __virt_to_bus(x) __virt_to_phys(x)
47 #define __bus_to_virt__is_a_macro
48 #define __bus_to_virt(x) __phys_to_virt(x)