]> Git Repo - qemu.git/commitdiff
hw/display/vga: extract public API from i386/pc to "hw/display/vga.h"
authorPhilippe Mathieu-Daudé <[email protected]>
Tue, 17 Oct 2017 16:44:21 +0000 (13:44 -0300)
committerMichael Tokarev <[email protected]>
Mon, 18 Dec 2017 14:07:02 +0000 (17:07 +0300)
and remove the old i386/pc dependency.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
MAINTAINERS
hw/display/vga-isa-mm.c
hw/display/vga-isa.c
hw/display/vga.c
hw/mips/mips_jazz.c
include/hw/display/vga.h [new file with mode: 0644]
include/hw/i386/pc.h
vl.c

index acbff2f1bb014b2c5b40907efab786dfc8f1992f..8859a50c365b247637a6f4269bb871424b9b7b98 100644 (file)
@@ -881,6 +881,7 @@ F: hw/timer/hpet*
 F: hw/timer/i8254*
 F: hw/timer/mc146818rtc*
 F: hw/watchdog/wdt_ib700.c
+F: include/hw/display/vga.h
 F: include/hw/i2c/pm_smbus.h
 F: include/hw/isa/i8257.h
 F: include/hw/timer/hpet.h
index 68c4d6e23e3adb17f7120657f3e03286e34733c0..e887b45651bf9f011944ecbab03f19415d93ff7f 100644 (file)
  */
 #include "qemu/osdep.h"
 #include "hw/hw.h"
-#include "hw/i386/pc.h"
+#include "hw/display/vga.h"
 #include "vga_int.h"
 #include "ui/pixel_ops.h"
-#include "qemu/timer.h"
 
 #define VGA_RAM_SIZE (8192 * 1024)
 
index 26f69fd40acceda2389e872a7f7659045e8ebfe4..469834add5f9d61df4a3e37891c1fb302124c4b3 100644 (file)
@@ -25,7 +25,7 @@
  */
 #include "qemu/osdep.h"
 #include "hw/hw.h"
-#include "hw/i386/pc.h"
+#include "hw/isa/isa.h"
 #include "vga_int.h"
 #include "ui/pixel_ops.h"
 #include "qemu/timer.h"
index 4163b532e08af09a0ca6429b62e8901d91182d2b..a0412000a56dda21bf4b30665b935ce1e80a2b1c 100644 (file)
@@ -24,7 +24,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "hw/hw.h"
-#include "hw/i386/pc.h"
+#include "hw/display/vga.h"
 #include "hw/pci/pci.h"
 #include "vga_int.h"
 #include "vga_regs.h"
index 22a3d5169ce032af5aef66726c1c9787dc4f00b6..0d2c0683ba759d59270c3637901ed1ea686712d9 100644 (file)
@@ -39,6 +39,7 @@
 #include "hw/loader.h"
 #include "hw/timer/mc146818rtc.h"
 #include "hw/timer/i8254.h"
+#include "hw/display/vga.h"
 #include "hw/audio/pcspk.h"
 #include "sysemu/block-backend.h"
 #include "hw/sysbus.h"
diff --git a/include/hw/display/vga.h b/include/hw/display/vga.h
new file mode 100644 (file)
index 0000000..0401a3a
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * QEMU VGA Emulator.
+ *
+ * Copyright (c) 2003 Fabrice Bellard
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+#ifndef QEMU_HW_DISPLAY_VGA_H
+#define QEMU_HW_DISPLAY_VGA_H
+
+#include "exec/memory.h"
+
+enum vga_retrace_method {
+    VGA_RETRACE_DUMB,
+    VGA_RETRACE_PRECISE
+};
+
+extern enum vga_retrace_method vga_retrace_method;
+
+int isa_vga_mm_init(hwaddr vram_base,
+                    hwaddr ctrl_base, int it_shift,
+                    MemoryRegion *address_space);
+
+#endif
index 3794473108d10c97b3fb3b34cce377e9c00823a7..1d55ba3322846d713584fcff361e9ce02b111ae6 100644 (file)
@@ -302,18 +302,6 @@ PCIBus *find_i440fx(void);
 extern PCIDevice *piix4_dev;
 int piix4_init(PCIBus *bus, ISABus **isa_bus, int devfn);
 
-/* vga.c */
-enum vga_retrace_method {
-    VGA_RETRACE_DUMB,
-    VGA_RETRACE_PRECISE
-};
-
-extern enum vga_retrace_method vga_retrace_method;
-
-int isa_vga_mm_init(hwaddr vram_base,
-                    hwaddr ctrl_base, int it_shift,
-                    MemoryRegion *address_space);
-
 /* ne2000.c */
 static inline bool isa_ne2000_init(ISABus *bus, int base, int irq, NICInfo *nd)
 {
diff --git a/vl.c b/vl.c
index c1ba52306a25e7fc2a69a3d1a8b7f64a90718c22..e9012bb0097e8472e6edfd3c88c39bb2f3abf522 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -57,9 +57,9 @@ int main(int argc, char **argv)
 #include "hw/boards.h"
 #include "sysemu/accel.h"
 #include "hw/usb.h"
-#include "hw/i386/pc.h"
 #include "hw/isa/isa.h"
 #include "hw/scsi/scsi.h"
+#include "hw/display/vga.h"
 #include "hw/bt.h"
 #include "sysemu/watchdog.h"
 #include "hw/smbios/smbios.h"
This page took 0.033611 seconds and 4 git commands to generate.