Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hid-roccat-isku.c File Reference
#include <linux/device.h>
#include <linux/input.h>
#include <linux/hid.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/hid-roccat.h>
#include "hid-ids.h"
#include "hid-roccat-common.h"
#include "hid-roccat-isku.h"

Go to the source code of this file.

Macros

#define ISKU_SYSFS_W(thingy, THINGY)
 
#define ISKU_SYSFS_R(thingy, THINGY)
 
#define ISKU_SYSFS_RW(thingy, THINGY)
 
#define ISKU_BIN_ATTR_RW(thingy)
 
#define ISKU_BIN_ATTR_R(thingy)
 
#define ISKU_BIN_ATTR_W(thingy)
 

Functions

 MODULE_DEVICE_TABLE (hid, isku_devices)
 
 module_init (isku_init)
 
 module_exit (isku_exit)
 
 MODULE_AUTHOR ("Stefan Achatz")
 
 MODULE_DESCRIPTION ("USB Roccat Isku driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define ISKU_BIN_ATTR_R (   thingy)
Value:
{ \
.attr = { .name = #thingy, .mode = 0440 }, \
.size = sizeof(struct isku_ ## thingy), \
.read = isku_sysfs_read_ ## thingy, \
}

Definition at line 194 of file hid-roccat-isku.c.

#define ISKU_BIN_ATTR_RW (   thingy)
Value:
{ \
.attr = { .name = #thingy, .mode = 0660 }, \
.size = sizeof(struct isku_ ## thingy), \
.read = isku_sysfs_read_ ## thingy, \
.write = isku_sysfs_write_ ## thingy \
}

Definition at line 186 of file hid-roccat-isku.c.

#define ISKU_BIN_ATTR_W (   thingy)
Value:
{ \
.attr = { .name = #thingy, .mode = 0220 }, \
.size = sizeof(struct isku_ ## thingy), \
.write = isku_sysfs_write_ ## thingy \
}

Definition at line 201 of file hid-roccat-isku.c.

#define ISKU_SYSFS_R (   thingy,
  THINGY 
)
Value:
static ssize_t isku_sysfs_read_ ## thingy(struct file *fp, struct kobject *kobj, \
struct bin_attribute *attr, char *buf, \
loff_t off, size_t count) \
{ \
return isku_sysfs_read(fp, kobj, buf, off, count, \
sizeof(struct isku_ ## thingy), ISKU_COMMAND_ ## THINGY); \
}

Definition at line 173 of file hid-roccat-isku.c.

#define ISKU_SYSFS_RW (   thingy,
  THINGY 
)
Value:
ISKU_SYSFS_R(thingy, THINGY) \
ISKU_SYSFS_W(thingy, THINGY)

Definition at line 182 of file hid-roccat-isku.c.

#define ISKU_SYSFS_W (   thingy,
  THINGY 
)
Value:
static ssize_t isku_sysfs_write_ ## thingy(struct file *fp, struct kobject *kobj, \
struct bin_attribute *attr, char *buf, \
loff_t off, size_t count) \
{ \
return isku_sysfs_write(fp, kobj, buf, off, count, \
sizeof(struct isku_ ## thingy), ISKU_COMMAND_ ## THINGY); \
}

Definition at line 164 of file hid-roccat-isku.c.

Function Documentation

MODULE_AUTHOR ( "Stefan Achatz"  )
MODULE_DESCRIPTION ( "USB Roccat Isku driver )
MODULE_DEVICE_TABLE ( hid  ,
isku_devices   
)
module_exit ( isku_exit  )
module_init ( isku_init  )
MODULE_LICENSE ( "GPL v2 )