diff options
Diffstat (limited to 'firmware/lib/include/vboot_ui_common.h')
-rw-r--r-- | firmware/lib/include/vboot_ui_common.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/firmware/lib/include/vboot_ui_common.h b/firmware/lib/include/vboot_ui_common.h index 19c3809d..30ade5a6 100644 --- a/firmware/lib/include/vboot_ui_common.h +++ b/firmware/lib/include/vboot_ui_common.h @@ -28,4 +28,21 @@ void vb2_error_beep(enum vb2_beep_type beep); */ void vb2_run_altfw(int altfw_num); +/** Display an error and beep to indicate that altfw is not available */ +void vb2_error_no_altfw(void); + +/** + * Jump to a bootloader if possible + * + * This checks if the operation is permitted. If it is, then it jumps to the + * selected bootloader and execution continues there, never returning. + * + * If the operation is not permitted, or it is permitted but the bootloader + * cannot be found, it beeps and returns. + * + * @allowed 1 if allowed, 0 if not allowed + * @altfw_num Number of bootloader to start (0=any, 1=first, etc.) + */ +void vb2_try_alt_fw(int allowed, int altfw_num); + #endif /* VBOOT_REFERENCE_VBOOT_UI_COMMON_H_ */ |