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

Go to the source code of this file.

Data Structures

struct  intel_device_parameters_elem
 
struct  intel_pld_device
 

Macros

#define BYPASS   0x3FF
 
#define USER0   0x00C
 
#define USER1   0x00E
 

Enumerations

enum  intel_family_e {
  INTEL_CYCLONEIII , INTEL_CYCLONEIV , INTEL_CYCLONEV , INTEL_CYCLONE10 ,
  INTEL_ARRIAII , INTEL_UNKNOWN
}
 

Functions

 COMMAND_HANDLER (intel_set_bscan_command_handler)
 
 COMMAND_HANDLER (intel_set_check_pos_command_handler)
 
static int intel_check_config (struct intel_pld_device *intel_info)
 
static int intel_check_for_unique_id (struct intel_pld_device *intel_info)
 
static int intel_fill_device_parameters (struct intel_pld_device *intel_info)
 
static int intel_get_ipdbg_hub (int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub)
 
static int intel_get_jtagspi_userircode (struct pld_device *pld_device, unsigned int *ir)
 
static int intel_load (struct pld_device *pld_device, const char *filename)
 
static int intel_read_file (struct raw_bit_file *bit_file, const char *filename)
 
static int intel_set_instr (struct jtag_tap *tap, uint16_t new_instr)
 
 PLD_CREATE_COMMAND_HANDLER (intel_pld_create_command)
 

Variables

static const struct command_registration intel_command_handler []
 
static const struct intel_device_parameters_elem intel_device_parameters []
 
static const struct command_registration intel_exec_command_handlers []
 
struct pld_driver intel_pld
 

Macro Definition Documentation

◆ BYPASS

#define BYPASS   0x3FF

Definition at line 20 of file intel.c.

◆ USER0

#define USER0   0x00C

Definition at line 21 of file intel.c.

◆ USER1

#define USER1   0x00E

Definition at line 22 of file intel.c.

Enumeration Type Documentation

◆ intel_family_e

Enumerator
INTEL_CYCLONEIII 
INTEL_CYCLONEIV 
INTEL_CYCLONEV 
INTEL_CYCLONE10 
INTEL_ARRIAII 
INTEL_UNKNOWN 

Definition at line 24 of file intel.c.

Function Documentation

◆ COMMAND_HANDLER() [1/2]

◆ COMMAND_HANDLER() [2/2]

◆ intel_check_config()

◆ intel_check_for_unique_id()

static int intel_check_for_unique_id ( struct intel_pld_device intel_info)
static

◆ intel_fill_device_parameters()

◆ intel_get_ipdbg_hub()

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

◆ intel_get_jtagspi_userircode()

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

Definition at line 365 of file intel.c.

References ERROR_OK, and USER1.

◆ intel_load()

◆ intel_read_file()

static int intel_read_file ( struct raw_bit_file bit_file,
const char *  filename 
)
static

◆ intel_set_instr()

static int intel_set_instr ( struct jtag_tap tap,
uint16_t  new_instr 
)
static

◆ PLD_CREATE_COMMAND_HANDLER()

PLD_CREATE_COMMAND_HANDLER ( intel_pld_create_command  )

Definition at line 421 of file intel.c.

Variable Documentation

◆ intel_command_handler

const struct command_registration intel_command_handler[]
static
Initial value:
= {
{
.name = "intel",
.mode = COMMAND_ANY,
.help = "intel 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 intel_exec_command_handlers[]
Definition: intel.c:472

Definition at line 421 of file intel.c.

◆ intel_device_parameters

const struct intel_device_parameters_elem intel_device_parameters[]
static

Definition at line 1 of file intel.c.

Referenced by intel_check_for_unique_id(), and intel_fill_device_parameters().

◆ intel_exec_command_handlers

const struct command_registration intel_exec_command_handlers[]
static
Initial value:
= {
{
.name = "set_bscan",
.mode = COMMAND_ANY,
.handler = intel_set_bscan_command_handler,
.help = "set boundary scan register length of FPGA",
.usage = "pld_name len",
}, {
.name = "set_check_pos",
.mode = COMMAND_ANY,
.handler = intel_set_check_pos_command_handler,
.help = "set check_pos of FPGA",
.usage = "pld_name pos",
},
}

Definition at line 421 of file intel.c.

◆ intel_pld

struct pld_driver intel_pld
Initial value:
= {
.name = "intel",
.commands = intel_command_handler,
.pld_create_command = &intel_pld_create_command,
.load = &intel_load,
.get_ipdbg_hub = intel_get_ipdbg_hub,
.get_jtagspi_userircode = intel_get_jtagspi_userircode,
}
static int intel_load(struct pld_device *pld_device, const char *filename)
Definition: intel.c:224
static int intel_get_jtagspi_userircode(struct pld_device *pld_device, unsigned int *ir)
Definition: intel.c:365
static const struct command_registration intel_command_handler[]
Definition: intel.c:489
static int intel_get_ipdbg_hub(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub)
Definition: intel.c:342

Definition at line 421 of file intel.c.