summaryrefslogtreecommitdiff
path: root/Kernel/CommandLine.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-04-30 15:53:02 +0300
committerAndreas Kling <kling@serenityos.org>2022-05-05 20:55:57 +0200
commitd49a35df3121e6fc88fade2b20c386d58510a249 (patch)
treec64941744bcf33b3c5f18c120303e199d20653df /Kernel/CommandLine.h
parente301af8352c50dc76234aa767d5a18f6ff52d86e (diff)
downloadserenity-d49a35df3121e6fc88fade2b20c386d58510a249.zip
Kernel/Graphics: Simplify the feature level of the Graphics subsystem
Instead of letting the user to determine whether framebuffer devices will be created (which is useless because they are gone by now), let's simplify the flow by allowing the user to choose between full, limited or disabled functionality. The determination happens only once, so, if the user decided to disable graphics support, the initialize method exits immediately. If limited functionality is chosen, then a generic DisplayConnector is initialized with the preset framebuffer resolution, if present, and then the initialize method exits. As a default, the code proceeds to initialize all drivers as usual.
Diffstat (limited to 'Kernel/CommandLine.h')
-rw-r--r--Kernel/CommandLine.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/CommandLine.h b/Kernel/CommandLine.h
index a52e2daa35..618f031088 100644
--- a/Kernel/CommandLine.h
+++ b/Kernel/CommandLine.h
@@ -53,10 +53,10 @@ public:
No,
};
- enum class FrameBufferDevices {
+ enum class GraphicsSubsystemMode {
Enabled,
- ConsoleOnly,
- BootloaderOnly
+ Limited,
+ Disabled
};
[[nodiscard]] StringView string() const { return m_string->view(); }
@@ -74,7 +74,7 @@ public:
[[nodiscard]] bool is_pci_disabled() const;
[[nodiscard]] bool is_legacy_time_enabled() const;
[[nodiscard]] bool is_pc_speaker_enabled() const;
- [[nodiscard]] FrameBufferDevices are_framebuffer_devices_enabled() const;
+ [[nodiscard]] GraphicsSubsystemMode graphics_subsystem_mode() const;
[[nodiscard]] bool is_force_pio() const;
[[nodiscard]] AcpiFeatureLevel acpi_feature_level() const;
[[nodiscard]] StringView system_mode() const;