From 21ebff3b6764b8533651b52d342af1b43645756e Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 21 Jun 2002 13:27:49 +0000 Subject: [PATCH] implement SCBUSIORESET by calling ncr53c9x_scsi_reset() --- sys/dev/ic/ncr53c9x.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sys/dev/ic/ncr53c9x.c b/sys/dev/ic/ncr53c9x.c index 02fe49d55f56..c9fe468e8926 100644 --- a/sys/dev/ic/ncr53c9x.c +++ b/sys/dev/ic/ncr53c9x.c @@ -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 -__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 #include @@ -999,17 +999,20 @@ ncr53c9x_ioctl(chan, cmd, arg, flag, p) 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); }