diff options
author | 2001-02-20 04:26:34 +0000 | |
---|---|---|
committer | 2001-02-20 04:26:34 +0000 | |
commit | 7e57d76a5fd67563fcf05a8937ce59bfae285354 (patch) | |
tree | 7fe6c606709050c1fd801e26c90d14ad380c4ec9 /sys | |
parent | Add edge/level sense detection capability to the interrupt controller, (diff) | |
download | wireguard-openbsd-7e57d76a5fd67563fcf05a8937ce59bfae285354.tar.xz wireguard-openbsd-7e57d76a5fd67563fcf05a8937ce59bfae285354.zip |
Indicate that wdc is capable of UDMA, print device mode using MI
wdc_print_current_modes function.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/mac/wdc_obio.c | 8 |
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 */ |