mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
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
|
@ -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…
Reference in a new issue