]>
xen/riscv: introduce register_intc_ops() and intc_hw_ops
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Mon, 16 Jun 2025 08:15:41 +0000 (10:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Jun 2025 08:15:41 +0000 (10:15 +0200)
commit0aae2e3a91674da585b06555efa6eeff5937d0da
tree51531e0c97fd07d3d31595eaae5b854071510f21
parentdc89505f8098ba9f1b24d2e2b7ce885574c4bfdf
xen/riscv: introduce register_intc_ops() and intc_hw_ops

Introduce the intc_hw_operations structure to encapsulate interrupt
controller-specific data and operations. This structure includes:
- A pointer to interrupt controller information (`intc_info`)
- Callbacks to initialize the controller and set IRQ type/priority
- A reference to an interupt controller descriptor (`host_irq_type`)
- number of interrupt controller irqs.

Add function register_intc_ops() to mentioned above structure.

Co-developed-by: Romain Caritey <Romain.Caritey@microchip.com>
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/riscv/include/asm/intc.h
xen/arch/riscv/intc.c