mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
Kernel: Add I8042Controller to detect and manage PS/2 devices
Rework the PS/2 keyboard and mouse drivers to use a common 8042 controller driver. Also, reset and reconfigure the 8042 controller as they are not guaranteed to be in the state that we expect.
This commit is contained in:
parent
e1c27c16d8
commit
91db31880f
8 changed files with 617 additions and 261 deletions
|
@ -36,13 +36,12 @@
|
|||
#include <Kernel/Devices/EBRPartitionTable.h>
|
||||
#include <Kernel/Devices/FullDevice.h>
|
||||
#include <Kernel/Devices/GPTPartitionTable.h>
|
||||
#include <Kernel/Devices/KeyboardDevice.h>
|
||||
#include <Kernel/Devices/I8042Controller.h>
|
||||
#include <Kernel/Devices/MBRPartitionTable.h>
|
||||
#include <Kernel/Devices/MBVGADevice.h>
|
||||
#include <Kernel/Devices/NullDevice.h>
|
||||
#include <Kernel/Devices/PATAChannel.h>
|
||||
#include <Kernel/Devices/PATADiskDevice.h>
|
||||
#include <Kernel/Devices/PS2MouseDevice.h>
|
||||
#include <Kernel/Devices/RandomDevice.h>
|
||||
#include <Kernel/Devices/SB16.h>
|
||||
#include <Kernel/Devices/SerialDevice.h>
|
||||
|
@ -141,8 +140,7 @@ extern "C" [[noreturn]] void init()
|
|||
ACPI::initialize();
|
||||
|
||||
VFS::initialize();
|
||||
KeyboardDevice::initialize();
|
||||
PS2MouseDevice::create();
|
||||
I8042Controller::initialize();
|
||||
Console::initialize();
|
||||
|
||||
klog() << "Starting SerenityOS...";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue