summaryrefslogtreecommitdiffstats
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-03-03 15:28:59 +0100
committerAlexander Graf <agraf@suse.de>2018-04-04 11:00:06 +0200
commit22c793e6a26505fdf80cb5b099142dd6f8f0fff9 (patch)
treeaa7c248ef8df34d27514b26b20cb5e06b6a83a6b /include/efi_loader.h
parent098a6cdd1cc519f6c75b5e5de91c6655500a188a (diff)
downloadu-boot-22c793e6a26505fdf80cb5b099142dd6f8f0fff9.tar.gz
u-boot-22c793e6a26505fdf80cb5b099142dd6f8f0fff9.tar.xz
u-boot-22c793e6a26505fdf80cb5b099142dd6f8f0fff9.zip
efi_loader: exit status for efi_reset_system_init
efi_reset_system_init provides the architecture or board specific initialization of the EFI subsystem. Errors should be caught and signalled by a return code. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 48fbe7a214..3d369436a1 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -350,7 +350,7 @@ static inline int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2)
/* Call this with mmio_ptr as the _pointer_ to a pointer to an MMIO region
* to make it available at runtime */
-void efi_add_runtime_mmio(void *mmio_ptr, u64 len);
+efi_status_t efi_add_runtime_mmio(void *mmio_ptr, u64 len);
/* Boards may provide the functions below to implement RTS functionality */
@@ -358,7 +358,9 @@ void __efi_runtime EFIAPI efi_reset_system(
enum efi_reset_type reset_type,
efi_status_t reset_status,
unsigned long data_size, void *reset_data);
-void efi_reset_system_init(void);
+
+/* Architecture specific initialization of the EFI subsystem */
+efi_status_t efi_reset_system_init(void);
efi_status_t __efi_runtime EFIAPI efi_get_time(
struct efi_time *time,
@@ -392,7 +394,10 @@ void *efi_bootmgr_load(struct efi_device_path **device_path,
/* Without CONFIG_EFI_LOADER we don't have a runtime section, stub it out */
#define __efi_runtime_data
#define __efi_runtime
-static inline void efi_add_runtime_mmio(void *mmio_ptr, u64 len) { }
+static inline efi_status_t efi_add_runtime_mmio(void *mmio_ptr, u64 len)
+{
+ return EFI_SUCCESS;
+}
/* No loader configured, stub out EFI_ENTRY */
static inline void efi_restore_gd(void) { }