[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 29/50] lasi: define IRQ inputs as qdev GPIOs
From: |
Mark Cave-Ayland |
Subject: |
[PATCH v2 29/50] lasi: define IRQ inputs as qdev GPIOs |
Date: |
Wed, 4 May 2022 10:25:39 +0100 |
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
---
hw/hppa/lasi.c | 2 ++
hw/hppa/lasi.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c
index ec079601a1..9489a80bad 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 f40546da6e..63a2be3740 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
--
2.20.1
- [PATCH v2 26/50] lasi: move initialisation of iar and rtc to new lasi_reset() function, (continued)
- [PATCH v2 26/50] lasi: move initialisation of iar and rtc to new lasi_reset() function, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 28/50] lasi: replace lasi_get_irq() with defined constants, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 27/50] lasi: move LASIState and associated QOM structures to lasi.h, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 30/50] lasi: use qdev GPIOs to wire up IRQs in lasi_initfn(), Mark Cave-Ayland, 2022/05/04
- [PATCH v2 31/50] lasi: fix serial port initialisation, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 29/50] lasi: define IRQ inputs as qdev GPIOs,
Mark Cave-Ayland <=
- [PATCH v2 32/50] lasi: update lasi_initfn() to return LASIState, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 33/50] lasi: move LAN initialisation to machine.c, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 35/50] lasi: move second serial port initialisation to machine.c, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 36/50] lasi: move PS2 initialisation to machine.c, Mark Cave-Ayland, 2022/05/04