Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 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 King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 20 | #if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI) |
Russell King | b65b478 | 2010-05-22 20:58:51 +0100 | [diff] [blame] | 21 | void cmx2xx_pci_adjust_zones(unsigned long *size, unsigned long *holes); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 22 | |
Russell King | b65b478 | 2010-05-22 20:58:51 +0100 | [diff] [blame] | 23 | #define arch_adjust_zones(size, holes) \ |
| 24 | cmx2xx_pci_adjust_zones(size, holes) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 25 | |
| 26 | #define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_64M - 1) |
Russell King | 3719ec5 | 2008-11-30 13:26:47 +0000 | [diff] [blame] | 27 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_64M) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 28 | #endif |
| 29 | |
| 30 | #endif |