#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kobject.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
#include <linux/input.h>
#include <linux/usb.h>
#include <linux/poll.h>
#include "alphatrack.h"
Go to the source code of this file.
|
| MODULE_DEVICE_TABLE (usb, usb_alphatrack_table) |
|
| MODULE_VERSION ("0.41") |
|
| MODULE_AUTHOR ("Mike Taht <m@taht.net>") |
|
| MODULE_DESCRIPTION ("Alphatrack USB Driver") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_SUPPORTED_DEVICE ("Frontier Designs Alphatrack 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") |
|
| 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") |
|
| module_usb_driver (usb_alphatrack_driver) |
|
#define ALPHATRACK_DEBUG 0 |
#define ALPHATRACK_USB_TIMEOUT 10 |
#define BUFFERED_WRITES 0 |
#define COMPRESS_FADER_EVENTS 0 |
#define INPUT_CMD_SIZE 12 |
#define OUTPUT_CMD_SIZE 8 |
#define PRODUCT_ID 0xfad1 |
#define RING_BUFFER_SIZE 512 |
#define SUPPRESS_EXTRA_OFFLINE_EVENTS 0 |
#define SUPPRESS_EXTRA_ONLINE_EVENTS 0 |
#define USB_ALPHATRACK_MINOR_BASE 176 |
This driver uses a ring buffer for time critical reading of interrupt in reports and provides read and write methods for raw interrupt reports.
Definition at line 50 of file alphatrack.c.
#define WRITE_BUFFER_SIZE 34 |
MODULE_AUTHOR |
( |
"Mike Taht <m@taht.net>" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Alphatrack USB Driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
usb_alphatrack_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 Alphatrack Control Surface" |
| ) |
|
module_usb_driver |
( |
usb_alphatrack_driver |
| ) |
|
MODULE_VERSION |
( |
"0.41" |
| ) |
|