X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fpart.h;h=a496a4ad4a9061012939a513f1f5298207b5dbba;hb=ac13b9af91f1cec3bb0d41a2929959d6508067f1;hp=f2c8c641faa8e77c0d47a7fdfaae10d210a25515;hpb=3eb5e198632dcc3e03b5742d1e0ebced0ef2f551;p=u-boot diff --git a/include/part.h b/include/part.h index f2c8c641fa..a496a4ad4a 100644 --- a/include/part.h +++ b/include/part.h @@ -180,6 +180,17 @@ int test_part_amiga (block_dev_desc_t *dev_desc); #include /* 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);