20 #include <sys/types.h> 34 #define MW_UID_REGISTER_DEVICE 0x4100 35 #define MW_UID_UNREGISTER_DEVICE 0x4101 38 enum MW_INPUT_DEVICE_TYPE {
47 #define MV_BUTTON_RIGHT 0x01 48 #define MV_BUTTON_CENTER 0x02 49 #define MV_BUTTON_LEFT 0x04 52 #define MV_KEY_MODIFIER_SHIFT_DOWN 0x10 53 #define MV_KEY_MODIFIER_ALT_DOWN 0x20 56 #define MV_KEY_MODIFIER_CAPS_ON 0x04 57 #define MV_KEY_MODIFIER_NUN_LOCK_ON 0x02 58 #define MV_KEY_SCROLL_LOCK_ON 0x01 61 #define MV_KEY_MODE_ASCII 0x01 66 #define MV_KEY_MODE_SCANCODE 0x00 72 #define MV_KDGKBMODE 0x4B44 73 #define MV_KDSKBMODE 0x4B45 79 enum MW_INPUT_DEVICE_TYPE type;
84 unsigned char modifiers;
128 extern int uid_open_queue(
const char *q_name,
int flags,
size_t max_msgs );
164 extern int uid_unregister_device(
int fd );
167 extern int uid_set_kbd_mode(
int fd,
int mode,
int *old_mode );
void uid_print_message(struct MW_UID_MESSAGE *uid)
This methods prints the specified UID message using printk.
Definition: mw_print.c:42
int uid_close_queue(void)
This method closes the message queue and deletes it.
Definition: mw_uid.c:77
int uid_open_queue(const char *q_name, int flags, size_t max_msgs)
This method creates the message queue that holds events from the input devices.
Definition: mw_uid.c:37
int uid_register_device(int fd, const char *q_name)
This method registers the device associated with fd to to insert data to the queue.
Definition: mw_uid.c:141
int uid_send_message(struct MW_UID_MESSAGE *m)
This methods writes a message to the queue.
Definition: mw_uid.c:129
void uid_print_message_with_plugin(void *context, rtems_printk_plugin_t handler, struct MW_UID_MESSAGE *uid)
This methods prints the specified UID message using your fprintf style method of choice.
Definition: mw_print.c:49
int uid_read_message(struct MW_UID_MESSAGE *m, unsigned long timeout)
This method reads a message from the queue.
Definition: mw_uid.c:88
Interface to Kernel Print Methods.
Definition: inftrees.h:25
int(* rtems_printk_plugin_t)(void *, const char *format,...)
Type definition for function which can be plugged in to certain reporting routines to redirect the ou...
Definition: bspIo.h:129