OpenOCD
or1k_tap_vjtag.c File Reference
Include dependency graph for or1k_tap_vjtag.c:

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
 

Macro Definition Documentation

◆ ALT_VJTAG_CMD_DEBUG

#define ALT_VJTAG_CMD_DEBUG   0x8

Definition at line 32 of file or1k_tap_vjtag.c.

◆ ALT_VJTAG_IR_SIZE

#define ALT_VJTAG_IR_SIZE   4

Definition at line 31 of file or1k_tap_vjtag.c.

◆ ALTERA_CYCLONE_CMD_USER0

#define ALTERA_CYCLONE_CMD_USER0   0x0C

Definition at line 25 of file or1k_tap_vjtag.c.

◆ ALTERA_CYCLONE_CMD_USER1

#define ALTERA_CYCLONE_CMD_USER1   0x0E

Definition at line 24 of file or1k_tap_vjtag.c.

◆ ID

#define ID (   x)    ((x >> 19) & 0xff)

Definition at line 42 of file or1k_tap_vjtag.c.

◆ INST_ID

#define INST_ID (   x)    ((x >> 0) & 0xff)

Definition at line 45 of file or1k_tap_vjtag.c.

◆ JTAG_TO_AVALON_NODE_ID

#define JTAG_TO_AVALON_NODE_ID   0x84

Definition at line 35 of file or1k_tap_vjtag.c.

◆ M_WIDTH

#define M_WIDTH (   x)    ((x >> 0) & 0xff)

Definition at line 44 of file or1k_tap_vjtag.c.

◆ MANUF

#define MANUF (   x)    ((x >> 8) & 0x7ff)

Definition at line 43 of file or1k_tap_vjtag.c.

◆ NB_NODES

#define NB_NODES (   x)    ((x >> 19) & 0xff)

Definition at line 41 of file or1k_tap_vjtag.c.

◆ OR1K_TAP_INST_DEBUG

#define OR1K_TAP_INST_DEBUG   0x8

Definition at line 49 of file or1k_tap_vjtag.c.

◆ OR1K_TAP_INST_IDCODE

#define OR1K_TAP_INST_IDCODE   0x2

Definition at line 48 of file or1k_tap_vjtag.c.

◆ SERIAL_FLASH_LOADER_NODE_ID

#define SERIAL_FLASH_LOADER_NODE_ID   0x04

Definition at line 38 of file or1k_tap_vjtag.c.

◆ SIGNAL_TAP_NODE_ID

#define SIGNAL_TAP_NODE_ID   0x00

Definition at line 37 of file or1k_tap_vjtag.c.

◆ VER

#define VER (   x)    ((x >> 27) & 0x1f)

Definition at line 40 of file or1k_tap_vjtag.c.

◆ VJTAG_NODE_ID

#define VJTAG_NODE_ID   0x08

Definition at line 36 of file or1k_tap_vjtag.c.

Function Documentation

◆ guess_addr_width()

static unsigned char guess_addr_width ( unsigned char  number_of_nodes)
static

Definition at line 66 of file or1k_tap_vjtag.c.

References width.

Referenced by or1k_tap_vjtag_init().

◆ id_to_string()

static const char* id_to_string ( unsigned char  id)
static

◆ or1k_tap_vjtag_init()

◆ or1k_tap_vjtag_register()

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().

Variable Documentation

◆ vjtag_tap

struct or1k_tap_ip vjtag_tap
static
Initial value:
= {
.name = "vjtag",
}
static int or1k_tap_vjtag_init(struct or1k_jtag *jtag_info)

Definition at line 78 of file or1k_tap_vjtag.c.

Referenced by or1k_tap_vjtag_register().