#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/notifier.h>
#include <linux/input.h>
#include <linux/adb.h>
#include <linux/cuda.h>
#include <linux/pmu.h>
#include <asm/machdep.h>
Go to the source code of this file.
#define ADB_KEY_CAPSLOCK 0x39 |
#define ADB_KEY_FWDEL 0x75 |
#define ADB_KEY_POWER 0x7f |
#define ADB_KEY_POWER_OLD 0x7e |
#define ADB_KEYBOARD_ANSI 0x0100 |
#define ADB_KEYBOARD_ISO 0x0200 |
#define ADB_KEYBOARD_JIS 0x0300 |
#define ADB_KEYBOARD_UNKNOWN 0 |
#define ADBMOUSE_EXTENDED 2 /* Apple Extended mouse (handler 4) */ |
#define ADBMOUSE_MACALLY2 9 /* MacAlly 2-button mouse */ |
#define ADBMOUSE_MICROSPEED 6 /* Microspeed mouse (&trackball ?), MacPoint */ |
#define ADBMOUSE_MS_A3 8 /* Mouse systems A3 trackball (handler 3) */ |
#define ADBMOUSE_STANDARD_100 0 /* Standard 100cpi mouse (handler 1) */ |
#define ADBMOUSE_STANDARD_200 1 /* Standard 200cpi mouse (handler 2) */ |
#define ADBMOUSE_TRACKBALL 3 /* TrackBall (handler 4) */ |
#define ADBMOUSE_TRACKBALLPRO 7 /* Trackball Pro (special buttons) */ |
#define ADBMOUSE_TRACKPAD 4 /* Apple's PowerBook trackpad (handler 4) */ |
#define ADBMOUSE_TURBOMOUSE5 5 /* Turbomouse 5 (previously req. mousehack) */ |
#define FLAG_CAPSLOCK_DOWN 0x00000010 |
#define FLAG_CAPSLOCK_IGNORE_NEXT 0x00000020 |
#define FLAG_CAPSLOCK_TRANSLATE 0x00000008 |
#define FLAG_EMU_FWDEL_DOWN 0x00000004 |
#define FLAG_FN_KEY_PRESSED 0x00000001 |
#define FLAG_POWER_FROM_FN 0x00000002 |
#define FLAG_POWER_KEY_PRESSED 0x00000040 |
#define KEYB_LEDREG 2 /* register # for leds on ADB keyboard */ |
module_exit |
( |
adbhid_exit |
| ) |
|
module_init |
( |
adbhid_init |
| ) |
|
module_param |
( |
restore_capslock_events |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
restore_capslock_events |
, |
|
|
"Produce keypress events for capslock on both keyup and keydown." |
|
|
) |
| |