1/*
2 * linux/include/asm-arm/arch-l7200/memory.h
3 *
4 * Copyright (c) 2000 Steve Hill (sjhill@cotw.com)
5 * Copyright (c) 2000 Rob Scott (rscott@mtrob.fdns.net)
6 *
7 * Changelog:
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
11 */
12#ifndef __ASM_ARCH_MEMORY_H
13#define __ASM_ARCH_MEMORY_H
14
15/*
16 * Task size: 3GB
17 */
18#define TASK_SIZE       (0xc0000000UL)
19#define TASK_SIZE_26    (0x04000000UL)
20
21/*
22 * This decides where the kernel will search for a free chunk of vm
23 * space during mmap's.
24 */
25#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
26
27/*
28 * Page offset: 3GB
29 */
30#define PAGE_OFFSET     (0xc0000000UL)
31
32/*
33 * Physical DRAM offset on the L7200 SDB.
34 */
35#define PHYS_OFFSET     (0xf0000000UL)
36
37/*
38 * The DRAM is contiguous.
39 */
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)
44
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)
49
50#define PHYS_TO_NID(addr)	(0)
51
52#endif
53