]> git.sur5r.net Git - openocd/blobdiff - src/target/target.h
target: add target async algorithm support
[openocd] / src / target / target.h
index a5ab3bddc7bd7ebe79d9ad698cd3765ba34d9c89..9dc928fe8f339de70bb77e8367caafa6f984bd4b 100644 (file)
@@ -442,6 +442,18 @@ int target_wait_algorithm(struct target *target,
                uint32_t exit_point, int timeout_ms,
                void *arch_info);
 
+/**
+ * This routine is a wrapper for asynchronous algorithms.
+ *
+ */
+int target_run_flash_async_algorithm(struct target *target,
+               uint8_t *buffer, uint32_t count, int block_size,
+               int num_mem_params, struct mem_param *mem_params,
+               int num_reg_params, struct reg_param *reg_params,
+               uint32_t buffer_start, uint32_t buffer_size,
+               uint32_t entry_point, uint32_t exit_point,
+               void *arch_info);
+
 /**
  * Read @a count items of @a size bytes from the memory of @a target at
  * the @a address given.