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

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
 

Function Documentation

◆ COMMAND_HANDLER() [1/4]

COMMAND_HANDLER ( virtex2_handle_read_stat_command  )

◆ COMMAND_HANDLER() [2/4]

COMMAND_HANDLER ( virtex2_handle_refresh_command  )

◆ COMMAND_HANDLER() [3/4]

◆ COMMAND_HANDLER() [4/4]

◆ PLD_CREATE_COMMAND_HANDLER()

◆ virtex2_load()

◆ virtex2_load_cleanup()

◆ virtex2_load_prepare()

◆ virtex2_program()

◆ virtex2_read_stat()

static int virtex2_read_stat ( struct pld_device pld_device,
uint32_t *  status 
)
static

◆ virtex2_receive_32()

◆ virtex2_send_32()

◆ virtex2_set_instr()

◆ virtexflip32()

static void virtexflip32 ( jtag_callback_data_t  arg)
inlinestatic

Definition at line 87 of file virtex2.c.

References flip_u32(), and le_to_h_u32().

Referenced by virtex2_receive_32().

◆ xilinx_get_ipdbg_hub()

static int xilinx_get_ipdbg_hub ( int  user_num,
struct pld_device pld_device,
struct pld_ipdbg_hub hub 
)
static

◆ xilinx_get_jtagspi_userircode()

static int xilinx_get_jtagspi_userircode ( struct pld_device pld_device,
unsigned int *  ir 
)
static

Variable Documentation

◆ virtex2_command_handler

const struct command_registration virtex2_command_handler[]
static
Initial value:
= {
{
.name = "virtex2",
.mode = COMMAND_ANY,
.help = "Virtex-II specific commands",
.usage = "",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_ANY
Definition: command.h:42
static const struct command_registration virtex2_exec_command_handlers[]
Definition: virtex2.c:431

Definition at line 400 of file virtex2.c.

◆ virtex2_default_commands

const struct virtex2_command_set virtex2_default_commands
static
Initial value:
= {
.cfg_out = 0x04,
.cfg_in = 0x05,
.jprog_b = 0x0b,
.jstart = 0x0c,
.jshutdown = 0x0d,
.bypass = 0x3f,
.user = {0x02, 0x03},
.num_user = 2,
}

Definition at line 1 of file virtex2.c.

Referenced by PLD_CREATE_COMMAND_HANDLER().

◆ virtex2_exec_command_handlers

const struct command_registration virtex2_exec_command_handlers[]
static
Initial value:
= {
{
.name = "read_stat",
.mode = COMMAND_EXEC,
.handler = virtex2_handle_read_stat_command,
.help = "read status register",
.usage = "pld_name",
}, {
.name = "set_instr_codes",
.mode = COMMAND_ANY,
.handler = virtex2_handle_set_instuction_codes_command,
.help = "set instructions codes used for loading the bitstream/refreshing/jtag-hub",
.usage = "pld_name cfg_out cfg_in jprogb jstart jshutdown"
" [user1 [user2 [user3 [user4]]]]",
}, {
.name = "set_user_codes",
.mode = COMMAND_ANY,
.handler = virtex2_handle_set_user_codes_command,
.help = "set instructions codes used for jtag-hub",
.usage = "pld_name user1 [user2 [user3 [user4]]]",
}, {
.name = "refresh",
.mode = COMMAND_EXEC,
.handler = virtex2_handle_refresh_command,
.help = "start loading of configuration (program)",
.usage = "pld_name",
},
}
@ COMMAND_EXEC
Definition: command.h:40

Definition at line 400 of file virtex2.c.

◆ virtex2_pld

struct pld_driver virtex2_pld
Initial value:
= {
.name = "virtex2",
.pld_create_command = &virtex2_pld_create_command,
.load = &virtex2_load,
.get_ipdbg_hub = xilinx_get_ipdbg_hub,
.get_jtagspi_userircode = xilinx_get_jtagspi_userircode,
}
static const struct command_registration virtex2_command_handler[]
Definition: virtex2.c:461
static int xilinx_get_jtagspi_userircode(struct pld_device *pld_device, unsigned int *ir)
Definition: virtex2.c:329
static int virtex2_load(struct pld_device *pld_device, const char *filename)
Definition: virtex2.c:228
static int xilinx_get_ipdbg_hub(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub)
Definition: virtex2.c:309

Definition at line 400 of file virtex2.c.