summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2023-04-15 10:05:20 +0300
committerAndreas Kling <kling@serenityos.org>2023-04-15 12:53:31 +0200
commit747efc5265501f08eaf30c63be58765c6c18c2f7 (patch)
tree0fe9f4bfcce7620605a2993c4814550d67dab76a /Kernel/Devices
parent75cc670bcbd57de70ac39aeded01475806b2c800 (diff)
downloadserenity-747efc5265501f08eaf30c63be58765c6c18c2f7.zip
Kernel: Re-organize header includes in the HID subsystem code
Just a small clean-up in the I8042Controller and HIDManagement code so it will be easier to modify this code in future changes.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/HID/Management.cpp1
-rw-r--r--Kernel/Devices/HID/Management.h9
2 files changed, 4 insertions, 6 deletions
diff --git a/Kernel/Devices/HID/Management.cpp b/Kernel/Devices/HID/Management.cpp
index 9c7be9ca5d..df75a90d2c 100644
--- a/Kernel/Devices/HID/Management.cpp
+++ b/Kernel/Devices/HID/Management.cpp
@@ -10,6 +10,7 @@
# include <Kernel/Arch/x86_64/ISABus/I8042Controller.h>
#endif
#include <Kernel/CommandLine.h>
+#include <Kernel/Devices/HID/Device.h>
#include <Kernel/Devices/HID/Management.h>
#include <Kernel/Firmware/ACPI/Parser.h>
#include <Kernel/Sections.h>
diff --git a/Kernel/Devices/HID/Management.h b/Kernel/Devices/HID/Management.h
index d55eb0d724..0dae995cd1 100644
--- a/Kernel/Devices/HID/Management.h
+++ b/Kernel/Devices/HID/Management.h
@@ -9,13 +9,12 @@
#include <AK/Atomic.h>
#include <AK/CircularQueue.h>
#include <AK/Error.h>
+#include <AK/IntrusiveList.h>
+#include <AK/NonnullRefPtr.h>
+#include <AK/RefPtr.h>
#include <AK/Types.h>
#include <Kernel/API/KeyCode.h>
-#include <Kernel/API/MousePacket.h>
#include <Kernel/Devices/HID/Controller.h>
-#include <Kernel/Devices/HID/Device.h>
-#include <Kernel/Forward.h>
-#include <Kernel/Library/LockRefPtr.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Locking/SpinlockProtected.h>
#include <Kernel/UnixTypes.h>
@@ -25,8 +24,6 @@ namespace Kernel {
extern Atomic<bool> g_caps_lock_remapped_to_ctrl;
-class HIDDevice;
-class I8042Controller;
class MouseDevice;
class KeyboardDevice;
class KeyboardClient;