google/chromeec: Add new helper function to read MKBP events
This change adds a new helper function google_chromeec_get_mkbp_event that allows coreboot to query EC for the next available MKBP event. Change-Id: Ia6d64586ca62378d08025c96c2689c00c816041f Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/22007 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
committed by
Furquan Shaikh
parent
530c6f9cc8
commit
e01bf6452f
@@ -126,4 +126,10 @@ struct google_chromeec_event_info {
|
||||
void google_chromeec_events_init(const struct google_chromeec_event_info *info,
|
||||
bool is_s3_wakeup);
|
||||
|
||||
/*
|
||||
* Get next available MKBP event in ec_response_get_next_event. Returns 0 on
|
||||
* success, < 0 otherwise.
|
||||
*/
|
||||
int google_chromeec_get_mkbp_event(struct ec_response_get_next_event *event);
|
||||
|
||||
#endif /* _EC_GOOGLE_CHROMEEC_EC_H */
|
||||
|
Reference in New Issue
Block a user