Version 0.1.2
[seabios.git] / src / mouse.c
1 // 16bit code to handle mouse events.
2 //
3 // Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
4 // Copyright (C) 2002  MandrakeSoft S.A.
5 //
6 // This file may be distributed under the terms of the GNU GPLv3 license.
7
8 #include "biosvar.h" // struct bregs
9 #include "util.h" // debug_enter
10
11 void
12 handle_15c2(struct bregs *regs)
13 {
14     // XXX
15 }
16
17 static u8
18 int74_function()
19 {
20     // XXX
21     return 0;
22 }
23
24 // INT74h : PS/2 mouse hardware interrupt
25 void VISIBLE
26 handle_74(struct bregs *regs)
27 {
28     debug_enter(regs);
29
30     irq_enable();
31     u8 ret = int74_function();
32     if (ret) {
33         // XXX - far call to ptr at ebda:0022
34     }
35     irq_disable();
36     eoi_both_pics();
37 }