[U-Boot] [PATCH v2 1/3] efi_loader: export efi_locate_handle() function

AKASHI Takahiro takahiro.akashi at linaro.org
Thu Nov 15 04:58:08 UTC 2018


This function will be used later to implement efi_disk_update().

Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
 include/efi_loader.h          | 4 ++++
 lib/efi_loader/efi_boottime.c | 7 +++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/include/efi_loader.h b/include/efi_loader.h
index ce0f420b5004..5cc3bded03fa 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -318,6 +318,10 @@ efi_status_t efi_create_handle(efi_handle_t *handle);
 void efi_delete_handle(efi_handle_t obj);
 /* Call this to validate a handle and find the EFI object for it */
 struct efi_object *efi_search_obj(const efi_handle_t handle);
+/* locate handles */
+efi_status_t efi_locate_handle(enum efi_locate_search_type search_type,
+			       const efi_guid_t *protocol, void *search_key,
+			       efi_uintn_t *buffer_size, efi_handle_t *buffer);
 /* Find a protocol on a handle */
 efi_status_t efi_search_protocol(const efi_handle_t handle,
 				 const efi_guid_t *protocol_guid,
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 8a43a5a84091..a3c56bbab552 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -1309,10 +1309,9 @@ static int efi_search(enum efi_locate_search_type search_type,
  *
  * Return: status code
  */
-static efi_status_t efi_locate_handle(
-			enum efi_locate_search_type search_type,
-			const efi_guid_t *protocol, void *search_key,
-			efi_uintn_t *buffer_size, efi_handle_t *buffer)
+efi_status_t efi_locate_handle(enum efi_locate_search_type search_type,
+			       const efi_guid_t *protocol, void *search_key,
+			       efi_uintn_t *buffer_size, efi_handle_t *buffer)
 {
 	struct efi_object *efiobj;
 	efi_uintn_t size = 0;
-- 
2.19.0



More information about the U-Boot mailing list