diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-04-05 09:25:52 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-04-06 22:27:01 -0700 |
commit | e3f5e6bf6ad2d1e2c283a75cf08e17155633e0a5 (patch) | |
tree | 298b008619be3fd4dc7989e0c39ba2c2cbccbd0f /include/host_command.h | |
parent | a8e6b070cbd107d8c2f44f44ae8231a4f4efea90 (diff) | |
download | chrome-ec-e3f5e6bf6ad2d1e2c283a75cf08e17155633e0a5.tar.gz |
system: Fixups in emulated sysrq code
Follow-up to CL:456520, addressing a few more comments.
BRANCH=none
BUG=b:35775099
TEST=sysrq available in EC console
TEST=sysrq h => help message in AP console
TEST=sysrq b => AP reboots
Change-Id: I692afa7c911882f00d92b8e6d83889c52821e171
Reviewed-on: https://chromium-review.googlesource.com/468506
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h index acaa2a4f6b..aff1d1b8b5 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -281,4 +281,12 @@ int pd_host_command(int command, int version, */ int host_get_vboot_mode(void); +/* + * Sends an emulated sysrq to the host, used by button-based debug mode. + * Only implemented on top of MKBP protocol. + * + * @param key Key to be sent (e.g. 'x') + */ +void host_send_sysrq(uint8_t key); + #endif /* __CROS_EC_HOST_COMMAND_H */ |