 ce5ac09a75
			
		
	
	
		ce5ac09a75
		
	
	
	
	
		
			
			i440fx_init() is a legacy init function. The previous patches worked towards TYPE_I440FX_PCI_HOST_BRIDGE to be instantiated the QOM way. Do this now by transforming the parameters passed to i440fx_init() into property assignments. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-Id: <20230630073720.21297-17-shentey@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
		
			
				
	
	
		
			38 lines
		
	
	
		
			851 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			851 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * QEMU i440FX North Bridge Emulation
 | |
|  *
 | |
|  * Copyright (c) 2006 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 HW_PCI_I440FX_H
 | |
| #define HW_PCI_I440FX_H
 | |
| 
 | |
| #include "hw/pci/pci_device.h"
 | |
| #include "hw/pci-host/pam.h"
 | |
| #include "qom/object.h"
 | |
| 
 | |
| #define I440FX_HOST_PROP_PCI_TYPE "pci-type"
 | |
| 
 | |
| #define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
 | |
| #define TYPE_I440FX_PCI_DEVICE "i440FX"
 | |
| 
 | |
| OBJECT_DECLARE_SIMPLE_TYPE(PCII440FXState, I440FX_PCI_DEVICE)
 | |
| 
 | |
| struct PCII440FXState {
 | |
|     /*< private >*/
 | |
|     PCIDevice parent_obj;
 | |
|     /*< public >*/
 | |
| 
 | |
|     PAMMemoryRegion pam_regions[PAM_REGIONS_COUNT];
 | |
|     MemoryRegion smram_region;
 | |
|     MemoryRegion smram, low_smram;
 | |
| };
 | |
| 
 | |
| #define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
 | |
| 
 | |
| #endif
 |