summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2018-08-10 17:29:14 +0000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-14 11:11:57 +1000
commita82b9c070a2acb99c81137cb0b6407244646276f (patch)
tree261a4f17778553ecd06eee8f5f0d3936f2e3c558 /lib
parent06179e62bd4389d9ffade3a16ddde687b19417a4 (diff)
downloadtalos-petitboot-a82b9c070a2acb99c81137cb0b6407244646276f.zip
talos-petitboot-a82b9c070a2acb99c81137cb0b6407244646276f.tar.gz
lib/efi: Add EFI_DEFALT_ATTRIBUTES macro
For convenience, add a new efi data attributes macro EFI_DEFALT_ATTRIBUTES. Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi/efivar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/efi/efivar.h b/lib/efi/efivar.h
index 0d44100..48edd17 100644
--- a/lib/efi/efivar.h
+++ b/lib/efi/efivar.h
@@ -30,6 +30,12 @@
#define EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS 0x00000020
#define EFI_VARIABLE_APPEND_WRITE 0x00000040
+#define EFI_DEFALT_ATTRIBUTES ( \
+ EFI_VARIABLE_NON_VOLATILE | \
+ EFI_VARIABLE_RUNTIME_ACCESS | \
+ EFI_VARIABLE_BOOTSERVICE_ACCESS \
+)
+
#ifndef EFIVARFS_MAGIC
#define EFIVARFS_MAGIC 0xde5e81e4
#endif
OpenPOWER on IntegriCloud