mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Revert "Kernel: Add boot parameter to determine i8042 first port translation"
This reverts commit0379742d7e
. Commit61a385fc01
breaks the shift and caps lock key, but depends on this one.
This commit is contained in:
parent
73c8b4865e
commit
68b0826107
Notes:
sideshowbarker
2024-07-17 03:59:29 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/68b0826107 Pull-request: https://github.com/SerenityOS/serenity/pull/22497
4 changed files with 1 additions and 17 deletions
|
@ -67,10 +67,6 @@ has set up before booting the Kernel, don't initialize any driver.
|
|||
**`none`** - Assume there's no i8042 controller in the system.
|
||||
**`force`** - Assume there's i8042 controller in the system.
|
||||
|
||||
* **`i8042_first_port_translation`** - This parameter expects **`on`** or **`off`** and is by default set to **`off`**.
|
||||
When set to **`off`**, the kernel will not enable first PS2 port translation.
|
||||
When set to **`on`**, the kernel will enable first PS2 port translation.
|
||||
|
||||
* **`panic`** - This parameter expects **`halt`** or **`shutdown`**. This is particularly useful in CI contexts.
|
||||
|
||||
* **`pci`** - This parameter expects **`ecam`**, **`io`** or **`none`**. When selecting **`none`**
|
||||
|
|
|
@ -131,16 +131,6 @@ UNMAP_AFTER_INIT bool CommandLine::is_early_boot_console_disabled() const
|
|||
PANIC("Unknown early_boot_console setting: {}", value);
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT bool CommandLine::i8042_enable_first_port_translation() const
|
||||
{
|
||||
auto value = lookup("i8042_first_port_translation"sv).value_or("off"sv);
|
||||
if (value == "off"sv)
|
||||
return false;
|
||||
if (value == "on"sv)
|
||||
return true;
|
||||
PANIC("Unknown i8042_enable_first_port_translation setting: {}", value);
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT I8042PresenceMode CommandLine::i8042_presence_mode() const
|
||||
{
|
||||
auto value = lookup("i8042_presence_mode"sv).value_or("auto"sv);
|
||||
|
|
|
@ -82,7 +82,6 @@ public:
|
|||
[[nodiscard]] bool is_pci_disabled() const;
|
||||
[[nodiscard]] bool is_legacy_time_enabled() const;
|
||||
[[nodiscard]] bool is_pc_speaker_enabled() const;
|
||||
[[nodiscard]] bool i8042_enable_first_port_translation() const;
|
||||
[[nodiscard]] GraphicsSubsystemMode graphics_subsystem_mode() const;
|
||||
[[nodiscard]] I8042PresenceMode i8042_presence_mode() const;
|
||||
[[nodiscard]] bool is_force_pio() const;
|
||||
|
|
|
@ -167,8 +167,7 @@ UNMAP_AFTER_INIT ErrorOr<void> HIDManagement::enumerate()
|
|||
// Note: If we happen to not have i8042 just return "gracefully" for now.
|
||||
if (!has_i8042_controller)
|
||||
return {};
|
||||
auto i8042_enable_first_port_translation = kernel_command_line().i8042_enable_first_port_translation() ? I8042Controller::EnableKeyboardFirstPortTranslation::Yes : I8042Controller::EnableKeyboardFirstPortTranslation::No;
|
||||
if (auto result_or_error = i8042_controller->detect_devices(i8042_enable_first_port_translation); result_or_error.is_error())
|
||||
if (auto result_or_error = i8042_controller->detect_devices(I8042Controller::EnableKeyboardFirstPortTranslation::No); result_or_error.is_error())
|
||||
return {};
|
||||
m_hid_serial_io_controllers.with([&](auto& list) {
|
||||
list.append(i8042_controller);
|
||||
|
|
Loading…
Reference in a new issue