diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-02-25 22:29:55 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-02-25 22:29:55 -0500 |
commit | 4b60c000deee2002ba272b45a1121df7495c39f9 (patch) | |
tree | 15b897b77d26f30a52d13605c905e6fd42b3e83d /src/mouse.c | |
parent | f076a3eeb9a0185b06a2abbba8c798a7761b2bdf (diff) | |
download | seabios-hppa-rel-0.1.1.zip seabios-hppa-rel-0.1.1.tar.gz seabios-hppa-rel-0.1.1.tar.bz2 |
Version 0.1.1rel-0.1.1
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(); +} |