summaryrefslogtreecommitdiff
path: root/firmware/include/vboot_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/vboot_api.h')
-rw-r--r--firmware/include/vboot_api.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h
index 9d0ec3f3..5eedcaab 100644
--- a/firmware/include/vboot_api.h
+++ b/firmware/include/vboot_api.h
@@ -667,6 +667,10 @@ enum VbScreenType_t {
VB_SCREEN_OPTIONS_MENU = 0x210,
/* Alt OS picker screen */
VB_SCREEN_ALT_OS = 0x211,
+ /* Alt firmware picker screen (for keyboard UI) */
+ VB_SCREEN_ALT_FW_PICK = 0x212,
+ /* Alt firmware menu screen (for detachable UI ) */
+ VB_SCREEN_ALT_FW_MENU = 0x213,
};
/**
@@ -994,6 +998,21 @@ uint8_t VbExOverrideGptEntryPriority(const GptEntry *e);
*/
VbError_t VbExGetLocalizationCount(uint32_t *count);
+enum vb_altfw {
+ VB_ALTFW_COUNT = 9, /* We allow 9 bootloaders, numbered 1-9 */
+};
+
+/**
+ * Get a mask of available alternative firmware options
+ *
+ * There are up to 9 bootloaders, numbered 1 to 9, using bits 1 to 9 of this
+ * mask. Bit 0 is unused.
+ *
+ * @return Bit mask indicating which bootloaders are present (bit n indicates
+ * bootloader n is present)
+ */
+uint32_t VbExGetAltFwIdxMask(void);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */