summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-02-20 04:26:35 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-02-20 04:26:35 +0000
commite3aa51af084f763769932c3691ab9e6728be4abe (patch)
tree11fe6b747c13299aa35ce7c42dcfdc54549c082a
parentfc61358e90ca7a0f612ce404e5222bd98617af9f (diff)
Indicate that wdc is capable of UDMA, print device mode using MI
wdc_print_current_modes function.
-rw-r--r--sys/arch/powerpc/mac/wdc_obio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/powerpc/mac/wdc_obio.c b/sys/arch/powerpc/mac/wdc_obio.c
index d67a694844e..b1c591227de 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.6 2000/09/08 05:43:56 rahnds Exp $ */
+/* $OpenBSD: wdc_obio.c,v 1.7 2001/02/20 04:26:34 drahn Exp $ */
/* $NetBSD: wdc_obio.c,v 1.4 1999/06/14 08:53:06 tsubai Exp $ */
/*-
@@ -108,7 +108,7 @@ 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 adjust_timing __P((struct channel_softc *));
+static void adjust_timing __P((struct channel_softc *));
int
wdc_obio_probe(parent, match, aux)
@@ -194,7 +194,7 @@ wdc_obio_attach(parent, self, aux)
sc->sc_dmacmd = dbdma_alloc(sizeof(dbdma_command_t) * 20);
sc->sc_dmareg = mapiodev(ca->ca_baseaddr + ca->ca_reg[2],
ca->ca_reg[3]);
- sc->sc_wdcdev.cap |= WDC_CAPABILITY_DMA;
+ sc->sc_wdcdev.cap |= WDC_CAPABILITY_DMA|WDC_CAPABILITY_UDMA;
}
sc->sc_wdcdev.cap |= WDC_CAPABILITY_DATA16;
sc->sc_wdcdev.PIO_cap = 0;
@@ -220,6 +220,8 @@ wdc_obio_attach(parent, self, aux)
/* modify DMA access timings */
if (use_dma)
adjust_timing(chp);
+
+ wdc_print_current_modes(chp);
}
/* Multiword DMA transfer timings */