ladybird/Kernel/Graphics
Liav A 252c92d565 Kernel/Graphics: Introduce support for QEMU isa-vga device
This device is supposed to be used in microvm and ISA-PC machine types,
and we assume that if we are able to probe for the QEMU BGA version of
0xB0C5, then we have an existing ISA Bochs VGA adapter to utilize.
To ensure we don't instantiate the driver for non isa-vga devices, we
try to ensure that PCI is disabled because hardware IO test probe failed
so we can be sure that we use this special handling code only in the
QEMU microvm and ISA-PC machine types. Unfortunately, this means that if
for some reason the isa-vga device is attached for the i440FX or Q35
machine types, we simply are not able to drive the device in such setups
at all.

To determine the amount of VRAM being available, we read VBE register at
offset 0xA. That register holds the amount of VRAM divided by 64K, so we
need to multiply the value in our code to use the actual VRAM size value
again.

The isa-vga device requires us to hardcode the framebuffer physical
address to 0xE0000000, and that address is not expected to change in the
future as many other projects rely on the isa-vga framebuffer to be
present at that physical memory address.
2022-09-20 19:05:13 +01:00
..
Bochs Kernel/Graphics: Introduce support for QEMU isa-vga device 2022-09-20 19:05:13 +01:00
Console Kernel: Remove stale includes of x86 IO header file 2022-09-20 18:43:05 +01:00
Generic Kernel: Remove stale includes of x86 IO header file 2022-09-20 18:43:05 +01:00
Intel Kernel/PCI: Convert PCI BAR number to a strong typed enum class 2022-09-20 18:43:05 +01:00
VirtIOGPU Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
VMWare Kernel/PCI: Convert PCI BAR number to a strong typed enum class 2022-09-20 18:43:05 +01:00
Definitions.h Kernel: Add ioctl to get the EDID from a framebuffer 2022-01-23 22:45:21 +00:00
DisplayConnector.cpp Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
DisplayConnector.h Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
GenericGraphicsAdapter.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
GraphicsManagement.cpp Kernel/Graphics: Introduce support for QEMU isa-vga device 2022-09-20 19:05:13 +01:00
GraphicsManagement.h Kernel/Graphics: Introduce support for QEMU isa-vga device 2022-09-20 19:05:13 +01:00