summaryrefslogblamecommitdiffstats
path: root/hw/display/virtio-vga.h
blob: 5c5671c9c10e3a114db4ab997315a40862b6a22c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                    
 
                                     
                    
                       




                                                

                                                      
 
                      




                              
  
 
                           


                                
  
 
                         
#ifndef VIRTIO_VGA_H
#define VIRTIO_VGA_H

#include "hw/virtio/virtio-gpu-pci.h"
#include "vga_int.h"
#include "qom/object.h"

/*
 * virtio-vga-base: This extends VirtioPCIProxy.
 */
#define TYPE_VIRTIO_VGA_BASE "virtio-vga-base"
OBJECT_DECLARE_TYPE(VirtIOVGABase, VirtIOVGABaseClass,
                    virtio_vga_base, VIRTIO_VGA_BASE)

struct VirtIOVGABase {
    VirtIOPCIProxy parent_obj;

    VirtIOGPUBase *vgpu;
    VGACommonState vga;
    MemoryRegion vga_mrs[3];
};

struct VirtIOVGABaseClass {
    VirtioPCIClass parent_class;

    DeviceReset parent_reset;
};

#endif /* VIRTIO_VGA_H */