You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
424 B
23 lines
424 B
#include <linux/mtd/mtd.h>
|
|
#include <sys/queue.h>
|
|
|
|
typedef struct mtdfile {
|
|
struct mtd_info *mtd;
|
|
int refs;
|
|
int fd;
|
|
int flags;
|
|
int index;
|
|
unsigned int part_size;
|
|
unsigned int part_offset;
|
|
#define MTDFILE_STATIC 0x0000
|
|
#define MTDFILE_DYNAMIC 0x0001
|
|
LIST_ENTRY(mtdfile) i_next;
|
|
char name[1];
|
|
} mtdfile;
|
|
|
|
typedef struct mtdpriv {
|
|
struct mtdfile *file;
|
|
unsigned int open_offset;
|
|
unsigned int open_size;
|
|
} mtdpriv;
|
|
|
|
|