summaryrefslogtreecommitdiff
path: root/sys/dev/isa/wdc_isa.c
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-03-25 13:11:59 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-03-25 13:11:59 +0000
commite062b2ded8bea4b44e6b5782a79fabbebb2eb929 (patch)
tree2b254b38691ca1d18309eaf5b10ebcde5eb617ac /sys/dev/isa/wdc_isa.c
parentf8ee0399c6e8a97e07e33bfdd2cf4ed7bd611704 (diff)
Minor mods to DMA interface - get rid of unnecessary args. Allow DMA functions to return status flags.
Note: Changing code to have DMA interface indicate when I/O is done (a la NetBSD) was considered. It was rejected due to questionable backward compatability with ISA DMA and MAC obio DMA Added irqack from NetBSD (though this feature should really be in the PCI interrupt handlers) Use pool
Diffstat (limited to 'sys/dev/isa/wdc_isa.c')
-rw-r--r--sys/dev/isa/wdc_isa.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/isa/wdc_isa.c b/sys/dev/isa/wdc_isa.c
index 033f246602f..41781ef665e 100644
--- a/sys/dev/isa/wdc_isa.c
+++ b/sys/dev/isa/wdc_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc_isa.c,v 1.6 2001/01/29 00:20:17 csapuntz Exp $ */
+/* $OpenBSD: wdc_isa.c,v 1.7 2001/03/25 13:11:58 csapuntz Exp $ */
/* $NetBSD: wdc_isa.c,v 1.15 1999/05/19 14:41:25 bouyer Exp $ */
/*-
@@ -91,8 +91,8 @@ struct cfattach wdc_isa_ca = {
#if NISADMA > 0
static void wdc_isa_dma_setup __P((struct wdc_isa_softc *));
static int wdc_isa_dma_init __P((void*, int, int, void *, size_t, int));
-static void wdc_isa_dma_start __P((void*, int, int, int));
-static int wdc_isa_dma_finish __P((void*, int, int, int));
+static void wdc_isa_dma_start __P((void*, int, int));
+static int wdc_isa_dma_finish __P((void*, int, int));
#endif /* NISADMA > 0 */
int
@@ -244,7 +244,7 @@ wdc_isa_dma_init(v, channel, drive, databuf, datalen, read)
}
static void
-wdc_isa_dma_start(v, channel, drive, read)
+wdc_isa_dma_start(v, channel, drive)
void *v;
int channel, drive;
{
@@ -252,10 +252,9 @@ wdc_isa_dma_start(v, channel, drive, read)
}
static int
-wdc_isa_dma_finish(v, channel, drive, read)
+wdc_isa_dma_finish(v, channel, drive)
void *v;
int channel, drive;
- int read;
{
struct wdc_isa_softc *sc = v;