Kernel: Expand BAR address mask up to 64 bit
Otherwise we would end up truncating the address when applying the mask Co-Authored-By: Sönke Holz <sholz8530@gmail.com>
This commit is contained in:
parent
2f98c7d470
commit
c65455e122
Notes:
sideshowbarker
2024-07-17 02:56:25 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/c65455e122 Pull-request: https://github.com/SerenityOS/serenity/pull/22710 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ static constexpr u16 value_port = 0xcfc;
|
|||
static constexpr size_t mmio_device_space_size = 4096;
|
||||
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 u64 bar_address_mask = ~0xfull;
|
||||
static constexpr u8 msi_control_offset = 2;
|
||||
static constexpr u16 msi_control_enable = 0x0001;
|
||||
static constexpr u8 msi_address_low_offset = 4;
|
||||
|
|
Loading…
Add table
Reference in a new issue