build: add helper/types.h to config.h
[fw/openocd] / src / target / target.h
index a5ab3bddc7bd7ebe79d9ad698cd3765ba34d9c89..b3025dcb575ffbd71c860f7914a0b3b1626c67fe 100644 (file)
@@ -33,8 +33,6 @@
 #ifndef TARGET_H
 #define TARGET_H
 
-#include <helper/types.h>
-
 struct reg;
 struct trace;
 struct command_context;
@@ -442,6 +440,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.