diff options
author | Mathias K <kesmtp@freenet.de> | 2011-12-01 12:16:54 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-01-03 21:11:37 +0000 |
commit | 9f898223355aeaeb018f2220deda94d208f345a1 (patch) | |
tree | d84091e1aa46d5835c6191b1553f90d2793cb577 /src | |
parent | 4c1190624124b182a8502aa011354a1b9676aa8a (diff) | |
download | riscv-openocd-9f898223355aeaeb018f2220deda94d208f345a1.zip riscv-openocd-9f898223355aeaeb018f2220deda94d208f345a1.tar.gz riscv-openocd-9f898223355aeaeb018f2220deda94d208f345a1.tar.bz2 |
add private data pointer to the tap interface
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/jtag.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index f4b89a7..aeb7b33 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -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); |