Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/dev/ic Pullup rev 1.111 (requested by pk in ticket ...
details: https://anonhg.NetBSD.org/src/rev/f0cf016ef75d
branches: netbsd-2-0
changeset: 560765:f0cf016ef75d
user: jmc <jmc%NetBSD.org@localhost>
date: Thu May 06 05:35:15 2004 +0000
description:
Pullup rev 1.111 (requested by pk in ticket #255)
On reset, clear state flags and the msgout queue and notify the upper layer.
diffstat:
sys/dev/ic/ncr53c9x.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 1df4e2fefd0e -r f0cf016ef75d sys/dev/ic/ncr53c9x.c
--- a/sys/dev/ic/ncr53c9x.c Thu May 06 05:34:35 2004 +0000
+++ b/sys/dev/ic/ncr53c9x.c Thu May 06 05:35:15 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ncr53c9x.c,v 1.110 2003/11/02 11:07:45 wiz Exp $ */
+/* $NetBSD: ncr53c9x.c,v 1.110.2.1 2004/05/06 05:35:15 jmc 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.110 2003/11/02 11:07:45 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.110.2.1 2004/05/06 05:35:15 jmc Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -495,7 +495,10 @@
*/
ncr53c9x_reset(sc);
+ sc->sc_flags = 0;
+ sc->sc_msgpriq = sc->sc_msgout = sc->sc_msgoutq = 0;
sc->sc_phase = sc->sc_prevphase = INVALID_PHASE;
+
for (r = 0; r < sc->sc_ntarg; r++) {
struct ncr53c9x_tinfo *ti = &sc->sc_tinfo[r];
/* XXX - config flags per target: low bits: no reselect; high bits: no synch */
@@ -521,6 +524,9 @@
sc->sc_state = NCR_IDLE;
ncr53c9x_sched(sc);
}
+
+ /* Notify upper layer */
+ scsipi_async_event(&sc->sc_channel, ASYNC_EVENT_RESET, NULL);
}
/*
Home |
Main Index |
Thread Index |
Old Index