summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:42:24 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:11 -0800
commit01f9dc18fcce8d5a0e02e56822d580da81570fdc (patch)
treef8cbc98cb4e98badc8d951b478e0802c114ffb7a /src
parent2f7fc2921d5769799f1bd527b49a7a877b4c8fa0 (diff)
downloadopenocd+libswd-01f9dc18fcce8d5a0e02e56822d580da81570fdc.tar.gz
openocd+libswd-01f9dc18fcce8d5a0e02e56822d580da81570fdc.tar.bz2
openocd+libswd-01f9dc18fcce8d5a0e02e56822d580da81570fdc.tar.xz
openocd+libswd-01f9dc18fcce8d5a0e02e56822d580da81570fdc.zip
etb_reg_t -> struct etb_reg
Remove misleading typedef and redundant suffix from struct etb_reg.
Diffstat (limited to 'src')
-rw-r--r--src/target/etb.c8
-rw-r--r--src/target/etb.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/target/etb.c b/src/target/etb.c
index 1315b71a..6a711d42 100644
--- a/src/target/etb.c
+++ b/src/target/etb.c
@@ -125,7 +125,7 @@ reg_cache_t* etb_build_reg_cache(etb_t *etb)
{
reg_cache_t *reg_cache = malloc(sizeof(reg_cache_t));
reg_t *reg_list = NULL;
- etb_reg_t *arch_info = NULL;
+ struct etb_reg *arch_info = NULL;
int num_regs = 9;
int i;
@@ -135,7 +135,7 @@ reg_cache_t* etb_build_reg_cache(etb_t *etb)
/* the actual registers are kept in two arrays */
reg_list = calloc(num_regs, sizeof(reg_t));
- arch_info = calloc(num_regs, sizeof(etb_reg_t));
+ arch_info = calloc(num_regs, sizeof(struct etb_reg));
/* fill in values for the reg cache */
reg_cache->name = "etb registers";
@@ -227,7 +227,7 @@ static int etb_read_ram(etb_t *etb, uint32_t *data, int num_frames)
static int etb_read_reg_w_check(reg_t *reg,
uint8_t* check_value, uint8_t* check_mask)
{
- etb_reg_t *etb_reg = reg->arch_info;
+ struct etb_reg *etb_reg = reg->arch_info;
uint8_t reg_addr = etb_reg->addr & 0x7f;
struct scan_field fields[3];
@@ -313,7 +313,7 @@ static int etb_set_reg_w_exec(reg_t *reg, uint8_t *buf)
static int etb_write_reg(reg_t *reg, uint32_t value)
{
- etb_reg_t *etb_reg = reg->arch_info;
+ struct etb_reg *etb_reg = reg->arch_info;
uint8_t reg_addr = etb_reg->addr & 0x7f;
struct scan_field fields[3];
diff --git a/src/target/etb.h b/src/target/etb.h
index 6700ecbb..15171f57 100644
--- a/src/target/etb.h
+++ b/src/target/etb.h
@@ -46,11 +46,11 @@ typedef struct etb_s
uint32_t ram_width;
} etb_t;
-typedef struct etb_reg_s
+struct etb_reg
{
uint32_t addr;
etb_t *etb;
-} etb_reg_t;
+};
extern etm_capture_driver_t etb_capture_driver;