7 #ifndef OPENOCD_FLASH_NOR_IMP_H
8 #define OPENOCD_FLASH_NOR_IMP_H
42 uint32_t *written,
bool erase,
bool unlock,
bool write,
bool verify);
Upper level NOR flash interfaces.
int flash_driver_read(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
int flash_driver_verify(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
int flash_driver_protect(struct flash_bank *bank, int set, unsigned int first, unsigned int last)
int flash_driver_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
void flash_bank_add(struct flash_bank *bank)
Adds a new NOR bank to the global list of banks.
int flash_driver_erase(struct flash_bank *bank, unsigned int first, unsigned int last)
struct flash_bank * flash_bank_list(void)
int flash_write_unlock_verify(struct target *target, struct image *image, uint32_t *written, bool erase, bool unlock, bool write, bool verify)
Provides details of a flash bank, available either on-chip or through a major interface.