summaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-10-22 08:44:34 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-10-22 08:44:34 +0000
commite27696f6b04459e935a0a5f65f7f668cb02970dd (patch)
tree24ec25797d6cc0f97336553b44b0eee920634859 /src/target/target.h
parentce8768f46345e3f88ca6f8f0b88603d79e22d89a (diff)
downloadopenocd+libswd-e27696f6b04459e935a0a5f65f7f668cb02970dd.tar.gz
openocd+libswd-e27696f6b04459e935a0a5f65f7f668cb02970dd.tar.bz2
openocd+libswd-e27696f6b04459e935a0a5f65f7f668cb02970dd.tar.xz
openocd+libswd-e27696f6b04459e935a0a5f65f7f668cb02970dd.zip
- add verify_image command
- add support for gdb qCRC packet (compare-sections command) git-svn-id: svn://svn.berlios.de/openocd/trunk@210 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h3
1 files changed, 3 insertions, 0 deletions
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);