From 0d65ddc3847ff3676f91907f2d6de6585d4d42fd Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Mon, 31 Aug 2009 16:07:14 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- hw/vga_int.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/vga_int.h') 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); -- cgit v1.1