Convert the TYPE_VIRTIO_VGA_BASE class to 3-phase reset, so we don't need to use device_class_set_parent_reset() any more. Note that this is an abstract class itself; none of the subclasses override its reset method. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20221125115240.3005559-3-peter.maydell@linaro.org
		
			
				
	
	
		
			30 lines
		
	
	
		
			588 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			588 B
		
	
	
	
		
			C
		
	
	
	
	
	
#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)
 | 
						|
 | 
						|
struct VirtIOVGABase {
 | 
						|
    VirtIOPCIProxy parent_obj;
 | 
						|
 | 
						|
    VirtIOGPUBase *vgpu;
 | 
						|
    VGACommonState vga;
 | 
						|
    MemoryRegion vga_mrs[3];
 | 
						|
};
 | 
						|
 | 
						|
struct VirtIOVGABaseClass {
 | 
						|
    VirtioPCIClass parent_class;
 | 
						|
 | 
						|
    ResettablePhases parent_phases;
 | 
						|
};
 | 
						|
 | 
						|
#endif /* VIRTIO_VGA_H */
 |