mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
Kernel/PCI: Convert PCI BAR number to a strong typed enum class
This commit is contained in:
parent
f510c0ba04
commit
bb6f61ee5d
10 changed files with 26 additions and 17 deletions
|
@ -180,7 +180,7 @@ UNMAP_AFTER_INIT ErrorOr<void> VMWareGraphicsAdapter::initialize_adapter()
|
|||
// Note: enable the device by modesetting the primary screen resolution
|
||||
modeset_primary_screen_resolution(640, 480);
|
||||
|
||||
auto bar1_space_size = PCI::get_BAR_space_size(pci_address(), 1);
|
||||
auto bar1_space_size = PCI::get_BAR_space_size(pci_address(), PCI::HeaderType0BaseRegister::BAR1);
|
||||
|
||||
m_display_connector = VMWareDisplayConnector::must_create(*this, PhysicalAddress(PCI::get_BAR1(pci_address()) & 0xfffffff0), bar1_space_size);
|
||||
TRY(m_display_connector->set_safe_mode_setting());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue