parisc: Report the PCI slot as IOSAPIC input in the IRT
QEMU's Elroy model routes the interrupt of a PCI device to the IOSAPIC
input which equals its slot number (elroy_pci_map_irq() returns
"slot & (ELROY_IRQS - 1)"). The interrupt routing table which the
firmware builds for the OS instead numbered the IOSAPIC inputs with an
enumeration counter.
Both only agree while the n-th PCI function found sits in slot n. For
a multi-function device, or a gap in the slot numbers, the OS
programmed an IOSAPIC line which never fires. Use the slot number,
as the emulated hardware does.
Signed-off-by: Craig Lalley <mr_lalley@yahoo.com>
Signed-off-by: Helge Deller <deller@gmx.de>
1 file changed