diff options
Diffstat (limited to 'include/keyboard_8042.h')
-rw-r--r-- | include/keyboard_8042.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/keyboard_8042.h b/include/keyboard_8042.h index ee07f1d81d..e43ceb1164 100644 --- a/include/keyboard_8042.h +++ b/include/keyboard_8042.h @@ -30,6 +30,17 @@ void button_state_changed(enum keyboard_button_type button, int is_pressed); */ void keyboard_host_write(int data, int is_cmd); +/** + * Send a scan code to the host. + * + * The EC lib will push the scan code bytes to host via port 0x60 and assert + * the IBF flag to trigger an interrupt. The EC lib must queue them if the + * host cannot read the previous byte away in time. + * + * @param len Number of bytes to send to the host + * @param bytes Data to send + */ +void i8042_send_to_host(int len, const uint8_t *bytes); /* Utilities for scan code and make code. */ |