2 * BK Id: SCCS/s.dma.h 1.15 06/06/02 21:50:42 mporter
5 * linux/include/asm/dma.h: Defines for using and allocating dma channels.
6 * Written by Hennus Bergman, 1992.
7 * High DMA channel support & info by Hannu Savolainen
8 * and John Boyd, Nov. 1992.
9 * Changes for ppc sound by Christoph Nadig
11 * Moved most code (ISA-specific) to asm/ppc_isa_dma.h so that 4xx could have
12 * a common API - armin Feb, 02
17 #include <linux/config.h>
21 * Note: Adapted for PowerPC by Gary Thomas
22 * Modified by Cort Dougan <cort@cs.nmt.edu>
24 * None of this really applies for Power Macintoshes. There is
25 * basically just enough here to get kernel/dma.c to compile.
27 * There may be some comments or restrictions made here which are
28 * not valid for the PReP platform. Take what you read
29 * with a grain of salt.
36 /* The maximum address that we can perform a DMA transfer to on this platform */
37 /* Doesn't really apply... */
38 #define MAX_DMA_ADDRESS 0xFFFFFFFF
40 /* in arch/ppc/kernel/setup.c -- Cort */
41 extern unsigned long DMA_MODE_WRITE, DMA_MODE_READ;
42 extern unsigned long ISA_DMA_THRESHOLD;
44 #ifdef HAVE_REALLY_SLOW_DMA_CONTROLLER
45 #define dma_outb outb_p
52 #if defined(CONFIG_PPC4xx_DMA)
53 #include <asm/ppc4xx_dma.h>
55 #include <asm/ppc_isa_dma.h>
58 #ifndef MAX_DMA_CHANNELS
59 #define MAX_DMA_CHANNELS 8
62 extern int isa_dma_bridge_buggy;
64 #define isa_dma_bridge_buggy (0)
68 #endif /* _ASM_DMA_H */
69 #endif /* __KERNEL__ */