diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-07-18 20:17:20 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-07-19 14:31:35 +0200 |
commit | 49deb455e6e650124c4e6ab1006f5450d2282be8 (patch) | |
tree | f10ae67f2878c4bf051f2904c2fb288b5bf0ad5f /include | |
parent | 503f26955489af052c0c01eaf7bdc6ae3ecc3aa2 (diff) | |
download | u-boot-midas-49deb455e6e650124c4e6ab1006f5450d2282be8.tar.gz u-boot-midas-49deb455e6e650124c4e6ab1006f5450d2282be8.tar.bz2 u-boot-midas-49deb455e6e650124c4e6ab1006f5450d2282be8.zip |
efi_loader: refactor efi_create_event
efi_create_event is refactored to make it possible to call it
internally. For EFI applications wrapper function
efi_create_event_ext is created.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/efi_loader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index b922720068..c3640153e1 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -116,6 +116,12 @@ efi_status_t efi_exit_func(efi_status_t ret); void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map); /* Call this to set the current device name */ void efi_set_bootdev(const char *dev, const char *devnr, const char *path); +/* Call this to create an event */ +efi_status_t efi_create_event(enum efi_event_type type, UINTN notify_tpl, + void (EFIAPI *notify_function) ( + struct efi_event *event, + void *context), + void *notify_context, struct efi_event **event); /* Generic EFI memory allocator, call this to get memory */ void *efi_alloc(uint64_t len, int memory_type); |