summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/zs.c
diff options
context:
space:
mode:
authormjacob <mjacob@cvs.openbsd.org>2000-06-28 20:22:16 +0000
committermjacob <mjacob@cvs.openbsd.org>2000-06-28 20:22:16 +0000
commitbe26993e6723b52e4702aac0903e1ca2ebe523af (patch)
treec952957c16c82b1492e8acfe811fe3afe785a1f1 /sys/arch/sparc/dev/zs.c
parentf63fb7fe2ef0299acdea8ec48e14132b4b794c4a (diff)
look in kbd.h to see whether we have configured a keyboard
Diffstat (limited to 'sys/arch/sparc/dev/zs.c')
-rw-r--r--sys/arch/sparc/dev/zs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/zs.c b/sys/arch/sparc/dev/zs.c
index 07a2575c95a..ec83c5e7e54 100644
--- a/sys/arch/sparc/dev/zs.c
+++ b/sys/arch/sparc/dev/zs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zs.c,v 1.22 1999/09/20 02:49:25 deraadt Exp $ */
+/* $OpenBSD: zs.c,v 1.23 2000/06/28 20:22:14 mjacob Exp $ */
/* $NetBSD: zs.c,v 1.49 1997/08/31 21:26:37 pk Exp $ */
/*
@@ -55,6 +55,7 @@
* This driver knows far too much about chip to usage mappings.
*/
#include "zs.h"
+#include "kbd.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -333,7 +334,9 @@ zsattach(parent, dev, aux)
*/
tp->t_ispeed = tp->t_ospeed = cs->cs_speed;
tp->t_cflag = CS8;
+#if NKBD > 0
kbd_serial(tp, zsiopen, zsiclose);
+#endif
cs->cs_conk = 1; /* do L1-A processing */
ringsize = 128;
} else {
@@ -1196,7 +1199,11 @@ again:
* bstreams XXX gag choke
*/
if (unit == ZS_KBD)
+#if NKDD > 0
kbd_rint(cc);
+#else
+ ;
+#endif
else if (unit == ZS_MOUSE)
ms_rint(cc);
else