diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-01-29 14:58:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-02-16 10:33:04 +0100 |
commit | 47255cfa5d358b0b138a651b63f43cb9b5e5f2e2 (patch) | |
tree | 2741e47acd1b777952b4cec34a810b10bdd670f8 | |
parent | 82626cca803682e5ea76e0b7a9563f4f6bae5370 (diff) | |
download | barebox-47255cfa5d358b0b138a651b63f43cb9b5e5f2e2.tar.gz barebox-47255cfa5d358b0b138a651b63f43cb9b5e5f2e2.tar.xz |
efi: declare prototype for close_protocol BootService
Sometimes, drivers need to probe whether the EFI device in front of them
is the actual hardware they expect. If it's not, the driver should call
close_protocol to leave the decision on whether to match this device to
another driver. Use the correct type for close_protocol to facilitate
this.
No functional change, as no in-tree driver makes use of this yet.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/efi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/efi.h b/include/efi.h index 5698a84145..b9f3428dc5 100644 --- a/include/efi.h +++ b/include/efi.h @@ -257,7 +257,8 @@ typedef struct { efi_status_t (EFIAPI *open_protocol)(efi_handle_t handle, efi_guid_t *protocol, void ** interface, efi_handle_t agent_handle, efi_handle_t controller_handle, u32 attributes); - void *close_protocol; + efi_status_t (EFIAPI *close_protocol)(efi_handle_t handle, efi_guid_t *protocol, + efi_handle_t agent, efi_handle_t controller); efi_status_t(EFIAPI *open_protocol_information)(efi_handle_t handle, efi_guid_t *Protocol, struct efi_open_protocol_information_entry **entry_buffer, unsigned long *entry_count); |