X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fminidriver%2Fminidriver_imp.h;h=11d0fae722d2bbfc4c2283f1c3adccc099f99c81;hp=b6cdbead5468e4a6e78a3618cb3a75ce0931d555;hb=d4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0;hpb=97de520bc02f96f31063175fbc9cad034e84055d diff --git a/src/jtag/minidriver/minidriver_imp.h b/src/jtag/minidriver/minidriver_imp.h index b6cdbead54..11d0fae722 100644 --- a/src/jtag/minidriver/minidriver_imp.h +++ b/src/jtag/minidriver/minidriver_imp.h @@ -14,48 +14,17 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ -#ifndef MINIDRIVER_IMP_H -#define MINIDRIVER_IMP_H -#include - -static inline void interface_jtag_alloc_in_value32(struct scan_field *field) -{ - field->in_value = field->intmp; -} - -static inline void interface_jtag_add_scan_check_alloc(struct scan_field *field) -{ - /* We're executing this synchronously, so try to use local storage. */ - if (field->num_bits > 32) - { - unsigned num_bytes = DIV_ROUND_UP(field->num_bits, 8); - field->in_value = (uint8_t *)malloc(num_bytes); - field->allocated = 1; - } - else - field->in_value = field->intmp; -} - -static inline void jtag_add_dr_out(struct jtag_tap* tap, - int num_fields, const int* num_bits, const uint32_t* value, - tap_state_t end_state) -{ - cmd_queue_cur_state = end_state; +#ifndef OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H +#define OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H - interface_jtag_add_dr_out(tap, - num_fields, num_bits, value, - end_state); -} +#include #define jtag_add_callback(callback, in) interface_jtag_add_callback(callback, in) -#define jtag_add_callback4(callback, in, data1, data2, data3) interface_jtag_add_callback4(callback, in, data1, data2, data3) - - +#define jtag_add_callback4(callback, in, data1, data2, data3) \ + interface_jtag_add_callback4(callback, in, data1, data2, data3) -#endif // MINIDRIVER_IMP_H +#endif /* OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H */