diff options
Diffstat (limited to 'include/mtd/nftl-user.h')
-rw-r--r-- | include/mtd/nftl-user.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/include/mtd/nftl-user.h b/include/mtd/nftl-user.h index 390d21c080aa..98e9e57f22de 100644 --- a/include/mtd/nftl-user.h +++ b/include/mtd/nftl-user.h | |||
@@ -6,33 +6,35 @@ | |||
6 | #ifndef __MTD_NFTL_USER_H__ | 6 | #ifndef __MTD_NFTL_USER_H__ |
7 | #define __MTD_NFTL_USER_H__ | 7 | #define __MTD_NFTL_USER_H__ |
8 | 8 | ||
9 | #include <linux/types.h> | ||
10 | |||
9 | /* Block Control Information */ | 11 | /* Block Control Information */ |
10 | 12 | ||
11 | struct nftl_bci { | 13 | struct nftl_bci { |
12 | unsigned char ECCSig[6]; | 14 | unsigned char ECCSig[6]; |
13 | uint8_t Status; | 15 | __u8 Status; |
14 | uint8_t Status1; | 16 | __u8 Status1; |
15 | }__attribute__((packed)); | 17 | }__attribute__((packed)); |
16 | 18 | ||
17 | /* Unit Control Information */ | 19 | /* Unit Control Information */ |
18 | 20 | ||
19 | struct nftl_uci0 { | 21 | struct nftl_uci0 { |
20 | uint16_t VirtUnitNum; | 22 | __u16 VirtUnitNum; |
21 | uint16_t ReplUnitNum; | 23 | __u16 ReplUnitNum; |
22 | uint16_t SpareVirtUnitNum; | 24 | __u16 SpareVirtUnitNum; |
23 | uint16_t SpareReplUnitNum; | 25 | __u16 SpareReplUnitNum; |
24 | } __attribute__((packed)); | 26 | } __attribute__((packed)); |
25 | 27 | ||
26 | struct nftl_uci1 { | 28 | struct nftl_uci1 { |
27 | uint32_t WearInfo; | 29 | __u32 WearInfo; |
28 | uint16_t EraseMark; | 30 | __u16 EraseMark; |
29 | uint16_t EraseMark1; | 31 | __u16 EraseMark1; |
30 | } __attribute__((packed)); | 32 | } __attribute__((packed)); |
31 | 33 | ||
32 | struct nftl_uci2 { | 34 | struct nftl_uci2 { |
33 | uint16_t FoldMark; | 35 | __u16 FoldMark; |
34 | uint16_t FoldMark1; | 36 | __u16 FoldMark1; |
35 | uint32_t unused; | 37 | __u32 unused; |
36 | } __attribute__((packed)); | 38 | } __attribute__((packed)); |
37 | 39 | ||
38 | union nftl_uci { | 40 | union nftl_uci { |
@@ -50,9 +52,9 @@ struct nftl_oob { | |||
50 | 52 | ||
51 | struct NFTLMediaHeader { | 53 | struct NFTLMediaHeader { |
52 | char DataOrgID[6]; | 54 | char DataOrgID[6]; |
53 | uint16_t NumEraseUnits; | 55 | __u16 NumEraseUnits; |
54 | uint16_t FirstPhysicalEUN; | 56 | __u16 FirstPhysicalEUN; |
55 | uint32_t FormattedSize; | 57 | __u32 FormattedSize; |
56 | unsigned char UnitSizeFactor; | 58 | unsigned char UnitSizeFactor; |
57 | } __attribute__((packed)); | 59 | } __attribute__((packed)); |
58 | 60 | ||