[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/26] vga: Rename vga_state -> vga
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 12/26] vga: Rename vga_state -> vga |
Date: |
Mon, 24 Aug 2009 18:42:46 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
hw/vga.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/hw/vga.c b/hw/vga.c
index 463276e..35350f1 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2227,7 +2227,7 @@ static int vga_load(QEMUFile *f, void *opaque, int
version_id)
typedef struct PCIVGAState {
PCIDevice dev;
- VGAState vga_state;
+ VGAState vga;
} PCIVGAState;
void vga_dirty_log_start(VGAState *s)
@@ -2245,7 +2245,7 @@ static void vga_map(PCIDevice *pci_dev, int region_num,
uint32_t addr, uint32_t size, int type)
{
PCIVGAState *d = (PCIVGAState *)pci_dev;
- VGAState *s = &d->vga_state;
+ VGAState *s = &d->vga;
if (region_num == PCI_ROM_SLOT) {
cpu_register_physical_memory(addr, s->bios_size, s->bios_offset);
} else {
@@ -2479,7 +2479,7 @@ static void pci_vga_write_config(PCIDevice *d,
uint32_t address, uint32_t val, int len)
{
PCIVGAState *pvs = container_of(d, PCIVGAState, dev);
- VGAState *s = &pvs->vga_state;
+ VGAState *s = &pvs->vga;
pci_default_write_config(d, address, val, len);
if (s->map_addr && pvs->dev.io_regions[0].addr == -1)
@@ -2489,7 +2489,7 @@ static void pci_vga_write_config(PCIDevice *d,
static void pci_vga_initfn(PCIDevice *dev)
{
PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev);
- VGAState *s = &d->vga_state;
+ VGAState *s = &d->vga;
uint8_t *pci_conf = d->dev.config;
// vga + console init
@@ -2539,8 +2539,8 @@ static PCIDeviceInfo vga_info = {
.init = pci_vga_initfn,
.config_write = pci_vga_write_config,
.qdev.props = (Property[]) {
- DEFINE_PROP_HEX32("bios-offset", PCIVGAState, vga_state.bios_offset,
0),
- DEFINE_PROP_HEX32("bios-size", PCIVGAState, vga_state.bios_size,
0),
+ DEFINE_PROP_HEX32("bios-offset", PCIVGAState, vga.bios_offset, 0),
+ DEFINE_PROP_HEX32("bios-size", PCIVGAState, vga.bios_size, 0),
DEFINE_PROP_END_OF_LIST(),
}
};
--
1.6.2.5
- [Qemu-devel] [PATCH 01/26] eepro100: convert casts to DO_UPCAST(), (continued)
- [Qemu-devel] [PATCH 01/26] eepro100: convert casts to DO_UPCAST(), Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 02/26] eepro100: cast a void * makes no sense, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 03/26] eepro100: Remove unused indirection of PCIDevice, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 04/26] pci: remove casts from void *, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 05/26] rtl8139: Remove unneeded double indirection of PCIRTL8139State, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 06/26] rtl8139: remove pointless cast from void *, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 07/26] lsi53c895a: remove pointless cast from void *, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 08/26] lsi53c895a: use DO_UPCAST to cast from PCIDevice, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 09/26] lsi53c895a: rename PCIDevice field from pci_dev to dev (consistence), Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 10/26] lsi53c895a: LSIState is a DeviceHost, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 12/26] vga: Rename vga_state -> vga,
Juan Quintela <=
- [Qemu-devel] [PATCH 11/26] Introduce vga_common_reset() to be able to typcheck vga_reset(), Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 14/26] usb-ohci: Change casts to DO_UPCAST() for OHCIPCIState, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 13/26] Everything outside of vga.c should use VGACommonState, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 15/26] ne2000: remove casts from void *, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 16/26] ne2000: pci_dev has this very value with the right type, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 17/26] ne2000: Change casts to DO_UPCAST() for PCINE2000State, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 18/26] We need PCINE2000State for save/load functions, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 19/26] Add pci_ne2000_{save/load} functions, then remove pci_dev NE2000State field, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 20/26] cirrus_vga: remove pointless cast from void *, Juan Quintela, 2009/08/24
- [Qemu-devel] [PATCH 22/26] Add pci_cirrus_vga_{save/load} functions, then remove vga.pci_dev use, Juan Quintela, 2009/08/24