|
Linux Kernel
3.7.1
|
#include <linux/delay.h>#include <linux/module.h>#include <linux/slab.h>#include <linux/interrupt.h>#include <linux/init.h>#include <linux/input.h>#include <linux/serio.h>#include <linux/workqueue.h>#include <linux/libps2.h>#include <linux/mutex.h>#include <linux/dmi.h>Go to the source code of this file.
Data Structures | |
| struct | atkbd |
Macros | |
| #define | DRIVER_DESC "AT and PS/2 keyboard driver" |
| #define | ATKBD_KEYMAP_SIZE 512 |
| #define | ATKBD_CMD_SETLEDS 0x10ed |
| #define | ATKBD_CMD_GSCANSET 0x11f0 |
| #define | ATKBD_CMD_SSCANSET 0x10f0 |
| #define | ATKBD_CMD_GETID 0x02f2 |
| #define | ATKBD_CMD_SETREP 0x10f3 |
| #define | ATKBD_CMD_ENABLE 0x00f4 |
| #define | ATKBD_CMD_RESET_DIS 0x00f5 /* Reset to defaults and disable */ |
| #define | ATKBD_CMD_RESET_DEF 0x00f6 /* Reset to defaults */ |
| #define | ATKBD_CMD_SETALL_MB 0x00f8 /* Set all keys to give break codes */ |
| #define | ATKBD_CMD_SETALL_MBR 0x00fa /* ... and repeat */ |
| #define | ATKBD_CMD_RESET_BAT 0x02ff |
| #define | ATKBD_CMD_RESEND 0x00fe |
| #define | ATKBD_CMD_EX_ENABLE 0x10ea |
| #define | ATKBD_CMD_EX_SETLEDS 0x20eb |
| #define | ATKBD_CMD_OK_GETID 0x02e8 |
| #define | ATKBD_RET_ACK 0xfa |
| #define | ATKBD_RET_NAK 0xfe |
| #define | ATKBD_RET_BAT 0xaa |
| #define | ATKBD_RET_EMUL0 0xe0 |
| #define | ATKBD_RET_EMUL1 0xe1 |
| #define | ATKBD_RET_RELEASE 0xf0 |
| #define | ATKBD_RET_HANJA 0xf1 |
| #define | ATKBD_RET_HANGEUL 0xf2 |
| #define | ATKBD_RET_ERR 0xff |
| #define | ATKBD_KEY_UNKNOWN 0 |
| #define | ATKBD_KEY_NULL 255 |
| #define | ATKBD_SCR_1 0xfffe |
| #define | ATKBD_SCR_2 0xfffd |
| #define | ATKBD_SCR_4 0xfffc |
| #define | ATKBD_SCR_8 0xfffb |
| #define | ATKBD_SCR_CLICK 0xfffa |
| #define | ATKBD_SCR_LEFT 0xfff9 |
| #define | ATKBD_SCR_RIGHT 0xfff8 |
| #define | ATKBD_SPECIAL ATKBD_SCR_RIGHT |
| #define | ATKBD_LED_EVENT_BIT 0 |
| #define | ATKBD_REP_EVENT_BIT 1 |
| #define | ATKBD_XL_ERR 0x01 |
| #define | ATKBD_XL_BAT 0x02 |
| #define | ATKBD_XL_ACK 0x04 |
| #define | ATKBD_XL_NAK 0x08 |
| #define | ATKBD_XL_HANGEUL 0x10 |
| #define | ATKBD_XL_HANJA 0x20 |
| #define | ATKBD_DEFINE_ATTR(_name) |
| #define | ATKBD_DEFINE_RO_ATTR(_name) |
Functions | |
| MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>") | |
| MODULE_DESCRIPTION (DRIVER_DESC) | |
| MODULE_LICENSE ("GPL") | |
| module_param_named (set, atkbd_set, int, 0) | |
| MODULE_PARM_DESC (set,"Select keyboard code set (2 = default, 3 = PS/2 native)") | |
| module_param_named (reset, atkbd_reset, bool, 0) | |
| MODULE_PARM_DESC (reset,"Reset keyboard during initialization") | |
| module_param_named (softrepeat, atkbd_softrepeat, bool, 0) | |
| MODULE_PARM_DESC (softrepeat,"Use software keyboard repeat") | |
| module_param_named (softraw, atkbd_softraw, bool, 0) | |
| MODULE_PARM_DESC (softraw,"Use software generated rawmode") | |
| module_param_named (scroll, atkbd_scroll, bool, 0) | |
| MODULE_PARM_DESC (scroll,"Enable scroll-wheel on MS Office and similar keyboards") | |
| module_param_named (extra, atkbd_extra, bool, 0) | |
| MODULE_PARM_DESC (extra,"Enable extra LEDs and keys on IBM RapidAcces, EzKey and similar keyboards") | |
| module_param_named (terminal, atkbd_terminal, bool, 0) | |
| MODULE_PARM_DESC (terminal,"Enable break codes on an IBM Terminal keyboard connected via AT/PS2") | |
| ATKBD_DEFINE_ATTR (extra) | |
| ATKBD_DEFINE_ATTR (force_release) | |
| ATKBD_DEFINE_ATTR (scroll) | |
| ATKBD_DEFINE_ATTR (set) | |
| ATKBD_DEFINE_ATTR (softrepeat) | |
| ATKBD_DEFINE_ATTR (softraw) | |
| ATKBD_DEFINE_RO_ATTR (err_count) | |
| MODULE_DEVICE_TABLE (serio, atkbd_serio_ids) | |
| module_init (atkbd_init) | |
| module_exit (atkbd_exit) | |
| #define ATKBD_CMD_RESET_DIS 0x00f5 /* Reset to defaults and disable */ |
| #define ATKBD_CMD_SETALL_MB 0x00f8 /* Set all keys to give break codes */ |
| #define ATKBD_DEFINE_ATTR | ( | _name | ) |
| #define ATKBD_DEFINE_RO_ATTR | ( | _name | ) |
| #define ATKBD_SPECIAL ATKBD_SCR_RIGHT |
| ATKBD_DEFINE_ATTR | ( | extra | ) |
| ATKBD_DEFINE_ATTR | ( | force_release | ) |
| ATKBD_DEFINE_ATTR | ( | scroll | ) |
| ATKBD_DEFINE_ATTR | ( | set | ) |
| ATKBD_DEFINE_ATTR | ( | softrepeat | ) |
| ATKBD_DEFINE_ATTR | ( | softraw | ) |
| ATKBD_DEFINE_RO_ATTR | ( | err_count | ) |
| MODULE_AUTHOR | ( | "Vojtech Pavlik <[email protected]>" | ) |
| MODULE_DESCRIPTION | ( | DRIVER_DESC | ) |
| MODULE_DEVICE_TABLE | ( | serio | , |
| atkbd_serio_ids | |||
| ) |
| module_exit | ( | atkbd_exit | ) |
| module_init | ( | atkbd_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param_named | ( | softrepeat | , |
| atkbd_softrepeat | , | ||
| bool | , | ||
| 0 | |||
| ) |
| module_param_named | ( | softraw | , |
| atkbd_softraw | , | ||
| bool | , | ||
| 0 | |||
| ) |
| module_param_named | ( | scroll | , |
| atkbd_scroll | , | ||
| bool | , | ||
| 0 | |||
| ) |
| module_param_named | ( | terminal | , |
| atkbd_terminal | , | ||
| bool | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | reset | , |
| "Reset keyboard during initialization" | |||
| ) |
| MODULE_PARM_DESC | ( | softrepeat | , |
| "Use software keyboard repeat" | |||
| ) |
| MODULE_PARM_DESC | ( | softraw | , |
| "Use software generated rawmode" | |||
| ) |
| MODULE_PARM_DESC | ( | extra | , |
| "Enable extra LEDs and keys on IBM | RapidAcces, | ||
| EzKey and similar keyboards" | |||
| ) |
| MODULE_PARM_DESC | ( | terminal | , |
| "Enable break codes on an IBM Terminal keyboard connected via AT/PS2" | |||
| ) |
1.8.2