mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/display: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
+1
-1
@@ -1474,7 +1474,7 @@ static const VMStateDescription vmstate_artist = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property artist_properties[] = {
|
||||
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),
|
||||
|
||||
+1
-1
@@ -1039,7 +1039,7 @@ static void ati_vga_exit(PCIDevice *dev)
|
||||
graphic_console_close(s->vga.con);
|
||||
}
|
||||
|
||||
static Property ati_vga_properties[] = {
|
||||
static const Property ati_vga_properties[] = {
|
||||
DEFINE_PROP_UINT32("vgamem_mb", ATIVGAState, vga.vram_size_mb, 16),
|
||||
DEFINE_PROP_STRING("model", ATIVGAState, model),
|
||||
DEFINE_PROP_UINT16("x-device-id", ATIVGAState, dev_id,
|
||||
|
||||
@@ -429,7 +429,7 @@ static void bcm2835_fb_realize(DeviceState *dev, Error **errp)
|
||||
qemu_console_resize(s->con, s->config.xres, s->config.yres);
|
||||
}
|
||||
|
||||
static Property bcm2835_fb_props[] = {
|
||||
static const Property bcm2835_fb_props[] = {
|
||||
DEFINE_PROP_UINT32("vcram-base", BCM2835FBState, vcram_base, 0),/*required*/
|
||||
DEFINE_PROP_UINT32("vcram-size", BCM2835FBState, vcram_size,
|
||||
DEFAULT_VCRAM_SIZE),
|
||||
|
||||
@@ -345,7 +345,7 @@ static void bochs_display_exit(PCIDevice *dev)
|
||||
graphic_console_close(s->con);
|
||||
}
|
||||
|
||||
static Property bochs_display_properties[] = {
|
||||
static const Property bochs_display_properties[] = {
|
||||
DEFINE_PROP_SIZE("vgamem", BochsDisplayState, vgamem, 16 * MiB),
|
||||
DEFINE_PROP_BOOL("edid", BochsDisplayState, enable_edid, true),
|
||||
DEFINE_EDID_PROPERTIES(BochsDisplayState, edid_info),
|
||||
|
||||
+1
-1
@@ -361,7 +361,7 @@ static void cg3_reset(DeviceState *d)
|
||||
qemu_irq_lower(s->irq);
|
||||
}
|
||||
|
||||
static Property cg3_properties[] = {
|
||||
static const Property cg3_properties[] = {
|
||||
DEFINE_PROP_UINT32("vram-size", CG3State, vram_size, -1),
|
||||
DEFINE_PROP_UINT16("width", CG3State, width, -1),
|
||||
DEFINE_PROP_UINT16("height", CG3State, height, -1),
|
||||
|
||||
@@ -2982,7 +2982,7 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp)
|
||||
}
|
||||
}
|
||||
|
||||
static Property pci_vga_cirrus_properties[] = {
|
||||
static const Property pci_vga_cirrus_properties[] = {
|
||||
DEFINE_PROP_UINT32("vgamem_mb", struct PCICirrusVGAState,
|
||||
cirrus_vga.vga.vram_size_mb, 4),
|
||||
DEFINE_PROP_BOOL("blitter", struct PCICirrusVGAState,
|
||||
|
||||
@@ -69,7 +69,7 @@ static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp)
|
||||
/* FIXME not qdev yet */
|
||||
}
|
||||
|
||||
static Property isa_cirrus_vga_properties[] = {
|
||||
static const Property isa_cirrus_vga_properties[] = {
|
||||
DEFINE_PROP_UINT32("vgamem_mb", struct ISACirrusVGAState,
|
||||
cirrus_vga.vga.vram_size_mb, 4),
|
||||
DEFINE_PROP_BOOL("blitter", struct ISACirrusVGAState,
|
||||
|
||||
@@ -1925,7 +1925,7 @@ static const GraphicHwOps exynos4210_fimd_ops = {
|
||||
.gfx_update = exynos4210_fimd_update,
|
||||
};
|
||||
|
||||
static Property exynos4210_fimd_properties[] = {
|
||||
static const Property exynos4210_fimd_properties[] = {
|
||||
DEFINE_PROP_LINK("framebuffer-memory", Exynos4210fimdState, fbmem,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
+1
-1
@@ -512,7 +512,7 @@ static void g364fb_sysbus_reset(DeviceState *d)
|
||||
g364fb_reset(&s->g364);
|
||||
}
|
||||
|
||||
static Property g364fb_sysbus_properties[] = {
|
||||
static const Property g364fb_sysbus_properties[] = {
|
||||
DEFINE_PROP_UINT32("vram_size", G364SysBusState, g364.vram_size, 8 * MiB),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
@@ -95,7 +95,7 @@ static const VMStateDescription vmstate_i2c_ddc = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property i2c_ddc_properties[] = {
|
||||
static const Property i2c_ddc_properties[] = {
|
||||
DEFINE_EDID_PROPERTIES(I2CDDCState, edid_info),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
+2
-2
@@ -758,7 +758,7 @@ static void macfb_nubus_reset(DeviceState *d)
|
||||
macfb_reset(&s->macfb);
|
||||
}
|
||||
|
||||
static Property macfb_sysbus_properties[] = {
|
||||
static const Property macfb_sysbus_properties[] = {
|
||||
DEFINE_PROP_UINT32("width", MacfbSysBusState, macfb.width, 640),
|
||||
DEFINE_PROP_UINT32("height", MacfbSysBusState, macfb.height, 480),
|
||||
DEFINE_PROP_UINT8("depth", MacfbSysBusState, macfb.depth, 8),
|
||||
@@ -777,7 +777,7 @@ static const VMStateDescription vmstate_macfb_sysbus = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property macfb_nubus_properties[] = {
|
||||
static const Property macfb_nubus_properties[] = {
|
||||
DEFINE_PROP_UINT32("width", MacfbNubusState, macfb.width, 640),
|
||||
DEFINE_PROP_UINT32("height", MacfbNubusState, macfb.height, 480),
|
||||
DEFINE_PROP_UINT8("depth", MacfbNubusState, macfb.depth, 8),
|
||||
|
||||
+1
-1
@@ -535,7 +535,7 @@ static const GraphicHwOps pl110_gfx_ops = {
|
||||
.gfx_update = pl110_update_display,
|
||||
};
|
||||
|
||||
static Property pl110_properties[] = {
|
||||
static const Property pl110_properties[] = {
|
||||
DEFINE_PROP_LINK("framebuffer-memory", PL110State, fbmem,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
+1
-1
@@ -2458,7 +2458,7 @@ static const VMStateDescription qxl_vmstate = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property qxl_properties[] = {
|
||||
static const Property qxl_properties[] = {
|
||||
DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size, 64 * MiB),
|
||||
DEFINE_PROP_UINT64("vram_size", PCIQXLDevice, vram32_size, 64 * MiB),
|
||||
DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision,
|
||||
|
||||
@@ -60,7 +60,7 @@ static const VMStateDescription ramfb_dev_vmstate = {
|
||||
}
|
||||
};
|
||||
|
||||
static Property ramfb_properties[] = {
|
||||
static const Property ramfb_properties[] = {
|
||||
DEFINE_PROP_BOOL("x-migrate", RAMFBStandaloneState, migrate, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
+2
-2
@@ -2054,7 +2054,7 @@ static void sm501_realize_sysbus(DeviceState *dev, Error **errp)
|
||||
/* TODO : chain irq to IRL */
|
||||
}
|
||||
|
||||
static Property sm501_sysbus_properties[] = {
|
||||
static const Property sm501_sysbus_properties[] = {
|
||||
DEFINE_PROP_UINT32("vram-size", SM501SysBusState, vram_size, 0),
|
||||
/* this a debug option, prefer PROP_UINT over PROP_BIT for simplicity */
|
||||
DEFINE_PROP_UINT8("x-pixman", SM501SysBusState, state.use_pixman, DEFAULT_X_PIXMAN),
|
||||
@@ -2143,7 +2143,7 @@ static void sm501_realize_pci(PCIDevice *dev, Error **errp)
|
||||
&s->state.mmio_region);
|
||||
}
|
||||
|
||||
static Property sm501_pci_properties[] = {
|
||||
static const Property sm501_pci_properties[] = {
|
||||
DEFINE_PROP_UINT32("vram-size", SM501PCIState, vram_size, 64 * MiB),
|
||||
DEFINE_PROP_UINT8("x-pixman", SM501PCIState, state.use_pixman, DEFAULT_X_PIXMAN),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
+1
-1
@@ -879,7 +879,7 @@ static void tcx_realizefn(DeviceState *dev, Error **errp)
|
||||
qemu_console_resize(s->con, s->width, s->height);
|
||||
}
|
||||
|
||||
static Property tcx_properties[] = {
|
||||
static const Property tcx_properties[] = {
|
||||
DEFINE_PROP_UINT32("vram_size", TCXState, vram_size, -1),
|
||||
DEFINE_PROP_UINT16("width", TCXState, width, -1),
|
||||
DEFINE_PROP_UINT16("height", TCXState, height, -1),
|
||||
|
||||
@@ -88,7 +88,7 @@ static void vga_isa_realizefn(DeviceState *dev, Error **errp)
|
||||
rom_add_vga(VGABIOS_FILENAME);
|
||||
}
|
||||
|
||||
static Property vga_isa_properties[] = {
|
||||
static const Property vga_isa_properties[] = {
|
||||
DEFINE_PROP_UINT32("vgamem_mb", ISAVGAState, state.vram_size_mb, 8),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
@@ -111,7 +111,7 @@ static void vga_mmio_realizefn(DeviceState *dev, Error **errp)
|
||||
s->vga.con = graphic_console_init(dev, 0, s->vga.hw_ops, &s->vga);
|
||||
}
|
||||
|
||||
static Property vga_mmio_properties[] = {
|
||||
static const Property vga_mmio_properties[] = {
|
||||
DEFINE_PROP_UINT8("it_shift", VGAMmioState, it_shift, 0),
|
||||
DEFINE_PROP_UINT32("vgamem_mb", VGAMmioState, vga.vram_size_mb, 8),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
||||
@@ -330,7 +330,7 @@ static void pci_secondary_vga_reset(DeviceState *dev)
|
||||
vga_common_reset(&d->vga);
|
||||
}
|
||||
|
||||
static Property vga_pci_properties[] = {
|
||||
static const Property vga_pci_properties[] = {
|
||||
DEFINE_PROP_UINT32("vgamem_mb", PCIVGAState, vga.vram_size_mb, 16),
|
||||
DEFINE_PROP_BIT("mmio", PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_MMIO, true),
|
||||
DEFINE_PROP_BIT("qemu-extended-regs",
|
||||
@@ -342,7 +342,7 @@ static Property vga_pci_properties[] = {
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static Property secondary_pci_properties[] = {
|
||||
static const Property secondary_pci_properties[] = {
|
||||
DEFINE_PROP_UINT32("vgamem_mb", PCIVGAState, vga.vram_size_mb, 16),
|
||||
DEFINE_PROP_BIT("qemu-extended-regs",
|
||||
PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_QEXT, true),
|
||||
|
||||
@@ -645,7 +645,7 @@ static struct vhost_dev *vhost_user_gpu_get_vhost(VirtIODevice *vdev)
|
||||
return g->vhost ? &g->vhost->dev : NULL;
|
||||
}
|
||||
|
||||
static Property vhost_user_gpu_properties[] = {
|
||||
static const Property vhost_user_gpu_properties[] = {
|
||||
VIRTIO_GPU_BASE_PROPERTIES(VhostUserGPU, parent_obj.conf),
|
||||
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