mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-05-23 14:21:32 +01:00
lib: sbi_irqchip: Allow marking hardware interrupts as reserved
Some of the hardware interrupts may be special so allow irqchip drivers to make these hardware interrupts as reserved. Introduce sbi_irqchip_register_reserved() for this purpose. Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260423052339.356900-5-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -101,7 +101,11 @@ int sbi_irqchip_set_raw_handler(struct sbi_irqchip_device *chip, u32 hwirq,
|
||||
/** Register a hardware interrupt handler */
|
||||
int sbi_irqchip_register_handler(struct sbi_irqchip_device *chip,
|
||||
u32 first_hwirq, u32 num_hwirq, u32 hwirq_flags,
|
||||
int (*callback)(u32 hwirq, void *opaque), void *opaque);
|
||||
int (*callback)(u32 hwirq, void *priv), void *priv);
|
||||
|
||||
/** Register a hardware interrupts as reserved */
|
||||
int sbi_irqchip_register_reserved(struct sbi_irqchip_device *chip,
|
||||
u32 first_hwirq, u32 num_hwirq);
|
||||
|
||||
/** Unregister a hardware interrupt handler */
|
||||
int sbi_irqchip_unregister_handler(struct sbi_irqchip_device *chip,
|
||||
|
||||
Reference in New Issue
Block a user