OpenOCD
|
Go to the source code of this file.
Macros | |
#define | ALT_VJTAG_CMD_DEBUG 0x8 |
#define | ALT_VJTAG_IR_SIZE 4 |
#define | ALTERA_CYCLONE_CMD_USER0 0x0C |
#define | ALTERA_CYCLONE_CMD_USER1 0x0E |
#define | ID(x) ((x >> 19) & 0xff) |
#define | INST_ID(x) ((x >> 0) & 0xff) |
#define | JTAG_TO_AVALON_NODE_ID 0x84 |
#define | M_WIDTH(x) ((x >> 0) & 0xff) |
#define | MANUF(x) ((x >> 8) & 0x7ff) |
#define | NB_NODES(x) ((x >> 19) & 0xff) |
#define | OR1K_TAP_INST_DEBUG 0x8 |
#define | OR1K_TAP_INST_IDCODE 0x2 |
#define | SERIAL_FLASH_LOADER_NODE_ID 0x04 |
#define | SIGNAL_TAP_NODE_ID 0x00 |
#define | VER(x) ((x >> 27) & 0x1f) |
#define | VJTAG_NODE_ID 0x08 |
Functions | |
static unsigned char | guess_addr_width (unsigned char number_of_nodes) |
static const char * | id_to_string (unsigned char id) |
static int | or1k_tap_vjtag_init (struct or1k_jtag *jtag_info) |
int | or1k_tap_vjtag_register (void) |
Variables | |
static struct or1k_tap_ip | vjtag_tap |
#define ALT_VJTAG_CMD_DEBUG 0x8 |
Definition at line 32 of file or1k_tap_vjtag.c.
#define ALT_VJTAG_IR_SIZE 4 |
Definition at line 31 of file or1k_tap_vjtag.c.
#define ALTERA_CYCLONE_CMD_USER0 0x0C |
Definition at line 25 of file or1k_tap_vjtag.c.
#define ALTERA_CYCLONE_CMD_USER1 0x0E |
Definition at line 24 of file or1k_tap_vjtag.c.
#define ID | ( | x | ) | ((x >> 19) & 0xff) |
Definition at line 42 of file or1k_tap_vjtag.c.
#define INST_ID | ( | x | ) | ((x >> 0) & 0xff) |
Definition at line 45 of file or1k_tap_vjtag.c.
#define JTAG_TO_AVALON_NODE_ID 0x84 |
Definition at line 35 of file or1k_tap_vjtag.c.
#define M_WIDTH | ( | x | ) | ((x >> 0) & 0xff) |
Definition at line 44 of file or1k_tap_vjtag.c.
#define MANUF | ( | x | ) | ((x >> 8) & 0x7ff) |
Definition at line 43 of file or1k_tap_vjtag.c.
#define NB_NODES | ( | x | ) | ((x >> 19) & 0xff) |
Definition at line 41 of file or1k_tap_vjtag.c.
#define OR1K_TAP_INST_DEBUG 0x8 |
Definition at line 49 of file or1k_tap_vjtag.c.
#define OR1K_TAP_INST_IDCODE 0x2 |
Definition at line 48 of file or1k_tap_vjtag.c.
#define SERIAL_FLASH_LOADER_NODE_ID 0x04 |
Definition at line 38 of file or1k_tap_vjtag.c.
#define SIGNAL_TAP_NODE_ID 0x00 |
Definition at line 37 of file or1k_tap_vjtag.c.
#define VER | ( | x | ) | ((x >> 27) & 0x1f) |
Definition at line 40 of file or1k_tap_vjtag.c.
#define VJTAG_NODE_ID 0x08 |
Definition at line 36 of file or1k_tap_vjtag.c.
|
static |
Definition at line 66 of file or1k_tap_vjtag.c.
References width.
Referenced by or1k_tap_vjtag_init().
|
static |
Definition at line 51 of file or1k_tap_vjtag.c.
References JTAG_TO_AVALON_NODE_ID, SERIAL_FLASH_LOADER_NODE_ID, SIGNAL_TAP_NODE_ID, and VJTAG_NODE_ID.
Referenced by or1k_tap_vjtag_init().
|
static |
Definition at line 78 of file or1k_tap_vjtag.c.
References ALT_VJTAG_CMD_DEBUG, ALTERA_CYCLONE_CMD_USER0, ALTERA_CYCLONE_CMD_USER1, buf_set_u32(), ERROR_FAIL, ERROR_OK, guess_addr_width(), ID, id_to_string(), scan_field::in_value, jtag_tap::ir_length, jtag_add_dr_scan(), jtag_add_ir_scan(), jtag_add_tlr(), jtag_execute_queue(), LOG_DEBUG, LOG_ERROR, M_WIDTH, MANUF, NB_NODES, NULL, scan_field::num_bits, scan_field::out_value, or1k_jtag::tap, TAP_IDLE, VER, and VJTAG_NODE_ID.
int or1k_tap_vjtag_register | ( | void | ) |
Definition at line 294 of file or1k_tap_vjtag.c.
References or1k_tap_ip::list, list_add_tail(), tap_list, and vjtag_tap.
Referenced by or1k_target_create().
|
static |
Definition at line 78 of file or1k_tap_vjtag.c.
Referenced by or1k_tap_vjtag_register().