q40_keyb.c
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:14k
- /*
- * linux/drivers/char/q40_keyb.c
- *
- */
- #include <linux/config.h>
- #include <linux/spinlock.h>
- #include <linux/sched.h>
- #include <linux/interrupt.h>
- #include <linux/tty.h>
- #include <linux/mm.h>
- #include <linux/keyboard.h>
- #include <linux/signal.h>
- #include <linux/ioport.h>
- #include <linux/init.h>
- #include <linux/kbd_ll.h>
- #include <linux/kbd_kern.h>
- #include <linux/delay.h>
- #include <linux/sysrq.h>
- #include <linux/random.h>
- #include <linux/poll.h>
- #include <linux/miscdevice.h>
- #include <linux/slab.h>
- #include <asm/keyboard.h>
- #include <asm/bitops.h>
- #include <asm/io.h>
- #include <asm/uaccess.h>
- #include <asm/q40_master.h>
- #include <asm/irq.h>
- #include <asm/q40ints.h>
- /* Some configuration switches are present in the include file... */
- #define KBD_REPORT_ERR
- /* Simple translation table for the SysRq keys */
- #define SYSRQ_KEY 0x54
- #ifdef CONFIG_MAGIC_SYSRQ
- unsigned char q40kbd_sysrq_xlate[128] =
- "