ebus: wire up OBIO interrupts to APB pbm via qdev GPIOs
commit4b10c8d7012eea39e96819545eb21d28228831c6
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 21 Dec 2017 07:32:57 +0000 (21 07:32 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 9 Jan 2018 21:48:19 +0000 (9 21:48 +0000)
tree34c80f9ee32da41909708cdfa02f3b063c1713d2
parent33c5eb02c4f51515896a5a13cb68f6f01ce8d0af
ebus: wire up OBIO interrupts to APB pbm via qdev GPIOs

This enables us to remove the static array mapping in the ISA IRQ
handler (and the embedded reference to the APB device) by formalising
the interrupt wiring via the qdev GPIO API.

For more clarity we replace the APB OBIO interrupt numbers with constants
designating the interrupt source, and rename isa_irq_handler() to
ebus_isa_irq_handler().

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/pci-host/apb.c
hw/sparc64/sun4u.c
include/hw/pci-host/apb.h