OpenOCD
|
the virtual debug interface provides a connection between a sw debugger and the simulated, emulated core. The openOCD client connects via TCP sockets with vdebug server and over DPI-based transactor with the emulation or simulation The vdebug debug driver supports JTAG and DAP-level transports More...
Go to the source code of this file.
Data Structures | |
struct | vd_client |
struct | vd_jtag_hdr |
struct | vd_rdata |
struct | vd_reg_hdr |
struct | vd_shm |
Macros | |
#define | VD_BUFFER_LEN 4024 |
#define | VD_CHEADER_LEN 24 |
#define | VD_MAX_MEMORIES 20 |
#define | VD_POLL_INTERVAL 500 |
#define | VD_SCALE_PSTOMS 1000000000 |
#define | VD_SHEADER_LEN 16 |
#define | VD_VERSION 44 |
Enumerations | |
enum | { VD_BFM_JTDP = 0x0001 , VD_BFM_SWDP = 0x0002 , VD_BFM_AHB = 0x0003 , VD_BFM_APB = 0x0004 , VD_BFM_AXI = 0x0005 , VD_BFM_JTAG = 0x0006 , VD_BFM_SWD = 0x0007 } |
List of transactor types. More... | |
enum | { VD_SIG_TCK = 0x0001 , VD_SIG_TDI = 0x0002 , VD_SIG_TMS = 0x0004 , VD_SIG_RESET = 0x0008 , VD_SIG_TRST = 0x0010 , VD_SIG_TDO = 0x0020 , VD_SIG_POWER = 0x0100 , VD_SIG_TCKDIV = 0x0200 , VD_SIG_BUF = 0x1000 } |
List of signals that can be read or written by the debugger. More... | |
enum | { VD_ERR_NONE = 0x0000 , VD_ERR_NOT_IMPL = 0x0100 , VD_ERR_USAGE = 0x0101 , VD_ERR_PARAM = 0x0102 , VD_ERR_CONFIG = 0x0107 , VD_ERR_NO_MEMORY = 0x0104 , VD_ERR_SHM_OPEN = 0x010a , VD_ERR_SHM_MAP = 0x010b , VD_ERR_SOC_OPEN = 0x011a , VD_ERR_SOC_OPT = 0x011b , VD_ERR_SOC_ADDR = 0x011c , VD_ERR_SOC_CONN = 0x011d , VD_ERR_SOC_SEND = 0x011e , VD_ERR_SOC_RECV = 0x011f , VD_ERR_LOCKED = 0x0202 , VD_ERR_NOT_RUN = 0x0204 , VD_ERR_NOT_OPEN = 0x0205 , VD_ERR_LICENSE = 0x0206 , VD_ERR_VERSION = 0x0207 , VD_ERR_TIME_OUT = 0x0301 , VD_ERR_NO_POWER = 0x0302 , VD_ERR_BUS_ERROR = 0x0304 , VD_ERR_NO_ACCESS = 0x0306 , VD_ERR_INV_HANDLE = 0x0307 , VD_ERR_INV_SCOPE = 0x0308 } |
List of errors. More... | |
enum | { VD_CMD_OPEN = 0x01 , VD_CMD_CLOSE = 0x02 , VD_CMD_CONNECT = 0x04 , VD_CMD_DISCONNECT = 0x05 , VD_CMD_WAIT = 0x09 , VD_CMD_SIGSET = 0x0a , VD_CMD_SIGGET = 0x0b , VD_CMD_JTAGCLOCK = 0x0f , VD_CMD_REGWRITE = 0x15 , VD_CMD_REGREAD = 0x16 , VD_CMD_JTAGSHTAP = 0x1a , VD_CMD_MEMOPEN = 0x21 , VD_CMD_MEMCLOSE = 0x22 , VD_CMD_MEMWRITE = 0x23 } |
enum | { VD_ASPACE_AP = 0x01 , VD_ASPACE_DP = 0x02 , VD_ASPACE_ID = 0x03 , VD_ASPACE_AB = 0x04 } |
enum | { VD_BATCH_NO = 0 , VD_BATCH_WO = 1 , VD_BATCH_WR = 2 } |
Functions | |
struct vd_shm | __attribute__ ((packed)) |
COMMAND_HANDLER (vdebug_set_batching) | |
COMMAND_HANDLER (vdebug_set_bfm) | |
COMMAND_HANDLER (vdebug_set_mem) | |
COMMAND_HANDLER (vdebug_set_polling) | |
COMMAND_HANDLER (vdebug_set_server) | |
static int | vdebug_close (int hsock, struct vd_shm *pm, uint8_t type) |
static int | vdebug_dap_connect (struct adiv5_dap *dap) |
static int | vdebug_dap_queue_ap_abort (struct adiv5_dap *dap, uint8_t *ack) |
static int | vdebug_dap_queue_ap_read (struct adiv5_ap *ap, unsigned int reg, uint32_t *data) |
static int | vdebug_dap_queue_ap_write (struct adiv5_ap *ap, unsigned int reg, uint32_t data) |
static int | vdebug_dap_queue_dp_read (struct adiv5_dap *dap, unsigned int reg, uint32_t *data) |
static int | vdebug_dap_queue_dp_write (struct adiv5_dap *dap, unsigned int reg, uint32_t data) |
static int | vdebug_dap_run (struct adiv5_dap *dap) |
static int | vdebug_dap_send_sequence (struct adiv5_dap *dap, enum swd_special_seq seq) |
static int | vdebug_init (void) |
static int | vdebug_jtag_clock (int hsock, struct vd_shm *pm, uint32_t value) |
static int | vdebug_jtag_div (int speed, int *khz) |
static int | vdebug_jtag_execute_queue (void) |
static int | vdebug_jtag_khz (int khz, int *jtag_speed) |
static int | vdebug_jtag_path_move (struct pathmove_command *cmd, uint8_t f_flush) |
static int | vdebug_jtag_runtest (int cycles, tap_state_t state, uint8_t f_flush) |
static int | vdebug_jtag_scan (struct scan_command *cmd, uint8_t f_flush) |
static int | vdebug_jtag_shift_tap (int hsock, struct vd_shm *pm, uint8_t num_pre, const uint8_t tms_pre, uint32_t num, const uint8_t *tdi, uint8_t num_post, const uint8_t tms_post, uint8_t *tdo, uint8_t f_last) |
static int | vdebug_jtag_speed (int speed) |
static int | vdebug_jtag_stableclocks (int num, uint8_t f_flush) |
static int | vdebug_jtag_tlr (tap_state_t state, uint8_t f_flush) |
static int | vdebug_jtag_tms_seq (const uint8_t *tms, int num, uint8_t f_flush) |
static void | vdebug_mem_close (int hsock, struct vd_shm *pm, uint8_t ndx) |
static int | vdebug_mem_open (int hsock, struct vd_shm *pm, const char *path, uint8_t ndx) |
static int | vdebug_open (int hsock, struct vd_shm *pm, const char *path, uint8_t type, uint32_t period_ps, uint32_t sig_mask) |
static int | vdebug_quit (void) |
static int | vdebug_reg_read (int hsock, struct vd_shm *pm, const uint32_t reg, uint32_t *data, uint8_t aspace, uint8_t f_last) |
static int | vdebug_reg_write (int hsock, struct vd_shm *pm, const uint32_t reg, const uint32_t data, uint8_t aspace, uint8_t f_last) |
static int | vdebug_reset (int trst, int srst) |
int | vdebug_run_jtag_queue (int hsock, struct vd_shm *pm, unsigned int count) |
int | vdebug_run_reg_queue (int hsock, struct vd_shm *pm, unsigned int count) |
static int | vdebug_sig_set (int hsock, struct vd_shm *pm, uint32_t write_mask, uint32_t value) |
static int | vdebug_sleep (int us) |
static int | vdebug_socket_error (void) |
static int | vdebug_socket_open (char *server_addr, uint32_t port) |
static int | vdebug_socket_receive (int hsock, struct vd_shm *pmem) |
static int | vdebug_socket_send (int hsock, struct vd_shm *pmem) |
static int | vdebug_wait (int hsock, struct vd_shm *pm, uint32_t cycles) |
static uint32_t | vdebug_wait_server (int hsock, struct vd_shm *pmem) |
Variables | |
struct { | |
uint8_t cmd | |
uint8_t offset [4] | |
uint8_t offseth [2] | |
uint8_t rbytes [2] | |
uint8_t rwdata [4] | |
uint8_t rwords [2] | |
uint8_t type | |
uint8_t waddr [2] | |
uint8_t wbytes [2] | |
uint8_t wid [2] | |
uint8_t wwords [2] | |
}; | |
struct { | |
uint8_t awords [2] | |
uint8_t duttime [8] | |
uint8_t rid [2] | |
uint8_t status [4] | |
}; | |
struct vd_rdata | __attribute__ |
uint8_t | count [4] |
uint8_t | dummy [96] |
static struct vd_shm * | pbuf |
uint8_t | rd8 [VD_BUFFER_LEN] |
uint8_t | state [4] |
static struct vd_client | vdc |
struct adapter_driver | vdebug_adapter_driver |
static const struct command_registration | vdebug_command [] |
static const struct command_registration | vdebug_command_handlers [] |
static const struct dap_ops | vdebug_dap_ops |
static struct jtag_interface | vdebug_jtag_ops |
static const char *const | vdebug_transports [] = { "jtag", "dapdirect_swd", NULL } |
uint8_t | wd8 [VD_BUFFER_LEN] |
the virtual debug interface provides a connection between a sw debugger and the simulated, emulated core. The openOCD client connects via TCP sockets with vdebug server and over DPI-based transactor with the emulation or simulation The vdebug debug driver supports JTAG and DAP-level transports
Definition in file vdebug.c.
anonymous enum |
anonymous enum |
anonymous enum |
List of errors.
anonymous enum |
anonymous enum |
anonymous enum |
struct vd_shm __attribute__ | ( | (packed) | ) |
COMMAND_HANDLER | ( | vdebug_set_batching | ) |
Definition at line 1201 of file vdebug.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, vd_client::trans_batch, VD_BATCH_NO, VD_BATCH_WO, VD_BATCH_WR, and vdc.
COMMAND_HANDLER | ( | vdebug_set_bfm | ) |
Definition at line 1153 of file vdebug.c.
References vd_client::bfm_path, vd_client::bfm_period, vd_client::bfm_type, CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, transport_is_dapdirect_swd(), VD_BFM_JTAG, VD_BFM_SWDP, and vdc.
COMMAND_HANDLER | ( | vdebug_set_mem | ) |
Definition at line 1181 of file vdebug.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, LOG_DEBUG, LOG_ERROR, vd_client::mem_base, vd_client::mem_ndx, vd_client::mem_path, vd_client::mem_size, VD_MAX_MEMORIES, and vdc.
COMMAND_HANDLER | ( | vdebug_set_polling | ) |
Definition at line 1219 of file vdebug.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, vd_client::poll_max, vd_client::poll_min, and vdc.
COMMAND_HANDLER | ( | vdebug_set_server | ) |
Definition at line 1134 of file vdebug.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, LOG_ERROR, vd_client::server_name, vd_client::server_port, and vdc.
|
static |
Definition at line 545 of file vdebug.c.
References vd_shm::cmd, ERROR_OK, h_u16_to_le(), LOG_DEBUG, vd_shm::rbytes, vd_shm::rwords, type, vd_shm::type, VD_CMD_CLOSE, VD_CMD_DISCONNECT, VD_VERSION, vdebug_wait_server(), vd_shm::wbytes, vd_shm::wid, and vd_shm::wwords.
Referenced by vdebug_quit().
|
static |
Definition at line 1079 of file vdebug.c.
References dap_dp_init().
|
static |
Definition at line 1121 of file vdebug.c.
References vd_client::hsocket, pbuf, VD_ASPACE_AB, vdc, and vdebug_reg_write().
|
static |
Definition at line 1099 of file vdebug.c.
References adiv5_ap::dap, DP_RDBUFF, DP_SELECT, DP_SELECT_APBANK, DP_SELECT_DPBANK, vd_client::hsocket, NULL, pbuf, adiv5_dap::select, VD_ASPACE_AP, VD_ASPACE_DP, vdc, vdebug_reg_read(), and vdebug_reg_write().
|
static |
Definition at line 1111 of file vdebug.c.
References adiv5_ap::dap, DP_SELECT, DP_SELECT_APBANK, DP_SELECT_DPBANK, vd_client::hsocket, pbuf, adiv5_dap::select, VD_ASPACE_AP, VD_ASPACE_DP, vdc, and vdebug_reg_write().
|
static |
Definition at line 1089 of file vdebug.c.
References DP_SELECT_DPBANK, vd_client::hsocket, pbuf, VD_ASPACE_DP, vdc, and vdebug_reg_read().
|
static |
Definition at line 1094 of file vdebug.c.
References DP_SELECT_DPBANK, vd_client::hsocket, pbuf, VD_ASPACE_DP, vdc, and vdebug_reg_write().
|
static |
Definition at line 1126 of file vdebug.c.
References ERROR_OK, vd_client::hsocket, le_to_h_u16(), pbuf, vdc, vdebug_run_reg_queue(), and vd_shm::waddr.
|
static |
|
static |
Definition at line 836 of file vdebug.c.
References vd_client::bfm_path, vd_client::bfm_period, vd_client::bfm_type, close_socket(), ERROR_FAIL, vd_client::hsocket, LOG_ERROR, LOG_INFO, vd_client::mem_ndx, vd_client::mem_path, NULL, pbuf, vd_client::poll_cycles, vd_client::poll_max, vd_client::server_name, vd_client::server_port, vd_client::trans_first, transport_is_jtag(), VD_SIG_RESET, VD_SIG_TCKDIV, VD_SIG_TRST, VD_VERSION, vdc, vdebug_mem_open(), vdebug_open(), and vdebug_socket_open().
|
static |
Definition at line 601 of file vdebug.c.
References vd_shm::cmd, ERROR_FAIL, ERROR_OK, h_u16_to_le(), h_u32_to_le(), LOG_DEBUG, LOG_ERROR, vd_shm::rbytes, vd_shm::rwdata, VD_CMD_JTAGCLOCK, vdebug_wait_server(), and vd_shm::wbytes.
Referenced by vdebug_jtag_speed().
|
static |
|
static |
Definition at line 1043 of file vdebug.c.
References cmd, ERROR_FAIL, ERROR_OK, jtag_command_queue, JTAG_PATHMOVE, JTAG_RUNTEST, JTAG_SCAN, JTAG_SLEEP, JTAG_STABLECLOCKS, JTAG_TLR_RESET, JTAG_TMS, LOG_ERROR, vdebug_jtag_path_move(), vdebug_jtag_runtest(), vdebug_jtag_scan(), vdebug_jtag_stableclocks(), vdebug_jtag_tlr(), vdebug_jtag_tms_seq(), and vdebug_sleep().
|
static |
Definition at line 1025 of file vdebug.c.
References vd_client::bfm_period, ERROR_OK, LOG_DEBUG, VD_SCALE_PSTOMS, and vdc.
|
static |
Definition at line 925 of file vdebug.c.
References buf_set_u32(), cmd, DIV_ROUND_UP, LOG_INFO, tap_get_state(), tap_set_state, tap_state_transition(), and vdebug_jtag_tms_seq().
Referenced by vdebug_jtag_execute_queue().
|
static |
Definition at line 989 of file vdebug.c.
References vd_client::hsocket, LOG_DEBUG, NULL, pbuf, state, tap_get_state(), tap_get_tms_path(), tap_get_tms_path_len(), tap_set_state, vdc, and vdebug_jtag_shift_tap().
Referenced by vdebug_jtag_execute_queue().
|
static |
Definition at line 957 of file vdebug.c.
References cmd, ERROR_OK, vd_client::hsocket, jtag_scan_size(), LOG_DEBUG, pbuf, state, TAP_DRSHIFT, tap_get_state(), tap_get_tms_path(), tap_get_tms_path_len(), TAP_IRSHIFT, tap_set_state, vdc, and vdebug_jtag_shift_tap().
Referenced by vdebug_jtag_execute_queue().
|
static |
Definition at line 618 of file vdebug.c.
References vd_client::buf_width, vd_shm::cmd, ERROR_FAIL, h_u16_to_le(), h_u64_to_le(), le_to_h_u16(), le_to_h_u32(), vd_rdata::lh, list_add_tail(), LOG_ERROR, vd_shm::offseth, vd_rdata::rdata, vd_client::rdataq, vd_shm::rwords, vd_client::trans_batch, vd_client::trans_first, vd_client::trans_last, VD_BATCH_NO, VD_BUFFER_LEN, VD_CMD_JTAGSHTAP, vdc, vdebug_run_jtag_queue(), waddr, vd_shm::waddr, vd_shm::wd8, vd_shm::wid, and vd_shm::wwords.
Referenced by vdebug_jtag_runtest(), vdebug_jtag_scan(), vdebug_jtag_stableclocks(), vdebug_jtag_tlr(), and vdebug_jtag_tms_seq().
|
static |
Definition at line 1016 of file vdebug.c.
References vd_client::bfm_period, vd_client::hsocket, LOG_INFO, pbuf, VD_SCALE_PSTOMS, vdc, and vdebug_jtag_clock().
|
static |
Definition at line 1002 of file vdebug.c.
References vd_client::hsocket, LOG_INFO, NULL, pbuf, tap_get_state(), vdc, and vdebug_jtag_shift_tap().
Referenced by vdebug_jtag_execute_queue().
|
static |
Definition at line 941 of file vdebug.c.
References ERROR_OK, vd_client::hsocket, LOG_INFO, NULL, pbuf, state, tap_get_state(), tap_get_tms_path(), tap_get_tms_path_len(), tap_set_state, vdc, and vdebug_jtag_shift_tap().
Referenced by vdebug_jtag_execute_queue().
|
static |
Definition at line 918 of file vdebug.c.
References vd_client::hsocket, LOG_INFO, NULL, pbuf, vdc, and vdebug_jtag_shift_tap().
Referenced by vdebug_jtag_execute_queue(), and vdebug_jtag_path_move().
|
static |
Definition at line 823 of file vdebug.c.
References vd_shm::cmd, h_u16_to_le(), h_u32_to_le(), LOG_DEBUG, vd_client::mem_path, vd_shm::rbytes, vd_shm::rwdata, vd_shm::rwords, VD_CMD_MEMCLOSE, vdc, vdebug_wait_server(), vd_shm::wbytes, and vd_shm::wwords.
Referenced by vdebug_quit().
|
static |
Definition at line 795 of file vdebug.c.
References vd_shm::cmd, ERROR_OK, h_u16_to_le(), le_to_h_u16(), le_to_h_u32(), LOG_DEBUG, LOG_ERROR, LOG_WARNING, vd_client::mem_depth, vd_client::mem_width, vd_shm::rbytes, vd_shm::rd8, vd_shm::rwords, VD_BUFFER_LEN, VD_CMD_MEMOPEN, vdc, vdebug_wait_server(), vd_shm::wbytes, vd_shm::wd8, and vd_shm::wwords.
Referenced by vdebug_init().
|
static |
Definition at line 495 of file vdebug.c.
References vd_client::addr_bits, vd_client::bfm_period, vd_client::buf_width, vd_shm::cmd, ERROR_FAIL, ERROR_OK, h_u16_to_le(), h_u32_to_le(), INIT_LIST_HEAD(), le_to_h_u16(), le_to_h_u32(), vd_rdata::lh, LOG_DEBUG, LOG_ERROR, vd_shm::rbytes, vd_shm::rd8, vd_client::rdataq, vd_shm::rid, vd_shm::rwdata, vd_shm::rwords, vd_client::sig_read, vd_client::sig_write, type, vd_shm::type, VD_BUFFER_LEN, VD_CMD_CLOSE, VD_CMD_CONNECT, VD_CMD_OPEN, VD_ERR_NOT_OPEN, VD_ERR_VERSION, VD_SIG_BUF, VD_VERSION, vdc, vdebug_wait_server(), vd_shm::wbytes, vd_shm::wd8, vd_shm::wid, and vd_shm::wwords.
Referenced by vdebug_init().
|
static |
Definition at line 880 of file vdebug.c.
References vd_client::bfm_path, vd_client::bfm_type, close_socket(), ERROR_OK, vd_client::hsocket, LOG_INFO, vd_client::mem_ndx, vd_client::mem_width, NULL, pbuf, vd_client::server_name, vd_client::server_port, VD_VERSION, vdc, vdebug_close(), and vdebug_mem_close().
|
static |
Definition at line 752 of file vdebug.c.
References vd_shm::cmd, ERROR_FAIL, ERROR_OK, h_u16_to_le(), h_u64_to_le(), le_to_h_u16(), vd_rdata::lh, list_add_tail(), vd_shm::offseth, vd_rdata::rdata, vd_client::rdataq, vd_shm::rwords, vd_client::trans_batch, vd_client::trans_first, vd_client::trans_last, VD_BATCH_NO, VD_BUFFER_LEN, VD_CMD_REGREAD, vdc, vdebug_run_reg_queue(), waddr, vd_shm::waddr, vd_shm::wd8, vd_shm::wid, and vd_shm::wwords.
Referenced by vdebug_dap_queue_ap_read(), and vdebug_dap_queue_dp_read().
|
static |
Definition at line 721 of file vdebug.c.
References vd_shm::cmd, ERROR_OK, h_u16_to_le(), h_u32_to_le(), h_u64_to_le(), le_to_h_u16(), vd_shm::offseth, vd_client::trans_batch, vd_client::trans_first, vd_client::trans_last, VD_BATCH_NO, VD_BUFFER_LEN, VD_CMD_REGWRITE, vdc, vdebug_run_reg_queue(), waddr, vd_shm::waddr, vd_shm::wd8, vd_shm::wid, and vd_shm::wwords.
Referenced by vdebug_dap_queue_ap_abort(), vdebug_dap_queue_ap_read(), vdebug_dap_queue_ap_write(), and vdebug_dap_queue_dp_write().
|
static |
Definition at line 896 of file vdebug.c.
References vd_client::hsocket, LOG_INFO, pbuf, transport_is_jtag(), VD_SIG_RESET, VD_SIG_TRST, vdc, vdebug_sig_set(), and vdebug_wait().
int vdebug_run_jtag_queue | ( | int | hsock, |
struct vd_shm * | pm, | ||
unsigned int | count | ||
) |
Definition at line 347 of file vdebug.c.
References vd_client::buf_width, count, ERROR_FAIL, h_u16_to_le(), h_u32_to_le(), le_to_h_u16(), le_to_h_u64(), vd_rdata::lh, lh(), list_del(), list_empty(), list_first_entry, LOG_DEBUG_IO, LOG_ERROR, NULL, vd_shm::offset, vd_shm::offseth, vd_shm::rbytes, vd_shm::rd8, vd_rdata::rdata, vd_client::rdataq, rwords, vd_shm::rwords, vd_client::targ_time, timeval_ms(), vd_client::trans_first, vd_client::trans_last, vdc, vdebug_wait_server(), waddr, vd_shm::waddr, vd_shm::wbytes, vd_shm::wd8, vd_shm::wid, and vd_shm::wwords.
Referenced by vdebug_jtag_shift_tap().
int vdebug_run_reg_queue | ( | int | hsock, |
struct vd_shm * | pm, | ||
unsigned int | count | ||
) |
Definition at line 423 of file vdebug.c.
References addr, vd_client::buf_width, count, ERROR_FAIL, h_u16_to_le(), h_u32_to_le(), le_to_h_u16(), le_to_h_u32(), le_to_h_u64(), vd_rdata::lh, lh(), list_del(), list_empty(), list_first_entry, LOG_DEBUG_IO, LOG_ERROR, vd_shm::offset, vd_shm::offseth, vd_shm::rbytes, vd_shm::rd8, vd_rdata::rdata, vd_client::rdataq, rwords, vd_shm::rwords, vd_client::targ_time, timeval_ms(), vd_client::trans_first, vd_client::trans_last, vdc, vdebug_wait_server(), waddr, vd_shm::waddr, vd_shm::wbytes, vd_shm::wd8, vd_shm::wid, and vd_shm::wwords.
Referenced by vdebug_dap_run(), vdebug_reg_read(), and vdebug_reg_write().
|
static |
Definition at line 584 of file vdebug.c.
References vd_shm::cmd, ERROR_FAIL, ERROR_OK, h_u16_to_le(), h_u32_to_le(), LOG_DEBUG, LOG_ERROR, vd_shm::rbytes, vd_shm::rwdata, VD_CMD_SIGSET, vdebug_wait_server(), and vd_shm::wbytes.
Referenced by vdebug_reset().
|
static |
Definition at line 1009 of file vdebug.c.
References vd_client::hsocket, LOG_INFO, pbuf, vdc, and vdebug_wait().
Referenced by vdebug_jtag_execute_queue().
|
static |
Definition at line 235 of file vdebug.c.
Referenced by vdebug_socket_open(), vdebug_socket_receive(), and vdebug_socket_send().
|
static |
Definition at line 244 of file vdebug.c.
References buf_set_u32(), close_socket(), LOG_ERROR, NULL, VD_ERR_SOC_ADDR, VD_ERR_SOC_CONN, VD_SHEADER_LEN, and vdebug_socket_error().
Referenced by vdebug_init().
|
static |
Definition at line 293 of file vdebug.c.
References vd_shm::cmd, le_to_h_u16(), LOG_DEBUG_IO, LOG_WARNING, offset, vd_shm::rbytes, vd_shm::rid, VD_SHEADER_LEN, and vdebug_socket_error().
Referenced by vdebug_wait_server().
|
static |
Definition at line 316 of file vdebug.c.
References vd_shm::cmd, le_to_h_u16(), LOG_DEBUG_IO, LOG_WARNING, VD_CHEADER_LEN, vdebug_socket_error(), and vd_shm::wbytes.
Referenced by vdebug_wait_server().
|
static |
Definition at line 566 of file vdebug.c.
References vd_shm::cmd, ERROR_FAIL, ERROR_OK, h_u16_to_le(), h_u32_to_le(), LOG_DEBUG, LOG_ERROR, vd_shm::rbytes, vd_shm::rwdata, VD_CMD_WAIT, vdebug_wait_server(), and vd_shm::wbytes.
Referenced by vdebug_reset(), and vdebug_sleep().
|
static |
Definition at line 327 of file vdebug.c.
References vd_shm::cmd, le_to_h_u32(), LOG_DEBUG_IO, vd_shm::status, VD_ERR_SOC_OPEN, VD_ERR_SOC_RECV, VD_ERR_SOC_SEND, vdebug_socket_receive(), and vdebug_socket_send().
Referenced by vdebug_close(), vdebug_jtag_clock(), vdebug_mem_close(), vdebug_mem_open(), vdebug_open(), vdebug_run_jtag_queue(), vdebug_run_reg_queue(), vdebug_sig_set(), and vdebug_wait().
struct { ... } |
struct { ... } |
struct vd_rdata __attribute__ |
uint8_t cmd |
Definition at line 1 of file vdebug.c.
Referenced by a64_disassemble(), adi_jtag_dp_scan(), adi_jtag_dp_scan_cmd(), adi_jtag_dp_scan_cmd_sync(), adiv6_dap_read_baseptr(), aice_execute_command(), aice_execute_queue(), aice_execute_reset(), amt_jtagaccel_execute_queue(), arm7a_handle_l2x_cache_info_command(), arm920t_verify_pointer(), arm926ejs_verify_pointer(), arm946e_verify_pointer(), arm966e_verify_pointer(), arm_tpiu_swo_create(), armjtagew_execute_queue(), armv4_5_handle_cache_info_command(), armv7a_handle_cache_info_command(), armv8_handle_cache_info_command(), armv8_handle_inner_cache_info_command(), at91sam7_flash_command(), at91sam7_protect(), avrf_info(), binprint(), bitbang_execute_queue(), bitbang_execute_tms(), bitbang_path_move(), bitbang_swd_read_reg(), bitbang_swd_write_reg(), bitq_execute_queue(), bitq_path_move(), bitq_scan(), buspirate_execute_queue(), buspirate_jtag_command(), buspirate_swd_read_reg(), buspirate_swd_write_header(), buspirate_swd_write_reg(), cfi_command(), cfi_command_val(), cfi_get_info(), cfi_intel_info(), cfi_send_command(), cfi_spansion_info(), cmsis_dap_execute_command(), cmsis_dap_execute_pathmove(), cmsis_dap_execute_queue(), cmsis_dap_execute_runtest(), cmsis_dap_execute_scan(), cmsis_dap_execute_sleep(), cmsis_dap_execute_stableclocks(), cmsis_dap_execute_tms(), cmsis_dap_swd_queue_cmd(), cmsis_dap_swd_read_reg(), cmsis_dap_swd_write_from_queue(), cmsis_dap_swd_write_reg(), command_find_from_name(), command_print(), command_print_sameline(), cortex_m_verify_pointer(), cti_create(), dap_cmd_new(), dap_cmd_release(), dap_create(), dap_devtype_display(), dap_info_ap_header(), dap_info_command(), dap_info_cs_component(), dap_info_mem_ap_header(), dap_info_rom_table_entry(), davinci_write_pagecmd(), default_interface_jtag_execute_queue(), dtc_queue_enqueue_reply(), esirisc_flash_info(), esirisc_trace_analyze(), esirisc_trace_analyze_buffer(), esirisc_trace_analyze_full(), esirisc_trace_analyze_memory(), esirisc_trace_analyze_simple(), esirisc_trace_dump(), esirisc_trace_dump_buffer(), esirisc_trace_dump_memory(), esp_usb_jtag_command_add(), esp_usb_jtag_command_add_raw(), esp_usb_jtag_write_rlestream(), etmv1_analyze_trace(), faux_info(), find_target(), fm4_get_info_command(), ftdi_execute_command(), ftdi_execute_pathmove(), ftdi_execute_queue(), ftdi_execute_runtest(), ftdi_execute_scan(), ftdi_execute_sleep(), ftdi_execute_stableclocks(), ftdi_execute_statemove(), ftdi_execute_tms(), ftdi_swd_queue_cmd(), ftdi_swd_read_reg(), ftdi_swd_run_queue(), ftdi_swd_write_reg(), gdb_query_packet(), get_ambiqmicro_info(), get_at91sam7_info(), get_efm32x_info(), get_info(), get_lpc2000_info(), get_lpcspifi_info(), get_mdr_info(), get_niietcm4_info(), get_psoc4_info(), get_stellaris_info(), get_stm32l4_info(), get_stm32x_info(), get_stmqspi_info(), get_stmsmi_info(), get_str7x_info(), get_tms470_info(), get_w600_info(), gw16012_execute_queue(), gw16012_path_move(), handle_bp_command_list(), handle_bp_command_set(), handle_iod_output(), icdi_send_cmd(), icdi_usb_read_mem_int(), icdi_usb_read_reg(), icdi_usb_write_reg(), interface_add_tms_seq(), interface_jtag_add_clocks(), interface_jtag_add_dr_scan(), interface_jtag_add_ir_scan(), interface_jtag_add_pathmove(), interface_jtag_add_reset(), interface_jtag_add_runtest(), interface_jtag_add_sleep(), interface_jtag_add_tlr(), isc_program_register(), isc_read_register(), isc_set_register(), jim_command_dispatch(), jim_command_mode(), jimcmd_is_oocd_command(), jimcmd_is_proc(), jimcmd_privdata(), jlink_execute_command(), jlink_execute_pathmove(), jlink_execute_queue(), jlink_execute_runtest(), jlink_execute_scan(), jlink_execute_sleep(), jlink_execute_stableclocks(), jlink_execute_statemove(), jlink_swd_read_reg(), jlink_swd_write_reg(), jtag_add_plain_scan(), jtag_build_buffer(), jtag_dpi_execute_queue(), jtag_dpi_scan(), jtag_queue_command(), jtag_read_buffer(), jtag_scan_size(), jtag_vpi_execute_queue(), jtag_vpi_path_move(), jtag_vpi_scan(), jtag_vpi_stop_simulation(), jtag_vpi_tms(), jtagspi_cmd(), kinetis_info(), kinetis_ke_info(), kitprog_swd_queue_cmd(), kitprog_swd_read_reg(), kitprog_swd_run_queue(), kitprog_swd_write_reg(), ls1_sap_memory_cmd(), mips32_verify_pointer(), mips_m4k_verify_pointer(), mrvlqspi_get_info(), msp432_info(), nand_fileio_start(), nand_list_walker(), nand_page_command(), nrf5_info(), numicro_fmc_cmd(), nuttx_thread_packet(), opendous_execute_queue(), openjtag_execute_command(), openjtag_execute_queue(), openjtag_execute_reset(), openjtag_execute_runtest(), openjtag_execute_scan(), openjtag_execute_sleep(), openjtag_execute_statemove(), openjtag_sendcommand(), osbdm_execute_command(), osbdm_execute_queue(), pic32mx_info(), presto_bitq_out(), psoc4_sysreq(), psoc5lp_eeprom_get_info_command(), psoc5lp_get_info_command(), psoc5lp_nvl_get_info_command(), psoc6_get_info(), rcmd_offset(), rlink_execute_queue(), rlink_path_move(), rlink_scan(), rsl10_ll_flash_erase(), rsl10_ll_flash_write(), rsl10_mass_erase(), run_command(), sam4_info(), sam4l_flash_command(), samd_issue_nvmctrl_command(), same5_issue_nvmctrl_command(), samv_get_info(), semihosting_common(), sh_qspi_get_info(), show_config(), show_config_ip_address(), show_config_mac_address(), show_config_target_power(), show_config_usb_address(), sim3x_flash_info(), smi_erase_sector(), stlink_usb_buf_rw_segment(), stlink_usb_count_buf_rw_queue(), stlink_usb_count_misc_rw_queue(), stlink_usb_misc_rw_segment(), stm32h74_h75xx_compute_flash_cr(), stm32h7a_h7bxx_compute_flash_cr(), stm32x_get_info(), str7x_erase(), str7x_protect(), str7x_write(), swd_cmd(), swd_cmd_returns_ack(), syncbb_execute_tms(), syncbb_path_move(), target_create(), target_handle_md_output(), target_process_reset(), telnet_auto_complete(), ublast_execute_queue(), ublast_path_move(), ublast_scan(), ublast_tms(), ulink_append_clock_tck_cmd(), ulink_append_clock_tms_cmd(), ulink_append_configure_tck_cmd(), ulink_append_get_signals_cmd(), ulink_append_led_cmd(), ulink_append_scan_cmd(), ulink_append_set_signals_cmd(), ulink_append_sleep_cmd(), ulink_append_test_cmd(), ulink_execute_queue(), ulink_post_process_scan(), ulink_queue_pathmove(), ulink_queue_reset(), ulink_queue_runtest(), ulink_queue_scan(), ulink_queue_sleep(), ulink_queue_stableclocks(), usbprog_execute_queue(), usbprog_path_move(), usbtoxxx_add_command(), usbtoxxx_execute_command(), usbtoxxx_interface_supported(), vdebug_jtag_execute_queue(), vdebug_jtag_path_move(), vdebug_jtag_scan(), versaloon_add_pending(), virtual_info(), vsllink_execute_queue(), vsllink_swd_read_reg(), vsllink_swd_write_reg(), w600_get_delay(), w600_start(), w600_start_do(), xcf_info(), xds110_execute_command(), xds110_execute_pathmove(), xds110_execute_queue(), xds110_execute_sleep(), xds110_legacy_read_reg(), xds110_legacy_write_reg(), xds110_queue_runtest(), xds110_queue_scan(), xds110_queue_stableclocks(), xds110_swd_queue_cmd(), xds110_swd_read_reg(), xds110_swd_run_queue(), xds110_swd_write_reg(), xlnx_pcie_xvc_execute_command(), xlnx_pcie_xvc_execute_pathmove(), xlnx_pcie_xvc_execute_queue(), xlnx_pcie_xvc_execute_reset(), xlnx_pcie_xvc_execute_runtest(), xlnx_pcie_xvc_execute_scan(), xlnx_pcie_xvc_execute_sleep(), xlnx_pcie_xvc_execute_stableclocks(), xlnx_pcie_xvc_execute_tms(), xlnx_pcie_xvc_swd_read_reg(), xlnx_pcie_xvc_swd_write_reg(), xmc1xxx_get_info_command(), xmc4xxx_get_info_command(), xscale_analyze_trace(), xscale_display_instruction(), xscale_invalidate_ic_line(), xscale_load_ic(), xscale_verify_pointer(), xtensa_examine(), and xtensa_wakeup().
uint8_t count[4] |
Definition at line 22 of file vdebug.c.
Referenced by aarch64_read_cpu_memory(), aarch64_read_cpu_memory_fast(), aarch64_read_cpu_memory_slow(), aarch64_read_memory(), aarch64_read_phys_memory(), aarch64_write_cpu_memory(), aarch64_write_cpu_memory_fast(), aarch64_write_cpu_memory_slow(), aarch64_write_memory(), aarch64_write_phys_memory(), adapter_read_memory(), adapter_write_memory(), adbg_wb_burst_read(), adbg_wb_burst_write(), aduc702x_erase(), aduc702x_write(), aduc702x_write_block(), aduc702x_write_single(), aducm360_erase(), aducm360_write(), aducm360_write_block(), aducm360_write_block_async(), aducm360_write_block_sync(), aducm360_write_modified(), aice_bulk_read_mem(), aice_bulk_write_mem(), aice_pipe_read(), aice_pipe_read_mem_unit(), aice_pipe_write(), aice_pipe_write_mem_unit(), aice_read_mem_unit(), aice_usb_read_memory_unit(), aice_usb_write_memory_unit(), aice_write_mem_unit(), ambiqmicro_otp_program(), ambiqmicro_write(), ambiqmicro_write_block(), arc_jtag_enque_register_rw(), arc_jtag_read_aux_reg(), arc_jtag_read_core_reg(), arc_jtag_read_memory(), arc_jtag_read_registers(), arc_jtag_write_aux_reg(), arc_jtag_write_core_reg(), arc_jtag_write_memory(), arc_jtag_write_registers(), arc_mem_is_slow_memory(), arc_mem_read(), arc_mem_read_block(), arc_mem_write(), arc_mem_write_block16(), arc_mem_write_block32(), arc_mem_write_block8(), arm11_read_memory(), arm11_read_memory_inner(), arm11_run_instr_data_from_core(), arm11_run_instr_data_to_core(), arm11_run_instr_data_to_core_noack(), arm11_run_instr_data_to_core_noack_inner(), arm11_run_instr_no_data(), arm11_sc7_run(), arm11_write_memory(), arm11_write_memory_inner(), arm720t_read_memory(), arm720t_read_phys_memory(), arm720t_write_phys_memory(), arm7_9_bulk_write_memory(), arm7_9_dcc_completion(), arm7_9_read_memory(), arm7_9_write_memory(), arm7_9_write_memory_no_opt(), arm7_9_write_memory_opt(), arm920t_read_memory(), arm920t_read_phys_memory(), arm920t_write_memory(), arm920t_write_phys_memory(), arm926ejs_read_phys_memory(), arm926ejs_write_memory(), arm926ejs_write_phys_memory(), arm946e_invalidate_dcache(), arm946e_invalidate_icache(), arm946e_read_memory(), arm946e_write_memory(), arm_checksum_memory(), armv4_5_mmu_read_physical(), armv4_5_mmu_write_physical(), armv7m_checksum_memory(), at91sam7_write(), ath79_read(), ath79_write(), avr32_ap7k_read_memory(), avr32_ap7k_write_memory(), avr32_jtag_read_memory16(), avr32_jtag_read_memory32(), avr32_jtag_read_memory8(), avr32_jtag_write_memory16(), avr32_jtag_write_memory32(), avr32_jtag_write_memory8(), avrf_write(), bluenrgx_write(), buffer_shr(), cc26xx_write(), cc3220sf_write(), cfi_intel_write_block(), cfi_read(), cfi_spansion_write_block(), cfi_spansion_write_block_mips(), cfi_target_read_memory(), cfi_target_write_memory(), cfi_write(), COMMAND_HANDLER(), cortex_a_read_buffer(), cortex_a_read_cpu_memory(), cortex_a_read_cpu_memory_fast(), cortex_a_read_cpu_memory_slow(), cortex_a_read_memory(), cortex_a_read_phys_memory(), cortex_a_write_buffer(), cortex_a_write_cpu_memory(), cortex_a_write_cpu_memory_fast(), cortex_a_write_cpu_memory_slow(), cortex_a_write_memory(), cortex_a_write_phys_memory(), cortex_m_read_memory(), cortex_m_write_memory(), default_flash_read(), default_flash_verify(), dsp563xx_read_memory(), dsp563xx_read_memory_core(), dsp563xx_read_memory_default(), dsp563xx_write_memory(), dsp563xx_write_memory_core(), dsp563xx_write_memory_default(), dsp5680xx_f_wr(), dsp5680xx_flash_write(), dsp5680xx_read(), dsp5680xx_write(), dsp5680xx_write_16(), dsp5680xx_write_32(), dsp5680xx_write_8(), duration_kbps(), efm32x_priv_write(), efm32x_write(), efm32x_write_block(), em357_write(), em357_write_block(), embeddedice_write_dcc(), ep1_memory_write(), esirisc_flash_fill_pb(), esirisc_flash_write(), esirisc_read_memory(), esirisc_trace_analyze_full(), esirisc_trace_buf_get_u32(), esirisc_write_memory(), execute_command(), faux_write(), feroceon_bulk_write_memory(), fespi_write(), fetch_packet(), find_sfdp_dummy(), find_status_bit(), flash_driver_read(), flash_driver_verify(), flash_driver_write(), fm3_write_block(), handle_iod_output(), hexify(), icdi_usb_read_mem(), icdi_usb_write_mem(), image_ihex_buffer_complete_inner(), image_mot_buffer_complete_inner(), isc_data_read_out(), jim_nds32_bulk_read(), jim_nds32_bulk_write(), jlink_quit(), jlink_register(), jtag_clock_tck(), jtag_clock_tms(), jtag_examine_chain_check(), jtag_examine_chain_end(), jtag_slow_clock_tck(), jtag_slow_clock_tms(), jtagspi_page_write(), jtagspi_read(), jtagspi_write(), kinetis_ke_ftmrx_command(), kinetis_ke_write(), kinetis_write(), kinetis_write_inner(), kinetis_write_sections(), linux_read_memory(), lpc2000_write(), lpc2900_write(), lpc32xx_start_slc_dma(), lpcspifi_write(), ls1_sap_read_memory(), max32xxx_write(), mdr_read(), mdr_write(), mdr_write_block(), mem_ap_read(), mem_ap_read_buf(), mem_ap_read_buf_noincr(), mem_ap_read_memory(), mem_ap_write(), mem_ap_write_buf(), mem_ap_write_buf_noincr(), mips32_checksum_memory(), mips32_dmaacc_read_mem(), mips32_dmaacc_read_mem16(), mips32_dmaacc_read_mem32(), mips32_dmaacc_read_mem8(), mips32_dmaacc_write_mem(), mips32_dmaacc_write_mem16(), mips32_dmaacc_write_mem32(), mips32_dmaacc_write_mem8(), mips32_pracc_fastdata_xfer(), mips32_pracc_read_mem(), mips32_pracc_synchronize_cache(), mips32_pracc_write_mem(), mips32_pracc_write_mem_generic(), mips64_pracc_fastdata_xfer(), mips64_pracc_read_mem(), mips64_pracc_read_mem16(), mips64_pracc_read_mem32(), mips64_pracc_read_mem64(), mips64_pracc_read_mem8(), mips64_pracc_write_mem(), mips64_pracc_write_mem16(), mips64_pracc_write_mem32(), mips64_pracc_write_mem64(), mips64_pracc_write_mem8(), mips_m4k_bulk_write_memory(), mips_m4k_read_memory(), mips_m4k_write_memory(), mips_mips64_bulk_write_memory(), mips_mips64_read_memory(), mips_mips64_write_memory(), mrvlqspi_flash_read(), mrvlqspi_flash_write(), mrvlqspi_set_din_cnt(), msp432_write(), nds32_read_memory(), nds32_read_phys_memory(), nds32_v2_read_memory(), nds32_v3_read_memory(), nds32_v3_write_memory(), nds32_write_memory(), nds32_write_phys_memory(), next_hex_encoded_field(), niietcm4_write(), niietcm4_write_block(), npcx_write(), nrf5_write(), nulink_usb_read_mem(), nulink_usb_read_mem32(), nulink_usb_read_mem8(), nulink_usb_write_mem(), nulink_usb_write_mem32(), nulink_usb_write_mem8(), numicro_write(), numicro_writeblock(), ocl_write(), openjtag_add_scan(), openjtag_execute_tap_queue(), or1k_adv_jtag_read_cpu(), or1k_adv_jtag_read_memory(), or1k_adv_jtag_write_cpu(), or1k_adv_jtag_write_memory(), or1k_read_memory(), or1k_write_memory(), osbdm_add_stableclocks(), osbdm_send_and_recv(), pic32mx_write(), pic32mx_write_block(), pracc_swap16_array(), psoc4_write(), psoc5lp_nvl_read(), psoc6_program(), qspi_read_write_block(), qspi_verify(), read_flash_id(), read_memory(), read_memory_abstract(), read_memory_bus_v0(), read_memory_bus_v1(), read_memory_progbuf(), read_memory_progbuf_inner(), read_phys_mem(), read_sfdp_block(), read_socket(), read_status_reg(), read_write_data(), remote_bitbang_fill_buf(), riscv_checksum_memory(), riscv_read_memory(), riscv_read_phys_memory(), riscv_write_memory(), riscv_write_phys_memory(), rp2040_flash_write(), rp2040_spi_read_flash_id(), rpchf_target_read_memory(), rpchf_target_write_memory(), rpchf_write(), rsl10_write(), rtos_put_gdb_reg_list(), sam3_write(), sam4_write(), sam4l_write(), samd_write(), same5_modify_user_row_masked(), same5_write(), samv_write(), semihosting_common(), sh_qspi_read(), sh_qspi_write(), sim3x_flash_write(), sim3x_write_block(), slc_ecc_copy_to_buffer(), stellaris_write(), stlink_swim_op_read_mem(), stlink_swim_op_write_mem(), stlink_usb_buf_rw_segment(), stlink_usb_count_misc_rw_queue(), stlink_usb_mem_rw_queue(), stlink_usb_read_ap_mem(), stlink_usb_read_mem(), stlink_usb_write_ap_mem(), stlink_usb_write_mem(), stm32l4_write(), stm32l4_write_block(), stm32l4_write_block_without_loader(), stm32lx_write(), stm32lx_write_half_pages(), stm32x_write(), stm32x_write_block(), stm8_adapter_read_memory(), stm8_adapter_write_memory(), stm8_read_memory(), stm8_write_flash(), stm8_write_memory(), stmqspi_blank_check(), stmqspi_read(), stmqspi_verify(), stmqspi_write(), stmsmi_write(), str7x_write(), str7x_write_block(), str9x_write(), str9x_write_block(), str9xpec_write(), swim_read_mem(), swim_write_mem(), swm050_write(), target_buffer_get_u16_array(), target_buffer_get_u32_array(), target_buffer_get_u64_array(), target_buffer_set_u16_array(), target_buffer_set_u32_array(), target_buffer_set_u64_array(), target_handle_md_output(), target_jim_read_memory(), target_jim_write_memory(), target_read_buffer_default(), target_read_memory(), target_read_phys_memory(), target_run_flash_async_algorithm(), target_run_read_async_algorithm(), target_write_buffer_default(), target_write_memory(), target_write_phys_memory(), tms470_write(), ulink_append_clock_tck_cmd(), ulink_append_clock_tms_cmd(), unhexify(), usb_bulk_with_retries(), usb_connect(), usb_get_response(), vdebug_run_jtag_queue(), vdebug_run_reg_queue(), virtual_write(), w600_write(), write_memory(), write_memory_abstract(), write_memory_bus_v0(), write_memory_bus_v1(), write_memory_progbuf(), write_phys_mem(), write_socket(), x86_32_common_read_memory(), x86_32_common_read_phys_mem(), x86_32_common_write_memory(), x86_32_common_write_phys_mem(), xcf_read(), xcf_write(), xds_cycle_tck(), xmc4xxx_write(), xscale_analyze_trace(), xscale_read_memory(), xscale_read_phys_memory(), xscale_send(), xscale_write_memory(), xscale_write_phys_memory(), xtensa_read_buffer(), xtensa_read_memory(), xtensa_write_buffer(), and xtensa_write_memory().
uint8_t dummy[96] |
Definition at line 23 of file vdebug.c.
Referenced by aarch64_init_debug_access(), arm_tpiu_swo_service_input(), COMMAND_HANDLER(), cortex_a_read_cpu_memory(), cortex_a_write_cpu_memory(), image_ihex_buffer_complete_inner(), image_mot_buffer_complete_inner(), psoc4_test_flash_wounding(), read_flash_id(), read_sfdp_block(), read_status_reg(), stlink_dap_ap_read(), stlink_dap_dp_read(), ulink_init(), ulink_speed(), and xtensa_dm_queue_reg_read().
uint8_t offset[4] |
Definition at line 9 of file vdebug.c.
Referenced by aarch64_set_watchpoint(), aduc702x_build_sector_list(), aduc702x_write(), aduc702x_write_block(), aduc702x_write_single(), aducm360_build_sector_list(), aducm360_write(), aducm360_write_block(), aducm360_write_block_async(), aducm360_write_block_sync(), aducm360_write_modified(), alloc_block_array(), ambiqmicro_otp_program(), ambiqmicro_write(), ambiqmicro_write_block(), arm_simulate_step_core(), armv7m_map_reg_packing(), armv7m_read_core_reg(), armv7m_write_core_reg(), at91sam7_write(), ath79_read(), ath79_write(), avrf_write(), bitbang_swd_exchange(), bluenrgx_write(), buffer_add_read(), buspirate_print_buffer(), cache_get(), cache_set(), cache_set_load(), cache_set_store(), calcaddr_physfromlin(), cc26xx_write(), cc3220sf_write(), cfi_flash_address(), cfi_get_u8(), cfi_probe(), cfi_query_u16(), cfi_query_u32(), cfi_query_u8(), cfi_read(), cfi_write(), cmd_queue_alloc(), cmsis_dap_add_jtag_sequence(), COMMAND_HANDLER(), cortex_m_fast_read_all_regs(), dap_info_rom_table_entry(), default_flash_read(), default_flash_verify(), dsp5680xx_flash_write(), dtc_queue_enqueue_reply(), efm32x_read_reg_u32(), efm32x_write(), efm32x_write_reg_u32(), em357_write(), em357_write_block(), erase_command(), esirisc_flash_write(), evaluate_b_bl(), evaluate_b_bl_blx_thumb(), evaluate_blx_imm(), evaluate_cb_thumb(), evaluate_cond_branch_thumb(), evaluate_ldc_stc_mcrr_mrrc(), evaluate_load_store(), evaluate_load_store_imm_thumb(), evaluate_load_store_stack_thumb(), evaluate_misc_load_store(), evaluate_pld(), faux_write(), fespi_write(), FLASH_BANK_COMMAND_HANDLER(), flash_driver_read(), flash_driver_verify(), flash_driver_write(), flash_write_align_end(), flash_write_align_start(), fld(), flw(), fm3_busy_wait(), fm3_erase(), fm3_write_block(), fm4_flash_write(), fsd(), fsw(), gdb_get_target_description_chunk(), gdb_get_thread_list_chunk(), gdb_memory_map(), gdb_query_packet(), icdi_get_cmd_result(), icdi_usb_query(), image_elf32_read_section(), image_elf64_read_section(), image_elf_read_section(), image_read_section(), io_write_reg(), ioconfig_write_reg(), jtagspi_page_write(), jtagspi_read(), jtagspi_write(), kinetis_ke_probe(), kinetis_ke_write(), kinetis_ke_write_words(), kinetis_write(), kinetis_write_block(), kinetis_write_inner(), kinetis_write_sections(), lb(), ld(), lh(), load(), load_slot(), lpc2000_build_sector_list(), lpc2000_write(), lpc2900_address2sector(), lpc2900_probe(), lpc2900_write(), lpcspifi_write(), lw(), max32xxx_write(), max32xxx_write_block(), mdr_read(), mdr_write(), mdr_write_block(), mips64_pracc_exec_read(), mips64_pracc_exec_write(), mrvlqspi_block_erase(), mrvlqspi_flash_read(), mrvlqspi_flash_write(), msp432_write(), niietcm4_write(), niietcm4_write_block(), npcx_write(), nrf5_write(), nulink_usb_read_mem8(), nulink_usb_write_mem8(), numicro_probe(), numicro_write(), numicro_writeblock(), nuttx_thread_packet(), ocl_write(), pic32mx_write(), pic32mx_write_block(), psoc4_write(), psoc5lp_eeprom_write(), psoc5lp_nvl_read(), psoc5lp_nvl_write(), psoc5lp_spc_load_byte(), psoc5lp_spc_read_byte(), psoc5lp_spc_read_volatile_byte(), psoc5lp_write(), psoc6_program(), qspi_read_write_block(), qspi_verify(), read_abstract_arg(), read_callback(), read_channel_name(), read_memory(), read_memory_progbuf_inner(), read_write_data(), remote_bitbang_flush(), riscv_program_lbr(), riscv_program_ldr(), riscv_program_lhr(), riscv_program_lwr(), riscv_program_sbr(), riscv_program_sdr(), riscv_program_shr(), riscv_program_swr(), rp2040_flash_write(), rpchf_write(), rsl10_write(), rtos_generic_stack_read(), rtp_ops_rom_table_entry(), rtp_rom_loop(), sam3_write(), sam4_write(), sam4l_write(), samd_write(), same5_modify_user_row_masked(), same5_write(), samv_write(), sb(), sd(), sh(), sh_qspi_read(), sh_qspi_write(), sim3x_flash_write(), sim3x_write_block(), slow_fespi_write_buffer(), ssp_read_reg(), ssp_write_reg(), stellaris_write(), stellaris_write_block(), stlink_usb_idcode(), stm32l4_get_one_wrpxy(), stm32l4_write(), stm32l4_write_block(), stm32l4_write_block_without_loader(), stm32lx_write(), stm32lx_write_half_pages(), stm32x_write(), stm32x_write_block(), stmqspi_read(), stmqspi_verify(), stmqspi_write(), stmsmi_write(), store(), store_slot(), str7x_write(), str7x_write_block(), str9x_build_block_list(), str9x_write(), str9x_write_block(), str9xpec_build_block_list(), str9xpec_write(), sw(), swm050_write(), tms470_write(), usbtopoll_checkfail(), usbtopoll_checkok(), usbtopoll_verifybuff(), vdebug_socket_receive(), versaloon_add_want_pos(), virtual_write(), w600_write(), write_abstract_arg(), write_memory(), write_memory_bus_v0(), write_memory_progbuf(), x86_32_common_read_phys_mem(), x86_32_common_write_phys_mem(), xcf_read(), xcf_write(), xds110_queue_scan(), xlnx_pcie_xvc_read_reg(), xlnx_pcie_xvc_write_reg(), xmc1xxx_write(), xmc4xxx_write(), and xmc4xxx_write_page().
|
static |
Definition at line 232 of file vdebug.c.
Referenced by vdebug_dap_queue_ap_abort(), vdebug_dap_queue_ap_read(), vdebug_dap_queue_ap_write(), vdebug_dap_queue_dp_read(), vdebug_dap_queue_dp_write(), vdebug_dap_run(), vdebug_init(), vdebug_jtag_runtest(), vdebug_jtag_scan(), vdebug_jtag_speed(), vdebug_jtag_stableclocks(), vdebug_jtag_tlr(), vdebug_jtag_tms_seq(), vdebug_quit(), vdebug_reset(), and vdebug_sleep().
uint8_t rd8[VD_BUFFER_LEN] |
uint8_t rid[2] |
Definition at line 15 of file vdebug.c.
Referenced by riscv013_get_register(), and riscv013_set_register().
uint8_t rwords[2] |
Definition at line 7 of file vdebug.c.
Referenced by vdebug_run_jtag_queue(), and vdebug_run_reg_queue().
uint8_t state[4] |
Definition at line 21 of file vdebug.c.
Referenced by adapter_poll(), aice_pipe_state(), aice_state(), aice_usb_state(), aice_usb_step(), amt_jtagaccel_end_state(), arm11_add_debug_inst(), arm11_add_debug_scan_n(), arm11_add_dr_scan_vc(), arm11_add_ir(), arm11_add_ir_scan_vc(), arm720t_arch_state(), arm920t_arch_state(), arm926ejs_arch_state(), arm_set_cpsr(), armjtagew_end_state(), armv7a_arch_state(), armv8_set_cpsr(), bitbang_end_state(), bitq_end_state(), buspirate_end_state(), cmsis_dap_cmd_dap_led(), cmsis_dap_end_state(), COMMAND_HANDLER(), COMMAND_HELPER(), command_log_capture_finish(), command_log_capture_start(), cortex_m_dwt_addreg(), cortex_m_dwt_get_reg(), cortex_m_dwt_set_reg(), disable_triggers(), dsp563xx_poll(), enable_triggers(), ftdi_end_state(), gw16012_end_state(), interface_jtag_add_dr_scan(), interface_jtag_add_ir_scan(), interface_jtag_add_plain_dr_scan(), interface_jtag_add_plain_ir_scan(), interface_jtag_add_runtest(), interface_jtag_add_tlr(), jim_capture(), jlink_end_state(), jtag_add_dr_scan(), jtag_add_dr_scan_check(), jtag_add_ir_scan(), jtag_add_ir_scan_noverify(), jtag_add_ir_scan_noverify_callback(), jtag_add_plain_dr_scan(), jtag_add_plain_ir_scan(), jtag_add_plain_scan(), jtag_add_runtest(), jtag_add_scan_check(), jtag_add_tms_seq(), jtag_prelude(), jtag_vpi_runtest(), jtag_vpi_state_move(), mqx_update_threads(), mrvlqspi_set_ss_state(), nand_fileio_cleanup(), nand_fileio_finish(), nand_fileio_init(), nand_fileio_start(), nds32_halt(), nds32_poll(), nds32_target_state(), nuttx_update_threads(), opendous_end_state(), openjtag_get_tap_state(), openjtag_set_state(), rlink_end_state(), rp2040_ssel_active(), scan_is_safe(), svf_tap_state_is_stable(), syncbb_end_state(), tap_state_name(), target_wait_state(), tcl_output(), ublast_runtest(), ublast_state_move(), usbprog_end_state(), vdebug_jtag_runtest(), vdebug_jtag_scan(), vdebug_jtag_tlr(), vsllink_end_state(), wait_for_state(), xds_goto_state(), xscale_arch_state(), and xtensa_set_permissive_mode().
uint8_t status[4] |
Definition at line 17 of file vdebug.c.
Referenced by ambiqmicro_protect_check(), arc_examine(), arc_poll(), at91sam7_protect_check(), at91sam7_wait_status_busy(), at91sam9_nand_ready(), at91sam9_read_block_data(), at91sam9_read_page(), at91sam9_write_block_data(), ath79_write_enable(), avrf_erase(), cache_write(), cc26xx_wait_algo_done(), cc26xx_write(), cfi_intel_erase(), cfi_intel_protect(), cfi_intel_wait_status_busy(), cfi_intel_write_block(), cfi_intel_write_word(), cfi_intel_write_words(), cfi_spansion_wait_status_busy(), cfi_spansion_write_block(), cfi_spansion_write_block_mips(), COMMAND_HANDLER(), COMMAND_HELPER(), cortex_a_dfsr_to_error_code(), davinci_write_block_data(), davinci_write_page(), davinci_writepage_tail(), dbus_read(), dbus_write(), dmi_op_timeout(), dsp5680xx_jtag_status(), efc_perform_command(), efm32x_erase_page(), efm32x_wait_status(), efm32x_write_word(), em357_get_flash_status(), em357_protect(), em357_wait_status_busy(), esirisc_flash_check_status(), esirisc_flash_wait(), esirisc_trace_get_status(), esirisc_trace_read_buffer(), etb_status(), flashd_erase_pages(), flashd_lock(), flashd_unlock(), handle_halt_routine(), isc_enter(), isc_leave(), jtagspi_read_status(), jtagspi_wait(), jtagspi_write_enable(), kitprog_acquire_psoc(), kitprog_get_status(), kitprog_reset_target(), kitprog_set_protocol(), kitprog_set_unknown(), kitprog_swd_seq(), kitprog_swd_sync(), lpc2000_probe(), lpc2900_erase(), lpc2900_erase_check(), lpc2900_read_security_status(), lpc2900_write(), lpc3180_controller_ready(), lpc3180_nand_ready(), lpc3180_tc_ready(), lpc3180_write_page(), lpc32xx_controller_ready(), lpc32xx_nand_ready(), lpc32xx_tc_ready(), lpc32xx_write_page_mlc(), lpcspifi_write_enable(), mqx_get_member(), mqx_target_read_buffer(), nand_erase(), nand_poll_ready(), nand_read_status(), nand_write_finish(), npcx_get_flash_id(), nuc910_nand_ready(), numicro_erase(), numicro_fmc_cmd(), numicro_write(), pic32mx_erase(), pic32mx_get_flash_status(), pic32mx_nvm_exec(), pic32mx_wait_status_busy(), pic32mx_write(), pic32mx_write_block(), qspi_erase_sector(), qspi_write_enable(), read_bits(), read_memory(), read_memory_bus_v1(), read_memory_progbuf_inner(), read_status_reg(), riot_update_threads(), rp2040_spi_read_flash_id(), rsl10_protect(), rsl10_protect_check(), s3c2440_nand_ready(), sam3_page_write(), sam4_erase(), sam4_page_write(), samd_check_error(), samv_efc_perform_command(), samv_erase(), samv_erase_pages(), samv_flash_lock(), samv_flash_unlock(), samv_page_write(), smi_write_enable(), stellaris_protect_check(), stm32l4_wait_status_busy(), stm32lx_get_flash_status(), stm32lx_wait_until_bsy_clear_timeout(), stm32x_get_flash_status(), stm32x_wait_flash_op_queue(), stm32x_wait_status_busy(), stm32x_write_option(), str9x_erase(), str9x_protect(), str9x_protect_check(), str9x_write(), str9xpec_blank_check(), str9xpec_erase(), str9xpec_erase_area(), str9xpec_isc_disable(), str9xpec_isc_enable(), str9xpec_isc_status(), str9xpec_lock_device(), str9xpec_protect(), str9xpec_protect_check(), str9xpec_read_config(), str9xpec_unlock_device(), str9xpec_write(), str9xpec_write_options(), swd_connect(), virtex2_read_stat(), w600_start_do(), wait_till_ready(), write_memory(), xmc4xxx_enter_page_mode(), xmc4xxx_erase_sector(), xmc4xxx_flash_protect(), xmc4xxx_get_flash_status(), xmc4xxx_temp_unprotect(), xmc4xxx_wait_status_busy(), xmc4xxx_write_page(), xtensa_dm_trace_status_read(), xtensa_gdbqc_parse_exec_tie_ops(), and xtensa_gdbqc_qxtreg().
uint8_t type |
Definition at line 2 of file vdebug.c.
Referenced by vdebug_close(), and vdebug_open().
|
static |
Definition at line 232 of file vdebug.c.
Referenced by COMMAND_HANDLER(), vdebug_dap_queue_ap_abort(), vdebug_dap_queue_ap_read(), vdebug_dap_queue_ap_write(), vdebug_dap_queue_dp_read(), vdebug_dap_queue_dp_write(), vdebug_dap_run(), vdebug_init(), vdebug_jtag_khz(), vdebug_jtag_runtest(), vdebug_jtag_scan(), vdebug_jtag_shift_tap(), vdebug_jtag_speed(), vdebug_jtag_stableclocks(), vdebug_jtag_tlr(), vdebug_jtag_tms_seq(), vdebug_mem_close(), vdebug_mem_open(), vdebug_open(), vdebug_quit(), vdebug_reg_read(), vdebug_reg_write(), vdebug_reset(), vdebug_run_jtag_queue(), vdebug_run_reg_queue(), and vdebug_sleep().
struct adapter_driver vdebug_adapter_driver |
|
static |
|
static |
|
static |
|
static |
|
static |
uint8_t waddr[2] |
Definition at line 3 of file vdebug.c.
Referenced by vdebug_jtag_shift_tap(), vdebug_reg_read(), vdebug_reg_write(), vdebug_run_jtag_queue(), and vdebug_run_reg_queue().
uint8_t wd8[VD_BUFFER_LEN] |