patch-2.4.2 linux/include/asm-cris/dma.h

Next file: linux/include/asm-cris/elf.h
Previous file: linux/include/asm-cris/div64.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/include/asm-cris/dma.h linux/include/asm-cris/dma.h
@@ -0,0 +1,21 @@
+/* $Id: dma.h,v 1.1 2000/07/10 16:32:31 bjornw Exp $
+ * linux/include/asm/dma.h: Defines for using and allocating dma channels.
+ */
+
+#ifndef _ASM_DMA_H
+#define _ASM_DMA_H
+
+/* it's useless on the Etrax, but unfortunately needed by the new
+   bootmem allocator (but this should do it for this) */
+
+#define MAX_DMA_ADDRESS PAGE_OFFSET
+
+/* TODO: check nbr of channels on Etrax-100LX */
+
+#define MAX_DMA_CHANNELS	10
+
+/* These are in kernel/dma.c: */
+extern int request_dma(unsigned int dmanr, const char * device_id); /* reserve a DMA channel */
+extern void free_dma(unsigned int dmanr);	                    /* release it */
+
+#endif /* _ASM_DMA_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)