aboutsummaryrefslogtreecommitdiff
path: root/ps2.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-03-13 00:43:23 +0100
committerJavier <dev.git@javispedro.com>2022-03-13 00:43:23 +0100
commit0ebcd2c1c9148e8647a5b2f89654949435403058 (patch)
tree76c7f68dabfa08734cd1f13b3532bf86d6d7c6d5 /ps2.h
parent22ceecd84d84594fb1a87e0b2448d8cf4e60e4b9 (diff)
downloadvbados-0ebcd2c1c9148e8647a5b2f89654949435403058.tar.gz
vbados-0ebcd2c1c9148e8647a5b2f89654949435403058.zip
let VMD know the mouse type
Diffstat (limited to 'ps2.h')
-rw-r--r--ps2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ps2.h b/ps2.h
index 0ff154b..6fcb1ec 100644
--- a/ps2.h
+++ b/ps2.h
@@ -23,6 +23,11 @@
#include <stdbool.h>
#include <stdint.h>
+/** Standard PS/2 mouse IRQ. At least on VirtualBox. */
+#define PS2_MOUSE_IRQ 12
+/** The corresponding interrupt vector for IRQ 12. */
+#define PS2_MOUSE_INT_VECTOR 0x74
+
enum {
PS2M_STATUS_BUTTON_1 = 1 << 0,
PS2M_STATUS_BUTTON_2 = 1 << 1,