Kernel: Add various methods to handle interrupts in the PCI subsystem

For now, we only are able to enable or disable pin based interrupts.
Later, when implemented, we could utilize MSI & MSI-X interrupts.
This commit is contained in:
Liav A 2020-12-18 20:27:55 +02:00 committed by Andreas Kling
commit cf0a12c68f
Notes: sideshowbarker 2024-07-19 00:42:32 +09:00
2 changed files with 54 additions and 0 deletions

View file

@ -35,6 +35,17 @@ public:
Address pci_address() const { return m_pci_address; };
virtual ~DeviceController() { }
void enable_pin_based_interrupts() const;
void disable_pin_based_interrupts() const;
bool is_msi_capable() const;
bool is_msix_capable() const;
void enable_message_signalled_interrupts();
void disable_message_signalled_interrupts();
void enable_extended_message_signalled_interrupts();
void disable_extended_message_signalled_interrupts();
protected:
explicit DeviceController(Address pci_address);