mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
efi_loader: export efi_locate_device_handle()
This function will be used in the next commit where some behavior of EFI boot manager will be expanded. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
7f67525f99
commit
d8465ffc01
@ -595,6 +595,10 @@ efi_status_t efi_create_handle(efi_handle_t *handle);
|
|||||||
void efi_delete_handle(efi_handle_t obj);
|
void efi_delete_handle(efi_handle_t obj);
|
||||||
/* Call this to validate a handle and find the EFI object for it */
|
/* Call this to validate a handle and find the EFI object for it */
|
||||||
struct efi_object *efi_search_obj(const efi_handle_t handle);
|
struct efi_object *efi_search_obj(const efi_handle_t handle);
|
||||||
|
/* Locate device_path handle */
|
||||||
|
efi_status_t EFIAPI efi_locate_device_path(const efi_guid_t *protocol,
|
||||||
|
struct efi_device_path **device_path,
|
||||||
|
efi_handle_t *device);
|
||||||
/* Load image */
|
/* Load image */
|
||||||
efi_status_t EFIAPI efi_load_image(bool boot_policy,
|
efi_status_t EFIAPI efi_load_image(bool boot_policy,
|
||||||
efi_handle_t parent_image,
|
efi_handle_t parent_image,
|
||||||
|
@ -1799,10 +1799,9 @@ failure:
|
|||||||
*
|
*
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_locate_device_path(
|
efi_status_t EFIAPI efi_locate_device_path(const efi_guid_t *protocol,
|
||||||
const efi_guid_t *protocol,
|
struct efi_device_path **device_path,
|
||||||
struct efi_device_path **device_path,
|
efi_handle_t *device)
|
||||||
efi_handle_t *device)
|
|
||||||
{
|
{
|
||||||
struct efi_device_path *dp;
|
struct efi_device_path *dp;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user