pci_create() is now unused, remove it
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
		
							parent
							
								
									07caea315a
								
							
						
					
					
						commit
						3312958dba
					
				
							
								
								
									
										18
									
								
								hw/pci.c
								
								
								
								
							
							
						
						
									
										18
									
								
								hw/pci.c
								
								
								
								
							| 
						 | 
					@ -809,24 +809,6 @@ void pci_info(Monitor *mon)
 | 
				
			||||||
    pci_for_each_device(0, pci_info_device);
 | 
					    pci_for_each_device(0, pci_info_device);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PCIDevice *pci_create(const char *name, const char *devaddr)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    PCIBus *bus;
 | 
					 | 
				
			||||||
    int devfn;
 | 
					 | 
				
			||||||
    DeviceState *dev;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    bus = pci_get_bus_devfn(&devfn, devaddr);
 | 
					 | 
				
			||||||
    if (!bus) {
 | 
					 | 
				
			||||||
        fprintf(stderr, "Invalid PCI device address %s for device %s\n",
 | 
					 | 
				
			||||||
                devaddr, name);
 | 
					 | 
				
			||||||
        exit(1);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    dev = qdev_create(&bus->qbus, name);
 | 
					 | 
				
			||||||
    qdev_prop_set_uint32(dev, "addr", devfn);
 | 
					 | 
				
			||||||
    return (PCIDevice *)dev;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static const char * const pci_nic_models[] = {
 | 
					static const char * const pci_nic_models[] = {
 | 
				
			||||||
    "ne2k_pci",
 | 
					    "ne2k_pci",
 | 
				
			||||||
    "i82551",
 | 
					    "i82551",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										1
									
								
								hw/pci.h
								
								
								
								
							
							
						
						
									
										1
									
								
								hw/pci.h
								
								
								
								
							| 
						 | 
					@ -339,7 +339,6 @@ typedef struct {
 | 
				
			||||||
void pci_qdev_register(PCIDeviceInfo *info);
 | 
					void pci_qdev_register(PCIDeviceInfo *info);
 | 
				
			||||||
void pci_qdev_register_many(PCIDeviceInfo *info);
 | 
					void pci_qdev_register_many(PCIDeviceInfo *info);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PCIDevice *pci_create(const char *name, const char *devaddr);
 | 
					 | 
				
			||||||
PCIDevice *pci_create_noinit(PCIBus *bus, int devfn, const char *name);
 | 
					PCIDevice *pci_create_noinit(PCIBus *bus, int devfn, const char *name);
 | 
				
			||||||
PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name);
 | 
					PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue