1 /* Copyright 2022 The ChromiumOS Authors 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 */ 5 6 #include "2api.h" 7 8 void _set_boot_mode(struct vb2_context *ctx, enum vb2_boot_mode boot_mode, 9 uint32_t recovery_reason, ...); 10 11 /* 12 * Set the boot mode to the expected boot mode with the recovery reason if 13 * given. Also, set the corresponding ctx flag. 14 * 15 * @param ctx Vboot context. 16 * @param boot_mode Boot mode to be set. 17 * @param recovery_reason Recovery reason set to sd->recovery_reason. 18 */ 19 #define SET_BOOT_MODE(ctx, boot_mode, ...) \ 20 _set_boot_mode(ctx, boot_mode, ##__VA_ARGS__, 0) 21