X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Ftarget_type.h;h=cf3c864c80f072c326682c898b79466c4110c485;hb=0228f8e8274d5ac9351b550b29e135fc5e99de6b;hp=0b8d5daa1b59e122008b881391e43fb5c6eb2624;hpb=80d412bafc03ce9a0418a2b98de2668b0f8de0e6;p=openocd.git diff --git a/src/target/target_type.h b/src/target/target_type.h index 0b8d5daa1b..cf3c864c80 100644 --- a/src/target/target_type.h +++ b/src/target/target_type.h @@ -130,14 +130,6 @@ struct target_type { int (*write_buffer)(struct target *target, uint32_t address, uint32_t size, const uint8_t *buffer); - /** - * Write target memory in multiples of 4 bytes, optimized for - * writing large quantities of data. Do @b not call this - * function directly, use target_bulk_write_memory() instead. - */ - int (*bulk_write_memory)(struct target *target, uint32_t address, - uint32_t count, const uint8_t *buffer); - int (*checksum_memory)(struct target *target, uint32_t address, uint32_t count, uint32_t *checksum); int (*blank_check_memory)(struct target *target, uint32_t address, @@ -264,6 +256,19 @@ struct target_type { * circumstances. */ int (*check_reset)(struct target *target); + + /* get GDB file-I/O parameters from target + */ + int (*get_gdb_fileio_info)(struct target *target, struct gdb_fileio_info *fileio_info); + + /* pass GDB file-I/O response to target + */ + int (*gdb_fileio_end)(struct target *target, int retcode, int fileio_errno, bool ctrl_c); + + /* do target profiling + */ + int (*profiling)(struct target *target, uint32_t *samples, + uint32_t max_num_samples, uint32_t *num_samples, uint32_t seconds); }; #endif /* TARGET_TYPE_H */