summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86/ISABus/HID/VMWareMouseDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch/x86/ISABus/HID/VMWareMouseDevice.h')
-rw-r--r--Kernel/Arch/x86/ISABus/HID/VMWareMouseDevice.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Kernel/Arch/x86/ISABus/HID/VMWareMouseDevice.h b/Kernel/Arch/x86/ISABus/HID/VMWareMouseDevice.h
new file mode 100644
index 0000000000..63711ab1e7
--- /dev/null
+++ b/Kernel/Arch/x86/ISABus/HID/VMWareMouseDevice.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/CircularQueue.h>
+#include <Kernel/API/MousePacket.h>
+#include <Kernel/Arch/x86/ISABus/HID/PS2MouseDevice.h>
+#include <Kernel/Arch/x86/ISABus/I8042Controller.h>
+#include <Kernel/Interrupts/IRQHandler.h>
+#include <Kernel/Random.h>
+
+namespace Kernel {
+
+class VMWareMouseDevice final : public PS2MouseDevice {
+public:
+ friend class DeviceManagement;
+ static ErrorOr<NonnullLockRefPtr<VMWareMouseDevice>> try_to_initialize(I8042Controller const&);
+ virtual ~VMWareMouseDevice() override;
+
+ // ^I8042Device
+ virtual void irq_handle_byte_read(u8 byte) override;
+
+private:
+ explicit VMWareMouseDevice(I8042Controller const&);
+};
+
+}