From 913d36a1c24034bd58313b888701a79cddd08672 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Wed, 11 Jun 2003 20:33:09 +0000 Subject: Previously DMA/UDMA was disabled on macppc RAMDISK kernels, I have not heard of any DMA related failures on these machines. Remove the code (and the flag) which was previously used to enable DMA/UDMA modes on wdc_obio now it will default to always being on for known systems. --- sys/arch/macppc/dev/wdc_obio.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/arch/macppc/dev/wdc_obio.c') diff --git a/sys/arch/macppc/dev/wdc_obio.c b/sys/arch/macppc/dev/wdc_obio.c index f21e1709dc3..1815ccd5da3 100644 --- a/sys/arch/macppc/dev/wdc_obio.c +++ b/sys/arch/macppc/dev/wdc_obio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc_obio.c,v 1.11 2003/06/06 16:36:51 drahn Exp $ */ +/* $OpenBSD: wdc_obio.c,v 1.12 2003/06/11 20:33:08 drahn Exp $ */ /* $NetBSD: wdc_obio.c,v 1.15 2001/07/25 20:26:33 bouyer Exp $ */ /*- @@ -144,10 +144,8 @@ wdc_obio_attach(parent, self, aux) bus_addr_t cmdbase; bus_size_t cmdsize; - if (sc->sc_wdcdev.sc_dev.dv_cfdata->cf_flags & WDC_OPTIONS_DMA) { - if (ca->ca_nreg >= 16 || ca->ca_nintr == -1) - use_dma = 1; /* XXX Don't work yet. */ - } + if (ca->ca_nreg >= 16 || ca->ca_nintr == -1) + use_dma = 1; /* Enable dma */ sc->sc_dmat = ca->ca_dmat; if ((error = bus_dmamap_create(sc->sc_dmat, -- cgit v1.2.3