Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
inftl-user.h
Go to the documentation of this file.
1 /*
2  * Parts of INFTL headers shared with userspace
3  *
4  */
5 
6 #ifndef __MTD_INFTL_USER_H__
7 #define __MTD_INFTL_USER_H__
8 
9 #include <linux/types.h>
10 
11 #define OSAK_VERSION 0x5120
12 #define PERCENTUSED 98
13 
14 #define SECTORSIZE 512
15 
16 /* Block Control Information */
17 
18 struct inftl_bci {
22 } __attribute__((packed));
23 
31 } __attribute__((packed));
32 
40 } __attribute__((packed));
41 
46 } __attribute__((packed));
47 
48 union inftl_uci {
51  struct inftl_unittail c;
52 };
53 
54 struct inftl_oob {
55  struct inftl_bci b;
56  union inftl_uci u;
57 };
58 
59 
60 /* INFTL Media Header */
61 
70 } __attribute__((packed));
71 
73  char bootRecordID[8];
82 } __attribute__((packed));
83 
84 /* Partition flag types */
85 #define INFTL_BINARY 0x20000000
86 #define INFTL_BDTL 0x40000000
87 #define INFTL_LAST 0x80000000
88 
89 #endif /* __MTD_INFTL_USER_H__ */
90 
91