]> git.proxmox.com Git - mirror_qemu.git/commit
pci: Add generic PCIe host bridge
authorAlexander Graf <agraf@suse.de>
Fri, 13 Feb 2015 05:46:07 +0000 (05:46 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Feb 2015 05:46:07 +0000 (05:46 +0000)
commit4d8fde1126419c5a858926a457a9b320a27a921a
treea17678ebfd9207ae6c589360deb6c8d7b9b4032f
parentbf439db4993b02033d4fba8460ca4dc45b15071a
pci: Add generic PCIe host bridge

With simple exposure of MMFG, ioport window, mmio window and an IRQ line we
can successfully create a workable PCIe host bridge that can be mapped anywhere
and only needs to get described to the OS using whatever means it likes.

This patch implements such a "generic" host bridge. It handles 4 legacy IRQ
lines. MSIs need to be handled external to the host bridge.

This device is particularly useful for the "pci-host-ecam-generic" driver in
Linux.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
Tested-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/pci-host/Makefile.objs
hw/pci-host/gpex.c [new file with mode: 0644]
include/hw/pci-host/gpex.h [new file with mode: 0644]