diff options
| author | Pawandeep Oza <[email protected]> | 2026-07-21 14:48:27 -0700 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2026-07-22 13:08:15 +0530 |
| commit | 22139b889dfeaa98d4b3f1abe4fd0b7c96f11b26 (patch) | |
| tree | 2c2635f614b896c0153923971be375b7f4420721 /include | |
| parent | 759910326c3ac4cf9d42133fc1399d519037eae1 (diff) | |
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 <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi_utils/irqchip/imsic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi_utils/irqchip/imsic.h b/include/sbi_utils/irqchip/imsic.h index 88dd3cfb..ffb62d35 100644 --- a/include/sbi_utils/irqchip/imsic.h +++ b/include/sbi_utils/irqchip/imsic.h @@ -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; |
