[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 4/5] pci: use PCI_SLOT in pci_get_bus_devfn()
From: |
Isaku Yamahata |
Subject: |
[Qemu-devel] [PATCH v2 4/5] pci: use PCI_SLOT in pci_get_bus_devfn() |
Date: |
Thu, 27 Jan 2011 15:56:38 +0900 |
use PCI_SLOT in pci_get_bus_devfn().
Signed-off-by: Isaku Yamahata <address@hidden>
---
hw/pci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 471d4d7..e25bf7a 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -558,7 +558,7 @@ PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr)
return NULL;
}
- *devfnp = slot << 3;
+ *devfnp = PCI_DEVFN(slot, 0);
return pci_find_bus(pci_find_root_bus(dom), bus);
}
--
1.7.1.1
- [Qemu-devel] [PATCH v2 0/5] pci/pcie: implement ARI enable bit correctly, Isaku Yamahata, 2011/01/27
- [Qemu-devel] [PATCH v2 3/5] pci/pcie: make pci_find_device() ARI aware., Isaku Yamahata, 2011/01/27
- [Qemu-devel] [PATCH v2 4/5] pci: use PCI_SLOT in pci_get_bus_devfn(),
Isaku Yamahata <=
- [Qemu-devel] [PATCH v2 5/5] pci: use uint8_t for devfn_min, Isaku Yamahata, 2011/01/27
- [Qemu-devel] [PATCH v2 1/5] pci: replace the magic, 256, for the maximum of devfn, Isaku Yamahata, 2011/01/27
- [Qemu-devel] [PATCH v2 2/5] pci: use devfn for pci_find_device() instead of (slot, fn) pair, Isaku Yamahata, 2011/01/27
- [Qemu-devel] Re: [PATCH v2 0/5] pci/pcie: implement ARI enable bit correctly, Michael S. Tsirkin, 2011/01/27