lib: utils/irqchip/imsic: embed sbi_irqchip_device in imsic data

Embed sbi_irqchip_device in struct imsic_data to enable instance-based
irqchip registration, replacing the previous global imsic_device
singleton. Include sbi_irqchip.h from imsic.h to make the embedded
struct visible to consumers.

Signed-off-by: Oza Pawandeep <pawandeep.oza@oss.qualcomm.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260721214833.687361-4-pawandeep.oza@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Pawandeep Oza
2026-07-22 13:08:15 +05:30
committed by Anup Patel
parent 759910326c
commit 22139b889d
2 changed files with 20 additions and 7 deletions
+2
View File
@@ -12,6 +12,7 @@
#define __IRQCHIP_IMSIC_H__
#include <sbi/sbi_types.h>
#include <sbi/sbi_irqchip.h>
#define IMSIC_MMIO_PAGE_SHIFT 12
#define IMSIC_MMIO_PAGE_SZ (1UL << IMSIC_MMIO_PAGE_SHIFT)
@@ -24,6 +25,7 @@ struct imsic_regs {
};
struct imsic_data {
struct sbi_irqchip_device irqchip;
u32 unique_id;
bool targets_mmode;
u32 guest_index_bits;