diff options
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/lpt.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ic/lpt.c b/sys/dev/ic/lpt.c index ade9a6e91b7..236b28ae8bf 100644 --- a/sys/dev/ic/lpt.c +++ b/sys/dev/ic/lpt.c @@ -1,4 +1,4 @@ -/* $NetBSD: lpt.c,v 1.53 1999/02/12 01:51:37 thorpej Exp $ */ +/* $NetBSD: lpt.c,v 1.54 1999/03/25 02:17:38 perry Exp $ */ /* * Copyright (c) 1993, 1994 Charles M. Hannum. @@ -389,7 +389,15 @@ lptintr(arg) u_char control = sc->sc_control; /* send char */ bus_space_write_1(iot, ioh, lpt_data, *sc->sc_cp++); +#ifdef BROKEN_LPT_DELAY + /* Kludge to prevent mysterious hangs and reboots. */ + DELAY(BROKEN_LPT_DELAY); +#endif bus_space_write_1(iot, ioh, lpt_control, control | LPC_STROBE); +#ifdef BROKEN_LPT_DELAY + /* Kludge to prevent mysterious hangs and reboots. */ + DELAY(BROKEN_LPT_DELAY); +#endif sc->sc_count--; bus_space_write_1(iot, ioh, lpt_control, control); sc->sc_state |= LPT_OBUSY; |
