]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] add voyager specific extra key map
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Fri, 1 Nov 2002 03:39:08 +0000 (19:39 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 1 Nov 2002 03:39:08 +0000 (19:39 -0800)
drivers/char/sysrq.c

index 18e180b5bd3b06c3b28d5423c87e857c98816e0d..ea723c434258884f672881b20c6a7997e1af3af9 100644 (file)
 
 #include <asm/ptrace.h>
 
+#ifdef CONFIG_VOYAGER
+#include <asm/voyager.h>
+#endif
+
 extern void reset_vc(unsigned int);
 extern struct list_head super_blocks;
 
@@ -319,6 +323,14 @@ static struct sysrq_key_op sysrq_term_op = {
        action_msg:     "Terminate All Tasks",
 };
 
+#ifdef CONFIG_VOYAGER
+static struct sysrq_key_op sysrq_voyager_dump_op = {
+       handler:        voyager_dump,
+       help_msg:       "voyager",
+       action_msg:     "Dump Voyager Status\n",
+};
+#endif
+
 static void sysrq_handle_kill(int key, struct pt_regs *pt_regs,
                              struct tty_struct *tty) 
 {
@@ -352,7 +364,11 @@ static struct sysrq_key_op *sysrq_key_table[SYSRQ_KEY_TABLE_LENGTH] = {
                 it is handled specially on the sparc
                 and will never arrive */
 /* b */        &sysrq_reboot_op,
+#ifdef CONFIG_VOYAGER
+/* c */ &sysrq_voyager_dump_op,
+#else
 /* c */        NULL,
+#endif
 /* d */        NULL,
 /* e */        &sysrq_term_op,
 /* f */        NULL,