summaryrefslogtreecommitdiff
path: root/include/mtd
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-04-20 08:33:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-04-21 09:52:41 +0200
commit58292a38363c93a7480657d8da1c6c0049d4eb84 (patch)
tree14c5eb5cbf007d31ccce463326aaf5622f5985fa /include/mtd
parentec3dd1aea7c178e9d18e385b85392d63c49b4f23 (diff)
downloadbarebox-58292a38363c93a7480657d8da1c6c0049d4eb84.tar.gz
mtd: peb: Add mtd_peb_read_file()
Analog to mtd_peb_write_file() this adds a mtd_peb_read_file() Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mtd')
-rw-r--r--include/mtd/mtd-peb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mtd/mtd-peb.h b/include/mtd/mtd-peb.h
index cfcc0be611..cf8d8ff8da 100644
--- a/include/mtd/mtd-peb.h
+++ b/include/mtd/mtd-peb.h
@@ -23,6 +23,8 @@ int mtd_num_pebs(struct mtd_info *mtd);
int mtd_peb_create_bitflips(struct mtd_info *mtd, int pnum, int offset,
int len, int num_bitflips, int random,
int info);
+int mtd_peb_read_file(struct mtd_info *mtd, unsigned int peb_start,
+ unsigned int peb_last, void *buf, size_t len);
int mtd_peb_write_file(struct mtd_info *mtd, int peb_start, int max_pebs,
const void *buf, size_t len);