From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3t0u-0003hf-Dv for qemu-devel@nongnu.org; Mon, 29 Jul 2013 15:21:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3t0n-0002VS-Rs for qemu-devel@nongnu.org; Mon, 29 Jul 2013 15:21:48 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53387 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3t0n-0002VG-If for qemu-devel@nongnu.org; Mon, 29 Jul 2013 15:21:41 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2490CA531D for ; Mon, 29 Jul 2013 21:21:41 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 29 Jul 2013 21:18:47 +0200 Message-Id: <1375125630-24869-71-git-send-email-afaerber@suse.de> In-Reply-To: <1375125630-24869-1-git-send-email-afaerber@suse.de> References: <1375125630-24869-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 070/173] pl011: Rename pl011_state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= Signed-off-by: Andreas F=C3=A4rber --- hw/char/pl011.c | 52 ++++++++++++++++++++++++++-------------------------= - 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/hw/char/pl011.c b/hw/char/pl011.c index ebec64f..e0f7071 100644 --- a/hw/char/pl011.c +++ b/hw/char/pl011.c @@ -10,7 +10,7 @@ #include "hw/sysbus.h" #include "sysemu/char.h" =20 -typedef struct { +typedef struct PL011State { SysBusDevice busdev; MemoryRegion iomem; uint32_t readbuff; @@ -31,7 +31,7 @@ typedef struct { CharDriverState *chr; qemu_irq irq; const unsigned char *id; -} pl011_state; +} PL011State; =20 #define PL011_INT_TX 0x20 #define PL011_INT_RX 0x10 @@ -46,7 +46,7 @@ static const unsigned char pl011_id_arm[8] =3D static const unsigned char pl011_id_luminary[8] =3D { 0x11, 0x00, 0x18, 0x01, 0x0d, 0xf0, 0x05, 0xb1 }; =20 -static void pl011_update(pl011_state *s) +static void pl011_update(PL011State *s) { uint32_t flags; =20 @@ -57,7 +57,7 @@ static void pl011_update(pl011_state *s) static uint64_t pl011_read(void *opaque, hwaddr offset, unsigned size) { - pl011_state *s =3D (pl011_state *)opaque; + PL011State *s =3D (PL011State *)opaque; uint32_t c; =20 if (offset >=3D 0xfe0 && offset < 0x1000) { @@ -113,7 +113,7 @@ static uint64_t pl011_read(void *opaque, hwaddr offse= t, } } =20 -static void pl011_set_read_trigger(pl011_state *s) +static void pl011_set_read_trigger(PL011State *s) { #if 0 /* The docs say the RX interrupt is triggered when the FIFO exceeds @@ -130,7 +130,7 @@ static void pl011_set_read_trigger(pl011_state *s) static void pl011_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - pl011_state *s =3D (pl011_state *)opaque; + PL011State *s =3D (PL011State *)opaque; unsigned char ch; =20 switch (offset >> 2) { @@ -191,7 +191,7 @@ static void pl011_write(void *opaque, hwaddr offset, =20 static int pl011_can_receive(void *opaque) { - pl011_state *s =3D (pl011_state *)opaque; + PL011State *s =3D (PL011State *)opaque; =20 if (s->lcr & 0x10) return s->read_count < 16; @@ -201,7 +201,7 @@ static int pl011_can_receive(void *opaque) =20 static void pl011_put_fifo(void *opaque, uint32_t value) { - pl011_state *s =3D (pl011_state *)opaque; + PL011State *s =3D (PL011State *)opaque; int slot; =20 slot =3D s->read_pos + s->read_count; @@ -242,28 +242,28 @@ static const VMStateDescription vmstate_pl011 =3D { .minimum_version_id =3D 1, .minimum_version_id_old =3D 1, .fields =3D (VMStateField[]) { - VMSTATE_UINT32(readbuff, pl011_state), - VMSTATE_UINT32(flags, pl011_state), - VMSTATE_UINT32(lcr, pl011_state), - VMSTATE_UINT32(cr, pl011_state), - VMSTATE_UINT32(dmacr, pl011_state), - VMSTATE_UINT32(int_enabled, pl011_state), - VMSTATE_UINT32(int_level, pl011_state), - VMSTATE_UINT32_ARRAY(read_fifo, pl011_state, 16), - VMSTATE_UINT32(ilpr, pl011_state), - VMSTATE_UINT32(ibrd, pl011_state), - VMSTATE_UINT32(fbrd, pl011_state), - VMSTATE_UINT32(ifl, pl011_state), - VMSTATE_INT32(read_pos, pl011_state), - VMSTATE_INT32(read_count, pl011_state), - VMSTATE_INT32(read_trigger, pl011_state), + VMSTATE_UINT32(readbuff, PL011State), + VMSTATE_UINT32(flags, PL011State), + VMSTATE_UINT32(lcr, PL011State), + VMSTATE_UINT32(cr, PL011State), + VMSTATE_UINT32(dmacr, PL011State), + VMSTATE_UINT32(int_enabled, PL011State), + VMSTATE_UINT32(int_level, PL011State), + VMSTATE_UINT32_ARRAY(read_fifo, PL011State, 16), + VMSTATE_UINT32(ilpr, PL011State), + VMSTATE_UINT32(ibrd, PL011State), + VMSTATE_UINT32(fbrd, PL011State), + VMSTATE_UINT32(ifl, PL011State), + VMSTATE_INT32(read_pos, PL011State), + VMSTATE_INT32(read_count, PL011State), + VMSTATE_INT32(read_trigger, PL011State), VMSTATE_END_OF_LIST() } }; =20 static int pl011_init(SysBusDevice *dev, const unsigned char *id) { - pl011_state *s =3D FROM_SYSBUS(pl011_state, dev); + PL011State *s =3D FROM_SYSBUS(PL011State, dev); =20 memory_region_init_io(&s->iomem, OBJECT(s), &pl011_ops, s, "pl011", = 0x1000); sysbus_init_mmio(dev, &s->iomem); @@ -303,7 +303,7 @@ static void pl011_arm_class_init(ObjectClass *klass, = void *data) static const TypeInfo pl011_arm_info =3D { .name =3D "pl011", .parent =3D TYPE_SYS_BUS_DEVICE, - .instance_size =3D sizeof(pl011_state), + .instance_size =3D sizeof(PL011State), .class_init =3D pl011_arm_class_init, }; =20 @@ -317,7 +317,7 @@ static void pl011_luminary_class_init(ObjectClass *kl= ass, void *data) static const TypeInfo pl011_luminary_info =3D { .name =3D "pl011_luminary", .parent =3D TYPE_SYS_BUS_DEVICE, - .instance_size =3D sizeof(pl011_state), + .instance_size =3D sizeof(PL011State), .class_init =3D pl011_luminary_class_init, }; =20 --=20 1.8.1.4