qemu-e2k/hw
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
..
9pfs 9pfs: fix v9fs_mark_fids_unreclaim() return value 2017-11-06 18:05:35 +01:00
acpi pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
adc
alpha pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
arm hw/arm/virt: Add 2.11 machine type 2017-11-24 11:28:56 +00:00
audio pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices 2017-10-15 05:54:43 +03:00
block xen: dont try setting max grants multiple times 2017-10-26 14:23:08 -07:00
bt
char spapr: Implement bug in spapr-vty device to be compatible with PowerVM 2017-11-22 15:28:37 +11:00
core qdev-properties: add UUID property type 2017-12-05 19:13:45 +02:00
cpu
cris cris: use generic cpu_model parsing 2017-10-27 16:03:54 +02:00
display vga: bugfixes for 2.11 2017-11-13 14:33:29 +00:00
dma sun4m_iommu: remove legacy sparc_iommu_memory_rw() function 2017-10-31 17:25:37 +00:00
gpio
i2c pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices 2017-10-15 05:54:43 +03:00
i386 pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
ide ide: avoid referencing NULL dev in rotational rate setting 2017-10-31 18:00:03 -04:00
input ps2: fix scancodes sent for Ctrl+Pause key combination 2017-10-23 10:50:02 +02:00
intc nvic: Fix ARMv7M MPU_RBAR reads 2017-11-20 13:39:48 +00:00
ipack pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices 2017-10-15 05:54:43 +03:00
ipmi
isa pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
lm32 lm32: lm32_boards: use generic cpu_model parsing 2017-10-27 16:03:54 +02:00
m68k m68k: mcf5208: use generic cpu_model parsing 2017-10-27 16:03:54 +02:00
mem
microblaze
mips pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
misc hw/arm/aspeed: Unlock SCU when running kernel 2017-11-20 13:47:49 +00:00
moxie moxie: use generic cpu_model parsing 2017-10-27 16:03:54 +02:00
net pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
nios2
nvram fw_cfg: add write callback 2017-10-15 05:54:40 +03:00
openrisc openrisc: use generic cpu_model parsing 2017-10-27 16:03:54 +02:00
pci pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
pci-bridge pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
pci-host pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
pcmcia
ppc pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
s390x pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
scsi pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
sd pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices 2017-10-15 05:54:43 +03:00
sh4 pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
smbios smbios: support setting OEM strings table 2017-12-05 19:13:45 +02:00
sparc sparc32_dma: introduce new SPARC32_DMA type container object 2017-10-31 17:25:36 +00:00
sparc64 sparc: sun4u/sun4v/niagara: use generic cpu_model parsing 2017-10-27 16:04:27 +02:00
ssi msf2: Remove dead code reported by Coverity 2017-10-31 11:50:51 +00:00
timer
tpm tpm_tis: Return 0 for every register in case of failure mode 2017-11-15 06:47:35 -05:00
tricore tricore: use generic cpu_model parsing 2017-10-27 16:04:27 +02:00
unicore32 unicore32: use generic cpu_model parsing 2017-10-27 16:04:27 +02:00
usb pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
vfio pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
virtio pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
watchdog pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices 2017-10-15 05:54:43 +03:00
xen pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
xenpv
xtensa xtensa: lx60/lx200/ml605/kc705: use generic cpu_model parsing 2017-10-27 16:04:27 +02:00
Makefile.objs