summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/pccons.h
diff options
context:
space:
mode:
authorhannken <hannken@cvs.openbsd.org>1996-04-22 20:12:17 +0000
committerhannken <hannken@cvs.openbsd.org>1996-04-22 20:12:17 +0000
commit142757127cc86a1fada75c93c62f071a5c485bcf (patch)
tree3acabda5affdabae8d0e14d9c2543b441de0cac8 /sys/arch/i386/include/pccons.h
parent432022142e78689b183985c1fe9921c958bcb7f3 (diff)
add ioctls to change keymap encoding, screen saver and partial latin1 output
Diffstat (limited to 'sys/arch/i386/include/pccons.h')
-rw-r--r--sys/arch/i386/include/pccons.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/arch/i386/include/pccons.h b/sys/arch/i386/include/pccons.h
index f1eb362d867..f619d861868 100644
--- a/sys/arch/i386/include/pccons.h
+++ b/sys/arch/i386/include/pccons.h
@@ -1,3 +1,4 @@
+/* $OpenBSD: pccons.h,v 1.3 1996/04/22 20:12:14 hannken Exp $ */
/* $NetBSD: pccons.h,v 1.4 1996/02/02 18:06:06 mycroft Exp $ */
/*
@@ -9,9 +10,36 @@
#include <sys/ioctl.h>
+/* key types -- warning: pccons.c depends on most values */
+
+#define KB_SCROLL 0x0001 /* stop output */
+#define KB_NUM 0x0002 /* numeric shift cursors vs. numeric */
+#define KB_CAPS 0x0004 /* caps shift -- swaps case of letter */
+#define KB_SHIFT 0x0008 /* keyboard shift */
+#define KB_CTL 0x0010 /* control shift -- allows ctl function */
+#define KB_ASCII 0x0020 /* ascii code for this key */
+#define KB_ALTGR 0x0040 /* alternate graphics shift */
+#define KB_ALT 0x0080 /* alternate shift -- alternate chars */
+#define KB_FUNC 0x0100 /* function key */
+#define KB_KP 0x0200 /* Keypad keys */
+#define KB_NONE 0x0400 /* no function */
+
+#define KB_CODE_SIZE 4 /* Use a max of 4 for now... */
+#define KB_NUM_KEYS 128 /* Number of scan codes */
+typedef struct {
+ u_short type;
+ char unshift[KB_CODE_SIZE];
+ char shift[KB_CODE_SIZE];
+ char ctl[KB_CODE_SIZE];
+ char altgr[KB_CODE_SIZE];
+ char shift_altgr[KB_CODE_SIZE];
+} keymap_t;
+
#define CONSOLE_X_MODE_ON _IO('t',121)
#define CONSOLE_X_MODE_OFF _IO('t',122)
#define CONSOLE_X_BELL _IOW('t',123,int[2])
#define CONSOLE_SET_TYPEMATIC_RATE _IOW('t',124,u_char)
+#define CONSOLE_GET_KEYMAP _IOR('t',128,keymap_t[KB_NUM_KEYS])
+#define CONSOLE_SET_KEYMAP _IOW('t',129,keymap_t[KB_NUM_KEYS])
#endif /* _PCCONS_H_ */