diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-31 16:07:14 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-09 14:55:11 -0500 |
commit | 0d65ddc3847ff3676f91907f2d6de6585d4d42fd (patch) | |
tree | e69db44ff8c1c17d8abb051f4a1d8ffda9e0abcf /hw/vga_int.h | |
parent | 43bf782b1aebf40e79a48062eccd8ada9e211ee9 (diff) | |
download | hqemu-0d65ddc3847ff3676f91907f2d6de6585d4d42fd.zip hqemu-0d65ddc3847ff3676f91907f2d6de6585d4d42fd.tar.gz |
vga: split vga_{load, save} into pci and common parts
Once there adjust VGAState <-> VGACommonState
Export vga_common_save/vga_common_load (nreeded by wmvare_vga
Remove vga.pci_dev field, it is not needed anymore
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vga_int.h')
-rw-r--r-- | hw/vga_int.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/vga_int.h b/hw/vga_int.h index b44790d..54b3d5a 100644 --- a/hw/vga_int.h +++ b/hw/vga_int.h @@ -110,7 +110,6 @@ typedef struct VGACommonState { uint32_t bios_offset; uint32_t bios_size; int it_shift; - PCIDevice *pci_dev; uint32_t latch; uint8_t sr_index; uint8_t sr[256]; @@ -194,6 +193,8 @@ void vga_common_reset(VGACommonState *s); void vga_dirty_log_start(VGACommonState *s); +void vga_common_save(QEMUFile *f, void *opaque); +int vga_common_load(QEMUFile *f, void *opaque, int version_id); uint32_t vga_ioport_read(void *opaque, uint32_t addr); void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val); uint32_t vga_mem_readb(void *opaque, target_phys_addr_t addr); |