Add support for demand mode with auto-init.

This commit is contained in:
mycroft 1999-02-22 02:32:43 +00:00
parent 529c6c50aa
commit bd575a4ff6
2 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma.c,v 1.39 1998/11/19 15:38:25 mrg Exp $ */
/* $NetBSD: isadma.c,v 1.40 1999/02/22 02:32:43 mycroft Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -72,6 +72,10 @@ static u_int8_t dmamode[] = {
DMA37MD_READ | DMA37MD_SINGLE,
DMA37MD_WRITE | DMA37MD_SINGLE,
/* write to device/read from device */
DMA37MD_READ | DMA37MD_DEMAND,
DMA37MD_WRITE | DMA37MD_DEMAND,
/* write to device/read from device - DMAMODE_LOOP */
DMA37MD_READ | DMA37MD_SINGLE | DMA37MD_LOOP,
DMA37MD_WRITE | DMA37MD_SINGLE | DMA37MD_LOOP,

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadmavar.h,v 1.14 1998/06/28 06:59:36 thorpej Exp $ */
/* $NetBSD: isadmavar.h,v 1.15 1999/02/22 02:32:43 mycroft Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -44,8 +44,10 @@
#define DMAMODE_WRITE 0x00
#define DMAMODE_READ 0x01
#define DMAMODE_LOOP 0x02
#define DMAMODE_LOOPDEMAND 0x04
#define DMAMODE_SINGLE 0x00
#define DMAMODE_DEMAND 0x02
#define DMAMODE_LOOP 0x04
#define DMAMODE_LOOPDEMAND (DMAMODE_LOOP | DMAMODE_DEMAND)
/*
* ISA DMA state. This structure is provided by the ISA chipset