aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-11 15:10:52 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-11 15:10:52 +0100
commita7ff74cdf2835625282491242ede57b05ceaa782 (patch)
tree77e2ad6c814c1812412a6816f0a4875e68dbfbf3 /src/common
parent5e9251bd48acafff575ed1c740e4dc05ec175508 (diff)
downloadkogata-a7ff74cdf2835625282491242ede57b05ceaa782.tar.gz
kogata-a7ff74cdf2835625282491242ede57b05ceaa782.zip
Add pckbd driver.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/include/proto/keyboard.h20
1 files changed, 20 insertions, 0 deletions
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 <stdint.h>
+#include <stddef.h>
+
+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 :*/