summaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-03-05 10:39:25 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-03-05 10:39:25 -0800
commitd33a81c549743e13633db9e8749f0e7cb0f7324b (patch)
treec1810fc1947b1ade439604b9388849bdb2e67587 /src/target/arm_adi_v5.h
parent57ebf6d3dea85d7c4d712a1ada161d76096fdf23 (diff)
downloadopenocd+libswd-d33a81c549743e13633db9e8749f0e7cb0f7324b.tar.gz
openocd+libswd-d33a81c549743e13633db9e8749f0e7cb0f7324b.tar.bz2
openocd+libswd-d33a81c549743e13633db9e8749f0e7cb0f7324b.tar.xz
openocd+libswd-d33a81c549743e13633db9e8749f0e7cb0f7324b.zip
ADIv5 share DAP command support
Get rid of needless and undesirable code duplication for all the DAP commands (resolving a FIXME) ... there's no need for coreas to have private copies of that stuff. Stick a pointer to the DAP in "struct arm", letting common code get to it. Also rename the "swjdp_info" symbol; just call it "dap". This is an overall code shrink. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm_adi_v5.h')
-rw-r--r--src/target/arm_adi_v5.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index abdbd248..d207fd9c 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -378,17 +378,6 @@ int mem_ap_write_buf_u32(struct adiv5_dap *swjdp,
int ahbap_debugport_init(struct adiv5_dap *swjdp);
-/* Commands for user dap access */
-int dap_info_command(struct command_context *cmd_ctx,
- struct adiv5_dap *swjdp, int apsel);
-
-#define DAP_COMMAND_HANDLER(name) \
- COMMAND_HELPER(name, struct adiv5_dap *swjdp)
-DAP_COMMAND_HANDLER(dap_baseaddr_command);
-DAP_COMMAND_HANDLER(dap_memaccess_command);
-DAP_COMMAND_HANDLER(dap_apsel_command);
-DAP_COMMAND_HANDLER(dap_apid_command);
-
struct target;
/* Put debug link into SWD mode */
@@ -397,4 +386,6 @@ int dap_to_swd(struct target *target);
/* Put debug link into JTAG mode */
int dap_to_jtag(struct target *target);
+extern const struct command_registration dap_command_handlers[];
+
#endif