| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * linux/include/asm-arm/arch-ixp4xx/memory.h | 
|  | 3 | * | 
|  | 4 | * Copyright (c) 2001-2004 MontaVista Software, Inc. | 
|  | 5 | */ | 
|  | 6 |  | 
|  | 7 | #ifndef __ASM_ARCH_MEMORY_H | 
|  | 8 | #define __ASM_ARCH_MEMORY_H | 
|  | 9 |  | 
|  | 10 | #include <asm/sizes.h> | 
|  | 11 |  | 
|  | 12 | /* | 
|  | 13 | * Physical DRAM offset. | 
|  | 14 | */ | 
| Nicolas Pitre | f09b997 | 2005-10-29 21:44:55 +0100 | [diff] [blame] | 15 | #define PHYS_OFFSET	UL(0x00000000) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 |  | 
| Deepak Saxena | 76bbb00 | 2006-04-30 15:34:29 +0100 | [diff] [blame] | 17 | #if !defined(__ASSEMBLY__) && defined(CONFIG_PCI) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 |  | 
| Rod Whitby | 313cbb5 | 2006-01-04 17:17:13 +0000 | [diff] [blame] | 19 | void ixp4xx_adjust_zones(int node, unsigned long *size, unsigned long *holes); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 |  | 
|  | 21 | #define arch_adjust_zones(node, size, holes) \ | 
| Rod Whitby | 313cbb5 | 2006-01-04 17:17:13 +0000 | [diff] [blame] | 22 | ixp4xx_adjust_zones(node, size, holes) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 |  | 
|  | 24 | #define ISA_DMA_THRESHOLD (SZ_64M - 1) | 
|  | 25 |  | 
|  | 26 | #endif | 
|  | 27 |  | 
|  | 28 | /* | 
|  | 29 | * Virtual view <-> DMA view memory address translations | 
|  | 30 | * virt_to_bus: Used to translate the virtual address to an | 
|  | 31 | *		address suitable to be passed to set_dma_addr | 
|  | 32 | * bus_to_virt: Used to convert an address for DMA operations | 
|  | 33 | *		to an address that the kernel can use. | 
|  | 34 | * | 
|  | 35 | * These are dummies for now. | 
|  | 36 | */ | 
|  | 37 | #define __virt_to_bus(x)	 __virt_to_phys(x) | 
|  | 38 | #define __bus_to_virt(x)	 __phys_to_virt(x) | 
|  | 39 |  | 
|  | 40 | #endif |