2 * linux/include/asm-arm/arch-arc/memory.h
4 * Copyright (C) 1996-1999 Russell King.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 * 22-Nov-1996 RMK Created
12 * 21-Mar-1999 RMK Renamed to memory.h
13 * RMK Moved PAGE_OFFSET and TASK_SIZE here
15 #ifndef __ASM_ARCH_MEMORY_H
16 #define __ASM_ARCH_MEMORY_H
21 #define TASK_SIZE (0x01a00000UL)
22 #define TASK_SIZE_26 (0x01a00000UL)
25 * This decides where the kernel will search for a free chunk of vm
26 * space during mmap's.
28 #define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
33 #define PAGE_OFFSET (0x02000000UL)
34 #define PHYS_OFFSET (0x02000000UL)
36 #define __virt_to_phys__is_a_macro
37 #define __virt_to_phys(vpage) vpage
38 #define __phys_to_virt__is_a_macro
39 #define __phys_to_virt(ppage) ppage
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 #define __virt_to_bus__is_a_macro
49 #define __virt_to_bus(x) (x)
50 #define __bus_to_virt__is_a_macro
51 #define __bus_to_virt(x) (x)