diff options
-rw-r--r-- | firmware/2lib/include/2api.h | 15 | ||||
-rw-r--r-- | firmware/2lib/include/2nvstorage.h | 15 |
2 files changed, 15 insertions, 15 deletions
diff --git a/firmware/2lib/include/2api.h b/firmware/2lib/include/2api.h index 6db87b6a..785e4499 100644 --- a/firmware/2lib/include/2api.h +++ b/firmware/2lib/include/2api.h @@ -317,6 +317,21 @@ enum vb2_boot_mode { VB2_BOOT_MODE_NORMAL = 5, }; +/* Firmware result codes for VB2_NV_FW_RESULT and VB2_NV_FW_PREV_RESULT */ +enum vb2_fw_result { + /* Unknown */ + VB2_FW_RESULT_UNKNOWN = 0, + + /* Trying a new slot, but haven't reached success/failure */ + VB2_FW_RESULT_TRYING = 1, + + /* Successfully booted to the OS */ + VB2_FW_RESULT_SUCCESS = 2, + + /* Known failure */ + VB2_FW_RESULT_FAILURE = 3, +}; + /* Helper for aligning fields in vb2_context. */ #define VB2_PAD_STRUCT3(size, align, count) \ uint8_t _pad##count[align - (((size - 1) % align) + 1)] diff --git a/firmware/2lib/include/2nvstorage.h b/firmware/2lib/include/2nvstorage.h index fe758230..a457250f 100644 --- a/firmware/2lib/include/2nvstorage.h +++ b/firmware/2lib/include/2nvstorage.h @@ -129,21 +129,6 @@ enum vb2_nv_param { VB2_NV_MINIOS_PRIORITY, }; -/* Firmware result codes for VB2_NV_FW_RESULT and VB2_NV_FW_PREV_RESULT */ -enum vb2_fw_result { - /* Unknown */ - VB2_FW_RESULT_UNKNOWN = 0, - - /* Trying a new slot, but haven't reached success/failure */ - VB2_FW_RESULT_TRYING = 1, - - /* Successfully booted to the OS */ - VB2_FW_RESULT_SUCCESS = 2, - - /* Known failure */ - VB2_FW_RESULT_FAILURE = 3, -}; - /* * Default value for VB2_NV_FIRMWARE_MAX_ROLLFORWARD on V1. This preserves the * existing behavior that V1 systems will always roll forward the firmware |