summaryrefslogtreecommitdiff
path: root/src/shared/efivars.h
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-02-08 17:24:43 +0100
committerKay Sievers <kay@vrfy.org>2013-02-11 19:35:52 +0100
commit7b4d7cc08283e5485dcfa49ffdf1915de1d5e81b (patch)
treefc73d48c2f124bf27a3c47979a3e28f825eb8902 /src/shared/efivars.h
parentc937e0d5c579863677e0fcb5508517f7714c332d (diff)
bootctl: add boot loader and firmware interface tool
Diffstat (limited to 'src/shared/efivars.h')
-rw-r--r--src/shared/efivars.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/efivars.h b/src/shared/efivars.h
index d5cfb4fa0d..d54cc433b2 100644
--- a/src/shared/efivars.h
+++ b/src/shared/efivars.h
@@ -28,9 +28,16 @@
#include "sd-id128.h"
#include "time-util.h"
+#define EFI_VENDOR_LOADER SD_ID128_MAKE(4a,67,b0,82,0a,4c,41,cf,b6,c7,44,0b,29,bb,8c,4f)
+#define EFI_VENDOR_GLOBAL SD_ID128_MAKE(8b,e4,df,61,93,ca,11,d2,aa,0d,00,e0,98,03,2b,8c)
+
bool is_efiboot(void);
int efi_get_variable(sd_id128_t vendor, const char *name, uint32_t *attribute, void **value, size_t *size);
+char *efi_get_variable_string(sd_id128_t vendor, const char *name);
+
+int efi_get_boot_option(uint32_t nr, uint32_t *attributes, char **title, sd_id128_t *partuuid, char **path, char **data, size_t *data_size);
+int efi_get_boot_order(uint16_t **order, size_t *count);
int efi_get_boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_timestamp *loader);