summaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.h
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2010-10-31 07:11:47 +0100
committerMarek Vasut <marek.vasut@gmail.com>2010-11-05 11:25:57 +0100
commit887cac65b0672910bda4fec34ed05d72ce7208aa (patch)
tree662ed901203e699ba529a1b30e2d402e721ad73c /src/target/arm_adi_v5.h
parent0649fb2f6c7e1bea138769ecc2ec8dc17ae98044 (diff)
downloadopenocd+libswd-887cac65b0672910bda4fec34ed05d72ce7208aa.tar.gz
openocd+libswd-887cac65b0672910bda4fec34ed05d72ce7208aa.tar.bz2
openocd+libswd-887cac65b0672910bda4fec34ed05d72ce7208aa.tar.xz
openocd+libswd-887cac65b0672910bda4fec34ed05d72ce7208aa.zip
ADIv5: Implement function to lookup CoreSight component
This patch implements "dap_lookup_cs_component()", which allows to lookup CS component by it's identification. Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'src/target/arm_adi_v5.h')
-rw-r--r--src/target/arm_adi_v5.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index 27a2f2f8..6c1808a5 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -383,6 +383,10 @@ int ahbap_debugport_init(struct adiv5_dap *swjdp);
int dap_get_debugbase(struct adiv5_dap *dap, int apsel,
uint32_t *dbgbase, uint32_t *apid);
+/* Lookup CoreSight component */
+int dap_lookup_cs_component(struct adiv5_dap *dap, int apsel,
+ uint32_t dbgbase, uint8_t type, uint32_t *addr);
+
struct target;
/* Put debug link into SWD mode */