Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci HPT370: clear disable interrupt bit; make it wor...



details:   https://anonhg.NetBSD.org/src/rev/eb94303263ca
branches:  trunk
changeset: 495404:eb94303263ca
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Jul 27 14:28:45 2000 +0000

description:
HPT370: clear disable interrupt bit; make it works in Ultra/66 mode.

diffstat:

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

diffs (26 lines):

diff -r 8ec7fd6ec1a5 -r eb94303263ca sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c      Thu Jul 27 14:26:15 2000 +0000
+++ b/sys/dev/pci/pciide.c      Thu Jul 27 14:28:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide.c,v 1.80 2000/07/20 12:19:41 bouyer Exp $       */
+/*     $NetBSD: pciide.c,v 1.81 2000/07/27 14:28:45 bouyer Exp $       */
 
 
 /*
@@ -2894,7 +2894,15 @@
                wdcattach(&cp->wdc_channel);
                hpt_setup_channel(&cp->wdc_channel);
        }
-
+       if (revision == HPT370_REV) {
+               /*
+                * HPT370_REV has a bit to disable interrupts, make sure
+                * to clear it
+                */
+               pciide_pci_write(sc->sc_pc, sc->sc_tag, HPT_CSEL,
+                   pciide_pci_read(sc->sc_pc, sc->sc_tag, HPT_CSEL) &
+                   ~HPT_CSEL_IRQDIS);
+       }
        return;
 }
 



Home | Main Index | Thread Index | Old Index