mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
pci: set PCI multi-function bit appropriately.
Set PCI multi-function bit according to multifunction property. PCI address, devfn ,is exported to users as addr property, so users can populate pci function(PCIDevice in qemu) at arbitrary devfn. It means each function(PCIDevice) don't know whether pci device (PCIDevice[8]) is multi function or not. So this patch allows user to set multifunction bit via property and checks whether multifunction bit is set correctly. Cc: Juan Quintela <quintela@redhat.com> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
7c7b829e46
commit
6eab3de16d
4 changed files with 52 additions and 7 deletions
|
@ -312,9 +312,6 @@ static void apb_pci_bridge_init(PCIBus *b)
|
|||
PCI_STATUS_FAST_BACK | PCI_STATUS_66MHZ |
|
||||
PCI_STATUS_DEVSEL_MEDIUM);
|
||||
pci_set_byte(dev->config + PCI_REVISION_ID, 0x11);
|
||||
pci_set_byte(dev->config + PCI_HEADER_TYPE,
|
||||
pci_get_byte(dev->config + PCI_HEADER_TYPE) |
|
||||
PCI_HEADER_TYPE_MULTI_FUNCTION);
|
||||
}
|
||||
|
||||
PCIBus *pci_apb_init(target_phys_addr_t special_base,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue