1 /***************************************************************************
\r
2 * Copyright (C) 2008 by Øyvind Harboe *
\r
3 * oyvind.harboe@zylin.com *
\r
5 * This program is free software; you can redistribute it and/or modify *
\r
6 * it under the terms of the GNU General Public License as published by *
\r
7 * the Free Software Foundation; either version 2 of the License, or *
\r
8 * (at your option) any later version. *
\r
10 * This program is distributed in the hope that it will be useful, *
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
\r
13 * GNU General Public License for more details. *
\r
15 * You should have received a copy of the GNU General Public License *
\r
16 * along with this program; if not, write to the *
\r
17 * Free Software Foundation, Inc., *
\r
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
\r
19 ***************************************************************************/
\r
20 #ifdef HAVE_CONFIG_H
\r
24 #include "replacements.h"
\r
27 #include "bitbang.h"
\r
29 int dummy_speed(int speed);
\r
30 int dummy_register_commands(struct command_context_s *cmd_ctx);
\r
31 int dummy_init(void);
\r
32 int dummy_quit(void);
\r
34 /* The dummy driver is used to easily check the code path
\r
35 * where the target is unresponsive.
\r
37 jtag_interface_t dummy_interface =
\r
41 .execute_queue = bitbang_execute_queue,
\r
43 .speed = dummy_speed,
\r
44 .register_commands = dummy_register_commands,
\r
49 int dummy_read(void);
\r
50 void dummy_write(int tck, int tms, int tdi);
\r
51 void dummy_reset(int trst, int srst);
\r
52 void dummy_led(int on);
\r
54 bitbang_interface_t dummy_bitbang =
\r
57 .write = dummy_write,
\r
58 .reset = dummy_reset,
\r
62 int dummy_read(void)
\r
67 void dummy_write(int tck, int tms, int tdi)
\r
71 void dummy_reset(int trst, int srst)
\r
75 int dummy_speed(int speed)
\r
80 int dummy_register_commands(struct command_context_s *cmd_ctx)
\r
85 int dummy_init(void)
\r
87 bitbang_interface = &dummy_bitbang;
\r
92 int dummy_quit(void)
\r
97 void dummy_led(int on)
\r