aboutsummaryrefslogtreecommitdiff
path: root/src/target/riscv/riscv.h
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-09-01 12:52:10 -0700
committerTim Newsome <tim@sifive.com>2020-09-01 12:52:10 -0700
commitb4f17d4a6311966dd261806115c8244182aaf753 (patch)
tree606a2ddacc4de8288dcbde29148cdcb514af49a8 /src/target/riscv/riscv.h
parent57b57989b46f7dc0a09b6eba8d894ff5cce80d17 (diff)
downloadriscv-openocd-b4f17d4a6311966dd261806115c8244182aaf753.zip
riscv-openocd-b4f17d4a6311966dd261806115c8244182aaf753.tar.gz
riscv-openocd-b4f17d4a6311966dd261806115c8244182aaf753.tar.bz2
Prefix RISC-V globals with riscv_.global
Also removed some stuff from riscv.h that was only used in one file anyway. Change-Id: Id980fba15448042b18b04e8da8ec48bd2d32fda8
Diffstat (limited to 'src/target/riscv/riscv.h')
-rw-r--r--src/target/riscv/riscv.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h
index 5e171d9..d30e019 100644
--- a/src/target/riscv/riscv.h
+++ b/src/target/riscv/riscv.h
@@ -219,21 +219,11 @@ static inline riscv_info_t *riscv_info(const struct target *target)
{ return target->arch_info; }
#define RISCV_INFO(R) riscv_info_t *R = riscv_info(target);
-extern uint8_t ir_dtmcontrol[4];
-extern struct scan_field select_dtmcontrol;
-extern uint8_t ir_dbus[4];
-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];
-typedef enum { BSCAN_TUNNEL_NESTED_TAP, BSCAN_TUNNEL_DATA_REGISTER } bscan_tunnel_type_t;
-extern int bscan_tunnel_ir_width;
-extern bscan_tunnel_type_t bscan_tunnel_type;
+extern struct scan_field riscv_select_dtmcontrol;
+extern struct scan_field riscv_select_dbus;
+extern struct scan_field riscv_select_idcode;
+
+extern int riscv_bscan_tunnel_ir_width;
uint32_t dtmcontrol_scan_via_bscan(struct target *target, uint32_t out);
void select_dmi_via_bscan(struct target *target);