diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2023-05-18 11:52:20 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2023-05-18 11:52:20 +1000 |
commit | a2045f1d543effbd58f585f21b604decedd6058a (patch) | |
tree | 418402cc206dd13de8dd3e44dcb53b1f6ee1326f /include/linux/efi.h | |
parent | d6c80d0be0e37e0418cf1fd3a9399cb1d054457d (diff) | |
parent | d86ff3333cb1d5f42d8898fb5fdb304e143c0237 (diff) | |
download | linux-next-a2045f1d543effbd58f585f21b604decedd6058a.tar.gz |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git
Diffstat (limited to 'include/linux/efi.h')
-rw-r--r-- | include/linux/efi.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index 7aa62c92185f..bed3c92cbc31 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -1042,6 +1042,7 @@ struct efivar_operations { efi_set_variable_t *set_variable; efi_set_variable_t *set_variable_nonblocking; efi_query_variable_store_t *query_variable_store; + efi_query_variable_info_t *query_variable_info; }; struct efivars { @@ -1049,6 +1050,12 @@ struct efivars { const struct efivar_operations *ops; }; +#ifdef CONFIG_X86 +u64 __attribute_const__ efivar_reserved_space(void); +#else +static inline u64 efivar_reserved_space(void) { return 0; } +#endif + /* * The maximum size of VariableName + Data = 1024 * Therefore, it's reasonable to save that much @@ -1087,6 +1094,10 @@ efi_status_t efivar_set_variable_locked(efi_char16_t *name, efi_guid_t *vendor, efi_status_t efivar_set_variable(efi_char16_t *name, efi_guid_t *vendor, u32 attr, unsigned long data_size, void *data); +efi_status_t efivar_query_variable_info(u32 attr, u64 *storage_space, + u64 *remaining_space, + u64 *max_variable_size); + #if IS_ENABLED(CONFIG_EFI_CAPSULE_LOADER) extern bool efi_capsule_pending(int *reset_type); |