8 #ifndef OPENOCD_PLD_PLD_H
9 #define OPENOCD_PLD_PLD_H
15 #define __PLD_CREATE_COMMAND(name) \
16 COMMAND_HELPER(name, struct pld_device *pld)
27 unsigned int *trailing_write_bits);
42 unsigned int *trailing_write_bits);
45 #define PLD_CREATE_COMMAND_HANDLER(name) \
46 static __PLD_CREATE_COMMAND(name)
60 #define ERROR_PLD_DEVICE_INVALID (-1000)
61 #define ERROR_PLD_FILE_LOAD_FAILED (-1001)
static const struct device_t * device
struct pld_device * get_pld_device_by_name(const char *name)
struct pld_driver intel_pld
struct pld_device * get_pld_device_by_name_or_numstr(const char *str)
int pld_get_jtagspi_stuff_bits(struct pld_device *pld_device, unsigned int *facing_read_bits, unsigned int *trailing_write_bits)
struct pld_driver efinix_pld
int pld_get_jtagspi_userircode(struct pld_device *pld_device, unsigned int *ir)
struct pld_driver lattice_pld
struct pld_driver gatemate_pld
int pld_connect_spi_to_jtag(struct pld_device *pld_device)
struct pld_driver virtex2_pld
int pld_register_commands(struct command_context *cmd_ctx)
int pld_disconnect_spi_from_jtag(struct pld_device *pld_device)
int pld_has_jtagspi_instruction(struct pld_device *device, bool *has_instruction)
struct pld_driver gowin_pld
struct pld_driver * driver
int(* connect_spi_to_jtag)(struct pld_device *pld_device)
__PLD_CREATE_COMMAND((*pld_create_command))
int(* load)(struct pld_device *pld_device, const char *filename)
int(* get_ipdbg_hub)(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub)
int(* get_stuff_bits)(struct pld_device *pld_device, unsigned int *facing_read_bits, unsigned int *trailing_write_bits)
int(* disconnect_spi_from_jtag)(struct pld_device *pld_device)
int(* has_jtagspi_instruction)(struct pld_device *device, bool *has_instruction)
int(* get_jtagspi_userircode)(struct pld_device *pld_device, unsigned int *ir)
const struct command_registration * commands
unsigned int user_ir_code