OpenOCD
vdebug.c File Reference

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...

Include dependency graph for vdebug.c:

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   48
 

Enumerations

enum  {
  VD_BFM_TPIU = 0x0000 , VD_BFM_DAP6 = 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_bankselect (struct adiv5_ap *ap, unsigned int reg)
 
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 (struct jtag_command *cmd_queue)
 
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 (unsigned int num_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 (unsigned int num_cycles, 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)
 
static int vdebug_run_jtag_queue (int hsock, struct vd_shm *pm, unsigned int count)
 
static 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_shmpbuf
 
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]
 

Detailed Description

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.

Macro Definition Documentation

◆ VD_BUFFER_LEN

#define VD_BUFFER_LEN   4024

Definition at line 57 of file vdebug.c.

◆ VD_CHEADER_LEN

#define VD_CHEADER_LEN   24

Definition at line 58 of file vdebug.c.

◆ VD_MAX_MEMORIES

#define VD_MAX_MEMORIES   20

Definition at line 61 of file vdebug.c.

◆ VD_POLL_INTERVAL

#define VD_POLL_INTERVAL   500

Definition at line 62 of file vdebug.c.

◆ VD_SCALE_PSTOMS

#define VD_SCALE_PSTOMS   1000000000

Definition at line 63 of file vdebug.c.

◆ VD_SHEADER_LEN

#define VD_SHEADER_LEN   16

Definition at line 59 of file vdebug.c.

◆ VD_VERSION

#define VD_VERSION   48

Definition at line 56 of file vdebug.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

List of transactor types.

Enumerator
VD_BFM_TPIU 
VD_BFM_DAP6 
VD_BFM_SWDP 
VD_BFM_AHB 
VD_BFM_APB 
VD_BFM_AXI 
VD_BFM_JTAG 
VD_BFM_SWD 

Definition at line 68 of file vdebug.c.

◆ anonymous enum

anonymous enum

List of signals that can be read or written by the debugger.

Enumerator
VD_SIG_TCK 
VD_SIG_TDI 
VD_SIG_TMS 
VD_SIG_RESET 
VD_SIG_TRST 
VD_SIG_TDO 
VD_SIG_POWER 
VD_SIG_TCKDIV 
VD_SIG_BUF 

Definition at line 82 of file vdebug.c.

◆ anonymous enum

anonymous enum

List of errors.

Enumerator
VD_ERR_NONE 
VD_ERR_NOT_IMPL 
VD_ERR_USAGE 
VD_ERR_PARAM 
VD_ERR_CONFIG 
VD_ERR_NO_MEMORY 
VD_ERR_SHM_OPEN 
VD_ERR_SHM_MAP 
VD_ERR_SOC_OPEN 
VD_ERR_SOC_OPT 
VD_ERR_SOC_ADDR 
VD_ERR_SOC_CONN 
VD_ERR_SOC_SEND 
VD_ERR_SOC_RECV 
VD_ERR_LOCKED 
VD_ERR_NOT_RUN 
VD_ERR_NOT_OPEN 
VD_ERR_LICENSE 
VD_ERR_VERSION 
VD_ERR_TIME_OUT 
VD_ERR_NO_POWER 
VD_ERR_BUS_ERROR 
VD_ERR_NO_ACCESS 
VD_ERR_INV_HANDLE 
VD_ERR_INV_SCOPE 

Definition at line 97 of file vdebug.c.

◆ anonymous enum

anonymous enum
Enumerator
VD_CMD_OPEN 
VD_CMD_CLOSE 
VD_CMD_CONNECT 
VD_CMD_DISCONNECT 
VD_CMD_WAIT 
VD_CMD_SIGSET 
VD_CMD_SIGGET 
VD_CMD_JTAGCLOCK 
VD_CMD_REGWRITE 
VD_CMD_REGREAD 
VD_CMD_JTAGSHTAP 
VD_CMD_MEMOPEN 
VD_CMD_MEMCLOSE 
VD_CMD_MEMWRITE 

Definition at line 125 of file vdebug.c.

◆ anonymous enum

anonymous enum
Enumerator
VD_ASPACE_AP 
VD_ASPACE_DP 
VD_ASPACE_ID 
VD_ASPACE_AB 

Definition at line 142 of file vdebug.c.

◆ anonymous enum

anonymous enum
Enumerator
VD_BATCH_NO 
VD_BATCH_WO 
VD_BATCH_WR 

Definition at line 149 of file vdebug.c.

Function Documentation

◆ __attribute__()

struct vd_shm __attribute__ ( (packed)  )

◆ COMMAND_HANDLER() [1/5]

COMMAND_HANDLER ( vdebug_set_batching  )

◆ COMMAND_HANDLER() [2/5]

◆ COMMAND_HANDLER() [3/5]

◆ COMMAND_HANDLER() [4/5]

COMMAND_HANDLER ( vdebug_set_polling  )

◆ COMMAND_HANDLER() [5/5]

COMMAND_HANDLER ( vdebug_set_server  )

◆ vdebug_close()

static int vdebug_close ( int  hsock,
struct vd_shm pm,
uint8_t  type 
)
static

◆ vdebug_dap_bankselect()

◆ vdebug_dap_connect()

static int vdebug_dap_connect ( struct adiv5_dap dap)
static

Definition at line 1120 of file vdebug.c.

References dap_dp_init().

◆ vdebug_dap_queue_ap_abort()

static int vdebug_dap_queue_ap_abort ( struct adiv5_dap dap,
uint8_t *  ack 
)
static

Definition at line 1167 of file vdebug.c.

References vd_client::hsocket, pbuf, VD_ASPACE_AB, vdc, and vdebug_reg_write().

◆ vdebug_dap_queue_ap_read()

static int vdebug_dap_queue_ap_read ( struct adiv5_ap ap,
unsigned int  reg,
uint32_t *  data 
)
static

◆ vdebug_dap_queue_ap_write()

static int vdebug_dap_queue_ap_write ( struct adiv5_ap ap,
unsigned int  reg,
uint32_t  data 
)
static

◆ vdebug_dap_queue_dp_read()

static int vdebug_dap_queue_dp_read ( struct adiv5_dap dap,
unsigned int  reg,
uint32_t *  data 
)
static

◆ vdebug_dap_queue_dp_write()

static int vdebug_dap_queue_dp_write ( struct adiv5_dap dap,
unsigned int  reg,
uint32_t  data 
)
static

◆ vdebug_dap_run()

static int vdebug_dap_run ( struct adiv5_dap dap)
static

◆ vdebug_dap_send_sequence()

static int vdebug_dap_send_sequence ( struct adiv5_dap dap,
enum swd_special_seq  seq 
)
static

Definition at line 1125 of file vdebug.c.

References ERROR_OK.

◆ vdebug_init()

◆ vdebug_jtag_clock()

static int vdebug_jtag_clock ( int  hsock,
struct vd_shm pm,
uint32_t  value 
)
static

◆ vdebug_jtag_div()

static int vdebug_jtag_div ( int  speed,
int *  khz 
)
static

Definition at line 1041 of file vdebug.c.

References ERROR_OK, and LOG_DEBUG.

◆ vdebug_jtag_execute_queue()

◆ vdebug_jtag_khz()

static int vdebug_jtag_khz ( int  khz,
int *  jtag_speed 
)
static

Definition at line 1031 of file vdebug.c.

References vd_client::bfm_period, ERROR_OK, LOG_DEBUG, VD_SCALE_PSTOMS, and vdc.

◆ vdebug_jtag_path_move()

static int vdebug_jtag_path_move ( struct pathmove_command cmd,
uint8_t  f_flush 
)
static

◆ vdebug_jtag_runtest()

static int vdebug_jtag_runtest ( unsigned int  num_cycles,
tap_state_t  state,
uint8_t  f_flush 
)
static

◆ vdebug_jtag_scan()

static int vdebug_jtag_scan ( struct scan_command cmd,
uint8_t  f_flush 
)
static

◆ vdebug_jtag_shift_tap()

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

◆ vdebug_jtag_speed()

static int vdebug_jtag_speed ( int  speed)
static

◆ vdebug_jtag_stableclocks()

static int vdebug_jtag_stableclocks ( unsigned int  num_cycles,
uint8_t  f_flush 
)
static

◆ vdebug_jtag_tlr()

static int vdebug_jtag_tlr ( tap_state_t  state,
uint8_t  f_flush 
)
static

◆ vdebug_jtag_tms_seq()

static int vdebug_jtag_tms_seq ( const uint8_t *  tms,
int  num,
uint8_t  f_flush 
)
static

◆ vdebug_mem_close()

static void vdebug_mem_close ( int  hsock,
struct vd_shm pm,
uint8_t  ndx 
)
static

◆ vdebug_mem_open()

static int vdebug_mem_open ( int  hsock,
struct vd_shm pm,
const char *  path,
uint8_t  ndx 
)
static

◆ vdebug_open()

◆ vdebug_quit()

◆ vdebug_reg_read()

◆ vdebug_reg_write()

◆ vdebug_reset()

static int vdebug_reset ( int  trst,
int  srst 
)
static

◆ vdebug_run_jtag_queue()

◆ vdebug_run_reg_queue()

◆ vdebug_sig_set()

static int vdebug_sig_set ( int  hsock,
struct vd_shm pm,
uint32_t  write_mask,
uint32_t  value 
)
static

◆ vdebug_sleep()

static int vdebug_sleep ( int  us)
static

Definition at line 1015 of file vdebug.c.

References vd_client::hsocket, LOG_INFO, pbuf, vdc, and vdebug_wait().

Referenced by vdebug_jtag_execute_queue().

◆ vdebug_socket_error()

static int vdebug_socket_error ( void  )
static

Definition at line 236 of file vdebug.c.

Referenced by vdebug_socket_open(), vdebug_socket_receive(), and vdebug_socket_send().

◆ vdebug_socket_open()

static int vdebug_socket_open ( char *  server_addr,
uint32_t  port 
)
static

◆ vdebug_socket_receive()

static int vdebug_socket_receive ( int  hsock,
struct vd_shm pmem 
)
static

◆ vdebug_socket_send()

static int vdebug_socket_send ( int  hsock,
struct vd_shm pmem 
)
static

◆ vdebug_wait()

static int vdebug_wait ( int  hsock,
struct vd_shm pm,
uint32_t  cycles 
)
static

◆ vdebug_wait_server()

Variable Documentation

◆ 

struct { ... }

◆ 

struct { ... }

◆ __attribute__

struct vd_rdata __attribute__

◆ awords

uint8_t awords[2]

Definition at line 16 of file vdebug.c.

◆ cmd

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(), amt_jtagaccel_execute_queue(), angie_append_clock_tck_cmd(), angie_append_clock_tms_cmd(), angie_append_configure_tck_cmd(), angie_append_get_signals_cmd(), angie_append_scan_cmd(), angie_append_set_signals_cmd(), angie_append_sleep_cmd(), angie_append_test_cmd(), angie_execute_queue(), angie_post_process_scan(), angie_queue_pathmove(), angie_queue_runtest(), angie_queue_scan(), angie_queue_sleep(), angie_queue_stableclocks(), 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_HANDLER(), 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(), esp32_apptrace_cmd_ctx_init(), esp32_apptrace_cmd_init(), esp32_cmd_apptrace_generic(), esp32_sysview_cmd_init(), esp_usb_jtag_command_add(), esp_usb_jtag_command_add_raw(), esp_usb_jtag_write_rlestream(), etmv1_analyze_trace(), exec_command(), 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_target_with_common_rtos_type(), get_tms470_info(), get_w600_info(), gowin_read_register_command(), 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(), ipdbg_create_hub(), 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(), lattice_read_u32_register(), lattice_read_u64_register(), 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(), nvp_unknown_command_print(), 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(), qn908x_get_info(), rlink_execute_queue(), rlink_path_move(), rlink_scan(), rsl10_ll_flash_erase(), rsl10_ll_flash_write(), rsl10_mass_erase(), 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().

◆ count

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(), ambiqmicro_otp_program(), ambiqmicro_write(), ambiqmicro_write_block(), angie_append_clock_tck_cmd(), angie_append_clock_tms_cmd(), 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(), eneispif_write(), 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(), gdb_async_notif(), 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(), 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(), list_count_nodes(), 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_fastdata_xfer_synchronize_cache(), 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_read_memory(), 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(), 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(), qn908x_write(), 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_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_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().

◆ dummy

◆ duttime

uint8_t duttime[8]

Definition at line 18 of file vdebug.c.

◆ offset

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(), eneispi_erase_sector(), eneispif_write(), 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(), mips32_pracc_read_regs(), mips32_pracc_store_regs_cp0_context(), 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(), 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(), qn908x_write(), 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(), reverse_binary(), 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().

◆ offseth

uint8_t offseth[2]

Definition at line 10 of file vdebug.c.

◆ pbuf

◆ rbytes

uint8_t rbytes[2]

Definition at line 5 of file vdebug.c.

◆ rd8

uint8_t rd8[VD_BUFFER_LEN]

Definition at line 20 of file vdebug.c.

◆ rid

uint8_t rid[2]

Definition at line 15 of file vdebug.c.

Referenced by riscv013_get_register(), and riscv013_set_register().

◆ rwdata

uint8_t rwdata[4]

Definition at line 8 of file vdebug.c.

◆ rwords

uint8_t rwords[2]

Definition at line 7 of file vdebug.c.

Referenced by vdebug_run_jtag_queue(), and vdebug_run_reg_queue().

◆ state

uint8_t state[4]

Definition at line 21 of file vdebug.c.

Referenced by adapter_poll(), 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(), lattice_read_bit_file(), mqx_update_threads(), mrvlqspi_set_ss_state(), nand_fileio_cleanup(), nand_fileio_finish(), nand_fileio_init(), nand_fileio_start(), nuttx_update_threads(), opendous_end_state(), openjtag_get_tap_state(), openjtag_set_state(), rlink_end_state(), rp2040_ssel_active(), rtkernel_add_task(), 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().

◆ status

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(), breakpoint_clear_target(), breakpoint_remove(), breakpoint_remove_all_internal(), breakpoint_watchpoint_remove_all(), 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(), eneispif_wait(), esirisc_flash_check_status(), esirisc_flash_wait(), esirisc_trace_get_status(), esirisc_trace_read_buffer(), etb_status(), flashd_erase_pages(), flashd_lock(), flashd_unlock(), gowin_check_status_flag(), 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(), lattice_certus_read_status(), lattice_ecp2_3_read_status(), lattice_ecp5_read_status(), lattice_read_status_u32(), lattice_read_status_u64(), lattice_verify_status_register_u32(), lattice_verify_status_register_u64(), 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(), watchpoint_clear_target(), watchpoint_remove(), watchpoint_remove_all_internal(), 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().

◆ type

uint8_t type

Definition at line 2 of file vdebug.c.

Referenced by vdebug_close(), and vdebug_open().

◆ vdc

◆ vdebug_adapter_driver

struct adapter_driver vdebug_adapter_driver
Initial value:
= {
.name = "vdebug",
.transports = vdebug_transports,
.speed_div = vdebug_jtag_div,
.commands = vdebug_command,
.init = vdebug_init,
.quit = vdebug_quit,
.reset = vdebug_reset,
.jtag_ops = &vdebug_jtag_ops,
.dap_swd_ops = &vdebug_dap_ops,
}
static int vdebug_jtag_div(int speed, int *khz)
Definition: vdebug.c:1041
static const char *const vdebug_transports[]
Definition: vdebug.c:1345
static struct jtag_interface vdebug_jtag_ops
Definition: vdebug.c:1327
static int vdebug_quit(void)
Definition: vdebug.c:886
static int vdebug_jtag_speed(int speed)
Definition: vdebug.c:1022
static const struct dap_ops vdebug_dap_ops
Definition: vdebug.c:1332
static int vdebug_reset(int trst, int srst)
Definition: vdebug.c:902
static int vdebug_init(void)
Definition: vdebug.c:842
static int vdebug_jtag_khz(int khz, int *jtag_speed)
Definition: vdebug.c:1031
static const struct command_registration vdebug_command[]
Definition: vdebug.c:1316

Definition at line 1345 of file vdebug.c.

◆ vdebug_command

const struct command_registration vdebug_command[]
static
Initial value:
= {
{
.name = "vdebug",
.help = "vdebug command group",
.usage = "",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_ANY
Definition: command.h:42
enum command_mode mode
Definition: command.h:238
static const struct command_registration vdebug_command_handlers[]
Definition: vdebug.c:1277

Definition at line 1265 of file vdebug.c.

◆ vdebug_command_handlers

const struct command_registration vdebug_command_handlers[]
static

Definition at line 1265 of file vdebug.c.

◆ vdebug_dap_ops

const struct dap_ops vdebug_dap_ops
static
Initial value:
= {
.connect = vdebug_dap_connect,
.send_sequence = vdebug_dap_send_sequence,
.queue_dp_read = vdebug_dap_queue_dp_read,
.queue_dp_write = vdebug_dap_queue_dp_write,
.queue_ap_read = vdebug_dap_queue_ap_read,
.queue_ap_write = vdebug_dap_queue_ap_write,
.queue_ap_abort = vdebug_dap_queue_ap_abort,
.sync = NULL,
.quit = NULL,
}
#define NULL
Definition: usb.h:16
static int vdebug_dap_send_sequence(struct adiv5_dap *dap, enum swd_special_seq seq)
Definition: vdebug.c:1125
static int vdebug_dap_queue_dp_write(struct adiv5_dap *dap, unsigned int reg, uint32_t data)
Definition: vdebug.c:1141
static int vdebug_dap_queue_ap_abort(struct adiv5_dap *dap, uint8_t *ack)
Definition: vdebug.c:1167
static int vdebug_dap_queue_ap_read(struct adiv5_ap *ap, unsigned int reg, uint32_t *data)
Definition: vdebug.c:1152
static int vdebug_dap_queue_ap_write(struct adiv5_ap *ap, unsigned int reg, uint32_t data)
Definition: vdebug.c:1161
static int vdebug_dap_connect(struct adiv5_dap *dap)
Definition: vdebug.c:1120
static int vdebug_dap_queue_dp_read(struct adiv5_dap *dap, unsigned int reg, uint32_t *data)
Definition: vdebug.c:1130
static int vdebug_dap_run(struct adiv5_dap *dap)
Definition: vdebug.c:1172

Definition at line 1265 of file vdebug.c.

◆ vdebug_jtag_ops

struct jtag_interface vdebug_jtag_ops
static
Initial value:
= {
.supported = DEBUG_CAP_TMS_SEQ,
.execute_queue = vdebug_jtag_execute_queue,
}
#define DEBUG_CAP_TMS_SEQ
Definition: interface.h:187
static int vdebug_jtag_execute_queue(struct jtag_command *cmd_queue)
Definition: vdebug.c:1049

Definition at line 1265 of file vdebug.c.

◆ vdebug_transports

const char* const vdebug_transports[] = { "jtag", "dapdirect_swd", NULL }
static

Definition at line 1345 of file vdebug.c.

◆ waddr

uint8_t waddr[2]

◆ wbytes

uint8_t wbytes[2]

Definition at line 4 of file vdebug.c.

◆ wd8

uint8_t wd8[VD_BUFFER_LEN]

Definition at line 13 of file vdebug.c.

◆ wid

uint8_t wid[2]

Definition at line 11 of file vdebug.c.

◆ wwords

uint8_t wwords[2]

Definition at line 6 of file vdebug.c.