X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Ftarget.h;h=c5fb55ba7f264a126630f5fea9d18cf8f5460667;hb=eb8912ec38c0fd6867d2b5a88b40549f791ce7bb;hp=7a8a80f30438eaff7cffd81d68b16e3c384fe15c;hpb=f00d9bb1d7e6d52e62e7cfc402fda96f3544d911;p=openocd.git diff --git a/src/target/target.h b/src/target/target.h index 7a8a80f304..c5fb55ba7f 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -312,6 +312,12 @@ struct target_timer_callback { struct target_timer_callback *next; }; +struct target_memory_check_block { + target_addr_t address; + uint32_t size; + uint32_t result; +}; + int target_register_commands(struct command_context *cmd_ctx); int target_examine(void); @@ -585,7 +591,8 @@ int target_read_buffer(struct target *target, int target_checksum_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t *crc); int target_blank_check_memory(struct target *target, - target_addr_t address, uint32_t size, uint32_t *blank, uint8_t erased_value); + struct target_memory_check_block *blocks, int num_blocks, + uint8_t erased_value); int target_wait_state(struct target *target, enum target_state state, int ms); /**