usbprog: remove unused variable
[fw/openocd] / src / jtag / drivers / bitq.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4  *   Copyright (C) 2007 by Pavel Chromy                                    *
5  *   chromy@asix.cz                                                        *
6  ***************************************************************************/
7
8 #ifndef OPENOCD_JTAG_DRIVERS_BITQ_H
9 #define OPENOCD_JTAG_DRIVERS_BITQ_H
10
11 #include <jtag/commands.h>
12
13 struct bitq_interface {
14         /* function to enqueueing low level IO requests */
15         int (*out)(int tms, int tdi, int tdo_req);
16         int (*flush)(void);
17
18         int (*sleep)(unsigned long us);
19         int (*reset)(int trst, int srst);
20
21         /* delayed read of requested TDO data,
22          * the input shall be checked after call to any enqueuing function
23          */
24         int (*in_rdy)(void);
25         int (*in)(void);
26 };
27
28 extern struct bitq_interface *bitq_interface;
29
30 int bitq_execute_queue(void);
31
32 void bitq_cleanup(void);
33
34 #endif /* OPENOCD_JTAG_DRIVERS_BITQ_H */