MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-s3c24a0 / memory.h
blob5e7f1c89698c2792ebfd939d3042b08bd10eeb0f
1 /*
2 * include/asm-arm/arch-s3c24a0/memory.h
4 * $Id: memory.h,v 1.2 2005/11/28 03:55:11 gerg Exp $
6 * Copyright (C) Heechul Yun <heechul.yun@samsung.com>
7 * Copyright (C) Hyok S. Choi <hyok.choi@samsung.com>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
14 #ifndef __ASM_ARCH_MEMORY_H_
15 #define __ASM_ARCH_MEMORY_H_
17 #ifndef CONFIG_MMU
19 #ifndef TASK_SIZE_26
20 #define TASK_SIZE END_MEM
21 #define TASK_SIZE_26 TASK_SIZE
22 #endif
24 #define PAGE_OFFSET (PHYS_OFFSET)
27 #define __virt_to_phys(vpage) ((unsigned long) (vpage))
28 #define __phys_to_virt(ppage) ((unsigned long) (ppage))
30 #endif /* !CONFIG_MMU */
32 #ifndef CONFIG_DRAM_BASE
33 #define PHYS_OFFSET (0x10000000UL)
34 #define END_MEM (0x13000000UL)
35 #else
36 #define PHYS_OFFSET (CONFIG_DRAM_BASE)
37 #define END_MEM (CONFIG_DRAM_BASE + CONFIG_DRAM_SIZE)
38 #endif
40 #define __virt_to_bus(x) __virt_to_phys(x)
41 #define __bus_to_virt(x) __phys_to_virt(x)
44 #endif /* __ASM_ARCH_MEMORY_H_ */