mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/misc: Constify all Property
Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ static const VMStateDescription vmstate_a9_scu = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property a9_scu_properties[] = {
|
||||
static const Property a9_scu_properties[] = {
|
||||
DEFINE_PROP_UINT32("num-cpu", A9SCUState, num_cpu, 1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
@@ -314,7 +314,7 @@ static void allwinner_h3_dramc_init(Object *obj)
|
||||
sysbus_init_mmio(sbd, &s->dramphy_iomem);
|
||||
}
|
||||
|
||||
static Property allwinner_h3_dramc_properties[] = {
|
||||
static const Property allwinner_h3_dramc_properties[] = {
|
||||
DEFINE_PROP_UINT64("ram-addr", AwH3DramCtlState, ram_addr, 0x0),
|
||||
DEFINE_PROP_UINT32("ram-size", AwH3DramCtlState, ram_size, 256 * MiB),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
|
||||
@@ -464,7 +464,7 @@ static void allwinner_r40_dramc_init(Object *obj)
|
||||
sysbus_init_mmio(sbd, &s->dramphy_iomem);
|
||||
}
|
||||
|
||||
static Property allwinner_r40_dramc_properties[] = {
|
||||
static const Property allwinner_r40_dramc_properties[] = {
|
||||
DEFINE_PROP_UINT64("ram-addr", AwR40DramCtlState, ram_addr, 0x0),
|
||||
DEFINE_PROP_UINT32("ram-size", AwR40DramCtlState, ram_size, 256), /* MiB */
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
|
||||
@@ -127,7 +127,7 @@ static void allwinner_sid_init(Object *obj)
|
||||
sysbus_init_mmio(sbd, &s->iomem);
|
||||
}
|
||||
|
||||
static Property allwinner_sid_properties[] = {
|
||||
static const Property allwinner_sid_properties[] = {
|
||||
DEFINE_PROP_UUID_NODEFAULT("identifier", AwSidState, identifier),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
+1
-1
@@ -350,7 +350,7 @@ static void applesmc_unrealize(DeviceState *dev)
|
||||
}
|
||||
}
|
||||
|
||||
static Property applesmc_isa_properties[] = {
|
||||
static const Property applesmc_isa_properties[] = {
|
||||
DEFINE_PROP_UINT32(APPLESMC_PROP_IO_BASE, AppleSMCState, iobase,
|
||||
APPLESMC_DEFAULT_IOBASE),
|
||||
DEFINE_PROP_STRING("osk", AppleSMCState, osk),
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ static void arm11_scu_init(Object *obj)
|
||||
sysbus_init_mmio(sbd, &s->iomem);
|
||||
}
|
||||
|
||||
static Property arm11_scu_properties[] = {
|
||||
static const Property arm11_scu_properties[] = {
|
||||
DEFINE_PROP_UINT32("num-cpu", ARM11SCUState, num_cpu, 1),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
+1
-1
@@ -173,7 +173,7 @@ static void l2x0_priv_init(Object *obj)
|
||||
sysbus_init_mmio(dev, &s->iomem);
|
||||
}
|
||||
|
||||
static Property l2x0_properties[] = {
|
||||
static const Property l2x0_properties[] = {
|
||||
DEFINE_PROP_UINT32("cache-type", L2x0State, cache_type, 0x1c100100),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
@@ -623,7 +623,7 @@ static void arm_sysctl_finalize(Object *obj)
|
||||
g_free(s->db_clock_reset);
|
||||
}
|
||||
|
||||
static Property arm_sysctl_properties[] = {
|
||||
static const Property arm_sysctl_properties[] = {
|
||||
DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0),
|
||||
DEFINE_PROP_UINT32("proc_id", arm_sysctl_state, proc_id, 0),
|
||||
/* Daughterboard power supply voltages (as reported via SYS_CFG) */
|
||||
|
||||
@@ -92,7 +92,7 @@ static const MemoryRegionOps armsse_cpuid_ops = {
|
||||
.valid.max_access_size = 4,
|
||||
};
|
||||
|
||||
static Property armsse_cpuid_props[] = {
|
||||
static const Property armsse_cpuid_props[] = {
|
||||
DEFINE_PROP_UINT32("CPUID", ARMSSECPUID, cpuid, 0),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
@@ -436,7 +436,7 @@ static void aspeed_hace_realize(DeviceState *dev, Error **errp)
|
||||
sysbus_init_mmio(sbd, &s->iomem);
|
||||
}
|
||||
|
||||
static Property aspeed_hace_properties[] = {
|
||||
static const Property aspeed_hace_properties[] = {
|
||||
DEFINE_PROP_LINK("dram", AspeedHACEState, dram_mr,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
@@ -323,7 +323,7 @@ static void aspeed_i3c_realize(DeviceState *dev, Error **errp)
|
||||
|
||||
}
|
||||
|
||||
static Property aspeed_i3c_device_properties[] = {
|
||||
static const Property aspeed_i3c_device_properties[] = {
|
||||
DEFINE_PROP_UINT8("device-id", AspeedI3CDevice, id, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
@@ -454,7 +454,7 @@ static const VMStateDescription vmstate_aspeed_lpc = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property aspeed_lpc_properties[] = {
|
||||
static const Property aspeed_lpc_properties[] = {
|
||||
DEFINE_PROP_UINT32("hicr7", AspeedLPCState, hicr7, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
@@ -136,7 +136,7 @@ static const VMStateDescription vmstate_aspeed_sbc = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property aspeed_sbc_properties[] = {
|
||||
static const Property aspeed_sbc_properties[] = {
|
||||
DEFINE_PROP_BOOL("emmc-abr", AspeedSBCState, emmc_abr, 0),
|
||||
DEFINE_PROP_UINT32("signing-settings", AspeedSBCState, signing_settings, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
@@ -602,7 +602,7 @@ static const VMStateDescription vmstate_aspeed_scu = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property aspeed_scu_properties[] = {
|
||||
static const Property aspeed_scu_properties[] = {
|
||||
DEFINE_PROP_UINT32("silicon-rev", AspeedSCUState, silicon_rev, 0),
|
||||
DEFINE_PROP_UINT32("hw-strap1", AspeedSCUState, hw_strap1, 0),
|
||||
DEFINE_PROP_UINT32("hw-strap2", AspeedSCUState, hw_strap2, 0),
|
||||
|
||||
@@ -294,7 +294,7 @@ static const VMStateDescription vmstate_aspeed_sdmc = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property aspeed_sdmc_properties[] = {
|
||||
static const Property aspeed_sdmc_properties[] = {
|
||||
DEFINE_PROP_UINT64("max-ram-size", AspeedSDMCState, max_ram_size, 0),
|
||||
DEFINE_PROP_BOOL("unlocked", AspeedSDMCState, unlocked, false),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
@@ -778,7 +778,7 @@ static const VMStateDescription cprman_vmstate = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property cprman_properties[] = {
|
||||
static const Property cprman_properties[] = {
|
||||
DEFINE_PROP_UINT32("xosc-freq-hz", BCM2835CprmanState, xosc_freq, 19200000),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
@@ -551,7 +551,7 @@ static void bcm2835_property_realize(DeviceState *dev, Error **errp)
|
||||
bcm2835_property_reset(dev);
|
||||
}
|
||||
|
||||
static Property bcm2835_property_props[] = {
|
||||
static const Property bcm2835_property_props[] = {
|
||||
DEFINE_PROP_UINT32("board-rev", BCM2835PropertyState, board_rev, 0),
|
||||
DEFINE_PROP_STRING("command-line", BCM2835PropertyState, command_line),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ static void debug_exit_realizefn(DeviceState *d, Error **errp)
|
||||
isa->iobase, &isa->io);
|
||||
}
|
||||
|
||||
static Property debug_exit_properties[] = {
|
||||
static const Property debug_exit_properties[] = {
|
||||
DEFINE_PROP_UINT32("iobase", ISADebugExitState, iobase, 0x501),
|
||||
DEFINE_PROP_UINT32("iosize", ISADebugExitState, iosize, 0x02),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
+1
-1
@@ -325,7 +325,7 @@ static void ecc_realize(DeviceState *dev, Error **errp)
|
||||
}
|
||||
}
|
||||
|
||||
static Property ecc_properties[] = {
|
||||
static const Property ecc_properties[] = {
|
||||
DEFINE_PROP_UINT32("version", ECCState, version, -1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
@@ -79,7 +79,7 @@ static void empty_slot_realize(DeviceState *dev, Error **errp)
|
||||
sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->iomem);
|
||||
}
|
||||
|
||||
static Property empty_slot_properties[] = {
|
||||
static const Property empty_slot_properties[] = {
|
||||
DEFINE_PROP_UINT64("size", EmptySlot, size, 0),
|
||||
DEFINE_PROP_STRING("name", EmptySlot, name),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user