X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fpart.h;h=8ea9b3049a4989daa02fa06dda99f3f00232f47b;hb=5a4edb5b29d5f5ae5cd5d9b3ea958bc0962597e3;hp=a496a4ad4a9061012939a513f1f5298207b5dbba;hpb=b5b8d85e9a50c2294b6043830cd045de1002dc5d;p=karo-tx-uboot.git diff --git a/include/part.h b/include/part.h index a496a4ad4a..8ea9b3049a 100644 --- a/include/part.h +++ b/include/part.h @@ -244,6 +244,26 @@ int gpt_fill_header(block_dev_desc_t *dev_desc, gpt_header *gpt_h, */ int gpt_restore(block_dev_desc_t *dev_desc, char *str_disk_guid, disk_partition_t *partitions, const int parts_count); + +/** + * is_valid_gpt_buf() - Ensure that the Primary GPT information is valid + * + * @param dev_desc - block device descriptor + * @param buf - buffer which contains the MBR and Primary GPT info + * + * @return - '0' on success, otherwise error + */ +int is_valid_gpt_buf(block_dev_desc_t *dev_desc, void *buf); + +/** + * write_mbr_and_gpt_partitions() - write MBR, Primary GPT and Backup GPT + * + * @param dev_desc - block device descriptor + * @param buf - buffer which contains the MBR and Primary GPT info + * + * @return - '0' on success, otherwise error + */ +int write_mbr_and_gpt_partitions(block_dev_desc_t *dev_desc, void *buf); #endif #endif /* _PART_H */