]> git.proxmox.com Git - mirror_qemu.git/commit - hw/spapr_pci.c
pseries: Export find_phb() utility function for PCI code
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 7 Aug 2012 16:10:35 +0000 (16:10 +0000)
committerAlexander Graf <agraf@suse.de>
Wed, 15 Aug 2012 17:43:16 +0000 (19:43 +0200)
commit9894c5d4b467d24e281c22f2f5e24822c9b55fb3
treed7ad1d3214502add8f6e0f4cd5b76afc44424a1f
parentf4b9523ba6388f6f951933de3f9a76e2e9ea2ede
pseries: Export find_phb() utility function for PCI code

The pseries PCI code makes use of an internal find_dev() function which
locates a PCIDevice * given a (platform specific) bus ID and device
address.  Internally this needs to first locate the host bridge on which
the device resides based on the bus ID.  This patch exposes that host
bridge lookup as a separate function, which we will need later in the MSI
and VFIO code.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[agraf: drop trace.h inclusion]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_pci.c