Support for raw keyboard I/O and the AUX (PS/2 mouse) channel.

This commit is contained in:
Philip Homburg
2005-10-24 13:52:53 +00:00
parent ed4ec02ddf
commit d920f5e0f9
3 changed files with 25 additions and 0 deletions

View File

@@ -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 */

22
include/sys/kbdio.h Normal file
View File

@@ -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 */