diff options
Diffstat (limited to 'firmware/include/vboot_api.h')
-rw-r--r-- | firmware/include/vboot_api.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h index fdb7615b..6e738dc4 100644 --- a/firmware/include/vboot_api.h +++ b/firmware/include/vboot_api.h @@ -1011,13 +1011,30 @@ enum { MAX_COMPRESS, }; +enum VbAltFwIndex_t { + VB_ALTFW_DEFAULT = 0, + VB_ALTFW_FIRST = 1, + VB_ALTFW_SECOND, + VB_ALTFW_THIRD, + VB_ALTFW_FOURTH, + VB_ALTFW_FIFTH, + VB_ALTFW_SIXTH, + VB_ALTFW_SEVENTH, + VB_ALTFW_EIGHTH, + VB_ALTFW_NINTH, +}; + /** * Execute legacy boot option. * * @param altfw_num Bootloader sequence number to execute. Use * 0 to boot the default payload, if any + * >0 (i.e., positive #) run a payload by # based in altfw/list file + * <0 (i.e., negative #) run a specific payload by name without using + * the altfw/list file. Typically payloads in this category will be + * verified before they are run. Currently no #s are defined. */ -int VbExLegacy(int altfw_num); +int VbExLegacy(enum VbAltFwIndex_t altfw_num); /* Regions for VbExRegionRead() */ enum vb_firmware_region { |