diff options
Diffstat (limited to 'src/target/arm7_9_common.h')
-rw-r--r-- | src/target/arm7_9_common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/target/arm7_9_common.h b/src/target/arm7_9_common.h index 85e5ac04..5821e132 100644 --- a/src/target/arm7_9_common.h +++ b/src/target/arm7_9_common.h @@ -120,6 +120,13 @@ struct arm7_9_common { /**< Callback function called before restoring the processor context */ /** + * Variant specific memory write function that does not dispatch to bulk_write_memory. + * Used as a fallback when bulk writes are unavailable, or for writing data needed to + * do the bulk writes. + */ + int (*write_memory)(struct target *target, uint32_t address, + uint32_t size, uint32_t count, const uint8_t *buffer); + /** * Write target memory in multiples of 4 bytes, optimized for * writing large quantities of data. */ @@ -160,6 +167,8 @@ int arm7_9_write_memory(struct target *target, uint32_t address, uint32_t size, uint32_t count, const uint8_t *buffer); int arm7_9_write_memory_opt(struct target *target, uint32_t address, uint32_t size, uint32_t count, const uint8_t *buffer); +int arm7_9_write_memory_no_opt(struct target *target, uint32_t address, + uint32_t size, uint32_t count, const uint8_t *buffer); int arm7_9_bulk_write_memory(struct target *target, uint32_t address, uint32_t count, const uint8_t *buffer); |