Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci HPT: use pciide_channels[i] not pciide_channels[...



details:   https://anonhg.NetBSD.org/src/rev/3ad39ae4df34
branches:  trunk
changeset: 494318:3ad39ae4df34
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Jul 05 16:11:35 2000 +0000

description:
HPT: use pciide_channels[i] not pciide_channels[0]. My HPT370 now probes
both channels (but still doesn't work properly; I suspect I got a broken one).

diffstat:

 sys/dev/pci/pciide.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 646cd28f0b0a -r 3ad39ae4df34 sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c      Wed Jul 05 16:10:36 2000 +0000
+++ b/sys/dev/pci/pciide.c      Wed Jul 05 16:11:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide.c,v 1.74 2000/07/04 16:34:33 enami Exp $        */
+/*     $NetBSD: pciide.c,v 1.75 2000/07/05 16:11:35 bouyer Exp $       */
 
 
 /*
@@ -2847,7 +2847,7 @@
                sc->sc_wdcdev.nchannels = 2;
        }
        for (i = 0; i < sc->sc_wdcdev.nchannels; i++) {
-               cp = &sc->pciide_channels[0];
+               cp = &sc->pciide_channels[i];
                if (sc->sc_wdcdev.nchannels > 1) {
                        compatchan = i;
                        if((pciide_pci_read(sc->sc_pc, sc->sc_tag,



Home | Main Index | Thread Index | Old Index