xref: /aosp_15_r20/external/coreboot/payloads/libpayload/include/lp_vboot.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 
3 #ifndef _LP_VBOOT_H_
4 #define _LP_VBOOT_H_
5 
6 #include <vb2_api.h>
7 
8 struct vb2_context *vboot_get_context(void);
9 
10 /*
11  * Call vb2api_fail() with reason and subcode, save vboot data with vb2ex_commit_data()
12  * and reboot with vboot_reboot().
13  */
14 void vboot_fail_and_reboot(struct vb2_context *ctx, uint8_t reason, uint8_t subcode);
15 
16 /* Returns non-zero if recovery mode is enabled. */
17 int vboot_recovery_mode_enabled(void);
18 
19 #endif /* _LP_VBOOT_H_ */
20