summaryrefslogtreecommitdiff
path: root/kc/core/i8042.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2023-02-14 00:02:55 +0000
committerAda Christine <adachristine18@gmail.com>2023-02-14 00:02:55 +0000
commitec04c40823f1a4265be8a6f81cbf5776dc2b2495 (patch)
treef4a5f5e2301ec3ac15773fadf658315689a74ceb /kc/core/i8042.h
parent6cdf57afc0a1da4abec33527cc70626d704ba565 (diff)
ps2 driver
Diffstat (limited to 'kc/core/i8042.h')
-rw-r--r--kc/core/i8042.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/kc/core/i8042.h b/kc/core/i8042.h
new file mode 100644
index 0000000..80a6c92
--- /dev/null
+++ b/kc/core/i8042.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "input.h"
+
+#define I8042_DATA_PORT 0x60
+#define I8042_STATUS_PORT 0x64
+#define I8042_COMMAND_PORT 0x64
+
+#define I8042_OUT_DATA 0x1
+#define I8042_IN_DATA 0x2
+#define I8042_SYSTEM 0x4
+#define I8042_DATA_IS_COMMAND 0x8
+#define I8042_ERR_TIMEOUT 0x40
+#define I8042_ERR_PARITY 0x80
+
+extern const struct input_source i8042_input_source;
+