summaryrefslogtreecommitdiff
path: root/Kernel/Graphics/GraphicsManagement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Graphics/GraphicsManagement.cpp')
-rw-r--r--Kernel/Graphics/GraphicsManagement.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/Graphics/GraphicsManagement.cpp b/Kernel/Graphics/GraphicsManagement.cpp
index f78d864ce2..39bb6866d5 100644
--- a/Kernel/Graphics/GraphicsManagement.cpp
+++ b/Kernel/Graphics/GraphicsManagement.cpp
@@ -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)