Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hid-roccat.c File Reference
#include <linux/cdev.h>
#include <linux/poll.h>
#include <linux/sched.h>
#include <linux/hid-roccat.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  roccat_report
 
struct  roccat_device
 
struct  roccat_reader
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define ROCCAT_FIRST_MINOR   0
 
#define ROCCAT_MAX_DEVICES   8
 
#define ROCCAT_CBUF_SIZE   16
 

Functions

int roccat_report_event (int minor, u8 const *data)
 
 EXPORT_SYMBOL_GPL (roccat_report_event)
 
int roccat_connect (struct class *klass, struct hid_device *hid, int report_size)
 
 EXPORT_SYMBOL_GPL (roccat_connect)
 
void roccat_disconnect (int minor)
 
 EXPORT_SYMBOL_GPL (roccat_disconnect)
 
 module_init (roccat_init)
 
 module_exit (roccat_exit)
 
 MODULE_AUTHOR ("Stefan Achatz")
 
 MODULE_DESCRIPTION ("USB Roccat char device")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 24 of file hid-roccat.c.

#define ROCCAT_CBUF_SIZE   16

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

#define ROCCAT_FIRST_MINOR   0

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

#define ROCCAT_MAX_DEVICES   8

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

Function Documentation

EXPORT_SYMBOL_GPL ( roccat_report_event  )
EXPORT_SYMBOL_GPL ( roccat_connect  )
EXPORT_SYMBOL_GPL ( roccat_disconnect  )
MODULE_AUTHOR ( "Stefan Achatz"  )
MODULE_DESCRIPTION ( "USB Roccat char device )
module_exit ( roccat_exit  )
module_init ( roccat_init  )
MODULE_LICENSE ( "GPL v2 )
int roccat_connect ( struct class klass,
struct hid_device hid,
int  report_size 
)

Definition at line 297 of file hid-roccat.c.

void roccat_disconnect ( int  minor)

Definition at line 354 of file hid-roccat.c.

int roccat_report_event ( int  minor,
u8 const data 
)

Definition at line 251 of file hid-roccat.c.