1 /***************************************************************************
2 * Copyright (C) 2005 by Dominic Rath *
3 * Dominic.Rath@gmx.de *
5 * Copyright (C) 2007,2008 Øyvind Harboe *
6 * oyvind.harboe@zylin.com *
8 * Copyright (C) 2009 SoftPLC Corporation *
12 * Copyright (C) 2009 Zachary T Welch *
13 * zw@superlucidity.net *
15 * This program is free software; you can redistribute it and/or modify *
16 * it under the terms of the GNU General Public License as published by *
17 * the Free Software Foundation; either version 2 of the License, or *
18 * (at your option) any later version. *
20 * This program is distributed in the hope that it will be useful, *
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
23 * GNU General Public License for more details. *
25 * You should have received a copy of the GNU General Public License *
26 * along with this program; if not, write to the *
27 * Free Software Foundation, Inc., *
28 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
29 ***************************************************************************/
34 #include "interfaces.h"
37 * This file includes declarations for all built-in jtag interfaces,
38 * which are then listed in the jtag_interfaces array.
40 * Dynamic loading can be implemented be searching for shared libraries
41 * that contain a jtag_interface structure that can added to this list.
45 extern struct jtag_interface zy1000_interface
;
46 #elif defined(BUILD_MINIDRIVER_DUMMY)
47 extern struct jtag_interface minidummy_interface
;
48 #else // standard drivers
49 #if BUILD_PARPORT == 1
50 extern struct jtag_interface parport_interface
;
53 extern struct jtag_interface dummy_interface
;
55 #if BUILD_FT2232_FTD2XX == 1
56 extern struct jtag_interface ft2232_interface
;
58 #if BUILD_FT2232_LIBFTDI == 1
59 extern struct jtag_interface ft2232_interface
;
61 #if BUILD_USB_BLASTER_LIBFTDI == 1 || BUILD_USB_BLASTER_FTD2XX == 1
62 extern struct jtag_interface usb_blaster_interface
;
64 #if BUILD_AMTJTAGACCEL == 1
65 extern struct jtag_interface amt_jtagaccel_interface
;
68 extern struct jtag_interface ep93xx_interface
;
70 #if BUILD_AT91RM9200 == 1
71 extern struct jtag_interface at91rm9200_interface
;
73 #if BUILD_GW16012 == 1
74 extern struct jtag_interface gw16012_interface
;
76 #if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
77 extern struct jtag_interface presto_interface
;
79 #if BUILD_USBPROG == 1
80 extern struct jtag_interface usbprog_interface
;
83 extern struct jtag_interface jlink_interface
;
85 #if BUILD_VSLLINK == 1
86 extern struct jtag_interface vsllink_interface
;
89 extern struct jtag_interface rlink_interface
;
91 #if BUILD_ARMJTAGEW == 1
92 extern struct jtag_interface armjtagew_interface
;
94 #if BUILD_BUSPIRATE == 1
95 extern struct jtag_interface buspirate_interface
;
97 #endif // standard drivers
100 * The list of built-in JTAG interfaces, containing entries for those
101 * drivers that were enabled by the @c configure script.
103 * The list should be defined to contain either one minidriver interface
104 * or some number of standard driver interfaces, never both.
106 struct jtag_interface
*jtag_interfaces
[] = {
107 #if BUILD_ZY1000 == 1
109 #elif defined(BUILD_MINIDRIVER_DUMMY)
110 &minidummy_interface
,
111 #else // standard drivers
112 #if BUILD_PARPORT == 1
118 #if BUILD_FT2232_FTD2XX == 1
121 #if BUILD_FT2232_LIBFTDI == 1
124 #if BUILD_USB_BLASTER_LIBFTDI == 1 || BUILD_USB_BLASTER_FTD2XX == 1
125 &usb_blaster_interface
,
127 #if BUILD_AMTJTAGACCEL == 1
128 &amt_jtagaccel_interface
,
130 #if BUILD_EP93XX == 1
133 #if BUILD_AT91RM9200 == 1
134 &at91rm9200_interface
,
136 #if BUILD_GW16012 == 1
139 #if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
142 #if BUILD_USBPROG == 1
148 #if BUILD_VSLLINK == 1
154 #if BUILD_ARMJTAGEW == 1
155 &armjtagew_interface
,
157 #if BUILD_BUSPIRATE == 1
158 &buspirate_interface
,
160 #endif // standard drivers
164 void jtag_interface_modules_load(const char *path
)
166 // @todo: implement dynamic module loading for JTAG interface drivers