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, see <http://www.gnu.org/licenses/>. *
27 ***************************************************************************/
33 #include "interfaces.h"
36 * This file includes declarations for all built-in jtag interfaces,
37 * which are then listed in the jtag_interfaces array.
39 * Dynamic loading can be implemented be searching for shared libraries
40 * that contain a jtag_interface structure that can added to this list.
44 extern struct jtag_interface zy1000_interface
;
45 #elif defined(BUILD_MINIDRIVER_DUMMY)
46 extern struct jtag_interface minidummy_interface
;
47 #else /* standard drivers */
48 #if BUILD_PARPORT == 1
49 extern struct jtag_interface parport_interface
;
52 extern struct jtag_interface dummy_interface
;
55 extern struct jtag_interface ftdi_interface
;
57 #if BUILD_USB_BLASTER == 1 || BUILD_USB_BLASTER_2 == 1
58 extern struct jtag_interface usb_blaster_interface
;
60 #if BUILD_JTAG_VPI == 1
61 extern struct jtag_interface jtag_vpi_interface
;
64 extern struct jtag_interface ft232r_interface
;
66 #if BUILD_AMTJTAGACCEL == 1
67 extern struct jtag_interface amt_jtagaccel_interface
;
70 extern struct jtag_interface ep93xx_interface
;
72 #if BUILD_AT91RM9200 == 1
73 extern struct jtag_interface at91rm9200_interface
;
75 #if BUILD_GW16012 == 1
76 extern struct jtag_interface gw16012_interface
;
79 extern struct jtag_interface presto_interface
;
81 #if BUILD_USBPROG == 1
82 extern struct jtag_interface usbprog_interface
;
84 #if BUILD_OPENJTAG == 1
85 extern struct jtag_interface openjtag_interface
;
88 extern struct jtag_interface jlink_interface
;
90 #if BUILD_VSLLINK == 1
91 extern struct jtag_interface vsllink_interface
;
94 extern struct jtag_interface rlink_interface
;
97 extern struct jtag_interface ulink_interface
;
99 #if BUILD_ARMJTAGEW == 1
100 extern struct jtag_interface armjtagew_interface
;
102 #if BUILD_BUSPIRATE == 1
103 extern struct jtag_interface buspirate_interface
;
105 #if BUILD_REMOTE_BITBANG == 1
106 extern struct jtag_interface remote_bitbang_interface
;
108 #if BUILD_HLADAPTER == 1
109 extern struct jtag_interface hl_interface
;
112 extern struct jtag_interface osbdm_interface
;
114 #if BUILD_OPENDOUS == 1
115 extern struct jtag_interface opendous_interface
;
117 #if BUILD_SYSFSGPIO == 1
118 extern struct jtag_interface sysfsgpio_interface
;
121 extern struct jtag_interface aice_interface
;
123 #if BUILD_BCM2835GPIO == 1
124 extern struct jtag_interface bcm2835gpio_interface
;
126 #if BUILD_CMSIS_DAP == 1
127 extern struct jtag_interface cmsis_dap_interface
;
129 #if BUILD_KITPROG == 1
130 extern struct jtag_interface kitprog_interface
;
132 #if BUILD_IMX_GPIO == 1
133 extern struct jtag_interface imx_gpio_interface
;
135 #if BUILD_XDS110 == 1
136 extern struct jtag_interface xds110_interface
;
138 #endif /* standard drivers */
141 * The list of built-in JTAG interfaces, containing entries for those
142 * drivers that were enabled by the @c configure script.
144 * The list should be defined to contain either one minidriver interface
145 * or some number of standard driver interfaces, never both.
147 struct jtag_interface
*jtag_interfaces
[] = {
148 #if BUILD_ZY1000 == 1
150 #elif defined(BUILD_MINIDRIVER_DUMMY)
151 &minidummy_interface
,
152 #else /* standard drivers */
153 #if BUILD_PARPORT == 1
162 #if BUILD_USB_BLASTER || BUILD_USB_BLASTER_2 == 1
163 &usb_blaster_interface
,
165 #if BUILD_JTAG_VPI == 1
168 #if BUILD_FT232R == 1
171 #if BUILD_AMTJTAGACCEL == 1
172 &amt_jtagaccel_interface
,
174 #if BUILD_EP93XX == 1
177 #if BUILD_AT91RM9200 == 1
178 &at91rm9200_interface
,
180 #if BUILD_GW16012 == 1
186 #if BUILD_USBPROG == 1
189 #if BUILD_OPENJTAG == 1
195 #if BUILD_VSLLINK == 1
204 #if BUILD_ARMJTAGEW == 1
205 &armjtagew_interface
,
207 #if BUILD_BUSPIRATE == 1
208 &buspirate_interface
,
210 #if BUILD_REMOTE_BITBANG == 1
211 &remote_bitbang_interface
,
213 #if BUILD_HLADAPTER == 1
219 #if BUILD_OPENDOUS == 1
222 #if BUILD_SYSFSGPIO == 1
223 &sysfsgpio_interface
,
228 #if BUILD_BCM2835GPIO == 1
229 &bcm2835gpio_interface
,
231 #if BUILD_CMSIS_DAP == 1
232 &cmsis_dap_interface
,
234 #if BUILD_KITPROG == 1
237 #if BUILD_IMX_GPIO == 1
240 #if BUILD_XDS110 == 1
243 #endif /* standard drivers */
247 void jtag_interface_modules_load(const char *path
)
249 /* @todo: implement dynamic module loading for JTAG interface drivers */