summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/dma.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-04-25 06:37:20 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-04-25 06:37:20 +0000
commite5f403bb164d8ffbcf3ed2dfb761fe37d9a5db7e (patch)
treef79a6c534d589d386f5fdf45e4c8fb5f2a221a2f /sys/arch/hp300/dev/dma.c
parentfdab626a6398ea411367b27d210f9c1b227f6283 (diff)
sync w/ Net 960424
Diffstat (limited to 'sys/arch/hp300/dev/dma.c')
-rw-r--r--sys/arch/hp300/dev/dma.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/hp300/dev/dma.c b/sys/arch/hp300/dev/dma.c
index cb22512d334..17820334441 100644
--- a/sys/arch/hp300/dev/dma.c
+++ b/sys/arch/hp300/dev/dma.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dma.c,v 1.6 1995/12/02 02:46:45 thorpej Exp $ */
+/* $NetBSD: dma.c,v 1.7 1996/02/14 02:44:17 thorpej Exp $ */
/*
* Copyright (c) 1995 Jason R. Thorpe.
@@ -101,7 +101,7 @@ struct dma_softc {
#define DMAF_NOINTR 0x04
struct devqueue dmachan[NDMACHAN + 1];
-int dmaintr();
+int dmaintr __P((void *));
#ifdef DEBUG
int dmadebug = 0;
@@ -180,6 +180,9 @@ dmainit()
printf("%s: 98620%c, 2 channels, %d bit\n", sc->sc_xname,
rev, (rev == 'B') ? 16 : 32);
+
+ /* Establish the interrupt handler */
+ isrlink(dmaintr, sc, DMAINTLVL, ISRPRI_BIO);
}
int
@@ -442,9 +445,10 @@ dmastop(unit)
}
int
-dmaintr()
+dmaintr(arg)
+ void *arg;
{
- struct dma_softc *sc = &Dma_softc;
+ struct dma_softc *sc = arg;
register struct dma_channel *dc;
register int i, stat;
int found = 0;