From d49a35df3121e6fc88fade2b20c386d58510a249 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 30 Apr 2022 15:53:02 +0300 Subject: 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. --- Kernel/CommandLine.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Kernel/CommandLine.h') 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; -- cgit v1.2.3