OpenOCD
|
Go to the source code of this file.
Functions | |
COMMAND_HANDLER (virtex2_handle_read_stat_command) | |
COMMAND_HANDLER (virtex2_handle_refresh_command) | |
COMMAND_HANDLER (virtex2_handle_set_instuction_codes_command) | |
COMMAND_HANDLER (virtex2_handle_set_user_codes_command) | |
PLD_CREATE_COMMAND_HANDLER (virtex2_pld_create_command) | |
static int | virtex2_load (struct pld_device *pld_device, const char *filename) |
static int | virtex2_load_cleanup (struct pld_device *pld_device) |
static int | virtex2_load_prepare (struct pld_device *pld_device) |
static int | virtex2_program (struct pld_device *pld_device) |
static int | virtex2_read_stat (struct pld_device *pld_device, uint32_t *status) |
static int | virtex2_receive_32 (struct pld_device *pld_device, int num_words, uint32_t *words) |
static int | virtex2_send_32 (struct pld_device *pld_device, int num_words, uint32_t *words) |
static int | virtex2_set_instr (struct jtag_tap *tap, uint64_t new_instr) |
static void | virtexflip32 (jtag_callback_data_t arg) |
static int | xilinx_get_ipdbg_hub (int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub) |
static int | xilinx_get_jtagspi_userircode (struct pld_device *pld_device, unsigned int *ir) |
Variables | |
static const struct command_registration | virtex2_command_handler [] |
static const struct virtex2_command_set | virtex2_default_commands |
static const struct command_registration | virtex2_exec_command_handlers [] |
struct pld_driver | virtex2_pld |
COMMAND_HANDLER | ( | virtex2_handle_read_stat_command | ) |
Definition at line 284 of file virtex2.c.
References CMD, CMD_ARGC, CMD_ARGV, command_print(), device, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_pld_device_by_name_or_numstr(), status, and virtex2_read_stat().
COMMAND_HANDLER | ( | virtex2_handle_refresh_command | ) |
Definition at line 268 of file virtex2.c.
References CMD, CMD_ARGC, CMD_ARGV, command_print(), device, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, get_pld_device_by_name_or_numstr(), and virtex2_program().
COMMAND_HANDLER | ( | virtex2_handle_set_instuction_codes_command | ) |
Definition at line 344 of file virtex2.c.
References virtex2_command_set::bypass, virtex2_command_set::cfg_in, virtex2_command_set::cfg_out, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), virtex2_pld_device::command_set, device, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_pld_device_by_name(), virtex2_command_set::jprog_b, virtex2_command_set::jshutdown, virtex2_command_set::jstart, virtex2_command_set::num_user, virtex2_command_set::user, and VIRTEX2_MAX_USER_INSTRUCTIONS.
COMMAND_HANDLER | ( | virtex2_handle_set_user_codes_command | ) |
Definition at line 376 of file virtex2.c.
References CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), virtex2_pld_device::command_set, device, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_pld_device_by_name(), virtex2_command_set::num_user, virtex2_command_set::user, and VIRTEX2_MAX_USER_INSTRUCTIONS.
PLD_CREATE_COMMAND_HANDLER | ( | virtex2_pld_create_command | ) |
Definition at line 400 of file virtex2.c.
References CMD, CMD_ARGC, CMD_ARGV, command_print(), virtex2_pld_device::command_set, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, jtag_tap_by_string(), LOG_ERROR, virtex2_pld_device::no_jstart, virtex2_pld_device::tap, and virtex2_default_commands.
|
static |
Definition at line 228 of file virtex2.c.
References xilinx_bit_file::data, pld_device::driver_priv, ERROR_OK, flip_u32(), scan_field::in_value, jtag_add_dr_scan(), jtag_execute_queue(), xilinx_bit_file::length, NULL, scan_field::num_bits, scan_field::out_value, virtex2_pld_device::tap, TAP_DRPAUSE, virtex2_load_cleanup(), virtex2_load_prepare(), xilinx_free_bit_file(), and xilinx_read_bit_file().
|
static |
Definition at line 196 of file virtex2.c.
References virtex2_command_set::bypass, virtex2_pld_device::command_set, pld_device::driver_priv, ERROR_OK, virtex2_command_set::jstart, jtag_add_runtest(), jtag_add_tlr(), jtag_execute_queue(), virtex2_pld_device::no_jstart, virtex2_pld_device::tap, TAP_IDLE, and virtex2_set_instr().
Referenced by virtex2_load().
|
static |
Definition at line 175 of file virtex2.c.
References virtex2_command_set::cfg_in, virtex2_pld_device::command_set, pld_device::driver_priv, ERROR_OK, virtex2_command_set::jprog_b, jtag_add_sleep(), jtag_execute_queue(), virtex2_pld_device::tap, and virtex2_set_instr().
Referenced by virtex2_load().
|
static |
Definition at line 146 of file virtex2.c.
References virtex2_command_set::bypass, virtex2_pld_device::command_set, pld_device::driver_priv, ERROR_FAIL, ERROR_OK, virtex2_command_set::jprog_b, virtex2_command_set::jshutdown, virtex2_command_set::jstart, jtag_add_runtest(), jtag_execute_queue(), virtex2_pld_device::no_jstart, virtex2_pld_device::tap, TAP_IDLE, and virtex2_set_instr().
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 120 of file virtex2.c.
References ERROR_OK, jtag_add_tlr(), jtag_execute_queue(), LOG_DEBUG, status, virtex2_receive_32(), and virtex2_send_32().
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 93 of file virtex2.c.
References virtex2_command_set::cfg_out, virtex2_pld_device::command_set, pld_device::driver_priv, ERROR_OK, scan_field::in_value, jtag_add_callback(), jtag_add_dr_scan(), NULL, scan_field::num_bits, scan_field::out_value, virtex2_pld_device::tap, TAP_DRPAUSE, virtex2_set_instr(), and virtexflip32().
Referenced by virtex2_read_stat().
|
static |
Definition at line 53 of file virtex2.c.
References buf_set_u32(), virtex2_command_set::cfg_in, virtex2_pld_device::command_set, pld_device::driver_priv, ERROR_FAIL, ERROR_OK, flip_u32(), scan_field::in_value, jtag_add_dr_scan(), LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, virtex2_pld_device::tap, TAP_DRPAUSE, and virtex2_set_instr().
Referenced by virtex2_read_stat().
|
static |
Definition at line 27 of file virtex2.c.
References buf_get_u64(), buf_set_u64(), jtag_tap::cur_instr, DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_tap::ir_length, jtag_add_ir_scan(), LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, and TAP_IDLE.
Referenced by virtex2_load_cleanup(), virtex2_load_prepare(), virtex2_program(), virtex2_receive_32(), and virtex2_send_32().
|
inlinestatic |
Definition at line 87 of file virtex2.c.
References flip_u32(), and le_to_h_u32().
Referenced by virtex2_receive_32().
|
static |
Definition at line 309 of file virtex2.c.
References virtex2_pld_device::command_set, pld_device::driver_priv, ERROR_FAIL, ERROR_OK, LOG_ERROR, virtex2_command_set::num_user, pld_ipdbg_hub::tap, virtex2_pld_device::tap, virtex2_command_set::user, and pld_ipdbg_hub::user_ir_code.
|
static |
Definition at line 329 of file virtex2.c.
References virtex2_pld_device::command_set, pld_device::driver_priv, ERROR_FAIL, ERROR_OK, LOG_ERROR, virtex2_command_set::num_user, and virtex2_command_set::user.
|
static |
|
static |
Definition at line 1 of file virtex2.c.
Referenced by PLD_CREATE_COMMAND_HANDLER().
|
static |
struct pld_driver virtex2_pld |