OpenOCD
|
Support the Amontec Chameleon POD with JTAG Accelerator support. More...
Go to the source code of this file.
Macros | |
#define | AMT_AR(val) do { val = inb(amt_jtagaccel_port + 3); } while (0) |
#define | AMT_AW(val) do { outb(val, amt_jtagaccel_port + 3); } while (0) |
#define | AMT_DR(val) do { val = inb(amt_jtagaccel_port + 4); } while (0) |
#define | AMT_DW(val) do { outb(val, amt_jtagaccel_port + 4); } while (0) |
Functions | |
static void | amt_jtagaccel_end_state (tap_state_t state) |
static int | amt_jtagaccel_execute_queue (struct jtag_command *cmd_queue) |
static int | amt_jtagaccel_init (void) |
static int | amt_jtagaccel_quit (void) |
static void | amt_jtagaccel_reset (int trst, int srst) |
static void | amt_jtagaccel_runtest (unsigned int num_cycles) |
static void | amt_jtagaccel_scan (bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size) |
static int | amt_jtagaccel_speed (int speed) |
static void | amt_jtagaccel_state_move (void) |
static void | amt_wait_scan_busy (void) |
COMMAND_HANDLER (amt_jtagaccel_handle_parport_port_command) | |
COMMAND_HANDLER (amt_jtagaccel_handle_rtck_command) | |
Variables | |
struct adapter_driver | amt_jtagaccel_adapter_driver |
static struct jtag_interface | amt_jtagaccel_interface |
static uint16_t | amt_jtagaccel_port |
static const uint8_t | amt_jtagaccel_tap_move [6][6][2] |
static const struct command_registration | amtjtagaccel_command_handlers [] |
static uint8_t | aw_control_baudrate = 0x20 |
static uint8_t | aw_control_fsm = 0x10 |
static uint8_t | aw_control_rst |
static int | rtck_enabled |
Support the Amontec Chameleon POD with JTAG Accelerator support.
This is a parallel port JTAG adapter with a CPLD between the parallel port and the JTAG connection. VHDL code running in the CPLD significantly accelerates JTAG operations compared to the bitbanging "Wiggler" style of most parallel port adapters.
Definition in file amt_jtagaccel.c.
#define AMT_AR | ( | val | ) | do { val = inb(amt_jtagaccel_port + 3); } while (0) |
Definition at line 101 of file amt_jtagaccel.c.
#define AMT_AW | ( | val | ) | do { outb(val, amt_jtagaccel_port + 3); } while (0) |
Definition at line 100 of file amt_jtagaccel.c.
#define AMT_DR | ( | val | ) | do { val = inb(amt_jtagaccel_port + 4); } while (0) |
Definition at line 103 of file amt_jtagaccel.c.
#define AMT_DW | ( | val | ) | do { outb(val, amt_jtagaccel_port + 4); } while (0) |
Definition at line 102 of file amt_jtagaccel.c.
|
static |
Definition at line 149 of file amt_jtagaccel.c.
References LOG_ERROR, state, tap_is_state_stable(), and tap_set_end_state().
Referenced by amt_jtagaccel_execute_queue(), amt_jtagaccel_runtest(), and amt_jtagaccel_scan().
|
static |
Definition at line 320 of file amt_jtagaccel.c.
References amt_jtagaccel_end_state(), amt_jtagaccel_reset(), amt_jtagaccel_runtest(), amt_jtagaccel_scan(), amt_jtagaccel_state_move(), buffer, cmd, ERROR_JTAG_QUEUE_FAILED, ERROR_OK, jtag_build_buffer(), jtag_read_buffer(), JTAG_RESET, JTAG_RUNTEST, JTAG_SCAN, jtag_scan_type(), JTAG_SLEEP, jtag_sleep(), JTAG_TLR_RESET, LOG_DEBUG_IO, LOG_ERROR, TAP_RESET, tap_set_state, and type.
|
static |
Definition at line 411 of file amt_jtagaccel.c.
References AMT_AR, AMT_AW, amt_jtagaccel_port, amt_jtagaccel_reset(), aw_control_fsm, aw_control_rst, buffer, ERROR_JTAG_INIT_FAILED, ERROR_OK, jtag_get_reset_config(), jtag_reset_config, LOG_DEBUG, LOG_ERROR, LOG_WARNING, RESET_SRST_PUSH_PULL, RESET_TRST_OPEN_DRAIN, and rtck_enabled.
|
static |
Definition at line 510 of file amt_jtagaccel.c.
References ERROR_OK.
|
static |
Definition at line 125 of file amt_jtagaccel.c.
References AMT_AW, and aw_control_rst.
Referenced by amt_jtagaccel_execute_queue(), and amt_jtagaccel_init().
|
static |
Definition at line 206 of file amt_jtagaccel.c.
References AMT_AW, amt_jtagaccel_end_state(), amt_jtagaccel_state_move(), tap_get_end_state(), tap_get_state(), and TAP_IDLE.
Referenced by amt_jtagaccel_execute_queue().
|
static |
Definition at line 236 of file amt_jtagaccel.c.
References adapter_get_speed(), AMT_AW, AMT_DR, AMT_DW, amt_jtagaccel_end_state(), amt_jtagaccel_state_move(), amt_jtagaccel_tap_move, amt_wait_scan_busy(), buf_get_u32(), buf_set_u32(), buffer, ERROR_OK, rtck_enabled, SCAN_IN, SCAN_IO, TAP_DRSHIFT, tap_get_end_state(), tap_get_state(), TAP_IRSHIFT, tap_move_ndx(), tap_set_state, and type.
Referenced by amt_jtagaccel_execute_queue().
|
static |
Definition at line 140 of file amt_jtagaccel.c.
References AMT_AW, aw_control_baudrate, and ERROR_OK.
|
static |
Definition at line 177 of file amt_jtagaccel.c.
References adapter_get_speed(), AMT_AW, amt_jtagaccel_tap_move, amt_wait_scan_busy(), ERROR_OK, rtck_enabled, tap_get_end_state(), tap_get_state(), tap_move_ndx(), and tap_set_state.
Referenced by amt_jtagaccel_execute_queue(), amt_jtagaccel_runtest(), and amt_jtagaccel_scan().
|
static |
Definition at line 159 of file amt_jtagaccel.c.
References AMT_AR, LOG_ERROR, and rtck_enabled.
Referenced by amt_jtagaccel_scan(), and amt_jtagaccel_state_move().
COMMAND_HANDLER | ( | amt_jtagaccel_handle_parport_port_command | ) |
Definition at line 516 of file amt_jtagaccel.c.
References amt_jtagaccel_port, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), ERROR_FAIL, ERROR_OK, and LOG_ERROR.
COMMAND_HANDLER | ( | amt_jtagaccel_handle_rtck_command | ) |
Definition at line 535 of file amt_jtagaccel.c.
struct adapter_driver amt_jtagaccel_adapter_driver |
Definition at line 535 of file amt_jtagaccel.c.
|
static |
Definition at line 535 of file amt_jtagaccel.c.
|
static |
Definition at line 41 of file amt_jtagaccel.c.
Referenced by amt_jtagaccel_init(), and COMMAND_HANDLER().
|
static |
Definition at line 115 of file amt_jtagaccel.c.
Referenced by amt_jtagaccel_scan(), and amt_jtagaccel_state_move().
|
static |
Definition at line 535 of file amt_jtagaccel.c.
|
static |
Definition at line 47 of file amt_jtagaccel.c.
Referenced by amt_jtagaccel_speed().
|
static |
Definition at line 46 of file amt_jtagaccel.c.
Referenced by amt_jtagaccel_init().
|
static |
Definition at line 45 of file amt_jtagaccel.c.
Referenced by amt_jtagaccel_init(), and amt_jtagaccel_reset().
|
static |
Definition at line 49 of file amt_jtagaccel.c.
Referenced by amt_jtagaccel_init(), amt_jtagaccel_scan(), amt_jtagaccel_state_move(), and amt_wait_scan_busy().