ref: 1a9e9aa22d5ea5a83bcdfc43b636c43dfb0c7ee8
dir: /include/ps2.h/
#pragma once enum KB_CTR_CMD { ENABLE = 0xAE, }; enum KB_CMD { SET_LED = 0xED, ECHO = 0xEE, /* no knock-knock jokes are allowed in this comment*/ SET_SCANCODE = 0xF0, IDENTIFY_KB = 0xF2, /* checks if something is there */ SET_RATE = 0xF3, /* also sets delay */ DO_SCAN = 0xF4, DONT_SCAN = 0xF5, /* may also restore default parameters */ C_RESEND = 0xFE, RESET = 0xFF, }; enum KB_ANS { INT_ERR1 = 0x00, INT_ERR2 = 0xFF, TEST_OK = 0xAA, ECHO_ACK = 0xEE, CMD_ACK = 0xFA, A_RESEND = 0xFE, TEST_ERR1 = 0xFC, /* either of which may happen */ TEST_ERR2 = 0xFD, }; char ps2_getc(void); void ps2_init(void);