xref: /openbsd/sys/dev/isa/isadmareg.h (revision c44e1821)
1 /*	$OpenBSD: isadmareg.h,v 1.5 1998/01/20 18:40:30 niklas Exp $	*/
2 /*	$NetBSD: isadmareg.h,v 1.4 1995/06/28 04:31:48 cgd Exp $	*/
3 
4 #include <dev/ic/i8237reg.h>
5 
6 /*
7  * Register definitions for DMA controller 1 (channels 0..3):
8  */
9 #define	DMA1_CHN(c)	(1*(2*(c)))	/* addr reg for channel c */
10 #define	DMA1_SR		(1*8)		/* status register */
11 #define	DMA1_SMSK	(1*10)	/* single mask register */
12 #define	DMA1_MODE	(1*11)	/* mode register */
13 #define	DMA1_FFC	(1*12)	/* clear first/last FF */
14 
15 #define DMA1_IOSIZE	(1*12)
16 
17 /*
18  * Register definitions for DMA controller 2 (channels 4..7):
19  */
20 #define	DMA2_CHN(c)	(2*(2*(c)))	/* addr reg for channel c */
21 #define	DMA2_SR		(2*8)		/* status register */
22 #define	DMA2_SMSK	(2*10)	/* single mask register */
23 #define	DMA2_MODE	(2*11)	/* mode register */
24 #define	DMA2_FFC	(2*12)	/* clear first/last FF */
25 
26 #define DMA2_IOSIZE	(2*12)
27