ftl: use byte-offset from VA in ftl_write()

This commit is contained in:
S.J.R. van Schaik 2017-05-19 18:04:52 +02:00
parent 563db297a3
commit 6a2c499d7a
3 changed files with 21 additions and 9 deletions

View file

@ -30,7 +30,8 @@ struct ftl_map {
int ftl_init_map(struct ftl_map *map, struct flash_dev *dev);
int ftl_resume_map(struct ftl_map *map);
int ftl_write(struct ftl_map *map, uint32_t addr, const uint8_t *data);
int ftl_write(struct ftl_map *map, uint32_t addr, const void *data,
size_t len);
int ftl_read(struct ftl_map *map, void *data, size_t len, uint32_t va);
int ftl_trim(struct ftl_map *map, uint32_t va);
uint32_t ftl_get_size(const struct ftl_map *map);