patch-2.1.16 linux/include/asm-sparc64/kbio.h
Next file: linux/include/asm-sparc64/mman.h
Previous file: linux/include/asm-sparc64/ioctls.h
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Fri Dec 13 11:37:47 1996
- Orig file:
v2.1.15/linux/include/asm-sparc64/kbio.h
- Orig date:
Thu Jan 1 02:00:00 1970
diff -u --recursive --new-file v2.1.15/linux/include/asm-sparc64/kbio.h linux/include/asm-sparc64/kbio.h
@@ -0,0 +1,45 @@
+/* $Id: kbio.h,v 1.1 1996/12/02 00:06:41 davem Exp $ */
+#ifndef __LINUX_KBIO_H
+#define __LINUX_KBIO_H
+
+/* Return keyboard type */
+#define KIOCTYPE _IOR('k', 9, int)
+/* Return Keyboard layout */
+#define KIOCLAYOUT _IOR('k', 20, int)
+
+enum {
+ TR_NONE,
+ TR_ASCII, /* keyboard is in regular state */
+ TR_EVENT, /* keystrokes sent as firm events */
+ TR_UNTRANS_EVENT /* EVENT+up and down+no translation */
+};
+
+/* Return the current keyboard translation */
+#define KIOCGTRANS _IOR('k', 5, int)
+/* Set the keyboard translation */
+#define KIOCTRANS _IOW('k', 0, int)
+
+/* Send a keyboard command */
+#define KIOCCMD _IOW('k', 8, int)
+
+/* Return if keystrokes are being sent to /dev/kbd */
+
+/* Set routing of keystrokes to /dev/kbd */
+#define KIOCSDIRECT _IOW('k', 10, int)
+
+/* Set keyboard leds */
+#define KIOCSLED _IOW('k', 14, unsigned char)
+
+/* Get keyboard leds */
+#define KIOCGLED _IOR('k', 15, unsigned char)
+
+/* Top bit records if the key is up or down */
+#define KBD_UP 0x80
+
+/* Usable information */
+#define KBD_KEYMASK 0x7f
+
+/* All keys up */
+#define KBD_IDLE 0x75
+
+#endif /* __LINUX_KBIO_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov