diff options
| author | petrov <petrov@NetBSD.org> | 2002-10-06 21:35:33 +0000 |
|---|---|---|
| committer | petrov <petrov@NetBSD.org> | 2002-10-06 21:35:33 +0000 |
| commit | 94f3e9b824a831977c669928880cf6b60ed02ea3 (patch) | |
| tree | c7bc9c175940f9301eea732589049abd42e448ac /sys/dev | |
| parent | d1cbc91464b8954f966cea0ce99a55bc1f78a9c5 (diff) | |
Reset the driver on scsibus reset.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/ncr53c9x.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ic/ncr53c9x.c b/sys/dev/ic/ncr53c9x.c index 066498b2053..6fdaf6418db 100644 --- a/sys/dev/ic/ncr53c9x.c +++ b/sys/dev/ic/ncr53c9x.c @@ -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 @@ ncr53c9x_ioctl(chan, cmd, arg, flag, p) switch (cmd) { case SCBUSIORESET: s = splbio(); - ncr53c9x_scsi_reset(sc); + ncr53c9x_init(sc, 1); splx(s); break; default: @@ -2023,7 +2023,7 @@ ncr53c9x_msgout(sc) } #ifdef DEBUG - { + if (ncr53c9x_debug & NCR_SHOWMSGS) { int i; NCR_MSGS(("<msgout:")); @@ -2720,7 +2720,6 @@ msgin: /* DELAY(1);*/ } if (sc->sc_features & NCR_F_DMASELECT) { - size_t size; /* setup DMA transfer for command */ size = ecb->clen; sc->sc_cmdlen = size; |
