OpenOCD
|
Go to the source code of this file.
Macros | |
#define | SERVER_ADDRESS "127.0.0.1" |
#define | SERVER_PORT 5555 |
Functions | |
COMMAND_HANDLER (jtag_dpi_set_address) | |
COMMAND_HANDLER (jtag_dpi_set_port) | |
static int | jtag_dpi_execute_queue (void) |
static int | jtag_dpi_init (void) |
static int | jtag_dpi_quit (void) |
static int | jtag_dpi_reset (int trst, int srst) |
jtag_dpi_reset - ask to reset the JTAG device More... | |
static int | jtag_dpi_runtest (int cycles) |
static int | jtag_dpi_scan (struct scan_command *cmd) |
jtag_dpi_scan - launches a DR-scan or IR-scan More... | |
static int | jtag_dpi_stableclocks (int cycles) |
static int | read_sock (char *buf, size_t len) |
static int | write_sock (char *buf, size_t len) |
Variables | |
struct adapter_driver | jtag_dpi_adapter_driver |
static const struct command_registration | jtag_dpi_command_handlers [] |
static struct jtag_interface | jtag_dpi_interface |
static const struct command_registration | jtag_dpi_subcommand_handlers [] |
static uint8_t * | last_ir_buf |
static int | last_ir_num_bits |
static struct sockaddr_in | serv_addr |
static char * | server_address |
static uint16_t | server_port = SERVER_PORT |
static int | sockfd |
#define SERVER_ADDRESS "127.0.0.1" |
Definition at line 27 of file jtag_dpi.c.
#define SERVER_PORT 5555 |
Definition at line 28 of file jtag_dpi.c.
COMMAND_HANDLER | ( | jtag_dpi_set_address | ) |
Definition at line 337 of file jtag_dpi.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, LOG_ERROR, LOG_INFO, SERVER_ADDRESS, and server_address.
COMMAND_HANDLER | ( | jtag_dpi_set_port | ) |
Definition at line 323 of file jtag_dpi.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_INFO, and server_port.
|
static |
Definition at line 225 of file jtag_dpi.c.
References cmd, ERROR_FAIL, ERROR_OK, jtag_command_queue, jtag_dpi_reset(), jtag_dpi_runtest(), jtag_dpi_scan(), jtag_dpi_stableclocks(), JTAG_PATHMOVE, JTAG_RUNTEST, JTAG_SCAN, JTAG_SLEEP, jtag_sleep(), JTAG_STABLECLOCKS, JTAG_TLR_RESET, JTAG_TMS, LOG_ERROR, and TAP_RESET.
|
static |
Definition at line 267 of file jtag_dpi.c.
References ERROR_FAIL, ERROR_OK, flag, LOG_ERROR, LOG_INFO, serv_addr, SERVER_ADDRESS, server_address, server_port, and sockfd.
|
static |
Definition at line 315 of file jtag_dpi.c.
References NULL, server_address, and sockfd.
|
static |
jtag_dpi_reset - ask to reset the JTAG device
trst | 1 if TRST is to be asserted |
srst | 1 if SRST is to be asserted |
Definition at line 74 of file jtag_dpi.c.
References ERROR_FAIL, ERROR_OK, LOG_DEBUG_IO, LOG_ERROR, and write_sock().
Referenced by jtag_dpi_execute_queue().
|
static |
Definition at line 166 of file jtag_dpi.c.
References DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, last_ir_buf, last_ir_num_bits, LOG_ERROR, read_sock(), and write_sock().
Referenced by jtag_dpi_execute_queue(), and jtag_dpi_stableclocks().
|
static |
jtag_dpi_scan - launches a DR-scan or IR-scan
cmd | the command to launch |
Launch a JTAG IR-scan or DR-scan
Returns ERROR_OK if OK, ERROR_xxx if a read/write error occurred.
Definition at line 107 of file jtag_dpi.c.
References cmd, DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, jtag_build_buffer(), jtag_read_buffer(), last_ir_buf, last_ir_num_bits, LOG_ERROR, read_sock(), and write_sock().
Referenced by jtag_dpi_execute_queue().
|
static |
Definition at line 220 of file jtag_dpi.c.
References jtag_dpi_runtest().
Referenced by jtag_dpi_execute_queue().
|
static |
Definition at line 54 of file jtag_dpi.c.
References ERROR_FAIL, ERROR_OK, LOG_ERROR, and sockfd.
Referenced by jtag_dpi_runtest(), and jtag_dpi_scan().
|
static |
Definition at line 39 of file jtag_dpi.c.
References ERROR_FAIL, ERROR_OK, LOG_ERROR, and sockfd.
Referenced by jtag_dpi_reset(), jtag_dpi_runtest(), and jtag_dpi_scan().
struct adapter_driver jtag_dpi_adapter_driver |
Definition at line 337 of file jtag_dpi.c.
|
static |
Definition at line 337 of file jtag_dpi.c.
|
static |
Definition at line 337 of file jtag_dpi.c.
|
static |
Definition at line 337 of file jtag_dpi.c.
|
static |
Definition at line 36 of file jtag_dpi.c.
Referenced by jtag_dpi_runtest(), and jtag_dpi_scan().
|
static |
Definition at line 37 of file jtag_dpi.c.
Referenced by jtag_dpi_runtest(), and jtag_dpi_scan().
|
static |
Definition at line 33 of file jtag_dpi.c.
Referenced by jtag_dpi_init().
|
static |
Definition at line 31 of file jtag_dpi.c.
Referenced by COMMAND_HANDLER(), jtag_dpi_init(), and jtag_dpi_quit().
|
static |
Definition at line 30 of file jtag_dpi.c.
Referenced by COMMAND_HANDLER(), and jtag_dpi_init().
|
static |
Definition at line 33 of file jtag_dpi.c.
Referenced by jtag_dpi_init(), jtag_dpi_quit(), read_sock(), and write_sock().