diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-08-08 15:10:04 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-08-08 15:10:04 +0000 |
commit | bdcab2e2925add61e6fb0a3c57313e5d62d99cf5 (patch) | |
tree | a34796a50ed58507ba1e896b4c72565600c3a9b5 /sys/dev/puc/com_puc.c | |
parent | ca81e2ab3aab9b35e71435c63e25f14b9479ff50 (diff) |
initialize timeouts, since it's a copy of comattach; reported by Larry Moore <lmoore@starwon.com.au>
Diffstat (limited to 'sys/dev/puc/com_puc.c')
-rw-r--r-- | sys/dev/puc/com_puc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/puc/com_puc.c b/sys/dev/puc/com_puc.c index f6b157d1063..a17b595759c 100644 --- a/sys/dev/puc/com_puc.c +++ b/sys/dev/puc/com_puc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_puc.c,v 1.2 2001/03/15 17:52:20 deraadt Exp $ */ +/* $OpenBSD: com_puc.c,v 1.3 2001/08/08 15:10:03 mickey Exp $ */ /* * Copyright (c) 1997 - 1999, Jason Downs. All rights reserved. @@ -125,6 +125,7 @@ com_puc_attach(parent, self, aux) sc->sc_ioh = pa->h; sc->sc_iobase = pa->a; sc->sc_frequency = COM_FREQ; + if (pa->flags) sc->sc_frequency = pa->flags & PUC_COM_CLOCKMASK; @@ -145,6 +146,9 @@ com_puc_attach2(sc) sc->sc_hwflags = 0; sc->sc_swflags = 0; + timeout_set(&sc->sc_dtr_tmo, com_raisedtr, sc); + timeout_set(&sc->sc_diag_tmo, comdiag, sc); + /* * Probe for all known forms of UART. */ |