summaryrefslogtreecommitdiff
path: root/include/keyboard_mkbp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keyboard_mkbp.h')
-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 */