Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ati_remote2.c File Reference
#include <linux/usb/input.h>
#include <linux/slab.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  ati_remote2
 

Macros

#define DRIVER_DESC   "ATI/Philips USB RF remote driver"
 
#define DRIVER_VERSION   "0.3"
 
#define param_check_channel_mask(name, p)   __param_check(name, p, unsigned int)
 
#define param_check_mode_mask(name, p)   __param_check(name, p, unsigned int)
 

Enumerations

enum  { ATI_REMOTE2_MAX_CHANNEL_MASK = 0xFFFF, ATI_REMOTE2_MAX_MODE_MASK = 0x1F }
 
enum  { ATI_REMOTE2_OPENED = 0x1, ATI_REMOTE2_SUSPENDED = 0x2 }
 
enum  {
  ATI_REMOTE2_AUX1, ATI_REMOTE2_AUX2, ATI_REMOTE2_AUX3, ATI_REMOTE2_AUX4,
  ATI_REMOTE2_PC, ATI_REMOTE2_MODES
}
 

Functions

 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_VERSION (DRIVER_VERSION)
 
 MODULE_AUTHOR ("Ville Syrjala <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 module_param (channel_mask, channel_mask, 0644)
 
 MODULE_PARM_DESC (channel_mask,"Bitmask of channels to accept <15:Channel16>...<1:Channel2><0:Channel1>")
 
 module_param (mode_mask, mode_mask, 0644)
 
 MODULE_PARM_DESC (mode_mask,"Bitmask of modes to accept <4:PC><3:AUX4><2:AUX3><1:AUX2><0:AUX1>")
 
 MODULE_DEVICE_TABLE (usb, ati_remote2_id_table)
 
 module_usb_driver (ati_remote2_driver)
 

Macro Definition Documentation

#define DRIVER_DESC   "ATI/Philips USB RF remote driver"

Definition at line 16 of file ati_remote2.c.

#define DRIVER_VERSION   "0.3"

Definition at line 17 of file ati_remote2.c.

#define param_check_channel_mask (   name,
  p 
)    __param_check(name, p, unsigned int)

Definition at line 96 of file ati_remote2.c.

#define param_check_mode_mask (   name,
  p 
)    __param_check(name, p, unsigned int)

Definition at line 105 of file ati_remote2.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ATI_REMOTE2_MAX_CHANNEL_MASK 
ATI_REMOTE2_MAX_MODE_MASK 

Definition at line 36 of file ati_remote2.c.

anonymous enum
Enumerator:
ATI_REMOTE2_OPENED 
ATI_REMOTE2_SUSPENDED 

Definition at line 121 of file ati_remote2.c.

anonymous enum
Enumerator:
ATI_REMOTE2_AUX1 
ATI_REMOTE2_AUX2 
ATI_REMOTE2_AUX3 
ATI_REMOTE2_AUX4 
ATI_REMOTE2_PC 
ATI_REMOTE2_MODES 

Definition at line 126 of file ati_remote2.c.

Function Documentation

MODULE_AUTHOR ( "Ville Syrjala <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
ati_remote2_id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( channel_mask  ,
channel_mask  ,
0644   
)
module_param ( mode_mask  ,
mode_mask  ,
0644   
)
MODULE_PARM_DESC ( channel_mask  ,
"Bitmask of channels to accept <15:Channel16>...<1:Channel2><0:Channel1>"   
)
MODULE_PARM_DESC ( mode_mask  ,
"Bitmask of modes to accept <4:PC><3:AUX4><2:AUX3><1:AUX2><0:AUX1>"   
)
module_usb_driver ( ati_remote2_driver  )
MODULE_VERSION ( DRIVER_VERSION  )

Variable Documentation

u8 hw_code

Definition at line 136 of file ati_remote2.c.

u16 keycode

Definition at line 137 of file ati_remote2.c.