From: "Bradley D. LaRonde" <brad@ltc.com>
To: ralf@oss.sgi.com
Cc: linux-mips@oss.sgi.com
Subject: PATCH: keyboard share irqs
Date: Sun, 28 Oct 2001 16:20:34 -0500 [thread overview]
Message-ID: <20011028162034.A11542@dev1.ltc.com> (raw)
2001-10-28 Bradley D. LaRonde <brad@ltc.com>
- Allow sharing of keyboard/aux irqs.
- Add Rockhopper BB 2.0 keyboard suport.
--- arch/mips/lib/kbd-std.c 2001/09/06 13:12:02 1.5
+++ arch/mips/lib/kbd-std.c 2001/10/28 21:16:53
@@ -7,14 +7,20 @@
*
* Copyright (C) 1998, 1999 by Ralf Baechle
*/
+#include <linux/config.h>
#include <linux/ioport.h>
#include <linux/sched.h>
#include <linux/pc_keyb.h>
#include <asm/keyboard.h>
#include <asm/io.h>
-#define KEYBOARD_IRQ 1
-#define AUX_IRQ 12
+#ifdef CONFIG_DDB5477
+#define KEYBOARD_IRQ 18
+#define AUX_IRQ KEYBOARD_IRQ
+#else
+#define KEYBOARD_IRQ 1
+#define AUX_IRQ 12
+#endif
static void std_kbd_request_region(void)
{
@@ -27,17 +33,17 @@
static int std_kbd_request_irq(void (*handler)(int, void *, struct pt_regs *))
{
- return request_irq(KEYBOARD_IRQ, handler, 0, "keyboard", NULL);
+ return request_irq(KEYBOARD_IRQ, handler, SA_SHIRQ, "keyboard", &std_kbd_request_irq);
}
static int std_aux_request_irq(void (*handler)(int, void *, struct pt_regs *))
{
- return request_irq(AUX_IRQ, handler, 0, "PS/2 Mouse", NULL);
+ return request_irq(AUX_IRQ, handler, SA_SHIRQ, "PS/2 Mouse", &std_aux_request_irq);
}
static void std_aux_free_irq(void)
{
- free_irq(AUX_IRQ, NULL);
+ free_irq(AUX_IRQ, &std_aux_request_irq);
}
static unsigned char std_kbd_read_input(void)
reply other threads:[~2001-10-28 21:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011028162034.A11542@dev1.ltc.com \
--to=brad@ltc.com \
--cc=linux-mips@oss.sgi.com \
--cc=ralf@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox