fdt: remove build warnings caused by sprd bsp
[profile/mobile/platform/kernel/u-boot-tm1.git] / disk / part_uefi.h
1 #ifndef _DISK_PART_UEFI_H
2 #define _DISK_PART_UEFI_H
3
4 #include <common.h>
5
6 typedef enum _PARTITION_ATTR_TAG
7 {
8         PARTITION_RAW = 0,
9         PARTITION_EXT4 = 1,
10         PARTITION_ATTR_COUNT
11 }PARTITION_ATTR_TAG;
12
13 //#define MAX_PARTITION_INFO    (((PARTITION_TOTAL_COUNT + 3) / 4) * 4)
14 #define MAX_PARTITION_INFO      128
15
16 #define MAX_SIZE_FLAG   0xFFFFFFFF
17
18 #define MAX_PARTITION_NAME_SIZE  (72)  //72byte  36 utf-16le code units
19 #define MAX_UTF_PARTITION_NAME_LEN  (36)
20
21 #define STARTING_LBA_OF_FIRST_PARTITION   (0x800)
22
23 typedef struct _PARTITION_CFG
24 {
25         unsigned int partition_index;
26         unsigned int partition_size;  //
27         unsigned int partition_attr;
28         unsigned int partition_offset;
29 /*
30  In kernel #define PARTITION_META_INFO_VOLNAMELTH       64
31  In u-boot disk_partition name 32
32            gpt entry efi_char16_t partition_name[72 / sizeof(efi_char16_t)];
33 */
34         wchar_t partition_name[MAX_UTF_PARTITION_NAME_LEN];
35 } __attribute__ ((packed)) PARTITION_CFG,*PPARTITION_CFG;
36
37
38 unsigned int write_uefi_partition_table(PARTITION_CFG *p_partition_cfg);
39
40 #endif  /* _DISK_PART_UEFI_H */