mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:48:11 +00:00
Kernel: Add reserve_interrupt_handlers API
MSI(x) interrupts need to reserve IRQs so that it can be programmed by the device. Add an API to reserve contiguous ranges of interrupt handlers so that it can used by PCI devices that use MSI(x) mechanism. This API needs to be implemented by aarch64 architecture.
This commit is contained in:
parent
a5ec5f07fa
commit
91da264a4c
3 changed files with 58 additions and 0 deletions
|
@ -20,6 +20,7 @@ class GenericInterruptHandler;
|
|||
GenericInterruptHandler& get_interrupt_handler(u8 interrupt_number);
|
||||
void register_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
|
||||
void unregister_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
|
||||
ErrorOr<u8> reserve_interrupt_handlers(u8 number_of_irqs);
|
||||
|
||||
void initialize_interrupts();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue