D | mtd.h | 38 struct mtd_info *mtd; 102 struct mtd_info { struct 151 int (*erase) (struct mtd_info *mtd, struct erase_info *instr); argument 154 int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf); argument 157 void (*unpoint) (struct mtd_info *mtd, u_char * addr, loff_t from, size_t len); argument 160 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); argument 161 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); argument 163 int (*read_oob) (struct mtd_info *mtd, loff_t from, argument 165 int (*write_oob) (struct mtd_info *mtd, loff_t to, argument 173 int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len); argument [all …]
|