⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keyboard.h

📁 嵌入式系统设计与实例开发实验教材二源码 多线程应用程序设计 串行端口程序设计 AD接口实验 CAN总线通信实验 GPS通信实验 Linux内核移植与编译实验 IC卡读写实验 SD驱动使
💻 H
字号:
/* *  linux/include/asm-arm/keyboard.h * *  Copyright (C) 1998 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * *  Keyboard driver definitions for ARM */#ifndef __ASM_ARM_KEYBOARD_H#define __ASM_ARM_KEYBOARD_H#include <linux/kd.h>#include <linux/pm.h>/* * We provide a unified keyboard interface when in VC_MEDIUMRAW * mode.  This means that all keycodes must be common between * all supported keyboards.  This unfortunately puts us at odds * with the PC keyboard interface chip... but we can't do anything * about that now. */#ifdef __KERNEL__extern int  (*k_setkeycode)(unsigned int, unsigned int);extern int  (*k_getkeycode)(unsigned int);extern int  (*k_translate)(unsigned char, unsigned char *, char);extern char (*k_unexpected_up)(unsigned char);extern void (*k_leds)(unsigned char);static inline int kbd_setkeycode(unsigned int sc, unsigned int kc){	int ret = -EINVAL;	if (k_setkeycode)		ret = k_setkeycode(sc, kc);	return ret;}static inline int kbd_getkeycode(unsigned int sc){	int ret = -EINVAL;	if (k_getkeycode)		ret = k_getkeycode(sc);	return ret;}static inline void kbd_leds(unsigned char leds){	if (k_leds)		k_leds(leds);}extern int k_sysrq_key;extern unsigned char *k_sysrq_xlate;#define SYSRQ_KEY		k_sysrq_key#define kbd_sysrq_xlate		k_sysrq_xlate#define kbd_translate		k_translate#define kbd_unexpected_up	k_unexpected_up#include <asm/arch/keyboard.h>#endif /* __KERNEL__ */#endif /* __ASM_ARM_KEYBOARD_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -