[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 28/32] qdev/prop: convert vga.c to helper macros.
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 28/32] qdev/prop: convert vga.c to helper macros. |
Date: |
Mon, 3 Aug 2009 17:35:44 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/vga.c | 13 +++----------
hw/vga_int.h | 4 ++--
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/hw/vga.c b/hw/vga.c
index 4d74ffe..25e5d6c 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(),
}
};
diff --git a/hw/vga_int.h b/hw/vga_int.h
index 631b1b0..651e6f3 100644
--- a/hw/vga_int.h
+++ b/hw/vga_int.h
@@ -107,8 +107,8 @@ typedef struct VGACommonState {
uint32_t map_addr;
uint32_t map_end;
uint32_t lfb_vram_mapped; /* whether 0xa0000 is mapped as ram */
- unsigned long bios_offset;
- unsigned int bios_size;
+ uint32_t bios_offset;
+ uint32_t bios_size;
int it_shift;
PCIDevice *pci_dev;
uint32_t latch;
--
1.6.2.5
- [Qemu-devel] [PATCH 10/32] qdev/prop: convert integratorcp.c to helper macros., (continued)
- [Qemu-devel] [PATCH 10/32] qdev/prop: convert integratorcp.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 24/32] qdev/prop: convert syborg_pointer.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 08/32] qdev/prop: convert etraxfs_pic.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 11/32] qdev/prop: convert iommu.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 09/32] qdev/prop: convert i2c.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 04/32] qdev/prop: convert arm_sysctl.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 22/32] qdev/prop: convert syborg_interrupt.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 18/32] qdev/prop: convert sparc32_dma.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 16/32] qdev/prop: convert slavio_timer.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 19/32] qdev/prop: convert sun4m.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 28/32] qdev/prop: convert vga.c to helper macros.,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 15/32] qdev/prop: convert slavio_intctl.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 12/32] qdev/prop: convert m48t59.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 07/32] qdev/prop: convert escc.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 23/32] qdev/prop: convert syborg_keyboard.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 31/32] qdev/prop: convert xilinx_intc.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 21/32] qdev/prop: convert syborg_fb.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 20/32] qdev/prop: convert sun4u.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 29/32] qdev/prop: convert virtio-pci.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 25/32] qdev/prop: convert syborg_serial.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 17/32] qdev/prop: convert smbus_eeprom.c to helper macros., Gerd Hoffmann, 2009/08/03