mac_hid.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:18k
- /*
- * drivers/macintosh/mac_hid.c
- *
- * HID support stuff for Macintosh computers.
- *
- * Copyright (C) 2000 Franz Sirl.
- *
- * Stuff inside CONFIG_MAC_ADBKEYCODES should go away during 2.5 when all
- * major distributions are using the Linux keycodes.
- * Stuff inside CONFIG_MAC_EMUMOUSEBTN should really be moved to userspace.
- */
- #include <linux/config.h>
- #include <linux/init.h>
- #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>
- #include <asm/keyboard.h>
- #include <asm/machdep.h>
- #endif
- #ifdef CONFIG_MAC_ADBKEYCODES
- /* Simple translation table for the SysRq keys */
- #ifdef CONFIG_MAGIC_SYSRQ
- unsigned char mac_hid_kbd_sysrq_xlate[128] =
- "asdfhgzxcv 00bqwer" /* 0x00 - 0x0f */
- "yt123465=97-80o]" /* 0x10 - 0x1f */
- "u[iprlj'k;\,/nm." /* 0x20 - 0x2f */
- "t `177 00 33 00 00 00 00 00 00 00 00 00 00"
- /* 0x30 - 0x3f */
- "