summaryrefslogtreecommitdiff
path: root/sys/arch/vax/vsa
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-08-19 23:54:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-08-19 23:54:28 +0000
commite0b2eaa098fac32d28aec256394004edb980e3cb (patch)
tree5a30c891ade247c9b80550f517e80cfc72725f4d /sys/arch/vax/vsa
parent333c2a189d5b7ca997ffbcc797372dcd473f0119 (diff)
The end of old timeouts is near...
Diffstat (limited to 'sys/arch/vax/vsa')
-rw-r--r--sys/arch/vax/vsa/dc.c11
-rw-r--r--sys/arch/vax/vsa/smg.c10
2 files changed, 14 insertions, 7 deletions
diff --git a/sys/arch/vax/vsa/dc.c b/sys/arch/vax/vsa/dc.c
index 0200eca52a8..660772b9701 100644
--- a/sys/arch/vax/vsa/dc.c
+++ b/sys/arch/vax/vsa/dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dc.c,v 1.3 2000/07/19 13:53:30 art Exp $ */
+/* $OpenBSD: dc.c,v 1.4 2001/08/19 23:54:22 miod Exp $ */
/* $NetBSD: dc.c,v 1.4 1996/10/13 03:36:10 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -75,6 +75,7 @@
#include <sys/uio.h>
#include <sys/kernel.h>
#include <sys/syslog.h>
+#include <sys/timeout.h>
/*
* bertram 17-apr-1996: we could use most of the include files directly
@@ -170,6 +171,7 @@ char dcsoftCAR[NDC]; /* mask of dc's with carrier on (DSR) */
* we have to use a timer to watch it.
*/
int dc_timer; /* true if timer started */
+struct timeout dc_timeout;
/*
* Pdma structures for fast output code
@@ -278,7 +280,7 @@ raster_console()
/*
* DC7085 (dz-11) probe routine from old-style config.
- * This is only here out of intertia.
+ * This is only here out of inertia.
*/
int
dc_doprobe(addr, unit, flags, priority)
@@ -325,7 +327,8 @@ dc_doprobe(addr, unit, flags, priority)
if (dc_timer == 0) {
dc_timer = 1;
- timeout(dcscan, (void *)0, hz);
+ timeout_set(&dc_timeout, dcscan, NULL);
+ timeout_add(&dc_timeout, hz);
}
/*
@@ -895,7 +898,7 @@ dcscan(arg)
(*linesw[tp->t_line].l_modem)(tp, 0) == 0)
dcaddr->dc_tcr &= ~bit;
splx(s);
- timeout(dcscan, (void *)0, hz);
+ timeout_add(&dc_timeout, hz);
}
/*
diff --git a/sys/arch/vax/vsa/smg.c b/sys/arch/vax/vsa/smg.c
index 29c534470a8..be9e54b95fb 100644
--- a/sys/arch/vax/vsa/smg.c
+++ b/sys/arch/vax/vsa/smg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smg.c,v 1.4 2001/06/15 22:45:34 miod Exp $ */
+/* $OpenBSD: smg.c,v 1.5 2001/08/19 23:54:22 miod Exp $ */
/* $NetBSD: smg.c,v 1.21 2000/03/23 06:46:44 thorpej Exp $ */
/*
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
@@ -38,6 +38,7 @@
#include <sys/malloc.h>
#include <sys/conf.h>
#include <sys/kernel.h>
+#include <sys/timeout.h>
#include <machine/vsbus.h>
#include <machine/sid.h>
@@ -198,6 +199,8 @@ struct smg_screen {
static struct smg_screen smg_conscreen;
static struct smg_screen *curscr;
+static struct timeout smg_blink_timeout;
+
extern int getmajor __P((void *)); /* conf.c */
int
@@ -247,7 +250,8 @@ smg_attach(struct device *parent, struct device *self, void *aux)
aa.console = !(vax_confdata & 0x20);
aa.scrdata = &smg_screenlist;
aa.accessops = &smg_accessops;
- timeout(smg_crsr_blink, 0, hz/2);
+ timeout_set(&smg_blink_timeout, smg_crsr_blink, NULL);
+ timeout_add(&smg_blink_timeout, hz / 2);
curcmd = CUR_CMD_HSHI;
WRITECUR(CUR_CMD, curcmd);
qf = qvss8x15.data;
@@ -263,7 +267,7 @@ smg_crsr_blink(void *arg)
{
if (cur_on)
*cursor ^= 255;
- timeout(smg_crsr_blink, 0, hz/2);
+ timeout_add(&smg_blink_timeout, hz / 2);
}
void