patch-2.4.6 linux/drivers/macintosh/mac_hid.c
Next file: linux/drivers/macintosh/mac_keyb.c
Previous file: linux/drivers/isdn/tpam/tpam_queues.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Wed Jun 27 13:37:35 2001
- Orig file:
v2.4.5/linux/drivers/macintosh/mac_hid.c
- Orig date:
Sun Sep 17 09:48:05 2000
diff -u --recursive --new-file v2.4.5/linux/drivers/macintosh/mac_hid.c linux/drivers/macintosh/mac_hid.c
@@ -15,6 +15,7 @@
#include <linux/proc_fs.h>
#include <linux/sysctl.h>
#include <linux/input.h>
+#include <linux/module.h>
#ifdef CONFIG_MAC_ADBKEYCODES
#include <linux/keyboard.h>
@@ -401,6 +402,8 @@
return keyboard_sends_linux_keycodes;
}
+EXPORT_SYMBOL(mac_hid_keyboard_sends_linux_keycodes);
+
static int __init mac_hid_setup(char *str)
{
int ints[2];
@@ -448,6 +451,8 @@
return 0;
}
+EXPORT_SYMBOL(mac_hid_mouse_emulate_buttons);
+
static void emumousebtn_input_register(void)
{
emumousebtn.name = "Macintosh mouse button emulation";
@@ -473,9 +478,19 @@
#ifdef CONFIG_MAC_ADBKEYCODES
memcpy(pc_key_maps_save, key_maps, sizeof(key_maps));
- if (!keyboard_sends_linux_keycodes)
+ if (!keyboard_sends_linux_keycodes) {
+#ifdef CONFIG_MAGIC_SYSRQ
+ ppc_md.ppc_kbd_sysrq_xlate = mac_hid_kbd_sysrq_xlate;
+ SYSRQ_KEY = 0x69;
+#endif
memcpy(key_maps, mac_key_maps_save, sizeof(key_maps));
+ } else {
+#ifdef CONFIG_MAGIC_SYSRQ
+ ppc_md.ppc_kbd_sysrq_xlate = pckbd_sysrq_xlate;
+ SYSRQ_KEY = 0x54;
#endif
+ }
+#endif /* CONFIG_MAC_ADBKEYCODES */
#ifdef CONFIG_MAC_EMUMOUSEBTN
emumousebtn_input_register();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)