Add support store ddr param in flash.
[xloong.git] / include / mtdfile.h
blobb7b86013f1fe5fb75ecc344b4618ce7afffb130d
1 #include <linux/mtd/mtd.h>
2 #include <sys/queue.h>
4 typedef struct mtdfile {
5 struct mtd_info *mtd;
6 int refs;
7 int fd;
8 int flags;
9 int index;
10 unsigned int part_size;
11 unsigned int part_offset;
12 #define MTDFILE_STATIC 0x0000
13 #define MTDFILE_DYNAMIC 0x0001
14 LIST_ENTRY(mtdfile) i_next;
15 char name[1];
16 } mtdfile;
18 typedef struct mtdpriv {
19 struct mtdfile *file;
20 unsigned int open_offset;
21 unsigned int open_size;
22 } mtdpriv;