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)
 
 PLD_DEVICE_COMMAND_HANDLER (virtex2_pld_device_command)
 
static int virtex2_load (struct pld_device *pld_device, const char *filename)
 
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, uint32_t new_instr)
 
static void virtexflip32 (jtag_callback_data_t arg)
 

Variables

static const struct command_registration virtex2_command_handler []
 
static const struct command_registration virtex2_exec_command_handlers []
 
struct pld_driver virtex2_pld
 

Function Documentation

◆ COMMAND_HANDLER()

COMMAND_HANDLER ( virtex2_handle_read_stat_command  )

◆ PLD_DEVICE_COMMAND_HANDLER()

PLD_DEVICE_COMMAND_HANDLER ( virtex2_pld_device_command  )

◆ virtex2_load()

◆ virtex2_read_stat()

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

◆ virtex2_receive_32()

static int virtex2_receive_32 ( struct pld_device pld_device,
int  num_words,
uint32_t *  words 
)
static

◆ virtex2_send_32()

static int virtex2_send_32 ( struct pld_device pld_device,
int  num_words,
uint32_t *  words 
)
static

◆ virtex2_set_instr()

static int virtex2_set_instr ( struct jtag_tap tap,
uint32_t  new_instr 
)
static

◆ virtexflip32()

static void virtexflip32 ( jtag_callback_data_t  arg)
inlinestatic

Definition at line 64 of file virtex2.c.

References flip_u32(), and le_to_h_u32().

Referenced by virtex2_receive_32().

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:247
@ COMMAND_ANY
Definition: command.h:42
static const struct command_registration virtex2_exec_command_handlers[]
Definition: virtex2.c:215

Definition at line 188 of file virtex2.c.

◆ 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_num",
},
}
@ COMMAND_EXEC
Definition: command.h:40

Definition at line 188 of file virtex2.c.

◆ virtex2_pld

struct pld_driver virtex2_pld
Initial value:
= {
.name = "virtex2",
.pld_device_command = &virtex2_pld_device_command,
.load = &virtex2_load,
}
static const struct command_registration virtex2_command_handler[]
Definition: virtex2.c:225
static int virtex2_load(struct pld_device *pld_device, const char *filename)
Definition: virtex2.c:117

Definition at line 188 of file virtex2.c.