|
|
|
@ -7,6 +7,7 @@ struct flash_dev; |
|
|
|
|
|
|
|
|
|
struct flash_ops { |
|
|
|
|
void (* release)(struct flash_dev *dev); |
|
|
|
|
size_t (* get_jedec_id)(struct flash_dev *dev, char *jedec_id, size_t len); |
|
|
|
|
size_t (* get_size)(struct flash_dev *dev); |
|
|
|
|
size_t (* get_capacity)(struct flash_dev *dev); |
|
|
|
|
size_t (* read)(struct flash_dev *dev, uint32_t addr, void *data, size_t len); |
|
|
|
@ -31,6 +32,7 @@ size_t default_flash_copy(struct flash_dev *dev, uint32_t dst, uint32_t src, |
|
|
|
|
|
|
|
|
|
struct flash_dev *flash_probe(void); |
|
|
|
|
void flash_release(struct flash_dev *dev); |
|
|
|
|
size_t flash_get_jedec_id(struct flash_dev *dev, char *jedec_id, size_t len); |
|
|
|
|
size_t flash_get_size(struct flash_dev *dev); |
|
|
|
|
size_t flash_get_capacity(struct flash_dev *dev); |
|
|
|
|
size_t flash_read(struct flash_dev *dev, uint32_t addr, void *data, size_t len); |
|
|
|
|