summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBoris Mittelberg <bmbm@google.com>2021-03-30 00:25:41 +0000
committerCommit Bot <commit-bot@chromium.org>2021-04-27 04:49:44 +0000
commit8505881ed0b9d22f28a7687fa23704dec287bdc0 (patch)
treeb83c8eb020d86d31f45968b719249b004d66bde8 /include
parent8d24309955adcab6a27532e1379cb5e3a7208573 (diff)
downloadchrome-ec-8505881ed0b9d22f28a7687fa23704dec287bdc0.tar.gz
mkbp: Separate MKBP_INFO host command from the keyboard driver
Detaching protocol-related info command from the keyboard driver. BUG=b:170966461 BRANCH=main,firmware-dedede-13606.B,firmware-volteer-13672.B-main TEST=None Signed-off-by: Boris Mittelberg <bmbm@google.com> Change-Id: I7943f7537bdf003145e9bd909a14f9451d922a5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2796381
Diffstat (limited to 'include')
-rw-r--r--include/keyboard_mkbp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/keyboard_mkbp.h b/include/keyboard_mkbp.h
index c0fe0a842d..41c7357259 100644
--- a/include/keyboard_mkbp.h
+++ b/include/keyboard_mkbp.h
@@ -35,4 +35,14 @@ static inline void keyboard_send_battery_key(void) { }
*/
void mkbp_update_switches(uint32_t sw, int state);
+/**
+ * Retrieve state of buttons [Power, Volume up/down, etc]
+ */
+uint32_t mkbp_get_button_state(void);
+
+/**
+ * Retrieve state of switches [Lid open/closed, tablet mode switch, etc]
+ */
+uint32_t mkbp_get_switch_state(void);
+
#endif /* __CROS_EC_KEYBOARD_MKBP_H */