@@ -29,6 +29,7 @@
#include "hw/display/vga.h"
#include "vga_int.h"
#include "ui/pixel_ops.h"
+#include "hw/qdev-deprecated.h"
#define VGA_RAM_SIZE (8 * MiB)
@@ -71,6 +72,8 @@ static void vga_mm_init(ISAVGAMMState *s, hwaddr vram_base,
{
MemoryRegion *s_ioport_ctrl, *vga_io_memory;
+ qdev_warn_deprecated_function_used();
+
s->it_shift = it_shift;
s_ioport_ctrl = g_malloc(sizeof(*s_ioport_ctrl));
memory_region_init_io(s_ioport_ctrl, NULL, &vga_mm_ctrl_ops, s,
@@ -99,6 +102,8 @@ int isa_vga_mm_init(hwaddr vram_base,
s = g_malloc0(sizeof(*s));
+ qdev_warn_deprecated_function_used();
+
s->vga.vram_size_mb = VGA_RAM_SIZE / MiB;
s->vga.global_vmstate = true;
vga_common_init(&s->vga, NULL);
@@ -35,6 +35,7 @@
#include "hw/xen/xen.h"
#include "migration/vmstate.h"
#include "trace.h"
+#include "hw/qdev-deprecated.h"
//#define DEBUG_VGA_MEM
//#define DEBUG_VGA_REG
@@ -2262,6 +2263,8 @@ MemoryRegion *vga_init_io(VGACommonState *s, Object *obj,
{
MemoryRegion *vga_mem;
+ qdev_warn_deprecated_function_used();
+
*vga_ports = vga_portio_list;
*vbe_ports = vbe_portio_list;
This code hasn't been QOM'ified yet. Warn the user. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- hw/display/vga-isa-mm.c | 5 +++++ hw/display/vga.c | 3 +++ 2 files changed, 8 insertions(+)