Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Reset the driver on scsibus reset.



details:   https://anonhg.NetBSD.org/src/rev/8df2a481d01f
branches:  trunk
changeset: 537859:8df2a481d01f
user:      petrov <petrov%NetBSD.org@localhost>
date:      Sun Oct 06 21:35:33 2002 +0000

description:
Reset the driver on scsibus reset.

diffstat:

 sys/dev/ic/ncr53c9x.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 64ce6a7775df -r 8df2a481d01f sys/dev/ic/ncr53c9x.c
--- a/sys/dev/ic/ncr53c9x.c     Sun Oct 06 20:40:27 2002 +0000
+++ b/sys/dev/ic/ncr53c9x.c     Sun Oct 06 21:35:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr53c9x.c,v 1.102 2002/09/27 15:37:18 provos Exp $    */
+/*     $NetBSD: ncr53c9x.c,v 1.103 2002/10/06 21:35:33 petrov Exp $    */
 
 /*-
  * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.102 2002/09/27 15:37:18 provos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.103 2002/10/06 21:35:33 petrov Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1014,7 +1014,7 @@
        switch (cmd) {
        case SCBUSIORESET:
                s = splbio();
-               ncr53c9x_scsi_reset(sc);
+               ncr53c9x_init(sc, 1);
                splx(s);
                break;
        default:
@@ -2023,7 +2023,7 @@
        }
 
 #ifdef DEBUG
-       {
+       if (ncr53c9x_debug & NCR_SHOWMSGS) {
                int i;
                
                NCR_MSGS(("<msgout:"));
@@ -2720,7 +2720,6 @@
 /*                     DELAY(1);*/
                }
                if (sc->sc_features & NCR_F_DMASELECT) {
-                       size_t size;
                        /* setup DMA transfer for command */
                        size = ecb->clen;
                        sc->sc_cmdlen = size;



Home | Main Index | Thread Index | Old Index