summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlison Chaiken <alison@peloton-tech.com>2017-06-25 23:43:18 (GMT)
committerTom Rini <trini@konsulko.com>2017-08-04 13:55:29 (GMT)
commit92856b489b340ad66f5431d76802e16d689ad2ca (patch)
treec5f3113c2f3e1c5e14c31335eb6178d7a0ddb0fb /include
parentdb9b6200a4b38d0ca9e2c1aac6acaee671baff7d (diff)
downloadu-boot-fsl-qoriq-92856b489b340ad66f5431d76802e16d689ad2ca.tar.xz
disk_partition: introduce macros for description string lengths
Changes since v6: none. Signed-off-by: Alison Chaiken <alison@peloton-tech.com>
Diffstat (limited to 'include')
-rw-r--r--include/part.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/part.h b/include/part.h
index 6ace09f..87b1111 100644
--- a/include/part.h
+++ b/include/part.h
@@ -47,12 +47,15 @@ struct block_drvr {
#define DEV_TYPE_CDROM 0x05 /* CD-ROM */
#define DEV_TYPE_OPDISK 0x07 /* optical disk */
+#define PART_NAME_LEN 32
+#define PART_TYPE_LEN 32
+
typedef struct disk_partition {
lbaint_t start; /* # of first block in partition */
lbaint_t size; /* number of blocks in partition */
ulong blksz; /* block size in bytes */
- uchar name[32]; /* partition name */
- uchar type[32]; /* string type description */
+ uchar name[PART_NAME_LEN]; /* partition name */
+ uchar type[PART_TYPE_LEN]; /* string type description */
int bootable; /* Active/Bootable flag is set */
#if CONFIG_IS_ENABLED(PARTITION_UUIDS)
char uuid[UUID_STR_LEN + 1]; /* filesystem UUID as string, if exists */