]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: make efi_protocol_open() non-static
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 10 Jan 2020 11:33:59 +0000 (12:33 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 10 Dec 2020 08:15:33 +0000 (09:15 +0100)
Provide efi_protocol_open() as library function.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_loader.h
lib/efi_loader/efi_boottime.c

index 4c6eb8616d5285020ed86c9b7bb85955ae345e66..365f3d01dc7433461cf0778e639df5b2a81a2b25 100644 (file)
@@ -500,6 +500,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);
+/* Open protocol */
+efi_status_t efi_protocol_open(struct efi_handler *handler,
+                              void **protocol_interface, void *agent_handle,
+                              void *controller_handle, uint32_t attributes);
+
 /* Delete protocol from a handle */
 efi_status_t efi_remove_protocol(const efi_handle_t handle,
                                 const efi_guid_t *protocol,
index 9bd63b6e5249442e3a666203233e17929627ad86..03053e8660db1820c4cd138f918bf82b4ddc0b6e 100644 (file)
@@ -2779,7 +2779,7 @@ static void EFIAPI efi_set_mem(void *buffer, size_t size, uint8_t value)
  *
  * Return: status code
  */
-static efi_status_t efi_protocol_open(
+efi_status_t efi_protocol_open(
                        struct efi_handler *handler,
                        void **protocol_interface, void *agent_handle,
                        void *controller_handle, uint32_t attributes)