summaryrefslogtreecommitdiffstats
path: root/arch/mips/jazz/hw-access.c
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>1998-07-13 23:32:11 +0000
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>1998-07-13 23:32:11 +0000
commit5db9cc852eea62943caf11f9c2b7d15eddc2c37e (patch)
treef169a2e2b1f0e640a4f629fcf0a63bd769ca4431 /arch/mips/jazz/hw-access.c
parent575065c36f15479db1ba27c76033420103a0cd2f (diff)
added PS/2 mouse support
Diffstat (limited to 'arch/mips/jazz/hw-access.c')
-rw-r--r--arch/mips/jazz/hw-access.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/arch/mips/jazz/hw-access.c b/arch/mips/jazz/hw-access.c
index 46357d9c4..64eebd252 100644
--- a/arch/mips/jazz/hw-access.c
+++ b/arch/mips/jazz/hw-access.c
@@ -1,4 +1,4 @@
-/* $Id: hw-access.c,v 1.8 1998/05/07 02:57:15 ralf Exp $
+/* $Id: hw-access.c,v 1.9 1998/06/30 00:21:48 ralf Exp $
*
* Low-level hardware access stuff for Jazz family machines.
*
@@ -65,3 +65,24 @@ __initfunc(void jazz_keyboard_setup(void))
r4030_read_reg16(JAZZ_IO_IRQ_ENABLE) |
JAZZ_IE_KEYBOARD);
}
+
+int jazz_ps2_request_irq(void)
+{
+ extern void aux_interrupt(int, void *, struct pt_regs *);
+ int ret;
+
+ ret = request_irq(JAZZ_MOUSE_IRQ, aux_interrupt, 0, "PS/2 Mouse", NULL);
+ if (!ret)
+ r4030_write_reg16(JAZZ_IO_IRQ_ENABLE,
+ r4030_read_reg16(JAZZ_IO_IRQ_ENABLE) |
+ JAZZ_IE_MOUSE);
+ return ret;
+}
+
+void jazz_ps2_free_irq(void)
+{
+ r4030_write_reg16(JAZZ_IO_IRQ_ENABLE,
+ r4030_read_reg16(JAZZ_IO_IRQ_ENABLE) |
+ JAZZ_IE_MOUSE);
+ free_irq(JAZZ_MOUSE_IRQ, NULL);
+}