qemu/hw/pci
David Gibson cdc57472dc pci: Add pci_dev_bus_num() helper
A fair proportion of the users of pci_bus_num() want to get the bus
number on a specific device, so first have to look up the bus from the
device then call it.  This adds a helper to do that (since we're going
to make looking up the bus slightly more verbose).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
2017-12-05 19:13:45 +02:00
..
Makefile.objs pci-hotplug-old: Has been dead for five major releases, bury 2015-03-01 12:37:54 +01:00
msi.c pci: Replace pci_add_capability2() with pci_add_capability() 2017-07-03 22:29:49 +03:00
msix.c msix: use DIV_ROUND_UP 2017-08-31 12:29:07 +02:00
pci-stub.c kvm: remove hard dependency on pci 2017-08-30 18:23:25 +02:00
pci.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
pci_bridge.c pci: allow 32-bit PCI IO accesses to pass through the PCI bridge 2017-10-15 05:54:41 +03:00
pci_host.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
pcie.c pci: Convert to realize 2017-07-03 22:29:49 +03:00
pcie_aer.c pci: Add pci_dev_bus_num() helper 2017-12-05 19:13:45 +02:00
pcie_host.c PCI: PCIe access should always be little endian 2017-10-15 05:54:42 +03:00
pcie_port.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
shpc.c pci: Convert shpc_init() to Error 2017-07-03 22:29:49 +03:00
slotid_cap.c pci: Convert shpc_init() to Error 2017-07-03 22:29:49 +03:00
trace-events trace-events: fix code style: %# -> 0x% 2017-08-01 12:13:07 +01:00