aboutsummaryrefslogtreecommitdiff
path: root/src/target/riscv/riscv.h
diff options
context:
space:
mode:
authorGreg Savin <43152568+SiFiveGregS@users.noreply.github.com>2019-04-23 16:25:22 -0700
committerGitHub <noreply@github.com>2019-04-23 16:25:22 -0700
commit5190dd4cef6a8a71e592aa637f02e2b9cdbd80e3 (patch)
treef47ef9d54a1526870c92ea4f24980d95c8e8e7ae /src/target/riscv/riscv.h
parent15f2d35bc6413d89453c64eff39a80dfc52243f5 (diff)
downloadriscv-openocd-5190dd4cef6a8a71e592aa637f02e2b9cdbd80e3.zip
riscv-openocd-5190dd4cef6a8a71e592aa637f02e2b9cdbd80e3.tar.gz
riscv-openocd-5190dd4cef6a8a71e592aa637f02e2b9cdbd80e3.tar.bz2
Support for driving RISC-V DM via Arty's own JTAG chain using BSCAN tunnel (#370)
Including adjustments in response to review comments.
Diffstat (limited to 'src/target/riscv/riscv.h')
-rw-r--r--src/target/riscv/riscv.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h
index ade1bf0..0662efd 100644
--- a/src/target/riscv/riscv.h
+++ b/src/target/riscv/riscv.h
@@ -166,6 +166,16 @@ extern struct scan_field select_dbus;
extern uint8_t ir_idcode[4];
extern struct scan_field select_idcode;
+extern struct scan_field select_user4;
+extern struct scan_field *bscan_tunneled_select_dmi;
+extern uint32_t bscan_tunneled_select_dmi_num_fields;
+extern uint8_t bscan_zero[4];
+extern uint8_t bscan_one[4];
+extern int bscan_tunnel_ir_width;
+
+uint32_t dtmcontrol_scan_via_bscan(struct target *target, uint32_t out);
+void select_dmi_via_bscan(struct target *target);
+
/*** OpenOCD Interface */
int riscv_openocd_poll(struct target *target);