aboutsummaryrefslogtreecommitdiff
path: root/ps2.h
diff options
context:
space:
mode:
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,