aboutsummaryrefslogtreecommitdiff
path: root/hw/pci_host.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2011-01-27 15:56:36 +0900
committerMichael S. Tsirkin <mst@redhat.com>2011-03-28 18:34:22 +0200
commit5256d8bfad9b0113dc2f9b57706eaad26b008987 (patch)
tree8bb9ff38185905500774ea5040e5de1537e36f28 /hw/pci_host.c
parent90a20dbb2837f5ff05a9b19659ba1aa218cbd2de (diff)
downloadqemu-5256d8bfad9b0113dc2f9b57706eaad26b008987.zip
qemu-5256d8bfad9b0113dc2f9b57706eaad26b008987.tar.gz
qemu-5256d8bfad9b0113dc2f9b57706eaad26b008987.tar.bz2
pci: use devfn for pci_find_device() instead of (slot, fn) pair
(slot, fn) pair is somewhat confusing because of ARI. So use devfn for pci_find_device() instead of (slot, fn). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci_host.c')
-rw-r--r--hw/pci_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci_host.c b/hw/pci_host.c
index 7c40155..728e2d4 100644
--- a/hw/pci_host.c
+++ b/hw/pci_host.c
@@ -44,7 +44,7 @@ static inline PCIDevice *pci_dev_find_by_addr(PCIBus *bus, uint32_t addr)
uint8_t bus_num = addr >> 16;
uint8_t devfn = addr >> 8;
- return pci_find_device(bus, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn));
+ return pci_find_device(bus, bus_num, devfn);
}
void pci_data_write(PCIBus *s, uint32_t addr, uint32_t val, int len)