1 #include <linux/mtd/mtd.h> 2 3 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum); 4 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 5 unsigned int eb, int ebcnt); 6 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 7 unsigned int eb, int ebcnt); 8 9 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf); 10 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, 11 const void *buf); 12