From a7ff74cdf2835625282491242ede57b05ceaa782 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 11 Mar 2015 15:10:52 +0100 Subject: Add pckbd driver. --- src/common/include/proto/keyboard.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/common/include/proto/keyboard.h (limited to 'src/common/include') diff --git a/src/common/include/proto/keyboard.h b/src/common/include/proto/keyboard.h new file mode 100644 index 0000000..044946d --- /dev/null +++ b/src/common/include/proto/keyboard.h @@ -0,0 +1,20 @@ +#pragma once + +#include +#include + +typedef struct { + uint16_t scancode; + uint16_t type; +} kbd_event_t; + +#define KBD_EVENT_KEYRELEASE 0 +#define KBD_EVENT_KEYPRESS 1 + +#define IOCTL_KBD_SET_LEDS 10 + +#define KBD_LED_SCROLLLOCK 1 +#define KBD_LED_NUMLOCK 1 +#define KBD_LED_CAPSLOCK 4 + +/* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3