#include <linux/device.h>
#include <linux/hid.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include "hid-ids.h"
Go to the source code of this file.
|
| | module_param (fnmode, uint, 0644) |
| |
| | MODULE_PARM_DESC (fnmode,"Mode of fn key on Apple keyboards (0 = disabled, ""[1] = fkeyslast, 2 = fkeysfirst)") |
| |
| | module_param (iso_layout, uint, 0644) |
| |
| | MODULE_PARM_DESC (iso_layout,"Enable/Disable hardcoded ISO-layout of the keyboard. ""(0 = disabled, [1] = enabled)") |
| |
| | MODULE_DEVICE_TABLE (hid, apple_devices) |
| |
| | module_init (apple_init) |
| |
| | module_exit (apple_exit) |
| |
| | MODULE_LICENSE ("GPL") |
| |
| #define APPLE_FLAG_FKEY 0x01 |
| #define APPLE_HAS_FN 0x0004 |
| #define APPLE_HIDDEV 0x0008 |
| #define APPLE_IGNORE_HIDINPUT 0x0080 |
| #define APPLE_IGNORE_MOUSE 0x0002 |
| #define APPLE_INVERT_HWHEEL 0x0040 |
| #define APPLE_ISO_KEYBOARD 0x0010 |
| #define APPLE_MIGHTYMOUSE 0x0020 |
| #define APPLE_NUMLOCK_EMULATION 0x0100 |
| #define APPLE_RDESC_JIS 0x0001 |
| #define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
| MODULE_DEVICE_TABLE |
( |
hid |
, |
|
|
apple_devices |
|
|
) |
| |
| module_exit |
( |
apple_exit |
| ) |
|
| module_init |
( |
apple_init |
| ) |
|
| module_param |
( |
fnmode |
, |
|
|
uint |
, |
|
|
0644 |
|
|
) |
| |
| module_param |
( |
iso_layout |
, |
|
|
uint |
, |
|
|
0644 |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
fnmode |
, |
|
|
"Mode of fn key on Apple keyboards (0 = disabled, ""[1] = fkeyslast, 2 = fkeysfirst)" |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
iso_layout |
, |
|
|
"Enable/Disable hardcoded ISO-layout of the keyboard. ""(0 = disabled, [1] = enabled)" |
|
|
) |
| |