aboutsummaryrefslogtreecommitdiff
path: root/libflash/blocklevel.h
diff options
context:
space:
mode:
Diffstat (limited to 'libflash/blocklevel.h')
-rw-r--r--libflash/blocklevel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libflash/blocklevel.h b/libflash/blocklevel.h
index 2e8480d..a22ecb4 100644
--- a/libflash/blocklevel.h
+++ b/libflash/blocklevel.h
@@ -29,6 +29,11 @@ struct blocklevel_device {
int (*erase)(struct blocklevel_device *bl, uint32_t pos, uint32_t len);
int (*get_info)(struct blocklevel_device *bl, const char **name, uint32_t *total_size,
uint32_t *erase_granule);
+
+ /*
+ * Keep the erase mask so that blocklevel_erase() can do sanity checking
+ */
+ uint32_t erase_mask;
};
int blocklevel_read(struct blocklevel_device *bl, uint32_t pos, void *buf, uint32_t len);