blob: aeb15e18dc7f58eac1134de6fbd5eeb96114df9e [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
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.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef MTD_PARTITIONS_H
13#define MTD_PARTITIONS_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#include <linux/types.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080016
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017struct mtd_partition {
18 char *name;
19 u_int32_t size;
20 u_int32_t offset;
21 u_int32_t mask_flags;
22 struct nand_ecclayout *ecclayout;
23 struct mtd_info **mtdp;
24};
Ben Cheng4b29af02012-03-07 16:14:53 -080025
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#define MTDPART_OFS_NXTBLK (-2)
27#define MTDPART_OFS_APPEND (-1)
28#define MTDPART_SIZ_FULL (0)
Ben Cheng4b29af02012-03-07 16:14:53 -080029
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030struct mtd_part_parser {
31 struct list_head list;
32 struct module *owner;
33 const char *name;
34 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, unsigned long);
35};
Ben Cheng4b29af02012-03-07 16:14:53 -080036
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080037#define put_partition_parser(p) do { module_put((p)->owner); } while(0)
Ben Cheng4b29af02012-03-07 16:14:53 -080038
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080040