2 * Parts of INFTL headers shared with userspace
6 #ifndef __MTD_INFTL_USER_H__
7 #define __MTD_INFTL_USER_H__
9 #define OSAK_VERSION 0x5120
10 #define PERCENTUSED 98
12 #define SECTORSIZE 512
14 /* Block Control Information */
20 } __attribute__((packed));
22 struct inftl_unithead1 {
23 uint16_t virtualUnitNo;
27 uint8_t parityPerField;
29 } __attribute__((packed));
31 struct inftl_unithead2 {
32 uint8_t parityPerField;
35 uint16_t virtualUnitNo;
38 } __attribute__((packed));
40 struct inftl_unittail {
44 } __attribute__((packed));
47 struct inftl_unithead1 a;
48 struct inftl_unithead2 b;
49 struct inftl_unittail c;
58 /* INFTL Media Header */
60 struct INFTLPartition {
68 } __attribute__((packed));
70 struct INFTLMediaHeader {
72 __u32 NoOfBootImageBlocks;
73 __u32 NoOfBinaryPartitions;
74 __u32 NoOfBDTLPartitions;
75 __u32 BlockMultiplierBits;
79 struct INFTLPartition Partitions[4];
80 } __attribute__((packed));
82 /* Partition flag types */
83 #define INFTL_BINARY 0x20000000
84 #define INFTL_BDTL 0x40000000
85 #define INFTL_LAST 0x80000000
87 #endif /* __MTD_INFTL_USER_H__ */