From ec04c40823f1a4265be8a6f81cbf5776dc2b2495 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Tue, 14 Feb 2023 00:02:55 +0000 Subject: ps2 driver --- kc/core/i8042.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 kc/core/i8042.h (limited to 'kc/core/i8042.h') 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; + -- cgit v1.3.1-1-g115d