You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.9 KiB

  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. #ifndef OPENOCD_JTAG_DRIVERS_BITQ_H
  19. #define OPENOCD_JTAG_DRIVERS_BITQ_H
  20. #include <jtag/commands.h>
  21. struct bitq_interface {
  22. /* function to enqueueing low level IO requests */
  23. int (*out)(int tms, int tdi, int tdo_req);
  24. int (*flush)(void);
  25. int (*sleep)(unsigned long us);
  26. int (*reset)(int trst, int srst);
  27. /* delayed read of requested TDO data,
  28. * the input shall be checked after call to any enqueuing function
  29. */
  30. int (*in_rdy)(void);
  31. int (*in)(void);
  32. };
  33. extern struct bitq_interface *bitq_interface;
  34. int bitq_execute_queue(void);
  35. void bitq_cleanup(void);
  36. #endif /* OPENOCD_JTAG_DRIVERS_BITQ_H */