diff options
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mouse.c b/src/mouse.c new file mode 100644 index 0000000..6364c68 --- /dev/null +++ b/src/mouse.c @@ -0,0 +1,35 @@ +// 16bit code to handle mouse events. +// +// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net> +// Copyright (C) 2002 MandrakeSoft S.A. +// +// This file may be distributed under the terms of the GNU GPLv3 license. + +#include "biosvar.h" // struct bregs +#include "util.h" // debug_enter + +void +handle_15c2(struct bregs *regs) +{ +} + +static u8 +int74_function() +{ + return 0; +} + +// INT74h : PS/2 mouse hardware interrupt +void VISIBLE +handle_74(struct bregs *regs) +{ + debug_enter(regs); + + irq_enable(); + u8 ret = int74_function(); + if (ret) { + // XXX - far call to ptr at ebda:0022 + } + irq_disable(); + eoi_both_pics(); +} |