Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/obio Program the 53c96's interrupt routing i...



details:   https://anonhg.NetBSD.org/src/rev/0ecc6ad7bfc3
branches:  trunk
changeset: 477526:0ecc6ad7bfc3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Oct 19 17:00:41 1999 +0000

description:
Program the 53c96's interrupt routing info into the VIA before doing
anything that might cause an interrupt (e.g. the SCSI bus reset in
ncr53c9x_attach()).  If we don't do this, the initial interrupt is
lost, thus causing the state machine to never enter IDLE state, thus
causing SCSI commands to never be executed.

Fixes kern/8544, reported by Erik Bertelsen <erik%mediator.uni-c.dk@localhost>.

diffstat:

 sys/arch/mac68k/obio/esp.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (37 lines):

diff -r 78fae923dae7 -r 0ecc6ad7bfc3 sys/arch/mac68k/obio/esp.c
--- a/sys/arch/mac68k/obio/esp.c        Tue Oct 19 16:04:52 1999 +0000
+++ b/sys/arch/mac68k/obio/esp.c        Tue Oct 19 17:00:41 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: esp.c,v 1.23 1999/06/27 23:43:37 briggs Exp $  */
+/*     $NetBSD: esp.c,v 1.24 1999/10/19 17:00:41 thorpej Exp $ */
 
 /*
  * Copyright (c) 1997 Jason R. Thorpe.
@@ -307,13 +307,6 @@
        sc->sc_maxxfer = 8 * 1024; /*64 * 1024; XXX */
 
        /*
-        * Now try to attach all the sub-devices
-        */
-       sc->sc_adapter.scsipi_cmd = ncr53c9x_scsi_cmd;
-       sc->sc_adapter.scsipi_minphys = minphys; 
-       ncr53c9x_attach(sc, &esp_dev);
-
-       /*
         * Configure interrupts.
         */
        if (esc->irq_mask) {
@@ -321,6 +314,13 @@
                via2_reg(vIFR) = esc->irq_mask;
                via2_reg(vIER) = 0x80 | esc->irq_mask;
        }
+
+       /*
+        * Now try to attach all the sub-devices
+        */
+       sc->sc_adapter.scsipi_cmd = ncr53c9x_scsi_cmd;
+       sc->sc_adapter.scsipi_minphys = minphys; 
+       ncr53c9x_attach(sc, &esp_dev);
 }
 
 /*



Home | Main Index | Thread Index | Old Index