diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-03-26 13:18:39 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-27 11:35:20 -0700 |
commit | c2b94fd184e6f5df5e5d8fe4018055a29a96a064 (patch) | |
tree | 7ccb95f13ca0cf5ff21b67687b4bb8fe30ad06d3 /include/keyboard_mkbp.h | |
parent | 0a2603e8ea234a9263a0a2e6be5daed362c12d72 (diff) | |
download | chrome-ec-c2b94fd184e6f5df5e5d8fe4018055a29a96a064.tar.gz |
Move files in preparation for merging keyboard_scan modules
This is part one of a series to merge the keyboard scan interface to
be common across all platforms.
This change just moves and renames files and APIs and removes some
read code, and sets up protocol-specific CONFIG options. It makes the
next CL which actually merges keyboard scanning easier to parse.
BUG=chrome-os-partner:18360
BRANCH=none
TEST=compile all boards; test keyboard on spring and link
Change-Id: I815a40aae4e5d5f333b8501aff9656080533d913
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/46549
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/keyboard_mkbp.h')
-rw-r--r-- | include/keyboard_mkbp.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/keyboard_mkbp.h b/include/keyboard_mkbp.h new file mode 100644 index 0000000000..2fb9fc1273 --- /dev/null +++ b/include/keyboard_mkbp.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + * MKBP keyboard protocol + */ + +#ifndef __CROS_EC_KEYBOARD_MKBP_H +#define __CROS_EC_KEYBOARD_MKBP_H + +#include "common.h" + +/** + * Add keyboard state into FIFO + * + * @return EC_SUCCESS if entry added, EC_ERROR_OVERFLOW if FIFO is full + */ +int keyboard_fifo_add(const uint8_t *buffp); + +/** + * Send KEY_BATTERY keystroke. + */ +void keyboard_send_battery_key(void); + +#endif /* __CROS_EC_KEYBOARD_MKBP_H */ |