ladybird/Kernel/Graphics/Intel
Liav A e2ed6ef741 Kernel/Graphics: Bring back the mmap interface for DisplayConnectors
The mmap interface was removed when we introduced the DisplayConnector
class, as it was quite unsafe to use and didn't handle switching between
graphical and text modes safely. By using the SharedFramebufferVMObject,
we are able to elegantly coordinate the switch by remapping the attached
mmap'ed-Memory::Region(s) with different mappings, therefore, keeping
WindowServer to think that the mappings it has are still valid, while
they are going to a different physical range until we are back to the
graphical mode (after a switch from text mode).

Most drivers take advantage of the fact that we know where is the actual
framebuffer in physical memory space, the SharedFramebufferVMObject is
created with that information. However, the VirtIO driver is different
in that aspect, because it relies on DMA transactions to show graphics
on the framebuffer, so the SharedFramebufferVMObject is created with
that mindset to support the arbitrary framebuffer location in physical
memory space.
2022-06-06 20:11:05 +01:00
..
NativeDisplayConnector.cpp Kernel/Graphics: Bring back the mmap interface for DisplayConnectors 2022-06-06 20:11:05 +01:00
NativeDisplayConnector.h Kernel/Graphics: Bring back the mmap interface for DisplayConnectors 2022-06-06 20:11:05 +01:00
NativeGraphicsAdapter.cpp Kernel/Graphics: Bring back the mmap interface for DisplayConnectors 2022-06-06 20:11:05 +01:00
NativeGraphicsAdapter.h Kernel/Graphics: Simplify the GenericGraphicsAdapter class 2022-05-05 20:55:57 +02:00