Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __I8042_H
- #define __I8042_H
- #define STAT_REG 0x64 //Read the KBC state
- #define KBC_CMD_REG 0x64
- #define OUT_BUF 0x60 //The processor OUT_BUF
- #define IN_BUF 0x60 //The processor writes to the IN_BUF
- #define KBD_IRQ 1
- #define PAR_ERR BIT(7)//Parity error - invalid data
- #define TO_ERR BIT(6)//Timeout error - invalid data
- #define OBF BIT(0)
- #define IBF BIT(1)
- #define DELAY_US 20000
- #define ESC_CODE 0x81
- #define BIT(n) (0x01<<(n))
- #define TWO_BYTE_SCANCODE 0xE0
- #define NR_TRIES 6
- #define RESET_KBD 0xFF
- #define ENABLE_LEDS 0xED
- #define ACK 0xFA
- #define RESEND 0xFE
- #define ERROR 0xFC
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement