Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax
In directory usw-pr-cvs1:/tmp/cvs-serv2191
Modified Files:
dma.h
Log Message:
Add vax_dmamap structure - used to track mapping register allocations
in bas adapter drivers. Also remove PC-related stuff that doesn't
apply to VAX.
Index: dma.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/dma.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- dma.h 20 May 2002 00:33:39 -0000 1.3
+++ dma.h 18 Jul 2002 23:48:41 -0000 1.4
@@ -1,13 +1,23 @@
#ifndef _VAX_DMA_H
#define _VAX_DMA_H 1
+
+/* This structure is used to keep track of bug map register
+ allocations. You get one from a bus driver's alloc_mapreg
+ function and release it by calling the bus driver's unmap
+ function. */
+
+struct vax_dmamap {
+ unsigned int reg;
+ unsigned int pagelets;
+ void *virtaddr;
+ unsigned int busaddr;
+};
+
+
/* Some peripherals are limited by their PC/ISA designs/heritage. */
/* max dma address is 16mb used in mm/init.c*/
#define MAX_DMA_ADDRESS (PAGE_OFFSET+0x1000000)
-#define MAX_DMA_CHANNELS 8
-
-extern int request_dma(unsigned int dmanr, const char * device_id); /* reserve a DMA channel */
-extern void free_dma(unsigned int dmanr); /* release it again */
#endif /* _VAX_DMA_H */
|