1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

Kernel: Use IO ports instad of MMIO with Bochs graphics in VirtualBox

This is needed for VirtualBox, because it doesn't support controlling
the device with MMIO.

Fixes #7558.
This commit is contained in:
Liav A 2021-06-04 11:25:42 +03:00 committed by Andreas Kling
parent d18d91dedc
commit 6a9dc5562d
2 changed files with 53 additions and 3 deletions

View file

@ -50,6 +50,8 @@ private:
bool validate_setup_resolution(size_t width, size_t height);
u32 find_framebuffer_address();
void set_resolution_registers(size_t width, size_t height);
void set_resolution_registers_via_io(size_t width, size_t height);
bool validate_setup_resolution_with_io(size_t width, size_t height);
void set_y_offset(size_t);
PhysicalAddress m_mmio_registers;
@ -57,6 +59,7 @@ private:
RefPtr<Graphics::FramebufferConsole> m_framebuffer_console;
SpinLock<u8> m_console_mode_switch_lock;
bool m_console_enabled { false };
bool m_io_required { false };
};
}