diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-03-28 12:42:44 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-29 11:40:35 -0700 |
commit | 95a3a4107ae9c9013dbf3fb51ca3e98346cb82bb (patch) | |
tree | 5626015c33a2850cf6dc10a0194ab7dd20fa4d09 /include/keyboard_8042.h | |
parent | fe3ccdf70a002e651bc1a13bcc305ae1e3422154 (diff) | |
download | chrome-ec-95a3a4107ae9c9013dbf3fb51ca3e98346cb82bb.tar.gz |
Merge i8042.c into keyboard_8042.c
This is in preparation for cleaning up the 8042 protocol stack and
merging the typematic and i8042cmd tasks.
No functionality change, just shuffling code and renaming functions.
BUG=chrome-os-partner:18360
BRANCH=none
TEST=boot link and type on its keyboard
Change-Id: Iefc41cd5b8d18ac87830bff3080cfff92e9d10d2
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/46805
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/keyboard_8042.h')
-rw-r--r-- | include/keyboard_8042.h | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/include/keyboard_8042.h b/include/keyboard_8042.h index 2dcd0367ee..a0d3389d11 100644 --- a/include/keyboard_8042.h +++ b/include/keyboard_8042.h @@ -10,22 +10,15 @@ #include "common.h" -#define MAX_SCAN_CODE_LEN 4 - /** - * Handle the port 0x60 writes from host. + * Notify the keyboard module when a byte is written by the host. * - * This functions returns the number of bytes stored in *output buffer. - */ -int handle_keyboard_data(uint8_t data, uint8_t *output); - -/** - * Handle the port 0x64 writes from host. + * Note: This is called in interrupt context by the LPC interrupt handler. * - * This functions returns the number of bytes stored in *output buffer. - * BUT theose bytes will appear at port 0x60. + * @param data Byte written by host + * @param is_cmd Is byte command (!=0) or data (0) */ -int handle_keyboard_command(uint8_t command, uint8_t *output); +void keyboard_host_write(int data, int is_cmd); /** * Called by keyboard scan code once any key state change (after de-bounce), @@ -39,9 +32,4 @@ void keyboard_state_changed(int row, int col, int is_pressed); */ void keyboard_set_power_button(int pressed); -/** - * Log the keyboard-related information - */ -void kblog_put(char type, uint8_t byte); - #endif /* __CROS_EC_KEYBOARD_8042_H */ |