Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hid-apple.c File Reference
#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.

Data Structures

struct  apple_sc
 
struct  apple_key_translation
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define APPLE_RDESC_JIS   0x0001
 
#define APPLE_IGNORE_MOUSE   0x0002
 
#define APPLE_HAS_FN   0x0004
 
#define APPLE_HIDDEV   0x0008
 
#define APPLE_ISO_KEYBOARD   0x0010
 
#define APPLE_MIGHTYMOUSE   0x0020
 
#define APPLE_INVERT_HWHEEL   0x0040
 
#define APPLE_IGNORE_HIDINPUT   0x0080
 
#define APPLE_NUMLOCK_EMULATION   0x0100
 
#define APPLE_FLAG_FKEY   0x01
 

Functions

 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")
 

Macro Definition Documentation

#define APPLE_FLAG_FKEY   0x01

Definition at line 38 of file hid-apple.c.

#define APPLE_HAS_FN   0x0004

Definition at line 30 of file hid-apple.c.

#define APPLE_HIDDEV   0x0008

Definition at line 31 of file hid-apple.c.

#define APPLE_IGNORE_HIDINPUT   0x0080

Definition at line 35 of file hid-apple.c.

#define APPLE_IGNORE_MOUSE   0x0002

Definition at line 29 of file hid-apple.c.

#define APPLE_INVERT_HWHEEL   0x0040

Definition at line 34 of file hid-apple.c.

#define APPLE_ISO_KEYBOARD   0x0010

Definition at line 32 of file hid-apple.c.

#define APPLE_MIGHTYMOUSE   0x0020

Definition at line 33 of file hid-apple.c.

#define APPLE_NUMLOCK_EMULATION   0x0100

Definition at line 36 of file hid-apple.c.

#define APPLE_RDESC_JIS   0x0001

Definition at line 28 of file hid-apple.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file hid-apple.c.

Function Documentation

MODULE_DEVICE_TABLE ( hid  ,
apple_devices   
)
module_exit ( apple_exit  )
module_init ( apple_init  )
MODULE_LICENSE ( "GPL"  )
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)"   
)