diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2013-02-28 18:23:13 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-02-28 18:23:13 +0000 |
commit | 845769fc6319d308a39a78734c6dc03fa93ff2c5 (patch) | |
tree | 9c6b53454ebcaeed5a36366a713f4897924fb6e2 /hw/a9mpcore.c | |
parent | c6205ddf6cff202ac0ce6621987cd3de8b57adee (diff) |
arm: arm11mpcore, a9mpcore: CamelCased type names
To conform with QEMU coding style.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/a9mpcore.c')
-rw-r--r-- | hw/a9mpcore.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/hw/a9mpcore.c b/hw/a9mpcore.c index 673bbd8c42..33b9e07f46 100644 --- a/hw/a9mpcore.c +++ b/hw/a9mpcore.c @@ -12,7 +12,7 @@ /* A9MP private memory region. */ -typedef struct a9mp_priv_state { +typedef struct A9MPPrivState { SysBusDevice busdev; uint32_t scu_control; uint32_t scu_status; @@ -23,12 +23,12 @@ typedef struct a9mp_priv_state { DeviceState *mptimer; DeviceState *gic; uint32_t num_irq; -} a9mp_priv_state; +} A9MPPrivState; static uint64_t a9_scu_read(void *opaque, hwaddr offset, unsigned size) { - a9mp_priv_state *s = (a9mp_priv_state *)opaque; + A9MPPrivState *s = (A9MPPrivState *)opaque; switch (offset) { case 0x00: /* Control */ return s->scu_control; @@ -59,7 +59,7 @@ static uint64_t a9_scu_read(void *opaque, hwaddr offset, static void a9_scu_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - a9mp_priv_state *s = (a9mp_priv_state *)opaque; + A9MPPrivState *s = (A9MPPrivState *)opaque; uint32_t mask; uint32_t shift; switch (size) { @@ -112,7 +112,7 @@ static const MemoryRegionOps a9_scu_ops = { static void a9mp_priv_reset(DeviceState *dev) { - a9mp_priv_state *s = FROM_SYSBUS(a9mp_priv_state, SYS_BUS_DEVICE(dev)); + A9MPPrivState *s = FROM_SYSBUS(A9MPPrivState, SYS_BUS_DEVICE(dev)); int i; s->scu_control = 0; for (i = 0; i < ARRAY_SIZE(s->old_timer_status); i++) { @@ -122,13 +122,13 @@ static void a9mp_priv_reset(DeviceState *dev) static void a9mp_priv_set_irq(void *opaque, int irq, int level) { - a9mp_priv_state *s = (a9mp_priv_state *)opaque; + A9MPPrivState *s = (A9MPPrivState *)opaque; qemu_set_irq(qdev_get_gpio_in(s->gic, irq), level); } static int a9mp_priv_init(SysBusDevice *dev) { - a9mp_priv_state *s = FROM_SYSBUS(a9mp_priv_state, dev); + A9MPPrivState *s = FROM_SYSBUS(A9MPPrivState, dev); SysBusDevice *busdev, *gicbusdev; int i; @@ -196,22 +196,22 @@ static const VMStateDescription vmstate_a9mp_priv = { .version_id = 2, .minimum_version_id = 1, .fields = (VMStateField[]) { - VMSTATE_UINT32(scu_control, a9mp_priv_state), - VMSTATE_UINT32_ARRAY(old_timer_status, a9mp_priv_state, 8), - VMSTATE_UINT32_V(scu_status, a9mp_priv_state, 2), + VMSTATE_UINT32(scu_control, A9MPPrivState), + VMSTATE_UINT32_ARRAY(old_timer_status, A9MPPrivState, 8), + VMSTATE_UINT32_V(scu_status, A9MPPrivState, 2), VMSTATE_END_OF_LIST() } }; static Property a9mp_priv_properties[] = { - DEFINE_PROP_UINT32("num-cpu", a9mp_priv_state, num_cpu, 1), + DEFINE_PROP_UINT32("num-cpu", A9MPPrivState, num_cpu, 1), /* The Cortex-A9MP may have anything from 0 to 224 external interrupt * IRQ lines (with another 32 internal). We default to 64+32, which * is the number provided by the Cortex-A9MP test chip in the * Realview PBX-A9 and Versatile Express A9 development boards. * Other boards may differ and should set this property appropriately. */ - DEFINE_PROP_UINT32("num-irq", a9mp_priv_state, num_irq, 96), + DEFINE_PROP_UINT32("num-irq", A9MPPrivState, num_irq, 96), DEFINE_PROP_END_OF_LIST(), }; @@ -229,7 +229,7 @@ static void a9mp_priv_class_init(ObjectClass *klass, void *data) static const TypeInfo a9mp_priv_info = { .name = "a9mpcore_priv", .parent = TYPE_SYS_BUS_DEVICE, - .instance_size = sizeof(a9mp_priv_state), + .instance_size = sizeof(A9MPPrivState), .class_init = a9mp_priv_class_init, }; |