summaryrefslogtreecommitdiff
path: root/Kernel/Graphics
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-06-24 13:17:20 +0300
committerLinus Groh <mail@linusgroh.de>2022-06-25 11:32:09 +0100
commitcd115270fc160a297ae2697cb4284307dc2f813d (patch)
tree5ab31a64a971dc260caa89a2ef0b1d2af93d06b4 /Kernel/Graphics
parent5b86698bb85dda4021b7fb9ecae081b8a656ce02 (diff)
downloadserenity-cd115270fc160a297ae2697cb4284307dc2f813d.zip
Kernel/Graphics: Move GenericDisplayConnector code to a new sub-folder
In the same fashion like in the Linux kernel, we support pre-initialized framebuffers that were set up by either the BIOS or the bootloader. These framebuffers can be backed by any kind of video hardware, and are not tied to VGA hardware at all. Therefore, this code should be in a separate sub-folder in the Graphics subsystem to indicate this.
Diffstat (limited to 'Kernel/Graphics')
-rw-r--r--Kernel/Graphics/Generic/DisplayConnector.cpp (renamed from Kernel/Graphics/VGA/DisplayConnector.cpp)2
-rw-r--r--Kernel/Graphics/Generic/DisplayConnector.h (renamed from Kernel/Graphics/VGA/DisplayConnector.h)5
-rw-r--r--Kernel/Graphics/VGA/VGACompatibleAdapter.h2
3 files changed, 6 insertions, 3 deletions
diff --git a/Kernel/Graphics/VGA/DisplayConnector.cpp b/Kernel/Graphics/Generic/DisplayConnector.cpp
index d394e8f2fa..26d79d43cc 100644
--- a/Kernel/Graphics/VGA/DisplayConnector.cpp
+++ b/Kernel/Graphics/Generic/DisplayConnector.cpp
@@ -8,8 +8,8 @@
#include <Kernel/Debug.h>
#include <Kernel/Devices/DeviceManagement.h>
#include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h>
+#include <Kernel/Graphics/Generic/DisplayConnector.h>
#include <Kernel/Graphics/GraphicsManagement.h>
-#include <Kernel/Graphics/VGA/DisplayConnector.h>
namespace Kernel {
diff --git a/Kernel/Graphics/VGA/DisplayConnector.h b/Kernel/Graphics/Generic/DisplayConnector.h
index ac48386f2c..2cf6deac76 100644
--- a/Kernel/Graphics/VGA/DisplayConnector.h
+++ b/Kernel/Graphics/Generic/DisplayConnector.h
@@ -36,7 +36,10 @@ protected:
virtual bool partial_flush_support() const override final { return false; }
virtual bool flush_support() const override final { return false; }
- // Note: This is possibly a paravirtualized hardware, but since we don't know, we assume there's no refresh rate...
+ // Note: This is "possibly" a paravirtualized hardware, but since we don't know, we assume there's no refresh rate...
+ // We rely on the BIOS and/or the bootloader to initialize the hardware for us, so we don't really care about
+ // the specific implementation and settings that were chosen with the given hardware as long as we just
+ // have a dummy framebuffer to work with.
virtual bool refresh_rate_support() const override final { return false; }
virtual ErrorOr<void> flush_first_surface() override final;
diff --git a/Kernel/Graphics/VGA/VGACompatibleAdapter.h b/Kernel/Graphics/VGA/VGACompatibleAdapter.h
index ec90b50fad..8683a32d81 100644
--- a/Kernel/Graphics/VGA/VGACompatibleAdapter.h
+++ b/Kernel/Graphics/VGA/VGACompatibleAdapter.h
@@ -9,8 +9,8 @@
#include <AK/Types.h>
#include <Kernel/Bus/PCI/Device.h>
#include <Kernel/Graphics/Console/Console.h>
+#include <Kernel/Graphics/Generic/DisplayConnector.h>
#include <Kernel/Graphics/GenericGraphicsAdapter.h>
-#include <Kernel/Graphics/VGA/DisplayConnector.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel {