ps2 init complete, can receive keyboard presses

This commit is contained in:
2026-06-13 19:53:57 -04:00
parent 3ecbcdf369
commit 2ab98fe582
11 changed files with 240 additions and 21 deletions

19
kernel/drivers/ps2/ps2.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef KPS2_H
#define KPS2_H
#define PS2_DATA 0x60
#define PS2_STATUS 0x64
#define PS2_COMMAND 0x64
#define CMD_DISABLE_P1 0xAD
#define CMD_DISABLE_P2 0xAE
#define CMD_READ_CCB 0x20
#define CMD_WRITE_CCB 0x60
#define CMD_SELF_TEST 0xAA
#define CMD_TEST_P1 0xAB
#define CMD_ENABLE_P1 0xAE
#define SELF_TEST_SUCCESS 0x55
#define PORT_TEST_SUCCESS 0x00
#endif