summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-04-21 12:33:26 +0000
committerkato <kato@FreeBSD.org>1997-04-21 12:33:26 +0000
commit591065bf8238efbce9f5d665563285148b6fbe8b (patch)
tree811ecd9178fc3fcd47c72d864c0db56edc0eae36
parentc21bde24da3da0c6d3807aaf0e605d64e688b102 (diff)
downloadFreeBSD-src-591065bf8238efbce9f5d665563285148b6fbe8b.zip
FreeBSD-src-591065bf8238efbce9f5d665563285148b6fbe8b.tar.gz
Synchronize with sys/i386/isa/lpt.c revision 1.60.
-rw-r--r--sys/pc98/pc98/lpt.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/pc98/pc98/lpt.c b/sys/pc98/pc98/lpt.c
index 2b70598..1569204 100644
--- a/sys/pc98/pc98/lpt.c
+++ b/sys/pc98/pc98/lpt.c
@@ -46,7 +46,7 @@
* SUCH DAMAGE.
*
* from: unknown origin, 386BSD 0.1
- * $Id: lpt.c,v 1.10 1997/02/22 09:43:39 peter Exp $
+ * $Id: lpt.c,v 1.11 1997/03/24 12:29:33 bde Exp $
*/
/*
@@ -269,7 +269,7 @@ static struct lpt_softc {
#define MAX_SLEEP (hz*5) /* Timeout while waiting for device ready */
#define MAX_SPIN 20 /* Max delay for device ready in usecs */
-static void lptout (struct lpt_softc * sc);
+static timeout_t lptout;
static int lptprobe (struct isa_device *dvp);
static int lptattach (struct isa_device *isdp);
@@ -597,7 +597,7 @@ lptopen (dev_t dev, int flags, int fmt, struct proc *p)
lprintf("irq %x\n", sc->sc_irq);
if (sc->sc_irq & LP_USE_IRQ) {
sc->sc_state |= TOUT;
- timeout ((timeout_func_t)lptout, (caddr_t)sc,
+ timeout (lptout, (caddr_t)sc,
(sc->sc_backoff = hz/LPTOUTINITIAL));
}
@@ -606,15 +606,17 @@ lptopen (dev_t dev, int flags, int fmt, struct proc *p)
}
static void
-lptout (struct lpt_softc * sc)
-{ int pl;
+lptout (void *arg)
+{
+ struct lpt_softc *sc = arg;
+ int pl;
lprintf ("T %x ", inb(sc->sc_port+lpt_status));
if (sc->sc_state & OPEN) {
sc->sc_backoff++;
if (sc->sc_backoff > hz/LPTOUTMAX)
sc->sc_backoff = sc->sc_backoff > hz/LPTOUTMAX;
- timeout ((timeout_func_t)lptout, (caddr_t)sc, sc->sc_backoff);
+ timeout (lptout, (caddr_t)sc, sc->sc_backoff);
} else
sc->sc_state &= ~TOUT;
OpenPOWER on IntegriCloud