summaryrefslogtreecommitdiff
path: root/sys/arch/vax/qbus/dzvar.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-04-02 23:45:30 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-04-02 23:45:30 +0000
commit9f460e24b686c92fed4fca1e0fb93274d0930222 (patch)
tree29b842f61d1319c137b0bc866cdea358229d8175 /sys/arch/vax/qbus/dzvar.h
parent4d2e69a4def08a469de9a7d4508e47e6cca5a1b8 (diff)
DZ-11 (or the DZ-11 alike in the VS4000/VLC anyway) only interrupts when
the RX fifo goes from 0 -> 1 characters. If the FIFO is filled (eg. during autoconf where interrupts are cleared), the dz will never interrupt for rx again. Solution: drain the fifo on first open. ok hugh
Diffstat (limited to 'sys/arch/vax/qbus/dzvar.h')
-rw-r--r--sys/arch/vax/qbus/dzvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/vax/qbus/dzvar.h b/sys/arch/vax/qbus/dzvar.h
index 2ece7a31ff3..1c0c490867e 100644
--- a/sys/arch/vax/qbus/dzvar.h
+++ b/sys/arch/vax/qbus/dzvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dzvar.h,v 1.3 2001/08/25 13:33:37 hugh Exp $ */
+/* $OpenBSD: dzvar.h,v 1.4 2003/04/02 23:45:29 jason Exp $ */
/* $NetBSD: dzvar.h,v 1.8 2000/06/04 02:14:12 matt Exp $ */
/*
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
@@ -58,6 +58,7 @@ struct dz_softc {
bus_space_handle_t sc_ioh;
int sc_type; /* DZ11 or DZV11? */
int sc_rxint; /* Receive interrupt count XXX */
+ int sc_openings; /* # of times we've been opened */
u_char sc_brk; /* Break asserted on some lines */
u_char sc_dsr; /* DSR set bits if no mdm ctrl */
struct dz_linestate {