Commit b74d568d83689234f505726399e483d2dc509898
Committed by
Heinrich Schuchardt
1 parent
7cceef7bde
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
efi_loader: define System Resource Table macros
Some of those values will be used in an implementation of UEFI firmware management protocol as part of my capsule update patch. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Showing 1 changed file with 27 additions and 0 deletions Side-by-side Diff
include/efi_api.h
... | ... | @@ -1655,5 +1655,32 @@ |
1655 | 1655 | #define LOAD_OPTION_CATEGORY_BOOT 0x00000000 |
1656 | 1656 | #define LOAD_OPTION_CATEGORY_APP 0x00000100 |
1657 | 1657 | |
1658 | +/* | |
1659 | + * System Resource Table | |
1660 | + */ | |
1661 | +/* Firmware Type Definitions */ | |
1662 | +#define ESRT_FW_TYPE_UNKNOWN 0x00000000 | |
1663 | +#define ESRT_FW_TYPE_SYSTEMFIRMWARE 0x00000001 | |
1664 | +#define ESRT_FW_TYPE_DEVICEFIRMWARE 0x00000002 | |
1665 | +#define ESRT_FW_TYPE_UEFIDRIVER 0x00000003 | |
1666 | + | |
1667 | +/* Last Attempt Status Values */ | |
1668 | +#define LAST_ATTEMPT_STATUS_SUCCESS 0x00000000 | |
1669 | +#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL 0x00000001 | |
1670 | +#define LAST_ATTEMPT_STATUS_ERROR_INSUFFICIENT_RESOURCES 0x00000002 | |
1671 | +#define LAST_ATTEMPT_STATUS_ERROR_INCORRECT_VERSION 0x00000003 | |
1672 | +#define LAST_ATTEMPT_STATUS_ERROR_INVALID_FORMAT 0x00000004 | |
1673 | +#define LAST_ATTEMPT_STATUS_ERROR_AUTH_ERROR 0x00000005 | |
1674 | +#define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_AC 0x00000006 | |
1675 | +#define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_BATT 0x00000007 | |
1676 | +#define LAST_ATTEMPT_STATUS_ERROR_UNSATISFIED_DEPENDENCIES 0x00000008 | |
1677 | + | |
1678 | +/* | |
1679 | + * The LastAttemptStatus values of 0x1000 - 0x4000 are reserved for vendor | |
1680 | + * usage. | |
1681 | + */ | |
1682 | +#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN 0x00001000 | |
1683 | +#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX 0x00004000 | |
1684 | + | |
1658 | 1685 | #endif |