summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1994-03-10 18:14:32 +0000
committermycroft <mycroft@NetBSD.org>1994-03-10 18:14:32 +0000
commit095308adeb84d573bd268947de9df2d5bc46e8e1 (patch)
treeba970525bdcfbc9663227d8e4aa7c63c15bf45a5 /sys/dev
parent2ed707730012821f78f405c495641429445abbff (diff)
Add isa_dmaabort().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/isa.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c
index 8f7ca8d17a0..e6e316813c3 100644
--- a/sys/dev/isa/isa.c
+++ b/sys/dev/isa/isa.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.42 1994/03/09 07:58:41 mycroft Exp $
+ * $Id: isa.c,v 1.43 1994/03/10 18:14:32 mycroft Exp $
*/
/*
@@ -421,6 +421,25 @@ isa_dmastart(flags, addr, nbytes, chan)
}
void
+isa_dmaabort(chan)
+ int chan;
+{
+
+#ifdef DIAGNOSTIC
+ if (chan < 0 || chan > 7)
+ panic("isa_dmadone: impossible request");
+#endif
+
+ bounced[chan] = 0;
+
+ /* mask channel */
+ if ((chan & 4) == 0)
+ outb(DMA1_SMSK, DMA37SM_SET | chan);
+ else
+ outb(DMA2_SMSK, DMA37SM_SET | (chan & 3));
+}
+
+void
isa_dmadone(flags, addr, nbytes, chan)
int flags;
caddr_t addr;