summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sun/sunkbdreg.h8
-rw-r--r--sys/dev/sun/sunkbdvar.h8
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/dev/sun/sunkbdreg.h b/sys/dev/sun/sunkbdreg.h
index c6afcc449ba..1eb5793e287 100644
--- a/sys/dev/sun/sunkbdreg.h
+++ b/sys/dev/sun/sunkbdreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunkbdreg.h,v 1.2 2002/04/08 17:49:42 jason Exp $ */
+/* $OpenBSD: sunkbdreg.h,v 1.3 2002/08/12 10:43:56 miod Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -46,7 +46,7 @@
#define SKBD_CMD_LAYOUT 0x0f
/* keyboard responses (kbd->host) */
-#define SKBD_RSP_RESET_OK 0x04 /* normal reset status */
+#define SKBD_RSP_RESET_OK 0x04 /* normal reset status for type 4/5/6 */
#define SKBD_RSP_IDLE 0x7f /* no keys down */
#define SKBD_RSP_LAYOUT 0xfe /* layout follows */
#define SKBD_RSP_RESET 0xff /* reset status follows */
@@ -60,3 +60,7 @@
#define SKBD_STATE_LAYOUT 1
#define SKBD_STATE_GETKEY 2
+/* keyboard types */
+#define KB_SUN2 2 /* type 2 keyboard */
+#define KB_SUN3 3 /* type 3 keyboard */
+#define KB_SUN4 4 /* type 4/5/6 keyboard */
diff --git a/sys/dev/sun/sunkbdvar.h b/sys/dev/sun/sunkbdvar.h
index 503f046581f..6c0bc7219d9 100644
--- a/sys/dev/sun/sunkbdvar.h
+++ b/sys/dev/sun/sunkbdvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunkbdvar.h,v 1.3 2002/05/29 20:43:43 maja Exp $ */
+/* $OpenBSD: sunkbdvar.h,v 1.4 2002/08/12 10:43:56 miod Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -36,10 +36,14 @@
*
*/
-extern const keysym_t sunkbd_keydesc_us[];
extern const struct wscons_keydesc sunkbd_keydesctab[];
extern struct wskbd_mapdata sunkbd_keymapdata;
extern const struct wscons_keydesc sunkbd5_keydesctab[];
extern struct wskbd_mapdata sunkbd5_keymapdata;
+/*
+ * Keyboard types 5 and 6 identify themselves as type 4, but might have
+ * different layouts. Fortunately they will have distinct layout codes, so
+ * here's a way to distinct types 5 and 6 from type 4.
+ */
#define ISTYPE5(layout) ((layout) > 0x20)