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>
This commit is contained in:
Spencer Oliver
2013-09-11 21:31:50 +01:00
parent 06fb3bf8cd
commit 3a32dff089
4 changed files with 49 additions and 58 deletions

View File

@@ -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);
/** */