Remove useless typedef and redundant suffix from struct jtag_interface.
return ERROR_OK;
}
-jtag_interface_t amt_jtagaccel_interface = {
+struct jtag_interface amt_jtagaccel_interface = {
.name = "amt_jtagaccel",
.register_commands = &amt_jtagaccel_register_commands,
.init = &amt_jtagaccel_init,
/***************************************************************************/
/* External interface implementation */
-jtag_interface_t armjtagew_interface =
+struct jtag_interface armjtagew_interface =
{
.name = "arm-jtag-ew",
.execute_queue = armjtagew_execute_queue,
static int at91rm9200_init(void);
static int at91rm9200_quit(void);
-jtag_interface_t at91rm9200_interface =
+struct jtag_interface at91rm9200_interface =
{
.name = "at91rm9200",
static enum {CLOCK_MODE_SPEED, CLOCK_MODE_KHZ, CLOCK_MODE_RCLK} clock_mode;
static int jtag_speed = 0;
-static struct jtag_interface_s *jtag = NULL;
+static struct jtag_interface *jtag = NULL;
/* configuration */
-jtag_interface_t *jtag_interface = NULL;
+struct jtag_interface *jtag_interface = NULL;
void jtag_set_error(int error)
{
/* The dummy driver is used to easily check the code path
* where the target is unresponsive.
*/
-jtag_interface_t dummy_interface =
+struct jtag_interface dummy_interface =
{
.name = "dummy",
struct timespec ep93xx_zzzz;
-jtag_interface_t ep93xx_interface =
+struct jtag_interface ep93xx_interface =
{
.name = "ep93xx",
}
-jtag_interface_t ft2232_interface = {
+struct jtag_interface ft2232_interface = {
.name = "ft2232",
.register_commands = &ft2232_register_commands,
.init = &ft2232_init,
return ERROR_OK;
}
-jtag_interface_t gw16012_interface = {
+struct jtag_interface gw16012_interface = {
.name = "gw16012",
.register_commands = &gw16012_register_commands,
.init = &gw16012_init,
}
#endif // _DEBUG_JTAG_IO_
-typedef struct jtag_interface_s
-{
+struct jtag_interface {
/// The name of the JTAG interface driver.
char* name;
* @returns ERROR_OK on success, or an error code on failure.
*/
int (*srst_asserted)(int* srst_asserted);
-} jtag_interface_t;
+};
#endif // OPENOCD_JTAG_INTERFACE_H
*/
#if BUILD_ZY1000 == 1
-extern jtag_interface_t zy1000_interface;
+extern struct jtag_interface zy1000_interface;
#elif defined(BUILD_MINIDRIVER_DUMMY)
-extern jtag_interface_t minidummy_interface;
+extern struct jtag_interface minidummy_interface;
#else // standard drivers
#if BUILD_PARPORT == 1
-extern jtag_interface_t parport_interface;
+extern struct jtag_interface parport_interface;
#endif
#if BUILD_DUMMY == 1
-extern jtag_interface_t dummy_interface;
+extern struct jtag_interface dummy_interface;
#endif
#if BUILD_FT2232_FTD2XX == 1
-extern jtag_interface_t ft2232_interface;
+extern struct jtag_interface ft2232_interface;
#endif
#if BUILD_FT2232_LIBFTDI == 1
-extern jtag_interface_t ft2232_interface;
+extern struct jtag_interface ft2232_interface;
#endif
#if BUILD_AMTJTAGACCEL == 1
-extern jtag_interface_t amt_jtagaccel_interface;
+extern struct jtag_interface amt_jtagaccel_interface;
#endif
#if BUILD_EP93XX == 1
-extern jtag_interface_t ep93xx_interface;
+extern struct jtag_interface ep93xx_interface;
#endif
#if BUILD_AT91RM9200 == 1
-extern jtag_interface_t at91rm9200_interface;
+extern struct jtag_interface at91rm9200_interface;
#endif
#if BUILD_GW16012 == 1
-extern jtag_interface_t gw16012_interface;
+extern struct jtag_interface gw16012_interface;
#endif
#if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
-extern jtag_interface_t presto_interface;
+extern struct jtag_interface presto_interface;
#endif
#if BUILD_USBPROG == 1
-extern jtag_interface_t usbprog_interface;
+extern struct jtag_interface usbprog_interface;
#endif
#if BUILD_JLINK == 1
-extern jtag_interface_t jlink_interface;
+extern struct jtag_interface jlink_interface;
#endif
#if BUILD_VSLLINK == 1
-extern jtag_interface_t vsllink_interface;
+extern struct jtag_interface vsllink_interface;
#endif
#if BUILD_RLINK == 1
-extern jtag_interface_t rlink_interface;
+extern struct jtag_interface rlink_interface;
#endif
#if BUILD_ARMJTAGEW == 1
-extern jtag_interface_t armjtagew_interface;
+extern struct jtag_interface armjtagew_interface;
#endif
#endif // standard drivers
* The list should be defined to contain either one minidriver interface
* or some number of standard driver interfaces, never both.
*/
-jtag_interface_t *jtag_interfaces[] = {
+struct jtag_interface *jtag_interfaces[] = {
#if BUILD_ZY1000 == 1
&zy1000_interface,
#elif defined(BUILD_MINIDRIVER_DUMMY)
/// Dynamically load all JTAG interface modules from specified directory.
void jtag_interface_modules_load(const char *path);
-extern jtag_interface_t *jtag_interfaces[];
+extern struct jtag_interface *jtag_interfaces[];
#endif // OPENOCD_JTAG_INTERFACES_H
/***************************************************************************/
/* External interface implementation */
-jtag_interface_t jlink_interface =
+struct jtag_interface jlink_interface =
{
.name = "jlink",
.execute_queue = jlink_execute_queue,
-jtag_interface_t minidummy_interface =
+struct jtag_interface minidummy_interface =
{
.name = "minidummy",
.execute_queue = NULL,
return ERROR_OK;
}
-jtag_interface_t parport_interface = {
+struct jtag_interface parport_interface = {
.name = "parport",
.register_commands = parport_register_commands,
.init = parport_init,
static int presto_jtag_init(void);
static int presto_jtag_quit(void);
-jtag_interface_t presto_interface =
+struct jtag_interface presto_interface =
{
.name = "presto",
.execute_queue = bitq_execute_queue,
}
-jtag_interface_t rlink_interface =
+struct jtag_interface rlink_interface =
{
.name = "rlink",
.init = rlink_init,
{ .name = NULL, .value = -1 }
};
-extern jtag_interface_t *jtag_interface;
+extern struct jtag_interface *jtag_interface;
enum jtag_tap_cfg_param {
JCFG_EVENT
static void usbprog_runtest(int num_cycles);
static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size);
-jtag_interface_t usbprog_interface =
+struct jtag_interface usbprog_interface =
{
.name = "usbprog",
.execute_queue = usbprog_execute_queue,
return ERROR_OK;
}
-jtag_interface_t vsllink_interface = {
+struct jtag_interface vsllink_interface = {
.name = "vsllink",
.register_commands = &vsllink_register_commands,
.init = &vsllink_init,
}
-jtag_interface_t zy1000_interface =
+struct jtag_interface zy1000_interface =
{
.name = "ZY1000",
.execute_queue = NULL,