qemu/hw/pci-host
David Gibson fd56e0612b pci: Eliminate redundant PCIDevice::bus pointer
The bus pointer in PCIDevice is basically redundant with QOM information.
It's always initialized to the qdev_get_parent_bus(), the only difference
is the type.

Therefore this patch eliminates the field, instead creating a pci_get_bus()
helper to do the type mangling to derive it conveniently from the QOM
Device object underneath.

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: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
2017-12-05 19:13:45 +02:00
..
apb.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
bonito.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
gpex.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
grackle.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
Makefile.objs hw: xilinx-pcie: Add support for Xilinx AXI PCIe Controller 2017-02-21 23:49:29 +00:00
pam.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
piix.c pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
ppce500.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
prep.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
q35.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
uninorth.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
versatile.c pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
xilinx-pcie.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00