Kernel/Graphics: Force VirtIO Framebuffer to inherit FramebufferDevice

The distinction is not justified because a VirtIO Framebuffer device
acts much more like a regular FramebufferDevice than a pure BlockDevice.
This commit is contained in:
Liav A
2021-09-21 09:26:14 +03:00
committed by Idan Horowitz
parent 4815282a5f
commit fb0ed2ae46
7 changed files with 24 additions and 14 deletions

View File

@@ -99,6 +99,13 @@ UNMAP_AFTER_INIT KResult FramebufferDevice::initialize()
return KSuccess;
}
UNMAP_AFTER_INIT FramebufferDevice::FramebufferDevice(const GraphicsDevice& adapter, size_t output_port_index)
: BlockDevice(29, GraphicsManagement::the().allocate_minor_device_number())
, m_output_port_index(output_port_index)
, m_graphics_adapter(adapter)
{
}
UNMAP_AFTER_INIT FramebufferDevice::FramebufferDevice(const GraphicsDevice& adapter, size_t output_port_index, PhysicalAddress addr, size_t width, size_t height, size_t pitch)
: BlockDevice(29, GraphicsManagement::the().allocate_minor_device_number())
, m_framebuffer_address(addr)