Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hid-prodikeys.c File Reference
#include <linux/device.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/mutex.h>
#include <linux/hid.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/rawmidi.h>
#include "usbhid/usbhid.h"
#include "hid-ids.h"

Go to the source code of this file.

Data Structures

struct  pk_device
 
struct  pcmidi_sustain
 
struct  pcmidi_snd
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define pk_debug(format, arg...)   pr_debug("hid-prodikeys: " format "\n" , ## arg)
 
#define pk_error(format, arg...)   pr_err("hid-prodikeys: " format "\n" , ## arg)
 
#define PCMIDI_SUSTAINED_MAX   32
 
#define PK_QUIRK_NOGET   0x00010000
 
#define PCMIDI_MIDDLE_C   60
 
#define PCMIDI_CHANNEL_MIN   0
 
#define PCMIDI_CHANNEL_MAX   15
 
#define PCMIDI_OCTAVE_MIN   (-2)
 
#define PCMIDI_OCTAVE_MAX   2
 
#define PCMIDI_SUSTAIN_MIN   0
 
#define PCMIDI_SUSTAIN_MAX   5000
 

Functions

 module_param_array (index, int, NULL, 0444)
 
 module_param_array (id, charp, NULL, 0444)
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for the PC-MIDI virtual audio driver")
 
 MODULE_PARM_DESC (id,"ID string for the PC-MIDI virtual audio driver")
 
 MODULE_PARM_DESC (enable,"Enable for the PC-MIDI virtual audio driver")
 
 MODULE_DEVICE_TABLE (hid, pk_devices)
 
 module_init (pk_init)
 
 module_exit (pk_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define PCMIDI_CHANNEL_MAX   15

Definition at line 82 of file hid-prodikeys.c.

#define PCMIDI_CHANNEL_MIN   0

Definition at line 81 of file hid-prodikeys.c.

#define PCMIDI_MIDDLE_C   60

Definition at line 80 of file hid-prodikeys.c.

#define PCMIDI_OCTAVE_MAX   2

Definition at line 84 of file hid-prodikeys.c.

#define PCMIDI_OCTAVE_MIN   (-2)

Definition at line 83 of file hid-prodikeys.c.

#define PCMIDI_SUSTAIN_MAX   5000

Definition at line 86 of file hid-prodikeys.c.

#define PCMIDI_SUSTAIN_MIN   0

Definition at line 85 of file hid-prodikeys.c.

#define PCMIDI_SUSTAINED_MAX   32

Definition at line 56 of file hid-prodikeys.c.

#define pk_debug (   format,
  arg... 
)    pr_debug("hid-prodikeys: " format "\n" , ## arg)

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

#define pk_error (   format,
  arg... 
)    pr_err("hid-prodikeys: " format "\n" , ## arg)

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

#define PK_QUIRK_NOGET   0x00010000

Definition at line 79 of file hid-prodikeys.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 19 of file hid-prodikeys.c.

Function Documentation

MODULE_DEVICE_TABLE ( hid  ,
pk_devices   
)
module_exit ( pk_exit  )
module_init ( pk_init  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( index  ,
int  ,
NULL  ,
0444   
)
module_param_array ( id  ,
charp  ,
NULL  ,
0444   
)
module_param_array ( enable  ,
bool  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for the PC-MIDI virtual audio driver  
)
MODULE_PARM_DESC ( id  ,
"ID string for the PC-MIDI virtual audio driver  
)
MODULE_PARM_DESC ( enable  ,
"Enable for the PC-MIDI virtual audio driver  
)