aboutsummaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:44 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:26 -0500
commitdf59cbc6e2ff26d8fb4ffeea9742e9441ff1be35 (patch)
tree2833ba154c0d9537bc6b9e02dce4d149e4ac89b4 /hw/vga.c
parent53dad4992c700671d2f3d1157b489804bf0bca47 (diff)
qdev/prop: convert vga.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 53b5ff6d0d..4a0f197593 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2533,16 +2533,9 @@ static PCIDeviceInfo vga_info = {
.init = pci_vga_initfn,
.config_write = pci_vga_write_config,
.qdev.props = (Property[]) {
- {
- .name = "bios-offset",
- .info = &qdev_prop_hex32,
- .offset = offsetof(PCIVGAState, vga_state.bios_offset),
- },{
- .name = "bios-size",
- .info = &qdev_prop_hex32,
- .offset = offsetof(PCIVGAState, vga_state.bios_size),
- },
- {/* end of list */}
+ DEFINE_PROP_HEX32("bios-offset", PCIVGAState, vga_state.bios_offset, 0),
+ DEFINE_PROP_HEX32("bios-size", PCIVGAState, vga_state.bios_size, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};