]> git.sur5r.net Git - openocd/blob - src/jtag/drivers/bitq.h
Make #include guard naming consistent
[openocd] / src / jtag / drivers / bitq.h
1 /***************************************************************************
2  *   Copyright (C) 2007 by Pavel Chromy                                    *
3  *   chromy@asix.cz                                                        *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
17  ***************************************************************************/
18
19 #ifndef OPENOCD_JTAG_DRIVERS_BITQ_H
20 #define OPENOCD_JTAG_DRIVERS_BITQ_H
21
22 #include <jtag/commands.h>
23
24 struct bitq_interface {
25         /* function to enqueueing low level IO requests */
26         int (*out)(int tms, int tdi, int tdo_req);
27         int (*flush)(void);
28
29         int (*sleep)(unsigned long us);
30         int (*reset)(int trst, int srst);
31
32         /* delayed read of requested TDO data,
33          * the input shall be checked after call to any enqueuing function
34          */
35         int (*in_rdy)(void);
36         int (*in)(void);
37 };
38
39 extern struct bitq_interface *bitq_interface;
40
41 int bitq_execute_queue(void);
42
43 void bitq_cleanup(void);
44
45 #endif /* OPENOCD_JTAG_DRIVERS_BITQ_H */