aboutsummaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2018-10-17 16:32:03 +0900
committerAlexander Graf <agraf@suse.de>2018-12-02 21:59:36 +0100
commitf1589ffb33a798ddb9391dcbab0ddaea2643c2c8 (patch)
tree211b185143c326d8a6ad74e1dcb6847accb4f2a1 /include/efi_loader.h
parentb0c78d8ffc9fe8b0388353d72e9f2b9e9c6107c6 (diff)
downloadu-boot-f1589ffb33a798ddb9391dcbab0ddaea2643c2c8.zip
u-boot-f1589ffb33a798ddb9391dcbab0ddaea2643c2c8.tar.gz
u-boot-f1589ffb33a798ddb9391dcbab0ddaea2643c2c8.tar.bz2
efi_loader: add efi_dp_from_name()
Factor out efi_set_bootdev() and extract efi_dp_from_name(). This function will be used to set a boot device in efishell command. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 7a8aa29..f399e99 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -432,6 +432,10 @@ const struct efi_device_path *efi_dp_last_node(
efi_status_t efi_dp_split_file_path(struct efi_device_path *full_path,
struct efi_device_path **device_path,
struct efi_device_path **file_path);
+efi_status_t efi_dp_from_name(const char *dev, const char *devnr,
+ const char *path,
+ struct efi_device_path **device,
+ struct efi_device_path **file);
#define EFI_DP_TYPE(_dp, _type, _subtype) \
(((_dp)->type == DEVICE_PATH_TYPE_##_type) && \