OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | gatemate_bit_file |
struct | gatemate_pld_device |
Macros | |
#define | BYPASS 0x3F |
#define | JTAG_CONFIGURE 0x06 |
#define | JTAG_SPI_BYPASS 0x05 |
Functions | |
static int | gatemate_add_byte_to_bitfile (struct gatemate_bit_file *bit_file, uint8_t byte) |
static int | gatemate_connect_spi_to_jtag (struct pld_device *pld_device) |
static int | gatemate_disconnect_spi_from_jtag (struct pld_device *pld_device) |
static int | gatemate_get_stuff_bits (struct pld_device *pld_device, unsigned int *facing_read_bits, unsigned int *trailing_write_bits) |
static int | gatemate_getline (char **buffer, size_t *buf_size, FILE *input_file) |
static int | gatemate_has_jtagspi_instruction (struct pld_device *device, bool *has_instruction) |
static int | gatemate_load (struct pld_device *pld_device, const char *filename) |
static int | gatemate_read_cfg_file (struct gatemate_bit_file *bit_file, const char *filename) |
static int | gatemate_read_cfg_line (struct gatemate_bit_file *bit_file, const char *line_buffer, size_t nread) |
static int | gatemate_read_file (struct gatemate_bit_file *bit_file, const char *filename) |
static int | gatemate_set_instr (struct jtag_tap *tap, uint8_t new_instr) |
PLD_CREATE_COMMAND_HANDLER (gatemate_pld_create_command) | |
Variables | |
struct pld_driver | gatemate_pld |
#define BYPASS 0x3F |
Definition at line 19 of file gatemate.c.
#define JTAG_CONFIGURE 0x06 |
Definition at line 17 of file gatemate.c.
#define JTAG_SPI_BYPASS 0x05 |
Definition at line 18 of file gatemate.c.
|
static |
Definition at line 30 of file gatemate.c.
References buffer, gatemate_bit_file::capacity, raw_bit_file::data, ERROR_FAIL, ERROR_OK, raw_bit_file::length, LOG_ERROR, and gatemate_bit_file::raw_file.
Referenced by gatemate_read_cfg_line().
|
static |
Definition at line 220 of file gatemate.c.
References buf_get_u32(), jtag_tap::cur_instr, pld_device::driver_priv, ERROR_FAIL, ERROR_OK, gatemate_set_instr(), jtag_tap::ir_length, jtag_execute_queue(), JTAG_SPI_BYPASS, and gatemate_pld_device::tap.
|
static |
Definition at line 241 of file gatemate.c.
References buf_get_u32(), BYPASS, jtag_tap::cur_instr, pld_device::driver_priv, ERROR_FAIL, ERROR_OK, gatemate_set_instr(), jtag_tap::ir_length, jtag_execute_queue(), JTAG_SPI_BYPASS, and gatemate_pld_device::tap.
|
static |
Definition at line 262 of file gatemate.c.
References ERROR_FAIL, and ERROR_OK.
|
static |
Definition at line 78 of file gatemate.c.
References buffer, and LOG_ERROR.
Referenced by gatemate_read_cfg_file().
|
static |
Definition at line 214 of file gatemate.c.
References ERROR_OK.
|
static |
Definition at line 180 of file gatemate.c.
References raw_bit_file::data, pld_device::driver_priv, ERROR_FAIL, ERROR_OK, gatemate_read_file(), gatemate_set_instr(), scan_field::in_value, jtag_add_dr_scan(), JTAG_CONFIGURE, jtag_execute_queue(), raw_bit_file::length, NULL, scan_field::num_bits, scan_field::out_value, gatemate_bit_file::raw_file, gatemate_pld_device::tap, and TAP_IDLE.
|
static |
Definition at line 114 of file gatemate.c.
References raw_bit_file::data, ERROR_OK, ERROR_PLD_FILE_LOAD_FAILED, gatemate_getline(), gatemate_read_cfg_line(), LOG_ERROR, NULL, and gatemate_bit_file::raw_file.
Referenced by gatemate_read_file().
|
static |
Definition at line 52 of file gatemate.c.
References ERROR_FAIL, ERROR_OK, gatemate_add_byte_to_bitfile(), LOG_ERROR, and unhexify().
Referenced by gatemate_read_cfg_file().
|
static |
Definition at line 139 of file gatemate.c.
References cpld_read_raw_bit_file(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_PLD_FILE_LOAD_FAILED, gatemate_read_cfg_file(), LOG_ERROR, and gatemate_bit_file::raw_file.
Referenced by gatemate_load().
|
static |
Definition at line 162 of file gatemate.c.
References buf_set_u32(), DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_tap::ir_length, jtag_add_ir_scan(), jtag_add_runtest(), LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, and TAP_IDLE.
Referenced by gatemate_connect_spi_to_jtag(), gatemate_disconnect_spi_from_jtag(), and gatemate_load().
PLD_CREATE_COMMAND_HANDLER | ( | gatemate_pld_create_command | ) |
Definition at line 274 of file gatemate.c.
struct pld_driver gatemate_pld |
Definition at line 274 of file gatemate.c.