2019-06-07 22:13:21 +08:00
|
|
|
#ifndef VIRTIO_VGA_H
|
|
|
|
#define VIRTIO_VGA_H
|
2019-05-24 21:09:45 +08:00
|
|
|
|
2019-05-24 21:09:46 +08:00
|
|
|
#include "hw/virtio/virtio-gpu-pci.h"
|
2019-05-24 21:09:45 +08:00
|
|
|
#include "vga_int.h"
|
2020-09-04 04:43:22 +08:00
|
|
|
#include "qom/object.h"
|
2019-05-24 21:09:45 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* virtio-vga-base: This extends VirtioPCIProxy.
|
|
|
|
*/
|
|
|
|
#define TYPE_VIRTIO_VGA_BASE "virtio-vga-base"
|
2020-09-01 05:07:37 +08:00
|
|
|
OBJECT_DECLARE_TYPE(VirtIOVGABase, VirtIOVGABaseClass,
|
qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
One of the goals of having less boilerplate on QOM declarations
is to avoid human error. Requiring an extra argument that is
never used is an opportunity for mistakes.
Remove the unused argument from OBJECT_DECLARE_TYPE and
OBJECT_DECLARE_SIMPLE_TYPE.
Coccinelle patch used to convert all users of the macros:
@@
declarer name OBJECT_DECLARE_TYPE;
identifier InstanceType, ClassType, lowercase, UPPERCASE;
@@
OBJECT_DECLARE_TYPE(InstanceType, ClassType,
- lowercase,
UPPERCASE);
@@
declarer name OBJECT_DECLARE_SIMPLE_TYPE;
identifier InstanceType, lowercase, UPPERCASE;
@@
OBJECT_DECLARE_SIMPLE_TYPE(InstanceType,
- lowercase,
UPPERCASE);
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Paul Durrant <paul@xen.org>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200916182519.415636-4-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2020-09-17 02:25:17 +08:00
|
|
|
VIRTIO_VGA_BASE)
|
2019-05-24 21:09:45 +08:00
|
|
|
|
2020-09-04 04:43:22 +08:00
|
|
|
struct VirtIOVGABase {
|
2019-05-24 21:09:45 +08:00
|
|
|
VirtIOPCIProxy parent_obj;
|
|
|
|
|
|
|
|
VirtIOGPUBase *vgpu;
|
|
|
|
VGACommonState vga;
|
|
|
|
MemoryRegion vga_mrs[3];
|
2020-09-04 04:43:22 +08:00
|
|
|
};
|
2019-05-24 21:09:45 +08:00
|
|
|
|
2020-09-04 04:43:22 +08:00
|
|
|
struct VirtIOVGABaseClass {
|
2019-05-24 21:09:45 +08:00
|
|
|
VirtioPCIClass parent_class;
|
|
|
|
|
|
|
|
DeviceReset parent_reset;
|
2020-09-04 04:43:22 +08:00
|
|
|
};
|
2019-05-24 21:09:45 +08:00
|
|
|
|
2019-06-07 22:13:21 +08:00
|
|
|
#endif /* VIRTIO_VGA_H */
|