tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / nand_fdl / fdl-2 / inc / parsemtdparts.h
1 #ifndef FDL_PARSRMTD_H
2 #define FDL_PARSRMTD_H
3
4 #define MTDPARTITION_MAX        (40)
5 #define PARTITION_NAME_LEN      (20)
6 struct mtd_partition {
7         char *name;                     /* identifier string */
8         unsigned long size;                     /* partition size */
9         unsigned long offset;           /* offset within the master MTD space */
10         unsigned long mask_flags;               /* master MTD flags to mask out for this partition */
11 };
12
13 struct real_mtd_partition {
14         char name[PARTITION_NAME_LEN];                  /* identifier string */
15         unsigned long size;                     /* partition size */
16         unsigned long offset;           /* offset within the master MTD space */
17         unsigned long mask_flags;               /* master MTD flags to mask out for this partition */
18         unsigned long yaffs;    /* 1 is yaffs image, 0 is not raw image */
19 };
20
21 typedef struct _NAND_PAGE_OOB_STATUS
22 {
23         unsigned long   erasesize;
24         unsigned long   writesize;
25         unsigned long   oobsize;
26 } NAND_PAGE_OOB_STATUS;
27
28 #endif /* FDL_NAND_H */