mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Kernel: Add VirtIOGPU graphics device
This commit is contained in:
parent
b569b2df35
commit
b9ad6058aa
21 changed files with 1050 additions and 13 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <Kernel/Graphics/GraphicsManagement.h>
|
||||
#include <Kernel/Graphics/IntelNativeGraphicsAdapter.h>
|
||||
#include <Kernel/Graphics/VGACompatibleAdapter.h>
|
||||
#include <Kernel/Graphics/VirtIOGPU/VirtIOGraphicsAdapter.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/Multiboot.h>
|
||||
#include <Kernel/PCI/IDs.h>
|
||||
|
@ -129,6 +130,9 @@ UNMAP_AFTER_INIT bool GraphicsManagement::initialize()
|
|||
} else if (is_vga_compatible) {
|
||||
if (id.vendor_id == 0x8086) {
|
||||
adapter = IntelNativeGraphicsAdapter::initialize(address);
|
||||
} else if (id.vendor_id == static_cast<u16>(PCIVendorID::VirtIO)) {
|
||||
dmesgln("Graphics: Using VirtIO console");
|
||||
adapter = Graphics::VirtIOGraphicsAdapter::initialize(address);
|
||||
}
|
||||
}
|
||||
if (adapter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue