ps2 init complete, can receive keyboard presses
This commit is contained in:
19
kernel/drivers/ps2/ps2.h
Normal file
19
kernel/drivers/ps2/ps2.h
Normal 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
|
||||
Reference in New Issue
Block a user