xref: /openbmc/u-boot/drivers/mtd/mtdcore.h (revision 592cd5defd4f71d34ffcbd8dd3326bc10f662e20)
1*ff94bc40SHeiko Schocher /*
2*ff94bc40SHeiko Schocher  * These are exported solely for the purpose of mtd_blkdevs.c and mtdchar.c.
3*ff94bc40SHeiko Schocher  * You should not use them for _anything_ else.
4*ff94bc40SHeiko Schocher  */
5*ff94bc40SHeiko Schocher 
6*ff94bc40SHeiko Schocher extern struct mutex mtd_table_mutex;
7*ff94bc40SHeiko Schocher 
8*ff94bc40SHeiko Schocher int add_mtd_device(struct mtd_info *mtd);
9*ff94bc40SHeiko Schocher int del_mtd_device(struct mtd_info *mtd);
10*ff94bc40SHeiko Schocher int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int);
11*ff94bc40SHeiko Schocher int del_mtd_partitions(struct mtd_info *);
12*ff94bc40SHeiko Schocher int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
13*ff94bc40SHeiko Schocher 			 struct mtd_partition **pparts,
14*ff94bc40SHeiko Schocher 			 struct mtd_part_parser_data *data);
15*ff94bc40SHeiko Schocher 
16*ff94bc40SHeiko Schocher int __init init_mtdchar(void);
17*ff94bc40SHeiko Schocher void __exit cleanup_mtdchar(void);
18