2 * linux/include/asm-arm/arch-omap/memory.h
4 * Memory map for OMAP-1510 and 1610
6 * Copyright (C) 2000 RidgeRun, Inc.
7 * Author: Greg Lonnon <glonnon@ridgerun.com>
9 * This file was derived from linux/include/asm-arm/arch-intergrator/memory.h
10 * Copyright (C) 1999 ARM Limited
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 * You should have received a copy of the GNU General Public License along
29 * with this program; if not, write to the Free Software Foundation, Inc.,
30 * 675 Mass Ave, Cambridge, MA 02139, USA.
33 #ifndef __ASM_ARCH_MMU_H
34 #define __ASM_ARCH_MMU_H
39 #define TASK_SIZE (0xbf000000UL)
40 #define TASK_SIZE_26 (0x04000000UL)
43 * This decides where the kernel will search for a free chunk of vm
44 * space during mmap's.
46 #define TASK_UNMAPPED_BASE (0x40000000)
51 #define PAGE_OFFSET (0xC0000000UL)
52 #define PHYS_OFFSET (0x10000000UL)
55 * OMAP-1510 Local Bus address offset
57 #define OMAP1510_LB_OFFSET (0x30000000UL)
60 * The DRAM is contiguous.
62 #define __virt_to_phys__is_a_macro
63 #define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET + PHYS_OFFSET)
64 #define __phys_to_virt__is_a_macro
65 #define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET - PHYS_OFFSET)
68 * Conversion between SDRAM and fake PCI bus, used by USB
69 * NOTE: Physical address must be converted to Local Bus address
72 #define __virt_to_bus__is_a_macro
73 #define __bus_to_virt__is_a_macro
76 * Bus address is physical address, except for OMAP-1510 Local Bus.
78 #define __virt_to_bus(x) __virt_to_phys(x)
79 #define __bus_to_virt(x) __phys_to_virt(x)
82 * OMAP-1510 bus address is translated into a Local Bus address if the
83 * OMAP bus type is lbus. See dmadev_uses_omap_lbus().
85 #ifdef CONFIG_ARCH_OMAP1510
86 #define bus_to_lbus(x) ((x) + (OMAP1510_LB_OFFSET - PHYS_OFFSET))
87 #define lbus_to_bus(x) ((x) - (OMAP1510_LB_OFFSET - PHYS_OFFSET))
90 #define PHYS_TO_NID(addr) (0)