1/**************************************************************************** 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 14 15#include <linux/types.h> 16 17struct 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}; 25 26#define MTDPART_OFS_NXTBLK (-2) 27#define MTDPART_OFS_APPEND (-1) 28#define MTDPART_SIZ_FULL (0) 29 30struct 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}; 36 37#define put_partition_parser(p) do { module_put((p)->owner); } while(0) 38 39#endif 40 41