1 /* 2 * linux/include/asm-arm/arch-shark/dma.h 3 * 4 * by Alexander Schulz 5 */ 6 #ifndef __ASM_ARCH_DMA_H 7 #define __ASM_ARCH_DMA_H 8 9 /* Use only the lowest 4MB, nothing else works. 10 * The rest is not DMAable. See dev / .properties 11 * in OpenFirmware. 12 */ 13 #define MAX_DMA_ADDRESS 0xC0400000 14 #define MAX_DMA_CHANNELS 8 15 #define DMA_ISA_CASCADE 4 16 __arch_adjust_zones(int node,unsigned long * zone_size,unsigned long * zhole_size)17static inline void __arch_adjust_zones(int node, unsigned long *zone_size, unsigned long *zhole_size) 18 { 19 if (node != 0) return; 20 /* Only the first 4 MB (=1024 Pages) are usable for DMA */ 21 zone_size[1] = zone_size[0] - 1024; 22 zone_size[0] = 1024; 23 zhole_size[1] = zhole_size[0]; 24 zhole_size[0] = 0; 25 } 26 27 #define arch_adjust_zones(node,size,holes) __arch_adjust_zones(node,size,holes) 28 29 #endif /* _ASM_ARCH_DMA_H */ 30 31