qemu/hw/pci-host
Peter Maydell 66a96d7018 versatile_pci: Implement the correct PCI IRQ mapping
Implement the correct IRQ mapping for the Versatile PCI controller; it
differs between realview and versatile boards, but the previous QEMU
implementation was correct only for the first PCI card on a versatile
board, since we weren't swizzling IRQs based on the slot number.

Since this change would otherwise break any uses of PCI on Linux kernels
which have an equivalent bug (since they have effectively only been
tested against QEMU, not real hardware), we implement a mechanism
for automatically detecting those broken kernels and switching back
to the old mapping. This works by looking at the values the kernel
writes to the PCI_INTERRUPT_LINE register in the config space, which
is effectively the interrupt number the kernel expects the device
to be using.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2013-04-19 11:15:19 +01:00
..
apb.c
bonito.c
dec.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
dec.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
grackle.c
Makefile.objs
pam.c
piix.c
ppce500.c
prep.c
q35.c
uninorth.c
versatile.c versatile_pci: Implement the correct PCI IRQ mapping 2013-04-19 11:15:19 +01:00