blob: 92361a66b223d9f62243074d26ee534a131cba64 [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/*
2 * arch/arm/mach-pxa/include/mach/memory.h
3 *
4 * Author: Nicolas Pitre
5 * Copyright: (C) 2001 MontaVista Software Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#ifndef __ASM_ARCH_MEMORY_H
13#define __ASM_ARCH_MEMORY_H
14
15/*
16 * Physical DRAM offset.
17 */
18#define PHYS_OFFSET UL(0xa0000000)
19
Russell Kinga09e64f2008-08-05 16:14:15 +010020#if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI)
Russell Kingb65b4782010-05-22 20:58:51 +010021void cmx2xx_pci_adjust_zones(unsigned long *size, unsigned long *holes);
Russell Kinga09e64f2008-08-05 16:14:15 +010022
Russell Kingb65b4782010-05-22 20:58:51 +010023#define arch_adjust_zones(size, holes) \
24 cmx2xx_pci_adjust_zones(size, holes)
Russell Kinga09e64f2008-08-05 16:14:15 +010025
26#define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_64M - 1)
Russell King3719ec52008-11-30 13:26:47 +000027#define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_64M)
Russell Kinga09e64f2008-08-05 16:14:15 +010028#endif
29
30#endif