X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Ftarget%2Ftarget.h;h=1900351eb829c718f7f0762a6423a65da22ec4a0;hb=89d0e422c9698dd9a1fcbd7d4b6c8490633b0029;hp=ae5fbc431044227f2c9cb5dd35808ebdc2f18fbf;hpb=ce8768f46345e3f88ca6f8f0b88603d79e22d89a;p=openocd diff --git a/src/target/target.h b/src/target/target.h index ae5fbc43..1900351e 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -129,6 +129,8 @@ typedef struct target_type_s /* write target memory in multiples of 4 byte, optimized for writing large quantities of data */ int (*bulk_write_memory)(struct target_s *target, u32 address, u32 count, u8 *buffer); + int (*checksum_memory)(struct target_s *target, u32 address, u32 count, u32* checksum); + /* target break-/watchpoint control * rw: 0 = write, 1 = read, 2 = access */ @@ -217,6 +219,7 @@ extern target_t* get_target_by_num(int num); extern int target_write_buffer(struct target_s *target, u32 address, u32 size, u8 *buffer); extern int target_read_buffer(struct target_s *target, u32 address, u32 size, u8 *buffer); +extern int target_checksum_memory(struct target_s *target, u32 address, u32 size, u32* crc); extern int target_alloc_working_area(struct target_s *target, u32 size, working_area_t **area); extern int target_free_working_area(struct target_s *target, working_area_t *area);