]> Zhao Yanbai Git Server - minix.git/commitdiff
Support for raw keyboard I/O and the AUX (PS/2 mouse) channel.
authorPhilip Homburg <philip@cs.vu.nl>
Mon, 24 Oct 2005 13:52:53 +0000 (13:52 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Mon, 24 Oct 2005 13:52:53 +0000 (13:52 +0000)
include/ibm/interrupt.h
include/sys/ioc_tty.h
include/sys/kbdio.h [new file with mode: 0644]

index 0484deb157efcecbbacf4f699cdcf734077eb653..e163f64feb6534b7d6110149cd67cb38d906e377 100644 (file)
@@ -46,6 +46,7 @@
 #define XT_WINI_IRQ        5   /* xt winchester */
 #define FLOPPY_IRQ         6   /* floppy disk */
 #define PRINTER_IRQ        7
+#define KBD_AUX_IRQ       12   /* AUX (PS/2 mouse) port in kbd controller */
 #define AT_WINI_0_IRQ     14   /* at winchester controller 0 */
 #define AT_WINI_1_IRQ     15   /* at winchester controller 1 */
 
index 4105eccf817ce6a6d4f07495b10b8ae5faff745f..e2f09d227209d3b59bd166b867a5344af5a74309 100755 (executable)
@@ -31,6 +31,8 @@
 #define TIOCSETC       _IOW('t',  4, struct tchars)
 
 /* Keyboard ioctls. */
+#define KIOCBELL        _IOW('k', 1, struct kio_bell)
+#define KIOCSLEDS       _IOW('k', 2, struct kio_leds)
 #define KIOCSMAP       _IOW('k', 3, keymap_t)
 
 #endif /* _S_I_TTY_H */
diff --git a/include/sys/kbdio.h b/include/sys/kbdio.h
new file mode 100644 (file)
index 0000000..ce21d57
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef _SYS__KBDIO_H
+#define _SYS__KBDIO_H
+
+#include <sys/time.h>
+
+typedef struct kio_bell
+{
+       unsigned kb_pitch;              /* Bell frequency in HZ */
+       unsigned long kb_volume;        /* Volume in micro volts */
+       struct timeval kb_duration;
+} kio_bell_t;
+
+typedef struct kio_leds
+{
+       unsigned kl_bits;
+} kio_leds_t;
+
+#define KBD_LEDS_NUM   0x1
+#define KBD_LEDS_CAPS  0x2
+#define KBD_LEDS_SCROLL        0x4
+
+#endif /* _SYS__KBDIO_H */