diff options
author | AKASHI Takahiro | 2020-11-17 09:27:55 +0900 |
---|---|---|
committer | Heinrich Schuchardt | 2020-12-03 21:22:49 +0100 |
commit | 2bc27ca8a04aea89c82b5fc4412e889d1ac9f756 (patch) | |
tree | 9f5c3ff56156c1dbd585352ff5152937fa74a71d /include/efi_api.h | |
parent | 96ec4b1a18a41a40c920d03bc8954cc18079838d (diff) |
efi_loader: define UpdateCapsule api
In this commit, skeleton functions for capsule-related API's are
added under CONFIG_EFI_UPDATE_CAPSULE configuration.
Detailed implementation for a specific capsule type will be added
in the succeeding patches.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r-- | include/efi_api.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/efi_api.h b/include/efi_api.h index 364c578a3b1..a466e2c9e61 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -217,6 +217,10 @@ enum efi_reset_type { #define CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE 0x00020000 #define CAPSULE_FLAGS_INITIATE_RESET 0x00040000 +#define EFI_CAPSULE_REPORT_GUID \ + EFI_GUID(0x39b68c46, 0xf7fb, 0x441b, 0xb6, 0xec, \ + 0x16, 0xb0, 0xf6, 0x98, 0x21, 0xf3) + struct efi_capsule_header { efi_guid_t capsule_guid; u32 header_size; @@ -224,6 +228,14 @@ struct efi_capsule_header { u32 capsule_image_size; } __packed; +struct efi_capsule_result_variable_header { + u32 variable_total_size; + u32 reserved; + efi_guid_t capsule_guid; + struct efi_time capsule_processed; + efi_status_t capsule_status; +} __packed; + #define EFI_RT_SUPPORTED_GET_TIME 0x0001 #define EFI_RT_SUPPORTED_SET_TIME 0x0002 #define EFI_RT_SUPPORTED_GET_WAKEUP_TIME 0x0004 |