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-ixp4xx / memory.h
blob7c44185ed1fd276ce7f7ec51b57db606cb60f3db
1 /*
2 * linux/include/asm-arm/arch-ixp4xx/memory.h
4 * Copyright (c) 2001-2004 MontaVista Software, Inc.
5 */
7 #ifndef __ASM_ARCH_MEMORY_H
8 #define __ASM_ARCH_MEMORY_H
10 #include <asm/sizes.h>
13 * Physical DRAM offset.
15 #define PHYS_OFFSET UL(0x00000000)
17 #if !defined(__ASSEMBLY__) && defined(CONFIG_PCI)
19 #ifdef CONFIG_PCI
20 void ixp4xx_adjust_zones(int node, unsigned long *size, unsigned long *holes);
22 #define arch_adjust_zones(node, size, holes) \
23 ixp4xx_adjust_zones(node, size, holes)
24 #endif
26 #define ISA_DMA_THRESHOLD (SZ_64M - 1)
28 #endif
31 * Virtual view <-> DMA view memory address translations
32 * virt_to_bus: Used to translate the virtual address to an
33 * address suitable to be passed to set_dma_addr
34 * bus_to_virt: Used to convert an address for DMA operations
35 * to an address that the kernel can use.
37 * These are dummies for now.
39 #define __virt_to_bus(x) __virt_to_phys(x)
40 #define __bus_to_virt(x) __phys_to_virt(x)
42 #endif