]> www.infradead.org Git - users/dwmw2/qemu.git/commit
aspeed/soc: Introduce a new API to get the device irq
authorJamin Lin <jamin_lin@aspeedtech.com>
Tue, 3 Sep 2024 08:35:25 +0000 (16:35 +0800)
committerCédric Le Goater <clg@redhat.com>
Mon, 16 Sep 2024 15:44:08 +0000 (17:44 +0200)
commit1279f94591176b21bb290cb0b622f9b9478c1926
tree690c6b17f674afc4c7339ec38c3b871c055f064c
parentbe8c15118a24491ccb2e7451f74f8efca1dd149c
aspeed/soc: Introduce a new API to get the device irq

Currently, users can set the INTC mapping table with
enumerated device id and device irq to get the INTC orgate
input pins. However, some devices use the continuous source numbers in the
same INTC orgate. To reduce the enumerated device id definition,
create a new API to get the INTC orgate input pin
if users only provide the device id with its bus number index.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
hw/arm/aspeed_ast27x0.c