summaryrefslogtreecommitdiffstats
path: root/include/efi/efi.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2017-02-15 20:34:11 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-02-24 08:21:33 +0100
commit3858b78c1bea4d8b6aca73348edd48cbe59a428e (patch)
treed575f91e5d75c244d08b7196bc9b5445ab7543e0 /include/efi/efi.h
parent5596f405ff03cd5de12ad592a6d696e112fed0c1 (diff)
downloadbarebox-3858b78c1bea4d8b6aca73348edd48cbe59a428e.tar.gz
barebox-3858b78c1bea4d8b6aca73348edd48cbe59a428e.tar.xz
efi: move bus driver to driver/efi
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/efi/efi.h')
-rw-r--r--include/efi/efi.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/efi/efi.h b/include/efi/efi.h
new file mode 100644
index 0000000000..2b25cf1868
--- /dev/null
+++ b/include/efi/efi.h
@@ -0,0 +1,28 @@
+#ifndef __MACH_EFI_H
+#define __MACH_EFI_H
+
+#include <efi.h>
+
+const char *efi_strerror(efi_status_t err);
+
+extern efi_system_table_t *efi_sys_table;
+extern efi_handle_t efi_parent_image;
+extern struct efi_device_path *efi_device_path;
+extern efi_loaded_image_t *efi_loaded_image;
+
+int efi_errno(efi_status_t err);
+
+int efi_clocksource_init(void);
+
+void *efi_get_variable(char *name, efi_guid_t *vendor, int *var_size);
+
+static inline void *efi_get_global_var(char *name, int *var_size)
+{
+ return efi_get_variable(name, &efi_global_variable_guid, var_size);
+}
+
+int efi_set_variable(char *name, efi_guid_t *vendor, uint32_t attributes,
+ void *buf, unsigned long size);
+int efi_set_variable_usec(char *name, efi_guid_t *vendor, uint64_t usec);
+
+#endif /* __MACH_EFI_H */