1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef MTD_PARTITIONS_H
13 #define MTD_PARTITIONS_H
15 #include <linux/types.h>
17 struct mtd_partition {
22 struct nand_ecclayout *ecclayout;
23 struct mtd_info **mtdp;
26 #define MTDPART_OFS_NXTBLK (-2)
27 #define MTDPART_OFS_APPEND (-1)
28 #define MTDPART_SIZ_FULL (0)
30 struct mtd_part_parser {
31 struct list_head list;
34 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, unsigned long);
37 #define put_partition_parser(p) do { module_put((p)->owner); } while(0)