Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Fill out correct cap variable so that DMA works ...



details:   https://anonhg.NetBSD.org/src/rev/756777fb593a
branches:  trunk
changeset: 569770:756777fb593a
user:      skd <skd%NetBSD.org@localhost>
date:      Sun Sep 05 05:07:41 2004 +0000

description:
Fill out correct cap variable so that DMA works again.

diffstat:

 sys/dev/pci/satalink.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r aa92d79c8e9b -r 756777fb593a sys/dev/pci/satalink.c
--- a/sys/dev/pci/satalink.c    Sun Sep 05 00:27:21 2004 +0000
+++ b/sys/dev/pci/satalink.c    Sun Sep 05 05:07:41 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: satalink.c,v 1.22 2004/08/21 00:28:34 thorpej Exp $    */
+/*     $NetBSD: satalink.c,v 1.23 2004/09/05 05:07:41 skd Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -469,10 +469,10 @@
        if ((reg44 & 0x7) < cls)
                ba5_write_4(sc, 0x44, (reg44 & ~0x07) | cls);
 
-       sc->sc_wdcdev.cap |= ATAC_CAP_DATA16 | ATAC_CAP_DATA32;
+       sc->sc_wdcdev.sc_atac.atac_cap |= ATAC_CAP_DATA16 | ATAC_CAP_DATA32;
        sc->sc_wdcdev.sc_atac.atac_pio_cap = 4;
        if (sc->sc_dma_ok) {
-               sc->sc_wdcdev.cap |= ATAC_CAP_DMA | ATAC_CAP_UDMA;
+               sc->sc_wdcdev.sc_atac.atac_cap |= ATAC_CAP_DMA | ATAC_CAP_UDMA;
                sc->sc_wdcdev.irqack = pciide_irqack;
                sc->sc_wdcdev.sc_atac.atac_dma_cap = 2;
                sc->sc_wdcdev.sc_atac.atac_udma_cap = 6;
@@ -712,10 +712,10 @@
        sii3114_mapreg_dma(sc, pa);
        aprint_normal("\n");
 
-       sc->sc_wdcdev.cap |= ATAC_CAP_DATA16 | ATAC_CAP_DATA32;
+       sc->sc_wdcdev.sc_atac.atac_cap |= ATAC_CAP_DATA16 | ATAC_CAP_DATA32;
        sc->sc_wdcdev.sc_atac.atac_pio_cap = 4;
        if (sc->sc_dma_ok) {
-               sc->sc_wdcdev.cap |= ATAC_CAP_DMA | ATAC_CAP_UDMA;
+               sc->sc_wdcdev.sc_atac.atac_cap |= ATAC_CAP_DMA | ATAC_CAP_UDMA;
                sc->sc_wdcdev.irqack = pciide_irqack;
                sc->sc_wdcdev.sc_atac.atac_dma_cap = 2;
                sc->sc_wdcdev.sc_atac.atac_udma_cap = 6;



Home | Main Index | Thread Index | Old Index