summaryrefslogtreecommitdiff
path: root/kernel/include/drivers/ps2.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/drivers/ps2.hpp')
-rw-r--r--kernel/include/drivers/ps2.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/include/drivers/ps2.hpp b/kernel/include/drivers/ps2.hpp
new file mode 100644
index 0000000..13e184c
--- /dev/null
+++ b/kernel/include/drivers/ps2.hpp
@@ -0,0 +1,19 @@
+
+namespace drivers {
+
+ #define PS2_DATA 0x60
+ #define PS2_STATUS 0x64
+ #define PS2_CMD 0x64
+ #define CMD_DISABLE_MOUSE 0xA7
+ #define CMD_DISABLE_KEYBOARD 0xAD
+ #define CMD_READ_CONFIG 0x20
+ #define CMD_WRITE_CONFIG 0x60
+ #define CMD_SELF_TEST 0xAA
+ #define CMD_ENABLE_MOUSE 0xA8
+ #define CMD_ENABLE_KEYBOARD 0xAE
+
+ class ps2 {
+ public:
+ static void init();
+ };
+}; \ No newline at end of file