OpenOCD
|
Go to the source code of this file.
Functions | |
COMMAND_HANDLER (handle_pld_create_command) | |
COMMAND_HANDLER (handle_pld_devices_command) | |
COMMAND_HANDLER (handle_pld_init_command) | |
COMMAND_HANDLER (handle_pld_load_command) | |
struct pld_device * | get_pld_device_by_name (const char *name) |
struct pld_device * | get_pld_device_by_name_or_numstr (const char *str) |
struct pld_device * | get_pld_device_by_num (int num) |
int | pld_connect_spi_to_jtag (struct pld_device *pld_device) |
int | pld_disconnect_spi_from_jtag (struct pld_device *pld_device) |
int | pld_get_jtagspi_stuff_bits (struct pld_device *pld_device, unsigned int *facing_read_bits, unsigned int *trailing_write_bits) |
int | pld_get_jtagspi_userircode (struct pld_device *pld_device, unsigned int *ir) |
int | pld_has_jtagspi_instruction (struct pld_device *pld_device, bool *has_instruction) |
static int | pld_init (struct command_context *cmd_ctx) |
int | pld_register_commands (struct command_context *cmd_ctx) |
Variables | |
static const struct command_registration | pld_command_handler [] |
static const struct command_registration | pld_config_command_handlers [] |
static struct pld_device * | pld_devices |
static struct pld_driver * | pld_drivers [] |
static const struct command_registration | pld_exec_command_handlers [] |
COMMAND_HANDLER | ( | handle_pld_create_command | ) |
Definition at line 161 of file pld.c.
References CALL_COMMAND_HANDLER, CMD_ARGC, CMD_ARGV, CMD_CTX, pld_driver::commands, pld_device::driver, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_pld_device_by_name(), LOG_ERROR, pld_device::name, name, pld_device::next, NULL, pld_devices, pld_drivers, and register_commands().
COMMAND_HANDLER | ( | handle_pld_devices_command | ) |
Definition at line 233 of file pld.c.
References CMD, command_print(), pld_device::driver, ERROR_OK, pld_driver::name, pld_device::name, pld_device::next, and pld_devices.
COMMAND_HANDLER | ( | handle_pld_init_command | ) |
Definition at line 325 of file pld.c.
References CMD_ARGC, CMD_CTX, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, LOG_INFO, and pld_init().
COMMAND_HANDLER | ( | handle_pld_load_command | ) |
Definition at line 249 of file pld.c.
References CMD, CMD_ARGC, CMD_ARGV, command_print(), pld_device::driver, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, ERROR_PLD_FILE_LOAD_FAILED, get_pld_device_by_name_or_numstr(), gettimeofday(), pld_driver::load, LOG_ERROR, NULL, start, and timeval_subtract().
struct pld_device* get_pld_device_by_name | ( | const char * | name | ) |
Definition at line 46 of file pld.c.
References name, pld_device::next, NULL, and pld_devices.
Referenced by COMMAND_HANDLER(), and get_pld_device_by_name_or_numstr().
struct pld_device* get_pld_device_by_name_or_numstr | ( | const char * | str | ) |
Definition at line 56 of file pld.c.
References get_pld_device_by_name(), get_pld_device_by_num(), LOG_ERROR, and NULL.
Referenced by COMMAND_HANDLER(), and FLASH_BANK_COMMAND_HANDLER().
struct pld_device* get_pld_device_by_num | ( | int | num | ) |
Definition at line 31 of file pld.c.
References LOG_WARNING, pld_device::name, pld_device::next, NULL, and pld_devices.
Referenced by get_pld_device_by_name_or_numstr().
int pld_connect_spi_to_jtag | ( | struct pld_device * | pld_device | ) |
Definition at line 127 of file pld.c.
References pld_driver::connect_spi_to_jtag, pld_device::driver, ERROR_FAIL, and LOG_ERROR.
Referenced by jtagspi_cmd().
int pld_disconnect_spi_from_jtag | ( | struct pld_device * | pld_device | ) |
Definition at line 144 of file pld.c.
References pld_driver::disconnect_spi_from_jtag, pld_device::driver, ERROR_FAIL, and LOG_ERROR.
Referenced by jtagspi_cmd().
int pld_get_jtagspi_stuff_bits | ( | struct pld_device * | pld_device, |
unsigned int * | facing_read_bits, | ||
unsigned int * | trailing_write_bits | ||
) |
Definition at line 109 of file pld.c.
References pld_device::driver, ERROR_FAIL, ERROR_OK, pld_driver::get_stuff_bits, and LOG_ERROR.
Referenced by jtagspi_cmd().
int pld_get_jtagspi_userircode | ( | struct pld_device * | pld_device, |
unsigned int * | ir | ||
) |
Definition at line 92 of file pld.c.
References pld_device::driver, ERROR_FAIL, pld_driver::get_jtagspi_userircode, and LOG_ERROR.
Referenced by FLASH_BANK_COMMAND_HANDLER().
int pld_has_jtagspi_instruction | ( | struct pld_device * | pld_device, |
bool * | has_instruction | ||
) |
Definition at line 73 of file pld.c.
References pld_device::driver, ERROR_FAIL, ERROR_OK, pld_driver::has_jtagspi_instruction, and LOG_ERROR.
Referenced by FLASH_BANK_COMMAND_HANDLER().
|
static |
Definition at line 317 of file pld.c.
References ERROR_OK, pld_devices, pld_exec_command_handlers, and register_commands().
Referenced by COMMAND_HANDLER().
int pld_register_commands | ( | struct command_context * | cmd_ctx | ) |
Definition at line 368 of file pld.c.
References NULL, pld_command_handler, and register_commands().
Referenced by setup_command_handler().
|
static |
Definition at line 325 of file pld.c.
Referenced by pld_register_commands().
|
static |
|
static |
Definition at line 29 of file pld.c.
Referenced by COMMAND_HANDLER(), get_pld_device_by_name(), get_pld_device_by_num(), and pld_init().
|
static |
|
static |
Definition at line 249 of file pld.c.
Referenced by pld_init().