diff options
Diffstat (limited to 'hw/vga.c')
-rw-r--r-- | hw/vga.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -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(), } }; |