Revision 11
Added function 5.2, must check for errors
i8042.h | ||
---|---|---|
24 | 24 |
#define STAT_REG_IBF BIT(1) /* Input Buffer Full */ |
25 | 25 |
#define STAT_REG_OBF BIT(0) /* Output Buffer Full */ |
26 | 26 |
|
27 |
#define READ_COMMAND 0x20 /* Returns Command Byte */ |
|
28 |
|
|
27 | 29 |
#define OUTPUT_BUF 0x60 /* Output Buffer */ |
28 | 30 |
#define INPUT_BUF 0x60 /* Input Buffer */ |
29 |
#define STATUS_REG 0x64 /* Status Register */ |
|
30 |
#define KBC_CMD_REG 0x64 /* Command Register */ |
|
31 |
#define KBC_CMD_ARG 0x60 /* Command Arguments Adress */ |
|
31 |
#define STATUS_REG 0x64 /* Status Register */ |
|
32 |
#define KBC_CMD_REG 0x64 /* Command Register */ |
|
33 |
#define INT_ENABLE BIT(0) /*enable interrupt on OBF, from keyboard*/ |
|
34 |
#define KBC_CMD_ARG 0x60 /* Command Arguments Adress */ |
|
32 | 35 |
|
33 |
#define ESC_BREAK 0x81 |
|
36 |
#define ESC_BREAK 0x81
|
|
34 | 37 |
#define TWO_BYTE_SCANCODE 0xE0 /* Two-byte long scancodes use 0xE0 as their first byte */ |
35 |
#define MAKE_CODE BIT(7)
|
|
38 |
#define MAKE_CODE BIT(7) |
|
36 | 39 |
|
37 | 40 |
#endif /* _LCOM_I8042_H */ |
Also available in: Unified diff