aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/hla
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2013-09-11 21:31:50 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2013-09-25 13:53:19 +0000
commit3a32dff0895b7f85d29d5f58a21f17851f0a220e (patch)
tree81dd28ba5a870fedc729c686b39ea3aa2df178e9 /src/jtag/hla
parent06fb3bf8cd3e14d8e1f32f6b6b5f586ef5d1857d (diff)
downloadriscv-openocd-3a32dff0895b7f85d29d5f58a21f17851f0a220e.zip
riscv-openocd-3a32dff0895b7f85d29d5f58a21f17851f0a220e.tar.gz
riscv-openocd-3a32dff0895b7f85d29d5f58a21f17851f0a220e.tar.bz2
hla: cleanup read/write api
This is the first part in moving the adapter specific api back into the driver. The next task is to also move the hla read/write buffer size handling. Change-Id: I86a19144b50b6de18659bfcd05b3729b2cafc051 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1621 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/jtag/hla')
-rw-r--r--src/jtag/hla/hla_layout.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/jtag/hla/hla_layout.h b/src/jtag/hla/hla_layout.h
index bd6a6b4..d7b5d93 100644
--- a/src/jtag/hla/hla_layout.h
+++ b/src/jtag/hla/hla_layout.h
@@ -55,17 +55,11 @@ struct hl_layout_api_s {
/** */
int (*write_reg) (void *fd, int num, uint32_t val);
/** */
- int (*read_mem8) (void *handle, uint32_t addr, uint16_t len,
- uint8_t *buffer);
+ int (*read_mem) (void *handle, uint32_t addr, uint32_t size,
+ uint32_t count, uint8_t *buffer);
/** */
- int (*write_mem8) (void *handle, uint32_t addr, uint16_t len,
- const uint8_t *buffer);
- /** */
- int (*read_mem32) (void *handle, uint32_t addr, uint16_t len,
- uint8_t *buffer);
- /** */
- int (*write_mem32) (void *handle, uint32_t addr, uint16_t len,
- const uint8_t *buffer);
+ int (*write_mem) (void *handle, uint32_t addr, uint32_t size,
+ uint32_t count, const uint8_t *buffer);
/** */
int (*write_debug_reg) (void *handle, uint32_t addr, uint32_t val);
/** */