aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/aice/aice_port.h
diff options
context:
space:
mode:
authorHsiangkai Wang <hsiangkai@gmail.com>2013-08-27 16:02:56 +0800
committerSpencer Oliver <spen@spen-soft.co.uk>2013-09-13 19:36:21 +0000
commit4be6e268254c7b82bd32d25af903c2d0812dce07 (patch)
treeafecb8f70c8fe8ce839161a29f4ade1e491b6339 /src/jtag/aice/aice_port.h
parentafb7cb7398fc0b0381df291ec5946e7a8c00d5fa (diff)
aice: support batch commands
Change-Id: I6846362d98374c93f45f339fb1279fc71721e696 Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com> Reviewed-on: http://openocd.zylin.com/1584 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/jtag/aice/aice_port.h')
-rw-r--r--src/jtag/aice/aice_port.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jtag/aice/aice_port.h b/src/jtag/aice/aice_port.h
index c3c74131..8f3e8551 100644
--- a/src/jtag/aice/aice_port.h
+++ b/src/jtag/aice/aice_port.h
@@ -73,7 +73,7 @@ enum aice_api_s {
AICE_CACHE_CTL,
AICE_SET_RETRY_TIMES,
AICE_PROGRAM_EDM,
- AICE_PACK_COMMAND,
+ AICE_SET_COMMAND_MODE,
AICE_EXECUTE,
AICE_SET_CUSTOM_SRST_SCRIPT,
AICE_SET_CUSTOM_TRST_SCRIPT,
@@ -97,6 +97,12 @@ enum aice_cache_ctl_type {
AICE_CACHE_CTL_L1I_VA_INVAL,
};
+enum aice_command_mode {
+ AICE_COMMAND_MODE_NORMAL,
+ AICE_COMMAND_MODE_PACK,
+ AICE_COMMAND_MODE_BATCH,
+};
+
struct aice_port_param_s {
/** */
char *device_desc;
@@ -193,7 +199,7 @@ struct aice_port_api_s {
int (*program_edm)(char *command_sequence);
/** */
- int (*pack_command)(bool enable_pack_command);
+ int (*set_command_mode)(enum aice_command_mode command_mode);
/** */
int (*execute)(uint32_t *instructions, uint32_t instruction_num);