Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/amiga/dev pullup 1.11->1.12 (is): disable adap...



details:   https://anonhg.NetBSD.org/src/rev/05c043f74850
branches:  netbsd-1-4
changeset: 468898:05c043f74850
user:      perry <perry%NetBSD.org@localhost>
date:      Tue Jun 22 17:18:42 1999 +0000

description:
pullup 1.11->1.12 (is): disable adapter if completely unterminated

diffstat:

 sys/arch/amiga/dev/siop2.c |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 4a183ae33c54 -r 05c043f74850 sys/arch/amiga/dev/siop2.c
--- a/sys/arch/amiga/dev/siop2.c        Tue Jun 22 17:16:08 1999 +0000
+++ b/sys/arch/amiga/dev/siop2.c        Tue Jun 22 17:18:42 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop2.c,v 1.11 1999/04/01 17:27:22 mhitch Exp $        */
+/*     $NetBSD: siop2.c,v 1.11.2.1 1999/06/22 17:18:42 perry Exp $     */
 
 /*
  * Copyright (c) 1994,1998 Michael L. Hitch
@@ -645,6 +645,23 @@
        splx (s);
 
        delay (siopng_reset_delay * 1000);
+
+       /*
+        * is lower half unterminated?
+        */
+       if ((rp->siop_sbdl & 0x00ff) == 0x00ff) {
+               printf(" no SCSI termination, host adapter deactivated.\n");
+               sc->sc_link.scsipi_scsi.max_target = -1;        /* XXX */
+               sc->sc_flags &= ~(SIOP_ALIVE|SIOP_INTDEFER|SIOP_INTSOFF);
+               /* disable SCSI and DMA interrupts */
+               sc->sc_sien = 0;
+               sc->sc_dien = 0;
+               rp->siop_sien = sc->sc_sien;
+               rp->siop_dien = sc->sc_dien;
+
+               return;
+       }
+
        /*
         * Check if upper half of SCSI bus is unterminated, and disallow
         * disconnections if it appears to be unterminated.



Home | Main Index | Thread Index | Old Index