mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST
Now that all of the Property arrays are counted, we can remove the terminator object from each array. Update the assertions in device_class_set_props to match. With struct Property being 88 bytes, this was a rather large form of terminator. Saves 30k from qemu-system-aarch64. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Lei Yang <leiyang@redhat.com> Link: https://lore.kernel.org/r/20241218134251.4724-21-richard.henderson@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ebe9685f12
commit
5fcabe628b
556 changed files with 7 additions and 624 deletions
|
@ -246,7 +246,6 @@ static const VMStateDescription vmstate_virtio_9p = {
|
|||
static const Property virtio_9p_properties[] = {
|
||||
DEFINE_PROP_STRING("mount_tag", V9fsVirtioState, state.fsconf.tag),
|
||||
DEFINE_PROP_STRING("fsdev", V9fsVirtioState, state.fsconf.fsdev_id),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void virtio_9p_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -1016,7 +1016,6 @@ static const Property erst_properties[] = {
|
|||
TYPE_MEMORY_BACKEND, HostMemoryBackend *),
|
||||
DEFINE_PROP_UINT32(ACPI_ERST_RECORD_SIZE_PROP, ERSTDeviceState,
|
||||
default_record_size, ERST_RECORD_SIZE),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void erst_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -318,7 +318,6 @@ static void acpi_ged_send_event(AcpiDeviceIf *adev, AcpiEventStatusBits ev)
|
|||
|
||||
static const Property acpi_ged_properties[] = {
|
||||
DEFINE_PROP_UINT32("ged-event", AcpiGedState, ged_event_bitmap, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static const VMStateDescription vmstate_memhp_state = {
|
||||
|
|
|
@ -617,7 +617,6 @@ static const Property piix4_pm_properties[] = {
|
|||
DEFINE_PROP_BOOL("smm-enabled", PIIX4PMState, smm_enabled, false),
|
||||
DEFINE_PROP_BOOL("x-not-migrate-acpi-index", PIIX4PMState,
|
||||
not_migrate_acpi_index, false),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void piix4_pm_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -216,7 +216,6 @@ static void vmgenid_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
static const Property vmgenid_device_properties[] = {
|
||||
DEFINE_PROP_UUID(VMGENID_GUID, VmGenIdState, guid),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void vmgenid_device_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -289,7 +289,6 @@ static const VMStateDescription vmstate_aspeed_adc_engine = {
|
|||
static const Property aspeed_adc_engine_properties[] = {
|
||||
DEFINE_PROP_UINT32("engine-id", AspeedADCEngineState, engine_id, 0),
|
||||
DEFINE_PROP_UINT32("nr-channels", AspeedADCEngineState, nr_channels, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void aspeed_adc_engine_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -269,7 +269,6 @@ static const VMStateDescription vmstate_npcm7xx_adc = {
|
|||
|
||||
static const Property npcm7xx_timer_properties[] = {
|
||||
DEFINE_PROP_UINT32("iref", NPCM7xxADCState, iref, NPCM7XX_ADC_DEFAULT_IREF),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void npcm7xx_adc_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -552,7 +552,6 @@ static const Property armv7m_properties[] = {
|
|||
DEFINE_PROP_BOOL("dsp", ARMv7MState, dsp, true),
|
||||
DEFINE_PROP_UINT32("mpu-ns-regions", ARMv7MState, mpu_ns_regions, UINT_MAX),
|
||||
DEFINE_PROP_UINT32("mpu-s-regions", ARMv7MState, mpu_s_regions, UINT_MAX),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static const VMStateDescription vmstate_armv7m = {
|
||||
|
@ -635,7 +634,6 @@ static const Property bitband_properties[] = {
|
|||
DEFINE_PROP_UINT32("base", BitBandState, base, 0),
|
||||
DEFINE_PROP_LINK("source-memory", BitBandState, source_memory,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void bitband_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -144,7 +144,6 @@ static const Property aspeed_soc_properties[] = {
|
|||
MemoryRegion *),
|
||||
DEFINE_PROP_LINK("memory", AspeedSoCState, memory, TYPE_MEMORY_REGION,
|
||||
MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void aspeed_soc_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -311,7 +311,6 @@ static void fsl_imx25_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
static const Property fsl_imx25_properties[] = {
|
||||
DEFINE_PROP_UINT32("fec-phy-num", FslIMX25State, phy_num, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void fsl_imx25_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -483,7 +483,6 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
static const Property fsl_imx6_properties[] = {
|
||||
DEFINE_PROP_UINT32("fec-phy-num", FslIMX6State, phy_num, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void fsl_imx6_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -725,7 +725,6 @@ static const Property fsl_imx6ul_properties[] = {
|
|||
true),
|
||||
DEFINE_PROP_BOOL("fec2-phy-connected", FslIMX6ULState, phy_connected[1],
|
||||
true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void fsl_imx6ul_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -743,7 +743,6 @@ static const Property fsl_imx7_properties[] = {
|
|||
true),
|
||||
DEFINE_PROP_BOOL("fec2-phy-connected", FslIMX7State, phy_connected[1],
|
||||
true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void fsl_imx7_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -696,7 +696,6 @@ DEFINE_MACHINE("integratorcp", integratorcp_machine_init)
|
|||
|
||||
static const Property core_properties[] = {
|
||||
DEFINE_PROP_UINT32("memsz", IntegratorCMState, memsz, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void core_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -234,7 +234,6 @@ static const Property m2sxxx_soc_properties[] = {
|
|||
/* default divisors in Libero GUI */
|
||||
DEFINE_PROP_UINT8("apb0div", MSF2State, apb0div, 2),
|
||||
DEFINE_PROP_UINT8("apb1div", MSF2State, apb1div, 2),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void m2sxxx_soc_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -813,7 +813,6 @@ static void npcm7xx_realize(DeviceState *dev, Error **errp)
|
|||
static const Property npcm7xx_properties[] = {
|
||||
DEFINE_PROP_LINK("dram-mr", NPCM7xxState, dram, TYPE_MEMORY_REGION,
|
||||
MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void npcm7xx_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -214,7 +214,6 @@ static const Property nrf51_soc_properties[] = {
|
|||
DEFINE_PROP_UINT32("sram-size", NRF51State, sram_size, NRF51822_SRAM_SIZE),
|
||||
DEFINE_PROP_UINT32("flash-size", NRF51State, flash_size,
|
||||
NRF51822_FLASH_SIZE),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void nrf51_soc_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -938,7 +938,6 @@ static const Property smmu_dev_properties[] = {
|
|||
DEFINE_PROP_UINT8("bus_num", SMMUState, bus_num, 0),
|
||||
DEFINE_PROP_LINK("primary-bus", SMMUState, primary_bus,
|
||||
TYPE_PCI_BUS, PCIBus *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void smmu_base_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -1985,7 +1985,6 @@ static const Property smmuv3_properties[] = {
|
|||
* Defaults to stage 1
|
||||
*/
|
||||
DEFINE_PROP_STRING("stage", SMMUv3State, stage),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void smmuv3_instance_init(Object *obj)
|
||||
|
|
|
@ -448,7 +448,6 @@ static const Property stellaris_sys_properties[] = {
|
|||
DEFINE_PROP_UINT32("dc2", ssys_state, dc2, 0),
|
||||
DEFINE_PROP_UINT32("dc3", ssys_state, dc3, 0),
|
||||
DEFINE_PROP_UINT32("dc4", ssys_state, dc4, 0),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void stellaris_sys_instance_init(Object *obj)
|
||||
|
|
|
@ -1334,7 +1334,6 @@ static const VMStateDescription vmstate_strongarm_uart_regs = {
|
|||
|
||||
static const Property strongarm_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", StrongARMUARTState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void strongarm_uart_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -975,7 +975,6 @@ static const Property versal_properties[] = {
|
|||
TYPE_CAN_BUS, CanBusState *),
|
||||
DEFINE_PROP_LINK("canbus1", Versal, lpd.iou.canbus[1],
|
||||
TYPE_CAN_BUS, CanBusState *),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void versal_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -867,7 +867,6 @@ static const Property xlnx_zynqmp_props[] = {
|
|||
CanBusState *),
|
||||
DEFINE_PROP_LINK("canbus1", XlnxZynqMPState, canbus[1], TYPE_CAN_BUS,
|
||||
CanBusState *),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void xlnx_zynqmp_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -1326,7 +1326,6 @@ static void ac97_exit(PCIDevice *dev)
|
|||
|
||||
static const Property ac97_properties[] = {
|
||||
DEFINE_AUDIO_PROPERTIES(AC97LinkState, card),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void ac97_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -301,7 +301,6 @@ static const Property adlib_properties[] = {
|
|||
DEFINE_AUDIO_PROPERTIES(AdlibState, card),
|
||||
DEFINE_PROP_UINT32 ("iobase", AdlibState, port, 0x220),
|
||||
DEFINE_PROP_UINT32 ("freq", AdlibState, freq, 44100),
|
||||
DEFINE_PROP_END_OF_LIST (),
|
||||
};
|
||||
|
||||
static void adlib_class_initfn (ObjectClass *klass, void *data)
|
||||
|
|
|
@ -698,7 +698,6 @@ static void asc_init(Object *obj)
|
|||
static const Property asc_properties[] = {
|
||||
DEFINE_AUDIO_PROPERTIES(ASCState, card),
|
||||
DEFINE_PROP_UINT8("asctype", ASCState, type, ASC_TYPE_ASC),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void asc_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -694,7 +694,6 @@ static const Property cs4231a_properties[] = {
|
|||
DEFINE_PROP_UINT32 ("iobase", CSState, port, 0x534),
|
||||
DEFINE_PROP_UINT32 ("irq", CSState, irq, 9),
|
||||
DEFINE_PROP_UINT32 ("dma", CSState, dma, 3),
|
||||
DEFINE_PROP_END_OF_LIST (),
|
||||
};
|
||||
|
||||
static void cs4231a_class_initfn (ObjectClass *klass, void *data)
|
||||
|
|
|
@ -870,7 +870,6 @@ static void es1370_exit(PCIDevice *dev)
|
|||
|
||||
static const Property es1370_properties[] = {
|
||||
DEFINE_AUDIO_PROPERTIES(ES1370State, card),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void es1370_class_init (ObjectClass *klass, void *data)
|
||||
|
|
|
@ -296,7 +296,6 @@ static const Property gus_properties[] = {
|
|||
DEFINE_PROP_UINT32 ("iobase", GUSState, port, 0x240),
|
||||
DEFINE_PROP_UINT32 ("irq", GUSState, emu.gusirq, 7),
|
||||
DEFINE_PROP_UINT32 ("dma", GUSState, emu.gusdma, 3),
|
||||
DEFINE_PROP_END_OF_LIST (),
|
||||
};
|
||||
|
||||
static void gus_class_initfn (ObjectClass *klass, void *data)
|
||||
|
|
|
@ -862,7 +862,6 @@ static const Property hda_audio_properties[] = {
|
|||
DEFINE_PROP_UINT32("debug", HDAAudioState, debug, 0),
|
||||
DEFINE_PROP_BOOL("mixer", HDAAudioState, mixer, true),
|
||||
DEFINE_PROP_BOOL("use-timer", HDAAudioState, use_timer, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void hda_audio_init_output(HDACodecDevice *hda, Error **errp)
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
|
||||
static const Property hda_props[] = {
|
||||
DEFINE_PROP_UINT32("cad", HDACodecDevice, cad, -1),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static const TypeInfo hda_codec_bus_info = {
|
||||
|
@ -1219,7 +1218,6 @@ static const Property intel_hda_properties[] = {
|
|||
DEFINE_PROP_UINT32("debug", IntelHDAState, debug, 0),
|
||||
DEFINE_PROP_ON_OFF_AUTO("msi", IntelHDAState, msi, ON_OFF_AUTO_AUTO),
|
||||
DEFINE_PROP_BOOL("old_msi_addr", IntelHDAState, old_msi_addr, false),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void intel_hda_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -219,7 +219,6 @@ static const Property pcspk_properties[] = {
|
|||
DEFINE_AUDIO_PROPERTIES(PCSpkState, card),
|
||||
DEFINE_PROP_UINT32("iobase", PCSpkState, iobase, 0x61),
|
||||
DEFINE_PROP_BOOL("migrate", PCSpkState, migrate, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void pcspk_class_initfn(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -630,7 +630,6 @@ static const Property pl041_device_properties[] = {
|
|||
/* Non-compact FIFO depth property */
|
||||
DEFINE_PROP_UINT32("nc_fifo_depth", PL041State, fifo_depth,
|
||||
DEFAULT_FIFO_DEPTH),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void pl041_device_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -1447,7 +1447,6 @@ static const Property sb16_properties[] = {
|
|||
DEFINE_PROP_UINT32 ("irq", SB16State, irq, 5),
|
||||
DEFINE_PROP_UINT32 ("dma", SB16State, dma, 1),
|
||||
DEFINE_PROP_UINT32 ("dma16", SB16State, hdma, 5),
|
||||
DEFINE_PROP_END_OF_LIST (),
|
||||
};
|
||||
|
||||
static void sb16_class_initfn (ObjectClass *klass, void *data)
|
||||
|
|
|
@ -461,7 +461,6 @@ static void via_ac97_exit(PCIDevice *dev)
|
|||
|
||||
static const Property via_ac97_properties[] = {
|
||||
DEFINE_AUDIO_PROPERTIES(ViaAC97State, card),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void via_ac97_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -31,7 +31,6 @@ static const Property virtio_snd_pci_properties[] = {
|
|||
DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags,
|
||||
VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true),
|
||||
DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void virtio_snd_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
|
||||
|
|
|
@ -85,7 +85,6 @@ static const Property virtio_snd_properties[] = {
|
|||
VIRTIO_SOUND_STREAM_DEFAULT),
|
||||
DEFINE_PROP_UINT32("chmaps", VirtIOSound, snd_conf.chmaps,
|
||||
VIRTIO_SOUND_CHMAP_DEFAULT),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void
|
||||
|
|
|
@ -708,7 +708,6 @@ void wm8750_set_bclk_in(void *opaque, int new_hz)
|
|||
|
||||
static const Property wm8750_properties[] = {
|
||||
DEFINE_AUDIO_PROPERTIES(WM8750State, card),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void wm8750_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -358,7 +358,6 @@ static void atmega_realize(DeviceState *dev, Error **errp)
|
|||
static const Property atmega_props[] = {
|
||||
DEFINE_PROP_UINT64("xtal-frequency-hz", AtmegaMcuState,
|
||||
xtal_freq_hz, 0),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void atmega_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -296,7 +296,6 @@ static const Property isa_fdc_properties[] = {
|
|||
DEFINE_PROP_SIGNED("fallback", FDCtrlISABus, state.fallback,
|
||||
FLOPPY_DRIVE_TYPE_288, qdev_prop_fdc_drive_type,
|
||||
FloppyDriveType),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void isabus_fdc_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -206,7 +206,6 @@ static const Property sysbus_fdc_properties[] = {
|
|||
DEFINE_PROP_SIGNED("fallback", FDCtrlSysBus, state.fallback,
|
||||
FLOPPY_DRIVE_TYPE_144, qdev_prop_fdc_drive_type,
|
||||
FloppyDriveType),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void sysbus_fdc_class_init(ObjectClass *klass, void *data)
|
||||
|
@ -230,7 +229,6 @@ static const Property sun4m_fdc_properties[] = {
|
|||
DEFINE_PROP_SIGNED("fallback", FDCtrlSysBus, state.fallback,
|
||||
FLOPPY_DRIVE_TYPE_144, qdev_prop_fdc_drive_type,
|
||||
FloppyDriveType),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void sun4m_fdc_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -460,7 +460,6 @@ static const Property floppy_drive_properties[] = {
|
|||
DEFINE_PROP_SIGNED("drive-type", FloppyDrive, type,
|
||||
FLOPPY_DRIVE_TYPE_AUTO, qdev_prop_fdc_drive_type,
|
||||
FloppyDriveType),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void floppy_drive_realize(DeviceState *qdev, Error **errp)
|
||||
|
|
|
@ -1729,7 +1729,6 @@ static const Property m25p80_properties[] = {
|
|||
DEFINE_PROP_UINT8("spansion-cr3nv", Flash, spansion_cr3nv, 0x2),
|
||||
DEFINE_PROP_UINT8("spansion-cr4nv", Flash, spansion_cr4nv, 0x10),
|
||||
DEFINE_PROP_DRIVE("drive", Flash, blk),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static int m25p80_pre_load(void *opaque)
|
||||
|
|
|
@ -449,7 +449,6 @@ static const Property nand_properties[] = {
|
|||
DEFINE_PROP_UINT8("manufacturer_id", NANDFlashState, manf_id, 0),
|
||||
DEFINE_PROP_UINT8("chip_id", NANDFlashState, chip_id, 0),
|
||||
DEFINE_PROP_DRIVE("drive", NANDFlashState, blk),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void nand_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -932,7 +932,6 @@ static const Property pflash_cfi01_properties[] = {
|
|||
DEFINE_PROP_STRING("name", PFlashCFI01, name),
|
||||
DEFINE_PROP_BOOL("old-multiple-chip-handling", PFlashCFI01,
|
||||
old_multiple_chip_handling, false),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void pflash_cfi01_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -959,7 +959,6 @@ static const Property pflash_cfi02_properties[] = {
|
|||
DEFINE_PROP_UINT16("unlock-addr0", PFlashCFI02, unlock_addr0, 0),
|
||||
DEFINE_PROP_UINT16("unlock-addr1", PFlashCFI02, unlock_addr1, 0),
|
||||
DEFINE_PROP_STRING("name", PFlashCFI02, name),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void pflash_cfi02_unrealize(DeviceState *dev)
|
||||
|
|
|
@ -169,7 +169,6 @@ static const BlockDevOps swim_block_ops = {
|
|||
static const Property swim_drive_properties[] = {
|
||||
DEFINE_PROP_INT32("unit", SWIMDrive, unit, -1),
|
||||
DEFINE_BLOCK_PROPERTIES(SWIMDrive, conf),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void swim_drive_realize(DeviceState *qdev, Error **errp)
|
||||
|
|
|
@ -581,7 +581,6 @@ static const Property vhost_user_blk_properties[] = {
|
|||
VIRTIO_BLK_F_DISCARD, true),
|
||||
DEFINE_PROP_BIT64("write-zeroes", VHostUserBlk, parent_obj.host_features,
|
||||
VIRTIO_BLK_F_WRITE_ZEROES, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void vhost_user_blk_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -2014,7 +2014,6 @@ static const Property virtio_blk_properties[] = {
|
|||
conf.max_write_zeroes_sectors, BDRV_REQUEST_MAX_SECTORS),
|
||||
DEFINE_PROP_BOOL("x-enable-wce-if-config-wce", VirtIOBlock,
|
||||
conf.x_enable_wce_if_config_wce, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void virtio_blk_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -674,7 +674,6 @@ static const Property xen_block_props[] = {
|
|||
props.max_ring_page_order, 4),
|
||||
DEFINE_PROP_LINK("iothread", XenBlockDevice, props.iothread,
|
||||
TYPE_IOTHREAD, IOThread *),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void xen_block_class_init(ObjectClass *class, void *data)
|
||||
|
|
|
@ -261,7 +261,6 @@ static const MemoryRegionOps avr_usart_ops = {
|
|||
|
||||
static const Property avr_usart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", AVRUsartState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void avr_usart_pr(void *opaque, int irq, int level)
|
||||
|
|
|
@ -292,7 +292,6 @@ static void bcm2835_aux_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
static const Property bcm2835_aux_props[] = {
|
||||
DEFINE_PROP_CHR("chardev", BCM2835AuxState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void bcm2835_aux_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -619,7 +619,6 @@ static const VMStateDescription vmstate_cadence_uart = {
|
|||
|
||||
static const Property cadence_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", CadenceUARTState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void cadence_uart_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -380,7 +380,6 @@ static const VMStateDescription cmsdk_apb_uart_vmstate = {
|
|||
static const Property cmsdk_apb_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", CMSDKAPBUART, chr),
|
||||
DEFINE_PROP_UINT32("pclk-frq", CMSDKAPBUART, pclk_frq, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void cmsdk_apb_uart_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -118,7 +118,6 @@ static const Property debugcon_isa_properties[] = {
|
|||
DEFINE_PROP_UINT32("iobase", ISADebugconState, iobase, 0xe9),
|
||||
DEFINE_PROP_CHR("chardev", ISADebugconState, state.chr),
|
||||
DEFINE_PROP_UINT32("readback", ISADebugconState, state.readback, 0xe9),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void debugcon_isa_class_initfn(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -174,7 +174,6 @@ static const VMStateDescription vmstate_digic_uart = {
|
|||
|
||||
static const Property digic_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", DigicUartState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void digic_uart_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -1099,7 +1099,6 @@ static const Property escc_properties[] = {
|
|||
DEFINE_PROP_CHR("chrB", ESCCState, chn[0].chr),
|
||||
DEFINE_PROP_CHR("chrA", ESCCState, chn[1].chr),
|
||||
DEFINE_PROP_STRING("chnA-sunkbd-layout", ESCCState, chn[1].sunkbd_layout),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void escc_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -709,7 +709,6 @@ static const Property exynos4210_uart_properties[] = {
|
|||
DEFINE_PROP_UINT32("channel", Exynos4210UartState, channel, 0),
|
||||
DEFINE_PROP_UINT32("rx-size", Exynos4210UartState, rx.size, 16),
|
||||
DEFINE_PROP_UINT32("tx-size", Exynos4210UartState, tx.size, 16),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void exynos4210_uart_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -243,7 +243,6 @@ static const VMStateDescription vmstate_goldfish_tty = {
|
|||
|
||||
static const Property goldfish_tty_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", GoldfishTTYState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void goldfish_tty_instance_init(Object *obj)
|
||||
|
|
|
@ -279,7 +279,6 @@ static void grlib_apbuart_reset(DeviceState *d)
|
|||
|
||||
static const Property grlib_apbuart_properties[] = {
|
||||
DEFINE_PROP_CHR("chrdev", UART, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void grlib_apbuart_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -510,7 +510,6 @@ static const VMStateDescription vmstate_ibex_uart = {
|
|||
|
||||
static const Property ibex_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", IbexUartState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void ibex_uart_init(Object *obj)
|
||||
|
|
|
@ -440,7 +440,6 @@ static void imx_serial_init(Object *obj)
|
|||
|
||||
static const Property imx_serial_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", IMXSerialState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void imx_serial_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -567,7 +567,6 @@ static const Property ipoctal_properties[] = {
|
|||
DEFINE_PROP_CHR("chardev5", IPOctalState, ch[5].dev),
|
||||
DEFINE_PROP_CHR("chardev6", IPOctalState, ch[6].dev),
|
||||
DEFINE_PROP_CHR("chardev7", IPOctalState, ch[7].dev),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void ipoctal_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -314,7 +314,6 @@ static void mcf_uart_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
static const Property mcf_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", mcf_uart_state, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void mcf_uart_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -306,7 +306,6 @@ static const VMStateDescription nrf51_uart_vmstate = {
|
|||
|
||||
static const Property nrf51_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", NRF51UARTState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void nrf51_uart_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -608,7 +608,6 @@ static const Property parallel_isa_properties[] = {
|
|||
DEFINE_PROP_UINT32("iobase", ISAParallelState, iobase, -1),
|
||||
DEFINE_PROP_UINT32("irq", ISAParallelState, isairq, 7),
|
||||
DEFINE_PROP_CHR("chardev", ISAParallelState, state.chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void parallel_isa_class_initfn(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -606,7 +606,6 @@ static const VMStateDescription vmstate_pl011 = {
|
|||
static const Property pl011_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", PL011State, chr),
|
||||
DEFINE_PROP_BOOL("migrate-clk", PL011State, migrate_clk, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void pl011_init(Object *obj)
|
||||
|
|
|
@ -322,7 +322,6 @@ static const VMStateDescription vmstate_rsci = {
|
|||
static const Property rsci_properties[] = {
|
||||
DEFINE_PROP_UINT64("input-freq", RSCIState, input_freq, 0),
|
||||
DEFINE_PROP_CHR("chardev", RSCIState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void rsci_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -337,7 +337,6 @@ static const Property console_properties[] = {
|
|||
DEFINE_PROP_CHR("chardev", SCLPConsoleLM, chr),
|
||||
DEFINE_PROP_UINT32("write_errors", SCLPConsoleLM, write_errors, 0),
|
||||
DEFINE_PROP_BOOL("echo", SCLPConsoleLM, echo, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void console_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -253,7 +253,6 @@ static void console_reset(DeviceState *dev)
|
|||
|
||||
static const Property console_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", SCLPConsole, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void console_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -117,7 +117,6 @@ static const Property serial_isa_properties[] = {
|
|||
DEFINE_PROP_UINT32("index", ISASerialState, index, -1),
|
||||
DEFINE_PROP_UINT32("iobase", ISASerialState, iobase, -1),
|
||||
DEFINE_PROP_UINT32("irq", ISASerialState, isairq, -1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void serial_isa_class_initfn(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -132,7 +132,6 @@ static const Property serial_mm_properties[] = {
|
|||
*/
|
||||
DEFINE_PROP_UINT8("regshift", SerialMM, regshift, 0),
|
||||
DEFINE_PROP_UINT8("endianness", SerialMM, endianness, DEVICE_NATIVE_ENDIAN),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void serial_mm_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -136,7 +136,6 @@ static const Property multi_2x_serial_pci_properties[] = {
|
|||
DEFINE_PROP_CHR("chardev1", PCIMultiSerialState, state[0].chr),
|
||||
DEFINE_PROP_CHR("chardev2", PCIMultiSerialState, state[1].chr),
|
||||
DEFINE_PROP_UINT8("prog_if", PCIMultiSerialState, prog_if, 0x02),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static const Property multi_4x_serial_pci_properties[] = {
|
||||
|
@ -145,7 +144,6 @@ static const Property multi_4x_serial_pci_properties[] = {
|
|||
DEFINE_PROP_CHR("chardev3", PCIMultiSerialState, state[2].chr),
|
||||
DEFINE_PROP_CHR("chardev4", PCIMultiSerialState, state[3].chr),
|
||||
DEFINE_PROP_UINT8("prog_if", PCIMultiSerialState, prog_if, 0x02),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void multi_2x_serial_pci_class_initfn(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -83,7 +83,6 @@ static const VMStateDescription vmstate_pci_serial = {
|
|||
|
||||
static const Property serial_pci_properties[] = {
|
||||
DEFINE_PROP_UINT8("prog_if", PCISerialState, prog_if, 0x02),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void serial_pci_class_initfn(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -968,7 +968,6 @@ static const Property serial_properties[] = {
|
|||
DEFINE_PROP_CHR("chardev", SerialState, chr),
|
||||
DEFINE_PROP_UINT32("baudbase", SerialState, baudbase, 115200),
|
||||
DEFINE_PROP_BOOL("wakeup", SerialState, wakeup, false),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void serial_class_init(ObjectClass *klass, void* data)
|
||||
|
|
|
@ -450,7 +450,6 @@ static void sh_serial_init(Object *obj)
|
|||
static const Property sh_serial_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", SHSerialState, chr),
|
||||
DEFINE_PROP_UINT8("features", SHSerialState, feat, 0),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void sh_serial_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -159,7 +159,6 @@ static void shakti_uart_instance_init(Object *obj)
|
|||
|
||||
static const Property shakti_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", ShaktiUartState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void shakti_uart_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -253,7 +253,6 @@ static int sifive_uart_be_change(void *opaque)
|
|||
|
||||
static const Property sifive_uart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", SiFiveUARTState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void sifive_uart_init(Object *obj)
|
||||
|
|
|
@ -166,7 +166,6 @@ void spapr_vty_create(SpaprVioBus *bus, Chardev *chardev)
|
|||
static const Property spapr_vty_properties[] = {
|
||||
DEFINE_SPAPR_PROPERTIES(SpaprVioVty, sdev),
|
||||
DEFINE_PROP_CHR("chardev", SpaprVioVty, chardev),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static const VMStateDescription vmstate_spapr_vty = {
|
||||
|
|
|
@ -201,7 +201,6 @@ static const MemoryRegionOps stm32f2xx_usart_ops = {
|
|||
|
||||
static const Property stm32f2xx_usart_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", STM32F2XXUsartState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void stm32f2xx_usart_init(Object *obj)
|
||||
|
|
|
@ -536,7 +536,6 @@ static const MemoryRegionOps stm32l4x5_usart_base_ops = {
|
|||
|
||||
static const Property stm32l4x5_usart_base_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", Stm32l4x5UsartBaseState, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void stm32l4x5_usart_base_init(Object *obj)
|
||||
|
|
|
@ -285,7 +285,6 @@ static int write_payload_3270(EmulatedCcw3270Device *dev, uint8_t cmd)
|
|||
|
||||
static const Property terminal_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", Terminal3270, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static const VMStateDescription terminal3270_vmstate = {
|
||||
|
|
|
@ -276,7 +276,6 @@ static const TypeInfo virtconsole_info = {
|
|||
|
||||
static const Property virtserialport_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", VirtConsole, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void virtserialport_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -838,7 +838,6 @@ static void virtser_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent);
|
|||
static const Property virtser_props[] = {
|
||||
DEFINE_PROP_UINT32("nr", VirtIOSerialPort, id, VIRTIO_CONSOLE_BAD_ID),
|
||||
DEFINE_PROP_STRING("name", VirtIOSerialPort, name),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void virtser_bus_class_init(ObjectClass *klass, void *data)
|
||||
|
@ -1158,7 +1157,6 @@ static const Property virtio_serial_properties[] = {
|
|||
31),
|
||||
DEFINE_PROP_BIT64("emergency-write", VirtIOSerial, host_features,
|
||||
VIRTIO_CONSOLE_F_EMERG_WRITE, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void virtio_serial_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -490,7 +490,6 @@ static char *xen_console_get_frontend_path(XenDevice *xendev, Error **errp)
|
|||
static const Property xen_console_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", XenConsole, chr),
|
||||
DEFINE_PROP_INT32("idx", XenConsole, dev, -1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void xen_console_class_init(ObjectClass *class, void *data)
|
||||
|
|
|
@ -178,7 +178,6 @@ static const MemoryRegionOps uart_ops = {
|
|||
|
||||
static const Property xilinx_uartlite_properties[] = {
|
||||
DEFINE_PROP_CHR("chardev", XilinxUARTLite, chr),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void uart_rx(void *opaque, const uint8_t *buf, int size)
|
||||
|
|
|
@ -187,7 +187,6 @@ static const Property generic_loader_props[] = {
|
|||
DEFINE_PROP_UINT32("cpu-num", GenericLoaderState, cpu_num, CPU_NONE),
|
||||
DEFINE_PROP_BOOL("force-raw", GenericLoaderState, force_raw, false),
|
||||
DEFINE_PROP_STRING("file", GenericLoaderState, file),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void generic_loader_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -116,7 +116,6 @@ static const Property guest_loader_props[] = {
|
|||
DEFINE_PROP_STRING("kernel", GuestLoaderState, kernel),
|
||||
DEFINE_PROP_STRING("bootargs", GuestLoaderState, args),
|
||||
DEFINE_PROP_STRING("initrd", GuestLoaderState, initrd),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void guest_loader_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -117,7 +117,6 @@ static const VMStateDescription vmstate_or_irq = {
|
|||
|
||||
static const Property or_irq_properties[] = {
|
||||
DEFINE_PROP_UINT16("num-lines", OrIRQState, num_lines, 1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void or_irq_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -207,7 +207,6 @@ static void platform_bus_realize(DeviceState *dev, Error **errp)
|
|||
static const Property platform_bus_properties[] = {
|
||||
DEFINE_PROP_UINT32("num_irqs", PlatformBusDevice, num_irqs, 0),
|
||||
DEFINE_PROP_UINT32("mmio_size", PlatformBusDevice, mmio_size, 0),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void platform_bus_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -61,7 +61,6 @@ static void split_irq_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
static const Property split_irq_properties[] = {
|
||||
DEFINE_PROP_UINT16("num-lines", SplitIRQ, num_lines, 1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void split_irq_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -153,7 +153,6 @@ static const Property a15mp_priv_properties[] = {
|
|||
* Other boards may differ and should set this property appropriately.
|
||||
*/
|
||||
DEFINE_PROP_UINT32("num-irq", A15MPPrivState, num_irq, 160),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void a15mp_priv_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -167,7 +167,6 @@ static const Property a9mp_priv_properties[] = {
|
|||
* Other boards may differ and should set this property appropriately.
|
||||
*/
|
||||
DEFINE_PROP_UINT32("num-irq", A9MPPrivState, num_irq, 96),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void a9mp_priv_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -142,7 +142,6 @@ static const Property mpcore_priv_properties[] = {
|
|||
* has more IRQ lines than the kernel expects.
|
||||
*/
|
||||
DEFINE_PROP_UINT32("num-irq", ARM11MPCorePriveState, num_irq, 64),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void mpcore_priv_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
static const Property cpu_cluster_properties[] = {
|
||||
DEFINE_PROP_UINT32("cluster-id", CPUClusterState, cluster_id, 0),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
typedef struct CallbackData {
|
||||
|
|
|
@ -110,7 +110,6 @@ static void mpcore_rirq_init(Object *obj)
|
|||
|
||||
static const Property mpcore_rirq_properties[] = {
|
||||
DEFINE_PROP_UINT32("num-cpu", mpcore_rirq_state, num_cpu, 1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void mpcore_rirq_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -68,7 +68,6 @@ static void cswmbcci_exit(PCIDevice *pci_dev)
|
|||
static const Property cxl_switch_cci_props[] = {
|
||||
DEFINE_PROP_LINK("target", CSWMBCCIDev,
|
||||
target, TYPE_CXL_USP, PCIDevice *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void cswmbcci_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -1478,7 +1478,6 @@ static const Property artist_properties[] = {
|
|||
DEFINE_PROP_UINT16("width", ARTISTState, width, 1280),
|
||||
DEFINE_PROP_UINT16("height", ARTISTState, height, 1024),
|
||||
DEFINE_PROP_UINT16("depth", ARTISTState, depth, 8),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void artist_reset(DeviceState *qdev)
|
||||
|
|
|
@ -1047,7 +1047,6 @@ static const Property ati_vga_properties[] = {
|
|||
DEFINE_PROP_BOOL("guest_hwcursor", ATIVGAState, cursor_guest_mode, false),
|
||||
/* this is a debug option, prefer PROP_UINT over PROP_BIT for simplicity */
|
||||
DEFINE_PROP_UINT8("x-pixman", ATIVGAState, use_pixman, DEFAULT_X_PIXMAN),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void ati_vga_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -440,7 +440,6 @@ static const Property bcm2835_fb_props[] = {
|
|||
initial_config.pixo, 1), /* 1=RGB, 0=BGR */
|
||||
DEFINE_PROP_UINT32("alpha", BCM2835FBState,
|
||||
initial_config.alpha, 2), /* alpha ignored */
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void bcm2835_fb_class_init(ObjectClass *klass, void *data)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue