summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/wdc_obio.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-06-11 20:33:09 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-06-11 20:33:09 +0000
commit913d36a1c24034bd58313b888701a79cddd08672 (patch)
tree9fc0e05276acad04e8b84a1a0a88387a738c5b38 /sys/arch/macppc/dev/wdc_obio.c
parentde0c5fcacb5ab7d484eddacb1ff7e65cad71039d (diff)
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.
Diffstat (limited to 'sys/arch/macppc/dev/wdc_obio.c')
-rw-r--r--sys/arch/macppc/dev/wdc_obio.c8
1 files changed, 3 insertions, 5 deletions
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,