mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/intc/loongarch_pch_msi: add irq number property
This patch adds irq number property for loongarch msi interrupt controller, and remove hard coding irq number macro. Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230104020518.2564263-2-zhaotianrui@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
parent
d1852caab1
commit
6027d27405
4 changed files with 36 additions and 10 deletions
|
@ -15,8 +15,9 @@ OBJECT_DECLARE_SIMPLE_TYPE(LoongArchPCHMSI, LOONGARCH_PCH_MSI)
|
|||
|
||||
struct LoongArchPCHMSI {
|
||||
SysBusDevice parent_obj;
|
||||
qemu_irq pch_msi_irq[PCH_MSI_IRQ_NUM];
|
||||
qemu_irq *pch_msi_irq;
|
||||
MemoryRegion msi_mmio;
|
||||
/* irq base passed to upper extioi intc */
|
||||
unsigned int irq_base;
|
||||
unsigned int irq_num;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue