]>
git.dujemihanovic.xyz Git - nameless-os.git/blob - include/arch/x86/input/ps2.h
1 #ifndef X86_INPUT_PS2_H
2 #define X86_INPUT_PS2_H
5 #define PS2_DATA_PORT 0x60
6 #define PS2_CMD_STS_PORT 0x64
8 /* command constants */
9 #define PS2_CMD_PORT_2_DISABLE 0xA7
10 #define PS2_CMD_PORT_1_DISABLE 0xAD
11 #define PS2_CMD_PORT_2_ENABLE 0xA8
12 #define PS2_CMD_PORT_1_ENABLE 0xAE
13 #define PS2_CMD_READ_CCB 0x20
14 #define PS2_CMD_WRITE_CCB 0x60
15 #define PS2_CMD_CONTROLLER_TEST 0xAA
16 #define PS2_CMD_PORT_1_TEST 0xAB
17 #define PS2_CMD_PORT_2_TEST 0xA9
18 #define PS2_CMD_PORT_2_WRITE 0xD4
20 #define PS2_DEV_RESET 0xFF
22 #define PS2_CONTROLLER_GOOD 0x55
23 #define PS2_CONTROLLER_BAD 0xFC
48 SELF_TEST_GOOD
= 0xAA,
50 SELF_TEST_BAD_2
= 0xFD,
55 static const char scancodes
[] = {
100 extern int ps2_initialize();
101 extern void ps2_input_wait();
102 extern void ps2_output_wait();