summaryrefslogtreecommitdiff
path: root/include/part.h
diff options
context:
space:
mode:
authorSteve Rae <srae@broadcom.com>2014-05-26 11:52:24 -0700
committerTom Rini <trini@ti.com>2014-06-05 14:44:56 -0400
commit60bf94169366acaf7dafeb30d7439af366f2c585 (patch)
tree93b5ecb5562f8945fc97b12f1140d11dd985b347 /include/part.h
parente04350d2991ed628587e94b5b6d89c24f439e172 (diff)
disk: part_efi: add get_partition_info_efi_by_name()
Add function to find a GPT table entry by name. Tested on little endian ARMv7 and ARMv8 configurations Signed-off-by: Steve Rae <srae@broadcom.com>
Diffstat (limited to 'include/part.h')
-rw-r--r--include/part.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h
index f2c8c641faa..a496a4ad4a9 100644
--- a/include/part.h
+++ b/include/part.h
@@ -180,6 +180,17 @@ int test_part_amiga (block_dev_desc_t *dev_desc);
#include <part_efi.h>
/* disk/part_efi.c */
int get_partition_info_efi (block_dev_desc_t * dev_desc, int part, disk_partition_t *info);
+/**
+ * get_partition_info_efi_by_name() - Find the specified GPT partition table entry
+ *
+ * @param dev_desc - block device descriptor
+ * @param gpt_name - the specified table entry name
+ * @param info - returns the disk partition info
+ *
+ * @return - '0' on match, '-1' on no match, otherwise error
+ */
+int get_partition_info_efi_by_name(block_dev_desc_t *dev_desc,
+ const char *name, disk_partition_t *info);
void print_part_efi (block_dev_desc_t *dev_desc);
int test_part_efi (block_dev_desc_t *dev_desc);