summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorAdriano Cordova <adrianox@gmail.com>2024-12-06 14:18:34 -0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2025-01-05 02:30:48 +0100
commitc3cf134a41835e6e023277783deb3ee18e9a74ad (patch)
treeab4e1616f536a02e2adaa9d1b7680fcbb5984ec7 /include/efi_loader.h
parentea958a0c7dbd8b0d9fb1bb97bc8f97b6910ab8f7 (diff)
efi_loader: Expose efi_reinstall_protocol_interface in efi_loader.h
This is done so that the device path protocol interface of the network device can be changed internally by u-boot when a new bootfile gets downloaded. Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 9afbec35ebf..0d858c1e12e 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -711,6 +711,11 @@ efi_status_t efi_search_protocol(const efi_handle_t handle,
efi_status_t efi_add_protocol(const efi_handle_t handle,
const efi_guid_t *protocol,
void *protocol_interface);
+/* Reinstall a protocol on a handle */
+efi_status_t EFIAPI efi_reinstall_protocol_interface(
+ efi_handle_t handle,
+ const efi_guid_t *protocol,
+ void *old_interface, void *new_interface);
/* Open protocol */
efi_status_t efi_protocol_open(struct efi_handler *handler,
void **protocol_interface, void *agent_handle,