NetBSD/sys/dev/isa/isadmareg.h

26 lines
817 B
C
Raw Normal View History

/* $NetBSD: isadmareg.h,v 1.5 1997/06/06 23:43:56 thorpej Exp $ */
1994-10-27 07:14:23 +03:00
#include <dev/ic/i8237reg.h>
1994-04-23 02:58:50 +04:00
/*
* Register definitions for DMA controller 1 (channels 0..3):
*/
#define DMA1_CHN(c) (1*(2*(c))) /* addr reg for channel c */
#define DMA1_SR (1*8) /* status register */
#define DMA1_SMSK (1*10) /* single mask register */
#define DMA1_MODE (1*11) /* mode register */
#define DMA1_FFC (1*12) /* clear first/last FF */
#define DMA1_IOSIZE (1*12)
1994-04-23 02:58:50 +04:00
/*
* Register definitions for DMA controller 2 (channels 4..7):
*/
#define DMA2_CHN(c) (2*(2*(c))) /* addr reg for channel c */
#define DMA2_SR (2*8) /* status register */
#define DMA2_SMSK (2*10) /* single mask register */
#define DMA2_MODE (2*11) /* mode register */
#define DMA2_FFC (2*12) /* clear first/last FF */
#define DMA2_IOSIZE (2*12)