Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic implement SCBUSIORESET by calling ncr53c9x_scsi_r...



details:   https://anonhg.NetBSD.org/src/rev/030aa67bb251
branches:  trunk
changeset: 533107:030aa67bb251
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jun 21 13:27:49 2002 +0000

description:
implement SCBUSIORESET by calling ncr53c9x_scsi_reset()

diffstat:

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

diffs (42 lines):

diff -r c26d43a57f2f -r 030aa67bb251 sys/dev/ic/ncr53c9x.c
--- a/sys/dev/ic/ncr53c9x.c     Fri Jun 21 11:43:04 2002 +0000
+++ b/sys/dev/ic/ncr53c9x.c     Fri Jun 21 13:27:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr53c9x.c,v 1.93 2002/04/05 18:27:53 bouyer Exp $     */
+/*     $NetBSD: ncr53c9x.c,v 1.94 2002/06/21 13:27:49 lukem Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.93 2002/04/05 18:27:53 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.94 2002/06/21 13:27:49 lukem Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -999,17 +999,20 @@
        int flag;
        struct proc *p;
 {
-       /* struct ncr53c9x_softc *sc = (void *)chan->chan_adapter->adapt_dev; */
+       struct ncr53c9x_softc *sc = (void *)chan->chan_adapter->adapt_dev;
        int s, error = 0;
 
-       s = splbio();
 
        switch (cmd) {
+       case SCBUSIORESET:
+               s = splbio();
+               ncr53c9x_scsi_reset(sc);
+               splx(s);
+               break;
        default:
                error = ENOTTY;
                break;
        }
-       splx(s);
        return (error);
 }
 



Home | Main Index | Thread Index | Old Index