From: Isaku Yamahata Date: Wed, 23 Jun 2010 07:15:31 +0000 (+0900) Subject: pci: set multifunction property for normal device. X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~7431 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fecb93c45c749a4c994d8d12bdee17ce2012de9e;p=sdk%2Femulator%2Fqemu.git pci: set multifunction property for normal device. use pci_create_simple_multifunction() for normal device which sets multifunction bit. At the moment, only pc_piix.c and mips_malta.c uses multifunction devices with piix3/4 pci-isa bridge. And other boards don't populate those devices. Signed-off-by: Isaku Yamahata Signed-off-by: Blue Swirl --- diff --git a/hw/piix4.c b/hw/piix4.c index 6f08c5a..902d6da 100644 --- a/hw/piix4.c +++ b/hw/piix4.c @@ -105,7 +105,7 @@ int piix4_init(PCIBus *bus, int devfn) { PCIDevice *d; - d = pci_create_simple(bus, devfn, "PIIX4"); + d = pci_create_simple_multifunction(bus, devfn, true, "PIIX4"); return d->devfn; } diff --git a/hw/piix_pci.c b/hw/piix_pci.c index e947428..3426686 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -233,7 +233,7 @@ PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn, qemu_irq * *pi440fx_state = DO_UPCAST(PCII440FXState, dev, d); piix3 = DO_UPCAST(PIIX3State, dev, - pci_create_simple(b, -1, "PIIX3")); + pci_create_simple_multifunction(b, -1, true, "PIIX3")); piix3->pic = pic; pci_bus_irqs(b, piix3_set_irq, pci_slot_get_pirq, piix3, 4); (*pi440fx_state)->piix3 = piix3;