From: oharboe at B. <oh...@ma...> - 2009-05-13 11:53:24
|
Author: oharboe Date: 2009-05-13 11:53:23 +0200 (Wed, 13 May 2009) New Revision: 1772 Modified: trunk/src/jtag/jtag.h Log: shuffled comments about for jtag_add_dr_out() fn. Modified: trunk/src/jtag/jtag.h =================================================================== --- trunk/src/jtag/jtag.h 2009-05-13 08:58:08 UTC (rev 1771) +++ trunk/src/jtag/jtag.h 2009-05-13 09:53:23 UTC (rev 1772) @@ -856,8 +856,15 @@ #define MINIDRIVER(a) notused ## a #else #define MINIDRIVER(a) a +extern void interface_jtag_add_dr_out(jtag_tap_t* tap, int num_fields, const int* num_bits, const u32* value, + tap_state_t end_state); -/* jtag_add_dr_out() is a faster version of jtag_add_dr_scan() +#endif + +/* jtag_add_dr_out() is a version of jtag_add_dr_scan() which + * only scans data out. It operates on 32 bit integers instead + * of 8 bit, which makes it a better impedance match with + * the calling code which often operate on 32 bit integers. * * Current or end_state can not be TAP_RESET. end_state can be TAP_INVALID * @@ -872,13 +879,13 @@ * return an error. There is no way to determine if there was a failure * during this function call. * - * Note that this jtag_add_dr_out can be defined as an inline function. + * This is an inline fn to speed up embedded hosts. Also note that + * interface_jtag_add_dr_out() can be a *small* inline function for + * embedded hosts. + * + * There is no jtag_add_dr_outin() version of this fn that also allows + * clocking data back in. Patches gladly accepted! */ -extern void interface_jtag_add_dr_out(jtag_tap_t* tap, int num_fields, const int* num_bits, const u32* value, - tap_state_t end_state); - -#endif - static __inline__ void jtag_add_dr_out(jtag_tap_t* tap, int num_fields, const int* num_bits, const u32* value, tap_state_t end_state) { |