| * Parsing command line, get the partitions information. |
| * Written by Cai Zhiyong <caizhiyong@huawei.com> |
| #include <linux/blkdev.h> |
| #define PF_RDONLY 0x01 /* Device is read only */ |
| #define PF_POWERUP_LOCK 0x02 /* Always locked after reset */ |
| char name[BDEVNAME_SIZE]; /* partition name, such as 'rootfs' */ |
| struct cmdline_subpart *next_subpart; |
| char name[BDEVNAME_SIZE]; /* block device, such as 'mmcblk0' */ |
| unsigned int nr_subparts; |
| struct cmdline_subpart *subpart; |
| struct cmdline_parts *next_parts; |
| void cmdline_parts_free(struct cmdline_parts **parts); |
| int cmdline_parts_parse(struct cmdline_parts **parts, const char *cmdline); |
| struct cmdline_parts *cmdline_parts_find(struct cmdline_parts *parts, |
| int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size, |
| int (*add_part)(int, struct cmdline_subpart *, void *), |
| #endif /* CMDLINEPARSEH */ |