summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-01-12 21:11:59 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-01-12 21:11:59 +0000
commit5375e9ca7502ab26bb0b1359757b85449513425c (patch)
treedf3b5478bce79fc4e4be15f6845b1b446b69331b /sys/arch/sparc/dev
parent5bff219e9cd9f07d735060c3b8214cc42e5e0a0f (diff)
Oops, sunkbd_decode() still needs to be public for *cngetc() to work;
spotted the hard way by kettenis.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/z8530kbd.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/arch/sparc/dev/z8530kbd.c b/sys/arch/sparc/dev/z8530kbd.c
index 1738294377c..cad933dd4f1 100644
--- a/sys/arch/sparc/dev/z8530kbd.c
+++ b/sys/arch/sparc/dev/z8530kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530kbd.c,v 1.12 2009/01/11 16:12:14 miod Exp $ */
+/* $OpenBSD: z8530kbd.c,v 1.13 2009/01/12 21:11:56 miod Exp $ */
/* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */
/*-
@@ -1110,15 +1110,5 @@ zskbd_cngetc(v, type, data)
c = *zst->zst_cs->cs_reg_data;
splx(s);
- switch (c) {
- case SKBD_RSP_IDLE:
- *type = WSCONS_EVENT_ALL_KEYS_UP;
- *data = 0;
- break;
- default:
- *type = (c & 0x80) ?
- WSCONS_EVENT_KEY_UP : WSCONS_EVENT_KEY_DOWN;
- *data = c & 0x7f;
- break;
- }
+ sunkbd_decode(c, type, data);
}