1/*
2 * linux/include/asm-arm/arch-shark/memory.h
3 *
4 * by Alexander Schulz
5 *
6 * derived from:
7 * linux/include/asm-arm/arch-ebsa110/memory.h
8 * Copyright (c) 1996-1999 Russell King.
9 */
10#ifndef __ASM_ARCH_MEMORY_H
11#define __ASM_ARCH_MEMORY_H
12
13/*
14 * Task size: 3GB
15 */
16#define TASK_SIZE	(0xc0000000UL)
17#define TASK_SIZE_26	(0x04000000UL)
18
19/*
20 * This decides where the kernel will search for a free chunk of vm
21 * space during mmap's.
22 */
23#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
24
25/*
26 * Page offset: = 3GB
27 */
28#define PAGE_OFFSET	(0xC0000000UL)
29#define PHYS_OFFSET     (0x08000000UL)
30
31#define __virt_to_phys__is_a_macro
32#define __phys_to_virt__is_a_macro
33#define __virt_to_phys(vpage) (vpage - PAGE_OFFSET + PHYS_OFFSET)
34#define __phys_to_virt(ppage) (ppage - PHYS_OFFSET + PAGE_OFFSET)
35
36#define __virt_to_bus__is_a_macro
37#define __virt_to_bus(x)	__virt_to_phys(x)
38#define __bus_to_virt__is_a_macro
39#define __bus_to_virt(x)	__phys_to_virt(x)
40
41#define PHYS_TO_NID(addr)	(0)
42
43#endif
44