diff options
author | Stefano Babic <sbabic@denx.de> | 2014-12-30 13:04:09 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-12-30 13:04:38 +0100 |
commit | 4e0114d9679173cfe8bfaffb8b4fb4bbf8cdaa10 (patch) | |
tree | 2a909fd0434753a0e5b252afcda5aeb23f21ac26 /include/part.h | |
parent | 7ae350a0305de592faa8903255c988d4e6afb194 (diff) | |
parent | 125738e819a3b9d15210794b3dcef9f4d9bcf866 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/part.h')
-rw-r--r-- | include/part.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h index a496a4ad4a9..8ea9b3049a4 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 */ |