aboutsummaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-01-19 20:24:46 +0100
committerAlexander Graf <agraf@suse.de>2018-01-22 23:09:14 +0100
commit98d48bdf415e318a11f9f9a44dff2b70aef3fb10 (patch)
treec90b020570f5f4cc90d1b817379235a740fc0399 /include/efi_loader.h
parentb3dd14b6b1d4ddfbfbdaa80a6c784cb6c227ef6e (diff)
downloadu-boot-98d48bdf415e318a11f9f9a44dff2b70aef3fb10.zip
u-boot-98d48bdf415e318a11f9f9a44dff2b70aef3fb10.tar.gz
u-boot-98d48bdf415e318a11f9f9a44dff2b70aef3fb10.tar.bz2
efi_loader: provide a function to create a partition node
Provide new function efi_dp_part_node() to create a device node for a partition. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 6d04feb..456763e 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -300,6 +300,8 @@ struct efi_device_path *efi_dp_append_node(const struct efi_device_path *dp,
struct efi_device_path *efi_dp_from_dev(struct udevice *dev);
struct efi_device_path *efi_dp_from_part(struct blk_desc *desc, int part);
+/* Create a device node for a block device partition. */
+struct efi_device_path *efi_dp_part_node(struct blk_desc *desc, int part);
struct efi_device_path *efi_dp_from_file(struct blk_desc *desc, int part,
const char *path);
struct efi_device_path *efi_dp_from_eth(void);