aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-05-04 10:25:39 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-05-08 18:52:37 +0100
commitcb9f6c4b65d48717be251dcb2a171152d00885e9 (patch)
tree789e374199124379cd5388e5c90b6f9e11f48d53
parent0f04d5777b7c3b1fe260838f3c1f05a6c6452a8d (diff)
downloadqemu-cb9f6c4b65d48717be251dcb2a171152d00885e9.zip
qemu-cb9f6c4b65d48717be251dcb2a171152d00885e9.tar.gz
qemu-cb9f6c4b65d48717be251dcb2a171152d00885e9.tar.bz2
lasi: define IRQ inputs as qdev GPIOs
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-30-mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--hw/hppa/lasi.c2
-rw-r--r--hw/hppa/lasi.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c
index ec07960..9489a80 100644
--- a/hw/hppa/lasi.c
+++ b/hw/hppa/lasi.c
@@ -290,6 +290,8 @@ static void lasi_init(Object *obj)
s, "lasi", 0x100000);
sysbus_init_mmio(sbd, &s->this_mem);
+
+ qdev_init_gpio_in(DEVICE(obj), lasi_set_irq, LASI_IRQS);
}
static void lasi_class_init(ObjectClass *klass, void *data)
diff --git a/hw/hppa/lasi.h b/hw/hppa/lasi.h
index f40546d..63a2be3 100644
--- a/hw/hppa/lasi.h
+++ b/hw/hppa/lasi.h
@@ -38,6 +38,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(LasiState, LASI_CHIP)
#define ICR_BUS_ERROR_BIT LASI_BIT(8) /* bit 8 in ICR */
#define ICR_TOC_BIT LASI_BIT(1) /* bit 1 in ICR */
+#define LASI_IRQS 27
+
#define LASI_IRQ_HPA 14
#define LASI_IRQ_UART_HPA 5
#define LASI_IRQ_LPT_HPA 7