mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
Kernel: Implement {enable,disable}_msi interrupts in PCI Device
Implement enabling and disabling MSI interrupts for a PCI device. Removes two more TODO()s from PCI::Device.cpp :^)
This commit is contained in:
parent
1bc2c5c110
commit
35a844ac75
2 changed files with 9 additions and 2 deletions
|
@ -80,6 +80,7 @@ static constexpr u16 none_value = 0xffff;
|
|||
static constexpr size_t memory_range_per_bus = mmio_device_space_size * to_underlying(Limits::MaxFunctionsPerDevice) * to_underlying(Limits::MaxDevicesPerBus);
|
||||
static constexpr u32 bar_address_mask = 0xfffffff0;
|
||||
static constexpr u8 msi_control_offset = 2;
|
||||
static constexpr u16 msi_control_enable = 0x0001;
|
||||
static constexpr u16 msi_address_format_mask = 0x80;
|
||||
static constexpr u8 msi_mmc_format_mask = 0xe;
|
||||
static constexpr u16 msix_control_table_mask = 0x07ff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue