summaryrefslogtreecommitdiff
path: root/src/jtag/jtag.h
diff options
context:
space:
mode:
authormifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-01-20 13:52:06 +0000
committermifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-01-20 13:52:06 +0000
commit167ce32a7cb99962e6ae8f8c6d36b0999c16888c (patch)
treee890df091db83a545d3d0fac021a8da0b2ba2031 /src/jtag/jtag.h
parent68b97e4b5c40a70b42dc2a970f1b90b9a3e9f13d (diff)
downloadopenocd+libswd-167ce32a7cb99962e6ae8f8c6d36b0999c16888c.tar.gz
openocd+libswd-167ce32a7cb99962e6ae8f8c6d36b0999c16888c.tar.bz2
openocd+libswd-167ce32a7cb99962e6ae8f8c6d36b0999c16888c.tar.xz
openocd+libswd-167ce32a7cb99962e6ae8f8c6d36b0999c16888c.zip
- added patch "remove error handler as planned"
https://lists.berlios.de/pipermail/openocd-development/2008-January/000665.html (thanks to oyvind Harboe for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@260 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r--src/jtag/jtag.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index 0ea6f5b6..0458e2d5 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -64,11 +64,10 @@ extern enum tap_state cmd_queue_cur_state; /* current TAP state */
#define TAP_MOVE(from, to) tap_move[tap_move_map[from]][tap_move_map[to]]
-typedef struct error_handler_s
-{
- int (*error_handler)(u8 *in_value, void *priv); /* handle failed checks */
- void *error_handler_priv; /* additional information for the check_handler */
-} error_handler_t;
+typedef void * error_handler_t; /* Later on we can delete error_handler_t, but keep it for now to make patches more readable */
+
+struct scan_field_s;
+typedef int (*in_handler_t)(u8 *in_value, void *priv, struct scan_field_s *field);
typedef struct scan_field_s
{
@@ -78,10 +77,9 @@ typedef struct scan_field_s
u8 *out_mask; /* only masked bits care */
u8 *in_value; /* pointer to a 32-bit memory location to take data scanned out */
/* in_check_value/mask, in_handler_error_handler, in_handler_priv can be used by the in handler, otherwise they contain garbage */
- error_handler_t in_handler_error_handler;
u8 *in_check_value; /* used to validate scan results */
u8 *in_check_mask; /* check specified bits against check_value */
- int (*in_handler)(u8 *in_value, void *priv); /* process received buffer using this handler */
+ in_handler_t in_handler; /* process received buffer using this handler */
void *in_handler_priv; /* additional information for the in_handler */
} scan_field_t;
@@ -274,6 +272,9 @@ extern void jtag_sleep(u32 us);
extern int jtag_call_event_callbacks(enum jtag_event event);
extern int jtag_register_event_callback(int (*callback)(enum jtag_event event, void *priv), void *priv);
+extern int jtag_verify_capture_ir;
+
+
/* error codes
* JTAG subsystem uses codes between -100 and -199 */