diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2020-12-23 13:55:14 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-15 15:33:09 -0500 |
commit | 20bd5ac6e43124a7632a03cf8e47dba684fa2fc4 (patch) | |
tree | 0c3803f8ba02fc106bc6ed6a0f5b7e658c019a85 /include/part.h | |
parent | cb571f91c642af68a807a2f24e6146e8b77f5f93 (diff) | |
download | u-boot-20bd5ac6e43124a7632a03cf8e47dba684fa2fc4.tar.gz |
disk: dos: add code for creating MBR partition layout
Add a code for creating and writing MBR partition layout. The code generates
similar layout of EBRs (Exteneded Block Records) and logical volumes as
Linux's fdisk utility.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'include/part.h')
-rw-r--r-- | include/part.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h index 67b8b2a5cc..fac36364bd 100644 --- a/include/part.h +++ b/include/part.h @@ -474,6 +474,11 @@ int is_valid_dos_buf(void *buf); */ int write_mbr_sector(struct blk_desc *dev_desc, void *buf); +int write_mbr_partitions(struct blk_desc *dev, + struct disk_partition *p, int count, unsigned int disksig); +int layout_mbr_partitions(struct disk_partition *p, int count, + lbaint_t total_sectors); + #endif |