Files
xemu/include/hw
Jamin Lin ab24c6a2df hw/intc/aspeed: Introduce AspeedINTCIRQ structure to save the irq index and register address
The INTC controller supports GICINT128 to GICINT136, mapping 1:1 to input and
output IRQs 0 to 8. Previously, the formula "address & 0x0f00" was used to
derive the IRQ index numbers.

However, the INTC controller also supports GICINT192_201, mapping 1 input IRQ
pin to 10 output IRQ pins. The pin numbers for input and output are different.
It is difficult to use a formula to determine the index number of INTC model
supported input and output IRQs.

To simplify and improve readability, introduces the AspeedINTCIRQ structure to
save the input/output IRQ index and its enable/status register address.

Introduce the "aspeed_2700_intc_irqs" table to store IRQ information for INTC.
Introduce the "aspeed_intc_get_irq" function to retrieve the input/output IRQ
pin index from the provided status/enable register address.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250307035945.3698802-15-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2025-03-09 14:36:53 +01:00
..
2024-10-15 15:16:17 +01:00
2024-10-15 15:16:17 +01:00
…
2024-12-20 17:44:56 +01:00
…
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-10-01 14:41:10 +01:00
…
2024-12-20 17:44:56 +01:00
…
…
2025-02-20 15:22:22 +00:00
2024-12-20 17:44:56 +01:00
2025-03-06 06:47:33 +01:00
2024-12-20 17:44:56 +01:00
…
…
…
2024-12-10 18:49:24 +01:00
…
…
…
…
…
2024-09-24 11:33:35 +02:00
…
2025-01-13 17:07:00 +01:00