OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | xlnx_pcie_xvc |
Macros | |
#define | MASK_ACK(x) (((x) >> 9) & 0x7) |
#define | MASK_PAR(x) ((int)((x) & 0x1)) |
#define | PCI_CFG_SPACE_EXP_SIZE 4096 |
#define | PCIE_EXT_CAP_LST 0x100 |
#define | XLNX_XVC_CAP_SIZE 0x20 |
#define | XLNX_XVC_EXT_CAP 0x00 |
#define | XLNX_XVC_LEN_REG 0x0C |
#define | XLNX_XVC_MAX_BITS 0x20 |
#define | XLNX_XVC_TDX_REG 0x14 |
#define | XLNX_XVC_TMS_REG 0x10 |
#define | XLNX_XVC_VSEC_HDR 0x04 |
#define | XLNX_XVC_VSEC_ID 0x8 |
Variables | |
static int | queued_retval |
static struct xlnx_pcie_xvc * | xlnx_pcie_xvc = &xlnx_pcie_xvc_state |
struct adapter_driver | xlnx_pcie_xvc_adapter_driver |
static const struct command_registration | xlnx_pcie_xvc_command_handlers [] |
static struct jtag_interface | xlnx_pcie_xvc_jtag_ops |
static struct xlnx_pcie_xvc | xlnx_pcie_xvc_state |
static const struct command_registration | xlnx_pcie_xvc_subcommand_handlers [] |
static const struct swd_driver | xlnx_pcie_xvc_swd_ops |
static const char *const | xlnx_pcie_xvc_transports [] = { "jtag", "swd", NULL } |
#define MASK_ACK | ( | x | ) | (((x) >> 9) & 0x7) |
Definition at line 41 of file xlnx-pcie-xvc.c.
#define MASK_PAR | ( | x | ) | ((int)((x) & 0x1)) |
Definition at line 42 of file xlnx-pcie-xvc.c.
#define PCI_CFG_SPACE_EXP_SIZE 4096 |
Definition at line 26 of file xlnx-pcie-xvc.c.
#define PCIE_EXT_CAP_LST 0x100 |
Definition at line 29 of file xlnx-pcie-xvc.c.
#define XLNX_XVC_CAP_SIZE 0x20 |
Definition at line 37 of file xlnx-pcie-xvc.c.
#define XLNX_XVC_EXT_CAP 0x00 |
Definition at line 31 of file xlnx-pcie-xvc.c.
#define XLNX_XVC_LEN_REG 0x0C |
Definition at line 33 of file xlnx-pcie-xvc.c.
#define XLNX_XVC_MAX_BITS 0x20 |
Definition at line 39 of file xlnx-pcie-xvc.c.
#define XLNX_XVC_TDX_REG 0x14 |
Definition at line 35 of file xlnx-pcie-xvc.c.
#define XLNX_XVC_TMS_REG 0x10 |
Definition at line 34 of file xlnx-pcie-xvc.c.
#define XLNX_XVC_VSEC_HDR 0x04 |
Definition at line 32 of file xlnx-pcie-xvc.c.
#define XLNX_XVC_VSEC_ID 0x8 |
Definition at line 38 of file xlnx-pcie-xvc.c.
COMMAND_HANDLER | ( | xlnx_pcie_xvc_handle_config_command | ) |
Definition at line 448 of file xlnx-pcie-xvc.c.
References CMD_ARGC, CMD_ARGV, xlnx_pcie_xvc::device, ERROR_COMMAND_SYNTAX_ERROR, and ERROR_OK.
|
static |
Definition at line 537 of file xlnx-pcie-xvc.c.
References DP_ABORT, ORUNERRCLR, STKCMPCLR, STKERRCLR, swd_cmd(), WDERRCLR, and xlnx_pcie_xvc_swd_write_reg().
Referenced by xlnx_pcie_xvc_swd_read_reg(), and xlnx_pcie_xvc_swd_write_reg().
|
static |
Definition at line 333 of file xlnx-pcie-xvc.c.
References cmd, ERROR_JTAG_QUEUE_FAILED, ERROR_OK, JTAG_PATHMOVE, JTAG_RESET, JTAG_RUNTEST, JTAG_SCAN, JTAG_SLEEP, JTAG_STABLECLOCKS, JTAG_TLR_RESET, JTAG_TMS, LOG_DEBUG, LOG_ERROR, tap_set_end_state(), xlnx_pcie_xvc_execute_pathmove(), 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_statemove(), and xlnx_pcie_xvc_execute_tms().
Referenced by xlnx_pcie_xvc_execute_queue().
|
static |
Definition at line 201 of file xlnx-pcie-xvc.c.
References cmd, ERROR_JTAG_QUEUE_FAILED, ERROR_OK, LOG_DEBUG, LOG_ERROR, NULL, tap_get_state(), tap_set_end_state(), tap_set_state, tap_state_name(), tap_state_transition(), and xlnx_pcie_xvc_transact().
Referenced by xlnx_pcie_xvc_execute_command().
|
static |
Definition at line 364 of file xlnx-pcie-xvc.c.
References cmd, ERROR_OK, and xlnx_pcie_xvc_execute_command().
|
static |
Definition at line 297 of file xlnx-pcie-xvc.c.
References cmd, and LOG_DEBUG.
Referenced by xlnx_pcie_xvc_execute_command().
|
static |
Definition at line 166 of file xlnx-pcie-xvc.c.
References cmd, ERROR_OK, LOG_DEBUG, MIN, NULL, tap_get_end_state(), tap_get_state(), TAP_IDLE, tap_set_end_state(), xlnx_pcie_xvc_execute_statemove(), xlnx_pcie_xvc_transact(), and XLNX_XVC_MAX_BITS.
Referenced by xlnx_pcie_xvc_execute_command().
|
static |
Definition at line 232 of file xlnx-pcie-xvc.c.
References BIT, buf_get_u32(), buf_set_u32(), cmd, ERROR_OK, jtag_build_buffer(), jtag_read_buffer(), jtag_scan_type(), LOG_DEBUG, MIN, NULL, SCAN_IN, SCAN_OUT, TAP_DRSHIFT, tap_get_end_state(), tap_get_state(), TAP_IRSHIFT, tap_set_end_state(), tap_state_name(), type, xlnx_pcie_xvc_execute_statemove(), xlnx_pcie_xvc_transact(), and XLNX_XVC_MAX_BITS.
Referenced by xlnx_pcie_xvc_execute_command().
|
static |
Definition at line 303 of file xlnx-pcie-xvc.c.
References cmd, and LOG_DEBUG.
Referenced by xlnx_pcie_xvc_execute_command().
|
static |
Definition at line 124 of file xlnx-pcie-xvc.c.
References cmd, ERROR_OK, LOG_DEBUG, MIN, NULL, tap_get_state(), TAP_RESET, xlnx_pcie_xvc_transact(), and XLNX_XVC_MAX_BITS.
Referenced by xlnx_pcie_xvc_execute_command().
|
static |
Definition at line 144 of file xlnx-pcie-xvc.c.
References ERROR_OK, LOG_DEBUG, NULL, tap_get_end_state(), tap_get_state(), tap_get_tms_path(), tap_get_tms_path_len(), tap_set_state, tap_state_name(), and xlnx_pcie_xvc_transact().
Referenced by xlnx_pcie_xvc_execute_command(), xlnx_pcie_xvc_execute_runtest(), and xlnx_pcie_xvc_execute_scan().
|
static |
Definition at line 309 of file xlnx-pcie-xvc.c.
References bits, buf_get_u32(), cmd, ERROR_OK, LOG_DEBUG, MIN, NULL, xlnx_pcie_xvc_transact(), and XLNX_XVC_MAX_BITS.
Referenced by xlnx_pcie_xvc_execute_command().
|
static |
Definition at line 382 of file xlnx-pcie-xvc.c.
References xlnx_pcie_xvc::device, ERROR_JTAG_INIT_FAILED, ERROR_OK, xlnx_pcie_xvc::fd, LOG_DEBUG, LOG_ERROR, LOG_INFO, xlnx_pcie_xvc::offset, PCI_CFG_SPACE_EXP_SIZE, PCIE_EXT_CAP_LST, xlnx_pcie_xvc_read_reg(), XLNX_XVC_CAP_SIZE, XLNX_XVC_EXT_CAP, XLNX_XVC_VSEC_HDR, and XLNX_XVC_VSEC_ID.
|
static |
Definition at line 437 of file xlnx-pcie-xvc.c.
References ERROR_OK, and xlnx_pcie_xvc::fd.
|
static |
Definition at line 53 of file xlnx-pcie-xvc.c.
References ERROR_JTAG_DEVICE_ERROR, ERROR_OK, xlnx_pcie_xvc::fd, LOG_ERROR, offset, and xlnx_pcie_xvc::offset.
Referenced by xlnx_pcie_xvc_init(), and xlnx_pcie_xvc_transact().
|
static |
Definition at line 680 of file xlnx-pcie-xvc.c.
References ERROR_OK.
|
static |
Definition at line 543 of file xlnx-pcie-xvc.c.
References cmd, ERROR_FAIL, ERROR_OK, LOG_DEBUG, LOG_DEBUG_IO, MASK_ACK, MASK_PAR, NULL, parity_u32(), queued_retval, SWD_ACK_FAULT, SWD_ACK_OK, SWD_ACK_WAIT, swd_clear_sticky_errors(), SWD_CMD_A32, SWD_CMD_APNDP, SWD_CMD_PARK, SWD_CMD_RNW, SWD_CMD_START, and xlnx_pcie_xvc_transact().
|
static |
Definition at line 664 of file xlnx-pcie-xvc.c.
References ERROR_OK, LOG_DEBUG, NULL, queued_retval, and xlnx_pcie_xvc_transact().
|
static |
Definition at line 489 of file xlnx-pcie-xvc.c.
References buf_get_u32(), ERROR_OK, length, MIN, NULL, xlnx_pcie_xvc_transact(), and XLNX_XVC_MAX_BITS.
Referenced by xlnx_pcie_xvc_swd_switch_seq().
|
static |
Definition at line 509 of file xlnx-pcie-xvc.c.
References ERROR_FAIL, ERROR_OK, JTAG_TO_SWD, LINE_RESET, LOG_DEBUG, LOG_ERROR, swd_seq_jtag_to_swd, swd_seq_jtag_to_swd_len, swd_seq_line_reset, swd_seq_line_reset_len, swd_seq_swd_to_jtag, swd_seq_swd_to_jtag_len, SWD_TO_JTAG, and xlnx_pcie_xvc_swd_sequence().
|
static |
Definition at line 606 of file xlnx-pcie-xvc.c.
References cmd, ERROR_OK, LOG_DEBUG, LOG_DEBUG_IO, MASK_ACK, NULL, parity_u32(), queued_retval, SWD_ACK_FAULT, SWD_ACK_OK, SWD_ACK_WAIT, swd_clear_sticky_errors(), SWD_CMD_A32, SWD_CMD_APNDP, SWD_CMD_PARK, SWD_CMD_RNW, SWD_CMD_START, and xlnx_pcie_xvc_transact().
Referenced by swd_clear_sticky_errors().
|
static |
Definition at line 94 of file xlnx-pcie-xvc.c.
References ERROR_OK, LOG_DEBUG_IO, xlnx_pcie_xvc_read_reg(), xlnx_pcie_xvc_write_reg(), XLNX_XVC_LEN_REG, XLNX_XVC_TDX_REG, and XLNX_XVC_TMS_REG.
Referenced by xlnx_pcie_xvc_execute_pathmove(), xlnx_pcie_xvc_execute_runtest(), xlnx_pcie_xvc_execute_scan(), xlnx_pcie_xvc_execute_stableclocks(), xlnx_pcie_xvc_execute_statemove(), xlnx_pcie_xvc_execute_tms(), xlnx_pcie_xvc_swd_read_reg(), xlnx_pcie_xvc_swd_run_queue(), xlnx_pcie_xvc_swd_sequence(), and xlnx_pcie_xvc_swd_write_reg().
|
static |
Definition at line 75 of file xlnx-pcie-xvc.c.
References ERROR_JTAG_DEVICE_ERROR, ERROR_OK, xlnx_pcie_xvc::fd, LOG_ERROR, offset, and xlnx_pcie_xvc::offset.
Referenced by xlnx_pcie_xvc_transact().
|
static |
Definition at line 532 of file xlnx-pcie-xvc.c.
Referenced by xlnx_pcie_xvc_swd_read_reg(), xlnx_pcie_xvc_swd_run_queue(), and xlnx_pcie_xvc_swd_write_reg().
|
static |
Definition at line 51 of file xlnx-pcie-xvc.c.
struct adapter_driver xlnx_pcie_xvc_adapter_driver |
Definition at line 693 of file xlnx-pcie-xvc.c.
|
static |
Definition at line 448 of file xlnx-pcie-xvc.c.
|
static |
Definition at line 448 of file xlnx-pcie-xvc.c.
|
static |
Definition at line 1 of file xlnx-pcie-xvc.c.
|
static |
Definition at line 448 of file xlnx-pcie-xvc.c.
|
static |
Definition at line 680 of file xlnx-pcie-xvc.c.
|
static |
Definition at line 693 of file xlnx-pcie-xvc.c.