]> git.sur5r.net Git - openocd/commitdiff
add private data pointer to the tap interface
authorMathias K <kesmtp@freenet.de>
Thu, 1 Dec 2011 11:16:54 +0000 (12:16 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 3 Jan 2012 21:11:37 +0000 (21:11 +0000)
This will give us the ability to add special data structures and new
interfaces without rewriting the complete jtag engine.

Change-Id: I21a6e1daa96c5f4d111bbb734c7c1fbc2eaee227
Signed-off-by: Mathias K <kesmtp@freenet.de>
Reviewed-on: http://openocd.zylin.com/244
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/jtag.h

index f4b89a7ffeaf1845ba00cacb088e214ece886851..aeb7b332db2dd03a8b8c02430ae039bf07259b81 100644 (file)
@@ -156,7 +156,9 @@ struct jtag_tap {
 
        struct jtag_tap* next_tap;
        /* dap instance if some null if no instance , initialized to 0 by calloc*/
-       struct adiv5_dap *dap; 
+       struct adiv5_dap *dap;
+       /* private pointer to support none-jtag specific functions */
+       void *priv;
 };
 
 void jtag_tap_init(struct jtag_tap *tap);