cortex_a: fix virt2phys when mmu is disabled
[openocd.git] / src / jtag / drivers / bitq.h
blobdf6a08d445d77c0ade7b8916cf8f30e70aaee253
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 ***************************************************************************/
19 #ifndef OPENOCD_JTAG_DRIVERS_BITQ_H
20 #define OPENOCD_JTAG_DRIVERS_BITQ_H
22 #include <jtag/commands.h>
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);
29 int (*sleep)(unsigned long us);
30 int (*reset)(int trst, int srst);
32 /* delayed read of requested TDO data,
33 * the input shall be checked after call to any enqueuing function
35 int (*in_rdy)(void);
36 int (*in)(void);
39 extern struct bitq_interface *bitq_interface;
41 int bitq_execute_queue(void);
43 void bitq_cleanup(void);
45 #endif /* OPENOCD_JTAG_DRIVERS_BITQ_H */