[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 19/20] q800: wire up nubus IRQs
From: |
Mark Cave-Ayland |
Subject: |
[PATCH 19/20] q800: wire up nubus IRQs |
Date: |
Sun, 12 Sep 2021 08:49:13 +0100 |
Nubus IRQs are routed to the CPU through the VIA2 device so wire up the IRQs
using gpios accordingly.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/m68k/q800.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c
index e34df1a829..fbc45a301f 100644
--- a/hw/m68k/q800.c
+++ b/hw/m68k/q800.c
@@ -396,6 +396,11 @@ static void q800_init(MachineState *machine)
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, 9 * NUBUS_SUPER_SLOT_SIZE);
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 1, NUBUS_SLOT_BASE +
9 * NUBUS_SLOT_SIZE);
+ for (i = 0; i < VIA2_NUBUS_IRQ_NB; i++) {
+ qdev_connect_gpio_out(dev, 9 + i,
+ qdev_get_gpio_in_named(via2_dev, "nubus-irq",
+ VIA2_NUBUS_IRQ_9 + i));
+ }
nubus = &NUBUS_BRIDGE(dev)->bus;
--
2.20.1
- [PATCH 16/20] nubus-bridge: embed the NubusBus object directly within nubus-bridge, (continued)
- [PATCH 16/20] nubus-bridge: embed the NubusBus object directly within nubus-bridge, Mark Cave-Ayland, 2021/09/12
- [PATCH 17/20] nubus-bridge: make slot_available_mask a qdev property, Mark Cave-Ayland, 2021/09/12
- [PATCH 14/20] mac-nubus-bridge: rename MacNubusState to MacNubusBridge, Mark Cave-Ayland, 2021/09/12
- [PATCH 18/20] nubus: add support for slot IRQs, Mark Cave-Ayland, 2021/09/12
- [PATCH 19/20] q800: wire up nubus IRQs,
Mark Cave-Ayland <=
- [PATCH 20/20] q800: configure nubus available slots for Quadra 800, Mark Cave-Ayland, 2021/09/12
- Re: [PATCH 00/20] nubus: bus, device, bridge, IRQ and address space improvements, Philippe Mathieu-Daudé, 2021/09/12