#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
#include <linux/input.h>
#include <linux/usb.h>
#include <linux/poll.h>
Go to the source code of this file.
|
| | MODULE_DEVICE_TABLE (usb, usb_tranzport_table) |
| |
| | MODULE_VERSION ("0.35") |
| |
| | MODULE_AUTHOR ("Mike Taht <m@taht.net>") |
| |
| | MODULE_DESCRIPTION ("Tranzport USB Driver") |
| |
| | MODULE_LICENSE ("GPL") |
| |
| | MODULE_SUPPORTED_DEVICE ("Frontier Designs Tranzport Control Surface") |
| |
| | module_param (debug, int, S_IRUGO|S_IWUSR) |
| |
| | MODULE_PARM_DESC (debug,"Debug enabled or not") |
| |
| | module_param (ring_buffer_size, int, S_IRUGO) |
| |
| | MODULE_PARM_DESC (ring_buffer_size,"Read ring buffer size in reports") |
| |
| | module_param (write_buffer_size, int, S_IRUGO) |
| |
| | MODULE_PARM_DESC (write_buffer_size,"Write buffer size") |
| |
| | module_param (min_interrupt_in_interval, int, 0) |
| |
| | MODULE_PARM_DESC (min_interrupt_in_interval,"Minimum interrupt in interval in ms") |
| |
| | module_param (min_interrupt_out_interval, int, 0) |
| |
| | MODULE_PARM_DESC (min_interrupt_out_interval,"Minimum interrupt out interval in ms") |
| |
| | show_int (enable) |
| |
| | show_int (offline) |
| |
| | show_set_int (compress_wheel) |
| |
| | module_usb_driver (usb_tranzport_driver) |
| |
| #define COMPRESS_WHEEL_EVENTS 1 |
| #define PRODUCT_ID 0x8101 |
| #define RING_BUFFER_SIZE 1000 |
| #define show_int |
( |
|
value | ) |
|
| #define show_set_int |
( |
|
value | ) |
|
Value:
} \
if (kstrtoul(
buf, 10, &temp)) \
} \
Definition at line 187 of file tranzport.c.
| #define SUPPRESS_EXTRA_OFFLINE_EVENTS 1 |
| #define TRANZPORT_DEBUG 0 |
| #define TRANZPORT_USB_TIMEOUT 10 |
| #define USB_TRANZPORT_MINOR_BASE 177 |
| #define WRITE_BUFFER_SIZE 34 |
| MODULE_AUTHOR |
( |
"Mike Taht <m@taht.net>" |
| ) |
|
| MODULE_DESCRIPTION |
( |
"Tranzport USB Driver" |
| ) |
|
| MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
usb_tranzport_table |
|
|
) |
| |
| module_param |
( |
write_buffer_size |
, |
|
|
int |
, |
|
|
S_IRUGO |
|
|
) |
| |
| module_param |
( |
min_interrupt_in_interval |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
| module_param |
( |
min_interrupt_out_interval |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
write_buffer_size |
, |
|
|
"Write buffer size" |
|
|
) |
| |
| MODULE_SUPPORTED_DEVICE |
( |
"Frontier Designs Tranzport Control Surface" |
| ) |
|
| module_usb_driver |
( |
usb_tranzport_driver |
| ) |
|
| MODULE_VERSION |
( |
"0.35" |
| ) |
|
| show_set_int |
( |
compress_wheel |
| ) |
|