summaryrefslogtreecommitdiff
path: root/include/efi_variable.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-07-16 08:18:40 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-07-16 13:37:03 +0300
commit627ab390d8ded26f4b8267c55fc4ce39145f24aa (patch)
tree94c026e447291145a20935d34592fc6be731ffb0 /include/efi_variable.h
parent7dda16343d2577a52116148540ad7d17c6f19e55 (diff)
downloadu-boot-627ab390d8ded26f4b8267c55fc4ce39145f24aa.tar.xz
efi_loader: describe EFI_VAR_FILE_MAGIC
Add documentation for EFI_VAR_FILE_MAGIC used in the file format for UEFI variables. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi_variable.h')
-rw-r--r--include/efi_variable.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/efi_variable.h b/include/efi_variable.h
index 17f25ad7a4..2c629e4dca 100644
--- a/include/efi_variable.h
+++ b/include/efi_variable.h
@@ -93,6 +93,10 @@ efi_status_t efi_query_variable_info_int(u32 attributes,
#define EFI_VAR_BUF_SIZE 0x4000
+/*
+ * This constant identifies the file format for storing UEFI variables in
+ * struct efi_var_file.
+ */
#define EFI_VAR_FILE_MAGIC 0x0161566966456255 /* UbEfiVa, version 1 */
/**
@@ -116,7 +120,7 @@ struct efi_var_entry {
* struct efi_var_file - file for storing UEFI variables
*
* @reserved: unused, may be overwritten by memory probing
- * @magic: identifies file format
+ * @magic: identifies file format, takes value %EFI_VAR_FILE_MAGIC
* @length: length including header
* @crc32: CRC32 without header
* @var: variables