Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
keyboard.h
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 2k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /*
- * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
- * ---------------------------------------------------------------
- * This file will be removed as soon as we have converted
- * hp_psaux.c and hp_keyb.c to the input layer !
- *
- */
- /*
- * linux/include/asm-parisc/keyboard.h
- *
- * Original by Geert Uytterhoeven
- * updates by Alex deVries <adevries@thepuffingroup.com>
- * portions copyright (1999) The Puffin Group
- * mostly rewritten by Philipp Rumpf <prumpf@tux.org>,
- * Copyright 2000 Philipp Rumpf
- */
- /*
- * We try to keep the amount of generic code as low as possible -
- * we want to support all HIL, PS/2, and untranslated USB keyboards
- */
- #ifndef _PARISC_KEYBOARD_H
- #define _PARISC_KEYBOARD_H
- #include <linux/config.h>
- #ifdef __KERNEL__
- #ifdef CONFIG_VT
- #include <linux/kernel.h>
- #include <linux/kd.h>
- /* These are basically the generic functions / variables. The only
- * unexpected detail is the initialization sequence for the keyboard
- * driver is something like this:
- *
- * detect keyboard port
- * detect keyboard
- * call register_kbd_ops
- * wait for init_hw
- *
- * only after init_hw has been called you're allowed to call
- * handle_scancode. This means you either have to be extremely
- * careful or use a global flag or something - I strongly suggest
- * the latter. prumpf */
- extern struct kbd_ops {
- int (*setkeycode)(unsigned int, unsigned int);
- int (*getkeycode)(unsigned int);
- int (*translate)(unsigned char, unsigned char *, char);
- char (*unexpected_up)(unsigned char);
- void (*leds)(unsigned char);
- void (*init_hw)(void);
- unsigned char sysrq_key;
- unsigned char *sysrq_xlate;
- } *kbd_ops;
- #define kbd_setkeycode (*kbd_ops->setkeycode)
- #define kbd_getkeycode (*kbd_ops->getkeycode)
- #define kbd_translate (*kbd_ops->translate)
- #define kbd_unexpected_up (*kbd_ops->unexpected_up)
- #define kbd_leds (*kbd_ops->leds)
- #define kbd_init_hw (*kbd_ops->init_hw)
- #define SYSRQ_KEY (kbd_ops->sysrq_key)
- #define kbd_sysrq_xlate (kbd_ops->sysrq_xlate)
- extern unsigned char hp_ps2kbd_sysrq_xlate[128]; /* from drivers/char/hp_keyb.c */
- extern void unregister_kbd_ops(void);
- extern void register_kbd_ops(struct kbd_ops *ops);
- #endif /* CONFIG_VT */
- #endif /* __KERNEL__ */
- #endif /* __ASMPARISC_KEYBOARD_H */