aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sio
diff options
context:
space:
mode:
authorJustin T. Gibbs <gibbs@FreeBSD.org>1997-09-21 21:41:49 +0000
committerJustin T. Gibbs <gibbs@FreeBSD.org>1997-09-21 21:41:49 +0000
commit02a199102d13072dba351ddf7223e2935a63b694 (patch)
tree2a3eb6b8b56375d5cb0561151c4bf6d1c2f4e7f2 /sys/dev/sio
parent47558d4d775987b6d27a39adf50677442273bda1 (diff)
downloadsrc-02a199102d13072dba351ddf7223e2935a63b694.tar.gz
src-02a199102d13072dba351ddf7223e2935a63b694.zip
aha1542.c aic6360.c cy.c fd.c ft.c
if_ie.c if_wl.c if_zp.c isa.c isa_device.h labpc.c mcd.c ncr5380.c scd.c seagate.c si.c sio.c tw.c ultra14f.c wcd.c wd.c: Update for changes in the callout interface. apic_vector.s icu_vector.s ipl.s ipl_funcs.c: Add CAM software/hardware interrupt support.
Notes
Notes: svn path=/head/; revision=29677
Diffstat (limited to 'sys/dev/sio')
-rw-r--r--sys/dev/sio/sio.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 37d8ecdaafae..21beb8ce69bb 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.181 1997/09/14 03:19:23 peter Exp $
+ * $Id: sio.c,v 1.182 1997/09/19 15:25:49 jmg Exp $
*/
#include "opt_comconsole.h"
@@ -373,6 +373,8 @@ static u_int com_events; /* input chars + weighted output completions */
static Port_t siocniobase;
static int sio_timeout;
static int sio_timeouts_until_log;
+static struct callout_handle sio_timeout_handle
+ = CALLOUT_HANDLE_INITIALIZER(&sio_timeout_handle);
#if 0 /* XXX */
static struct tty *sio_tty[NSIOTOT];
#else
@@ -2410,7 +2412,7 @@ siosettimeout()
* Otherwise set it to max(1/200, 1/hz).
* Enable timeouts iff some device is open.
*/
- untimeout(comwakeup, (void *)NULL);
+ untimeout(comwakeup, (void *)NULL, sio_timeout_handle);
sio_timeout = hz;
someopen = FALSE;
for (unit = 0; unit < NSIOTOT; ++unit) {
@@ -2426,12 +2428,13 @@ siosettimeout()
}
if (someopen) {
sio_timeouts_until_log = hz / sio_timeout;
- timeout(comwakeup, (void *)NULL, sio_timeout);
+ sio_timeout_handle = timeout(comwakeup, (void *)NULL,
+ sio_timeout);
} else {
/* Flush error messages, if any. */
sio_timeouts_until_log = 1;
comwakeup((void *)NULL);
- untimeout(comwakeup, (void *)NULL);
+ untimeout(comwakeup, (void *)NULL, sio_timeout_handle);
}
}
@@ -2442,7 +2445,7 @@ comwakeup(chan)
struct com_s *com;
int unit;
- timeout(comwakeup, (void *)NULL, sio_timeout);
+ sio_timeout_handle = timeout(comwakeup, (void *)NULL, sio_timeout);
/*
* Recover from lost output interrupts.