Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa The final read of the CSC register does not appe...



details:   https://anonhg.NetBSD.org/src/rev/e83f7926a0ce
branches:  trunk
changeset: 481892:e83f7926a0ce
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Feb 08 17:48:39 2000 +0000

description:
The final read of the CSC register does not appear to be needed any
more.

diffstat:

 sys/dev/isa/i82365_isasubr.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r f9ea22f6d510 -r e83f7926a0ce sys/dev/isa/i82365_isasubr.c
--- a/sys/dev/isa/i82365_isasubr.c      Tue Feb 08 17:14:29 2000 +0000
+++ b/sys/dev/isa/i82365_isasubr.c      Tue Feb 08 17:48:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82365_isasubr.c,v 1.12 2000/02/08 17:14:29 chopps Exp $       */
+/*     $NetBSD: i82365_isasubr.c,v 1.13 2000/02/08 17:48:39 mycroft Exp $      */
 
 #define        PCICISADEBUG
 
@@ -225,6 +225,7 @@
                cscintr = PCIC_CSC_INTR_CD_ENABLE;
                cscintr |= (irq << PCIC_CSC_INTR_IRQ_SHIFT);
                pcic_write(h, PCIC_CSC_INTR, cscintr);
+               delay(10);
 
                /* interrupt 40 times */
                sc->intr_detect = 0;
@@ -243,15 +244,14 @@
                        mask |= (1 << i);
                }
                pcic_write(h, PCIC_CSC_INTR, 0);
+               delay(10);
+
                if (sc->ih)
                        isa_intr_disestablish(ic, sc->ih);
        }
        sc->intr_mask[h->chip] = mask;
 
        printf("%s\n", sc->intr_mask ? "" : " none");
-
-       /* clear any current interrupt */
-       pcic_read(h, PCIC_CSC);
 }
 
 /*



Home | Main Index | Thread Index | Old Index