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.
 
 
 
 
 
 

42 lines
2.1 KiB

  1. /***************************************************************************
  2. * Copyright (C) 2005 by Dominic Rath <Dominic.Rath@gmx.de> *
  3. * Copyright (C) 2007-2009 Øyvind Harboe <oyvind.harboe@zylin.com> *
  4. * Copyright (C) 2009 Zachary T Welch <zw@superlucidity.net> *
  5. * *
  6. * This program is free software; you can redistribute it and/or modify *
  7. * it under the terms of the GNU General Public License as published by *
  8. * the Free Software Foundation; either version 2 of the License, or *
  9. * (at your option) any later version. *
  10. * *
  11. * This program is distributed in the hope that it will be useful, *
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  14. * GNU General Public License for more details. *
  15. * *
  16. * You should have received a copy of the GNU General Public License *
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>. *
  18. ***************************************************************************/
  19. #ifndef OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H
  20. #define OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H
  21. #include <jtag/commands.h>
  22. static inline void interface_jtag_add_scan_check_alloc(struct scan_field *field)
  23. {
  24. unsigned num_bytes = DIV_ROUND_UP(field->num_bits, 8);
  25. field->in_value = cmd_queue_alloc(num_bytes);
  26. }
  27. void interface_jtag_add_callback(jtag_callback1_t f, jtag_callback_data_t data0);
  28. void interface_jtag_add_callback4(jtag_callback_t f, jtag_callback_data_t data0,
  29. jtag_callback_data_t data1, jtag_callback_data_t data2,
  30. jtag_callback_data_t data3);
  31. void jtag_add_callback4(jtag_callback_t f, jtag_callback_data_t data0,
  32. jtag_callback_data_t data1, jtag_callback_data_t data2,
  33. jtag_callback_data_t data3);
  34. #endif /* OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H */