Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/dev/pci Pull up revision 1.81 (requested by bouyer):



details:   https://anonhg.NetBSD.org/src/rev/6834a8176aae
branches:  netbsd-1-4
changeset: 470808:6834a8176aae
user:      he <he%NetBSD.org@localhost>
date:      Thu Jul 27 17:45:09 2000 +0000

description:
Pull up revision 1.81 (requested by bouyer):
  Clear the interrupt disable bit of the HPT370, and document HPT370
  support.

diffstat:

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

diffs (26 lines):

diff -r 2f73585e5a0a -r 6834a8176aae sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c      Thu Jul 27 17:43:09 2000 +0000
+++ b/sys/dev/pci/pciide.c      Thu Jul 27 17:45:09 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide.c,v 1.33.2.8 2000/07/27 17:36:40 he Exp $       */
+/*     $NetBSD: pciide.c,v 1.33.2.9 2000/07/27 17:45:09 he Exp $       */
 
 
 /*
@@ -2860,7 +2860,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