diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-11-09 20:21:35 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-18 04:54:16 +0000 |
commit | 45e380e4fba66a9d00acfcce2a744e5528924326 (patch) | |
tree | 8bd8dea8fc82450daed8afa21b1350b7c5537291 /include/system.h | |
parent | ca9ae8f2c05716498c0f8371aa3a8b069e641337 (diff) | |
download | chrome-ec-45e380e4fba66a9d00acfcce2a744e5528924326.tar.gz |
Revert "system: Fixups in emulated sysrq code"
This reverts commit e3f5e6bf6ad2d1e2c283a75cf08e17155633e0a5.
BUG=b:200823466
TEST=make buildall -j
Change-Id: I60dbc01a5345a28fe759975f62a8d9216dcef7fe
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3273468
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index 4cad8499a6..3033be2736 100644 --- a/include/system.h +++ b/include/system.h @@ -504,6 +504,14 @@ uintptr_t system_get_fw_reset_vector(uintptr_t base); */ int system_is_reboot_warm(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 send_sysrq(uint8_t key); + #ifdef CONFIG_EXTENDED_VERSION_INFO void system_print_extended_version_info(void); #else @@ -511,4 +519,5 @@ static inline void system_print_extended_version_info(void) { } #endif + #endif /* __CROS_EC_SYSTEM_H */ |