Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/dev/pci Pull up rev 1.75, approved by thorpej:



details:   https://anonhg.NetBSD.org/src/rev/b2fce36669dd
branches:  netbsd-1-5
changeset: 488432:b2fce36669dd
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Jul 05 18:10:57 2000 +0000

description:
Pull up rev 1.75, approved by thorpej:
Fix a error where we would always try to attach channel 0 of an HPT controller
(only aftects HPT370, the 366 has only one channel per pciide function).

diffstat:

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

diffs (18 lines):

diff -r 60b6eb3c31ea -r b2fce36669dd sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c      Wed Jul 05 17:18:27 2000 +0000
+++ b/sys/dev/pci/pciide.c      Wed Jul 05 18:10:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide.c,v 1.68.2.3 2000/06/27 17:08:42 tron Exp $     */
+/*     $NetBSD: pciide.c,v 1.68.2.4 2000/07/05 18:10:57 bouyer Exp $   */
 
 
 /*
@@ -2846,7 +2846,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