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_AMTJTAGACCEL == 1
62 extern struct jtag_interface amt_jtagaccel_interface
;
65 extern struct jtag_interface ep93xx_interface
;
67 #if BUILD_AT91RM9200 == 1
68 extern struct jtag_interface at91rm9200_interface
;
70 #if BUILD_GW16012 == 1
71 extern struct jtag_interface gw16012_interface
;
73 #if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
74 extern struct jtag_interface presto_interface
;
76 #if BUILD_USBPROG == 1
77 extern struct jtag_interface usbprog_interface
;
80 extern struct jtag_interface jlink_interface
;
82 #if BUILD_VSLLINK == 1
83 extern struct jtag_interface vsllink_interface
;
86 extern struct jtag_interface rlink_interface
;
88 #if BUILD_ARMJTAGEW == 1
89 extern struct jtag_interface armjtagew_interface
;
91 #endif // standard drivers
94 * The list of built-in JTAG interfaces, containing entries for those
95 * drivers that were enabled by the @c configure script.
97 * The list should be defined to contain either one minidriver interface
98 * or some number of standard driver interfaces, never both.
100 struct jtag_interface
*jtag_interfaces
[] = {
101 #if BUILD_ZY1000 == 1
103 #elif defined(BUILD_MINIDRIVER_DUMMY)
104 &minidummy_interface
,
105 #else // standard drivers
106 #if BUILD_PARPORT == 1
112 #if BUILD_FT2232_FTD2XX == 1
115 #if BUILD_FT2232_LIBFTDI == 1
118 #if BUILD_AMTJTAGACCEL == 1
119 &amt_jtagaccel_interface
,
121 #if BUILD_EP93XX == 1
124 #if BUILD_AT91RM9200 == 1
125 &at91rm9200_interface
,
127 #if BUILD_GW16012 == 1
130 #if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
133 #if BUILD_USBPROG == 1
139 #if BUILD_VSLLINK == 1
145 #if BUILD_ARMJTAGEW == 1
146 &armjtagew_interface
,
148 #endif // standard drivers
152 void jtag_interface_modules_load(const char *path
)
154 // @todo: implement dynamic module loading for JTAG interface drivers