#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.
#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:
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 |
|
) |
| |
#define ISKU_SYSFS_W |
( |
|
thingy, |
|
|
|
THINGY |
|
) |
| |
Value:
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.
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" |
| ) |
|