diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-05 12:50:45 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-05 12:50:45 +0200 |
commit | f2964260063568af0cbff92248f8518e6a4f7a34 (patch) | |
tree | 6733ea373d8510be751e53739d4ef36d71f0f547 | |
parent | 4ad804df46b7ca9e743f8c398a4a5a7c6b3a95e9 (diff) | |
download | hqemu-f2964260063568af0cbff92248f8518e6a4f7a34.zip hqemu-f2964260063568af0cbff92248f8518e6a4f7a34.tar.gz |
ETRAX: Drop _t for the serial type.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
-rw-r--r-- | hw/etraxfs_ser.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hw/etraxfs_ser.c b/hw/etraxfs_ser.c index 9a0a21b..d16a14e 100644 --- a/hw/etraxfs_ser.c +++ b/hw/etraxfs_ser.c @@ -45,7 +45,7 @@ #define STAT_TR_IDLE 22 #define STAT_TR_RDY 24 -struct etrax_serial_t +struct etrax_serial { CPUState *env; CharDriverState *chr; @@ -65,7 +65,7 @@ struct etrax_serial_t uint32_t r_masked_intr; }; -static void ser_update_irq(struct etrax_serial_t *s) +static void ser_update_irq(struct etrax_serial *s) { s->r_intr &= ~(s->rw_ack_intr); s->r_masked_intr = s->r_intr & s->rw_intr_mask; @@ -79,7 +79,7 @@ static void ser_update_irq(struct etrax_serial_t *s) static uint32_t ser_readl (void *opaque, target_phys_addr_t addr) { - struct etrax_serial_t *s = opaque; + struct etrax_serial *s = opaque; D(CPUState *env = s->env); uint32_t r = 0; @@ -125,7 +125,7 @@ static uint32_t ser_readl (void *opaque, target_phys_addr_t addr) static void ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value) { - struct etrax_serial_t *s = opaque; + struct etrax_serial *s = opaque; unsigned char ch = value; D(CPUState *env = s->env); @@ -176,7 +176,7 @@ static CPUWriteMemoryFunc *ser_write[] = { static void serial_receive(void *opaque, const uint8_t *buf, int size) { - struct etrax_serial_t *s = opaque; + struct etrax_serial *s = opaque; s->r_intr |= 8; s->rs_stat_din &= ~0xff; @@ -187,7 +187,7 @@ static void serial_receive(void *opaque, const uint8_t *buf, int size) static int serial_can_receive(void *opaque) { - struct etrax_serial_t *s = opaque; + struct etrax_serial *s = opaque; int r; /* Is the receiver enabled? */ @@ -206,7 +206,7 @@ static void serial_event(void *opaque, int event) void etraxfs_ser_init(CPUState *env, qemu_irq *irq, CharDriverState *chr, target_phys_addr_t base) { - struct etrax_serial_t *s; + struct etrax_serial *s; int ser_regs; s = qemu_mallocz(sizeof *s); |