]> Git Repo - qemu.git/commitdiff
vga: pass owner to vga_init
authorPaolo Bonzini <[email protected]>
Fri, 7 Jun 2013 01:21:13 +0000 (21:21 -0400)
committerPaolo Bonzini <[email protected]>
Thu, 4 Jul 2013 15:42:46 +0000 (17:42 +0200)
Signed-off-by: Paolo Bonzini <[email protected]>
hw/display/qxl.c
hw/display/vga-pci.c
hw/display/vga.c
hw/display/vga_int.h
hw/display/vmware_vga.c

index bcfcce4a75a0e02f529c49e0911be1af0a29bee1..5754fdc5fd6967a4d32d99bf06b3611cfc173ca0 100644 (file)
@@ -2068,7 +2068,8 @@ static int qxl_init_primary(PCIDevice *dev)
     qxl_init_ramsize(qxl);
     vga->vram_size_mb = qxl->vga.vram_size >> 20;
     vga_common_init(vga);
-    vga_init(vga, pci_address_space(dev), pci_address_space_io(dev), false);
+    vga_init(vga, OBJECT(dev),
+             pci_address_space(dev), pci_address_space_io(dev), false);
     portio_list_init(qxl_vga_port_list, qxl_vga_portio_list, vga, "vga");
     portio_list_add(qxl_vga_port_list, pci_address_space_io(dev), 0x3b0);
 
index 23d5b5654a585a8ba402b6d3cfe119eb1236d7e2..4716230d7ecd18af2b856bbf7127319e3ff864a8 100644 (file)
@@ -148,7 +148,8 @@ static int pci_std_vga_initfn(PCIDevice *dev)
 
     /* vga + console init */
     vga_common_init(s);
-    vga_init(s, pci_address_space(dev), pci_address_space_io(dev), true);
+    vga_init(s, OBJECT(dev), pci_address_space(dev), pci_address_space_io(dev),
+             true);
 
     s->con = graphic_console_init(DEVICE(dev), s->hw_ops, s);
 
index 21e37633f313cd9ad067b4d9a63f4d02917350c5..24b8b456140080b203b017d3b9b4a8da3ca620ac 100644 (file)
@@ -2350,7 +2350,7 @@ MemoryRegion *vga_init_io(VGACommonState *s,
     return vga_mem;
 }
 
-void vga_init(VGACommonState *s, MemoryRegion *address_space,
+void vga_init(VGACommonState *s, Object *obj, MemoryRegion *address_space,
               MemoryRegion *address_space_io, bool init_vga_ports)
 {
     MemoryRegion *vga_io_memory;
index 66f9f3ceedcaec150cdd9ffbd26dd1f2360edbd1..accc9f52e8d54dd2c4db23bec67c7e0590ea8bb0 100644 (file)
@@ -178,7 +178,7 @@ static inline int c6_to_8(int v)
 }
 
 void vga_common_init(VGACommonState *s);
-void vga_init(VGACommonState *s, MemoryRegion *address_space,
+void vga_init(VGACommonState *s, Object *obj, MemoryRegion *address_space,
               MemoryRegion *address_space_io, bool init_vga_ports);
 MemoryRegion *vga_init_io(VGACommonState *s,
                           const MemoryRegionPortio **vga_ports,
index 05be1fa61408901ef8f4ead83fc509b3b60cd645..358bcc01cf2aaabdc8cb8ae109b9b49f6fad23be 100644 (file)
@@ -1199,7 +1199,7 @@ static void vmsvga_init(DeviceState *dev, struct vmsvga_state_s *s,
     s->fifo_ptr = memory_region_get_ram_ptr(&s->fifo_ram);
 
     vga_common_init(&s->vga);
-    vga_init(&s->vga, address_space, io, true);
+    vga_init(&s->vga, OBJECT(dev), address_space, io, true);
     vmstate_register(NULL, 0, &vmstate_vga_common, &s->vga);
     s->new_depth = 32;
 }
This page took 0.037946 seconds and 4 git commands to generate.