summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorLuca Ellero <lroluk@gmail.com>2011-02-12 11:54:40 +0000
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-02-14 15:29:25 +0100
commitdcc9624b980a25248d38e07636f7701a46673b5a (patch)
tree4047b1ccb628eb389c10a4a61456613bdbf9e14f /src/target
parentaaa52e16ce9b6d43d2fa578361a582ccd9e6c85d (diff)
downloadopenocd+libswd-dcc9624b980a25248d38e07636f7701a46673b5a.tar.gz
openocd+libswd-dcc9624b980a25248d38e07636f7701a46673b5a.tar.bz2
openocd+libswd-dcc9624b980a25248d38e07636f7701a46673b5a.tar.xz
openocd+libswd-dcc9624b980a25248d38e07636f7701a46673b5a.zip
arm_adi_v5: add transfer functions prototypes with selection of ap
Signed-off-by: Luca Ellero <lroluk@gmail.com>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm_adi_v5.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index f64f7c84..2aefd605 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -379,6 +379,37 @@ int mem_ap_write_buf_u16(struct adiv5_dap *swjdp,
int mem_ap_write_buf_u32(struct adiv5_dap *swjdp,
uint8_t *buffer, int count, uint32_t address);
+
+
+/* Queued MEM-AP memory mapped single word transfers with selection of ap */
+int mem_ap_sel_read_u32(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint32_t address, uint32_t *value);
+int mem_ap_sel_write_u32(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint32_t address, uint32_t value);
+
+/* Synchronous MEM-AP memory mapped single word transfers with selection of ap */
+int mem_ap_sel_read_atomic_u32(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint32_t address, uint32_t *value);
+int mem_ap_sel_write_atomic_u32(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint32_t address, uint32_t value);
+
+/* MEM-AP memory mapped bus block transfers with selection of ap*/
+int mem_ap_sel_read_buf_u8(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint8_t *buffer, int count, uint32_t address);
+int mem_ap_sel_read_buf_u16(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint8_t *buffer, int count, uint32_t address);
+int mem_ap_sel_read_buf_u32(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint8_t *buffer, int count, uint32_t address);
+
+int mem_ap_sel_write_buf_u8(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint8_t *buffer, int count, uint32_t address);
+int mem_ap_sel_write_buf_u16(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint8_t *buffer, int count, uint32_t address);
+int mem_ap_sel_write_buf_u32(struct adiv5_dap *swjdp, uint8_t apsel,
+ uint8_t *buffer, int count, uint32_t address);
+
+
+
/* Initialisation of the debug system, power domains and registers */
int ahbap_debugport_init(struct adiv5_dap *swjdp);