Version 0.1.1
[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 }
15
16 static u8
17 int74_function()
18 {
19     return 0;
20 }
21
22 // INT74h : PS/2 mouse hardware interrupt
23 void VISIBLE
24 handle_74(struct bregs *regs)
25 {
26     debug_enter(regs);
27
28     irq_enable();
29     u8 ret = int74_function();
30     if (ret) {
31         // XXX - far call to ptr at ebda:0022
32     }
33     irq_disable();
34     eoi_both_pics();
35 }