aboutsummaryrefslogtreecommitdiff
path: root/libflash/blocklevel.h
diff options
context:
space:
mode:
Diffstat (limited to 'libflash/blocklevel.h')
-rw-r--r--libflash/blocklevel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libflash/blocklevel.h b/libflash/blocklevel.h
index 310e274..e9a1978 100644
--- a/libflash/blocklevel.h
+++ b/libflash/blocklevel.h
@@ -60,6 +60,9 @@ int blocklevel_erase(struct blocklevel_device *bl, uint32_t pos, uint32_t len);
int blocklevel_get_info(struct blocklevel_device *bl, const char **name, uint32_t *total_size,
uint32_t *erase_granule);
+/* Convienience functions */
+int blocklevel_smart_write(struct blocklevel_device *bl, uint32_t pos, const void *buf, uint32_t len);
+
/* Implemented in software at this level */
int blocklevel_ecc_protect(struct blocklevel_device *bl, uint32_t start, uint32_t len);