diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-03-25 13:11:59 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-03-25 13:11:59 +0000 |
commit | e062b2ded8bea4b44e6b5782a79fabbebb2eb929 (patch) | |
tree | 2b254b38691ca1d18309eaf5b10ebcde5eb617ac /sys/arch/powerpc/mac | |
parent | f8ee0399c6e8a97e07e33bfdd2cf4ed7bd611704 (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/arch/powerpc/mac')
-rw-r--r-- | sys/arch/powerpc/mac/wdc_obio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/powerpc/mac/wdc_obio.c b/sys/arch/powerpc/mac/wdc_obio.c index b1c591227de..5a48a1274dd 100644 --- a/sys/arch/powerpc/mac/wdc_obio.c +++ b/sys/arch/powerpc/mac/wdc_obio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc_obio.c,v 1.7 2001/02/20 04:26:34 drahn Exp $ */ +/* $OpenBSD: wdc_obio.c,v 1.8 2001/03/25 13:11:58 csapuntz Exp $ */ /* $NetBSD: wdc_obio.c,v 1.4 1999/06/14 08:53:06 tsubai Exp $ */ /*- @@ -106,8 +106,8 @@ struct cfdriver wdc_cd = { static int wdc_obio_dma_init __P((void *, int, int, void *, size_t, int)); -static void wdc_obio_dma_start __P((void *, int, int, int)); -static int wdc_obio_dma_finish __P((void *, int, int, int)); +static void wdc_obio_dma_start __P((void *, int, int)); +static int wdc_obio_dma_finish __P((void *, int, int)); static void adjust_timing __P((struct channel_softc *)); int @@ -343,7 +343,7 @@ wdc_obio_dma_init(v, channel, drive, databuf, datalen, read) } static void -wdc_obio_dma_start(v, channel, drive, read) +wdc_obio_dma_start(v, channel, drive) void *v; int channel, drive; { @@ -353,10 +353,9 @@ wdc_obio_dma_start(v, channel, drive, read) } static int -wdc_obio_dma_finish(v, channel, drive, read) +wdc_obio_dma_finish(v, channel, drive) void *v; int channel, drive; - int read; { struct wdc_obio_softc *sc = v; |