Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Use the new generic mechanism for forcing polling...
details: https://anonhg.NetBSD.org/src/rev/20ec56c70341
branches: trunk
changeset: 511167:20ec56c70341
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Wed Jun 13 18:27:27 2001 +0000
description:
Use the new generic mechanism for forcing polling on a SCSI interface, rather
than doing it ourselves.
diffstat:
sys/dev/ic/ncr5380sbc.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 866ad327514b -r 20ec56c70341 sys/dev/ic/ncr5380sbc.c
--- a/sys/dev/ic/ncr5380sbc.c Wed Jun 13 18:17:38 2001 +0000
+++ b/sys/dev/ic/ncr5380sbc.c Wed Jun 13 18:27:27 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ncr5380sbc.c,v 1.40 2001/04/25 17:53:33 bouyer Exp $ */
+/* $NetBSD: ncr5380sbc.c,v 1.41 2001/06/13 18:27:27 bjh21 Exp $ */
/*
* Copyright (c) 1995 David Jones, Gordon W. Ross
@@ -610,9 +610,6 @@
periph = xs->xs_periph;
flags = xs->xs_control;
- if (sc->sc_flags & NCR5380_FORCE_POLLING)
- flags |= XS_CTL_POLL;
-
if (flags & XS_CTL_DATA_UIO)
panic("ncr5380: scsi data uio requested");
@@ -2580,6 +2577,8 @@
adapt->adapt_nchannels = 1;
adapt->adapt_openings = SCI_OPENINGS;
adapt->adapt_max_periph = 1;
+ if (sc->sc_flags & NCR5380_FORCE_POLLING)
+ adapt->adapt_flags |= SCSIPI_ADAPT_POLL_ONLY;
/* adapt_minphys filled in by front-end */
/*
Home |
Main Index |
Thread Index |
Old Index