diff options
| author | Alexander Graf <[email protected]> | 2016-03-04 01:09:58 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-03-15 15:19:23 -0400 |
| commit | cb149c66342ce07b9fa45cb8d4d98081aab1afbb (patch) | |
| tree | 43cf620686df17bc3d0250c522036961ff656c43 /include/efi_loader.h | |
| parent | 2bb9b79d64ca5112af3147a267ece894945aa470 (diff) | |
efi_loader: Add PE image loader
EFI uses the PE binary format for its application images. Add support to EFI PE
binaries as well as all necessary bits for the "EFI image loader" interfaces.
Signed-off-by: Alexander Graf <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/efi_loader.h')
| -rw-r--r-- | include/efi_loader.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h new file mode 100644 index 00000000000..56181854899 --- /dev/null +++ b/include/efi_loader.h @@ -0,0 +1,20 @@ +/* + * EFI application loader + * + * Copyright (c) 2016 Alexander Graf + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <part_efi.h> +#include <efi_api.h> +#include <linux/list.h> + +extern const efi_guid_t efi_guid_device_path; +extern const efi_guid_t efi_guid_loaded_image; + +efi_status_t efi_return_handle(void *handle, + efi_guid_t *protocol, void **protocol_interface, + void *agent_handle, void *controller_handle, + uint32_t attributes); +void *efi_load_pe(void *efi, struct efi_loaded_image *loaded_image_info); |
