#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/firmware.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/tty.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/ioctl.h>
#include <linux/serial.h>
#include <linux/kfifo.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include "ti_usb_3410_5052.h"
Go to the source code of this file.
|
| MODULE_AUTHOR (TI_DRIVER_AUTHOR) |
|
| MODULE_DESCRIPTION (TI_DRIVER_DESC) |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_FIRMWARE ("ti_3410.fw") |
|
| MODULE_FIRMWARE ("ti_5052.fw") |
|
| MODULE_FIRMWARE ("mts_cdma.fw") |
|
| MODULE_FIRMWARE ("mts_gsm.fw") |
|
| MODULE_FIRMWARE ("mts_edge.fw") |
|
| MODULE_FIRMWARE ("mts_mt9234mu.fw") |
|
| MODULE_FIRMWARE ("mts_mt9234zba.fw") |
|
| module_param (closing_wait, int, S_IRUGO|S_IWUSR) |
|
| MODULE_PARM_DESC (closing_wait,"Maximum wait for data to drain in close, in .01 secs, default is 4000") |
|
| module_param_array (vendor_3410, ushort,&vendor_3410_count, S_IRUGO) |
|
| MODULE_PARM_DESC (vendor_3410,"Vendor ids for 3410 based devices, 1-5 short integers") |
|
| module_param_array (product_3410, ushort,&product_3410_count, S_IRUGO) |
|
| MODULE_PARM_DESC (product_3410,"Product ids for 3410 based devices, 1-5 short integers") |
|
| module_param_array (vendor_5052, ushort,&vendor_5052_count, S_IRUGO) |
|
| MODULE_PARM_DESC (vendor_5052,"Vendor ids for 5052 based devices, 1-5 short integers") |
|
| module_param_array (product_5052, ushort,&product_5052_count, S_IRUGO) |
|
| MODULE_PARM_DESC (product_5052,"Product ids for 5052 based devices, 1-5 short integers") |
|
| MODULE_DEVICE_TABLE (usb, ti_id_table_combined) |
|
| module_init (ti_init) |
|
| module_exit (ti_exit) |
|
#define TI_DEFAULT_CLOSING_WAIT 4000 /* in .01 secs */ |
#define TI_DRIVER_DESC "TI USB 3410/5052 Serial Driver" |
#define TI_EXTRA_VID_PID_COUNT 5 |
#define TI_FIRMWARE_BUF_SIZE 16284 |
#define TI_READ_URB_RUNNING 0 |
#define TI_READ_URB_STOPPED 2 |
#define TI_READ_URB_STOPPING 1 |
#define TI_SET_SERIAL_FLAGS 0 |
#define TI_TRANSFER_TIMEOUT 2 |
#define TI_WRITE_BUF_SIZE 1024 |
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
ti_id_table_combined |
|
|
) |
| |
MODULE_FIRMWARE |
( |
"ti_3410.fw" |
| ) |
|
MODULE_FIRMWARE |
( |
"ti_5052.fw" |
| ) |
|
MODULE_FIRMWARE |
( |
"mts_cdma.fw" |
| ) |
|
MODULE_FIRMWARE |
( |
"mts_gsm.fw" |
| ) |
|
MODULE_FIRMWARE |
( |
"mts_edge.fw" |
| ) |
|
MODULE_FIRMWARE |
( |
"mts_mt9234mu.fw" |
| ) |
|
MODULE_FIRMWARE |
( |
"mts_mt9234zba.fw" |
| ) |
|
module_param |
( |
closing_wait |
, |
|
|
int |
, |
|
|
S_IRUGO| |
S_IWUSR |
|
) |
| |
module_param_array |
( |
vendor_3410 |
, |
|
|
ushort |
, |
|
|
& |
vendor_3410_count, |
|
|
S_IRUGO |
|
|
) |
| |
module_param_array |
( |
product_3410 |
, |
|
|
ushort |
, |
|
|
& |
product_3410_count, |
|
|
S_IRUGO |
|
|
) |
| |
module_param_array |
( |
vendor_5052 |
, |
|
|
ushort |
, |
|
|
& |
vendor_5052_count, |
|
|
S_IRUGO |
|
|
) |
| |
module_param_array |
( |
product_5052 |
, |
|
|
ushort |
, |
|
|
& |
product_5052_count, |
|
|
S_IRUGO |
|
|
) |
| |
MODULE_PARM_DESC |
( |
closing_wait |
, |
|
|
"Maximum wait for data to drain in |
close, |
|
|
in.01 |
secs, |
|
|
default is 4000" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
vendor_3410 |
, |
|
|
"Vendor ids for 3410 based |
devices, |
|
|
1-5 short integers" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
product_3410 |
, |
|
|
"Product ids for 3410 based |
devices, |
|
|
1-5 short integers" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
vendor_5052 |
, |
|
|
"Vendor ids for 5052 based |
devices, |
|
|
1-5 short integers" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
product_5052 |
, |
|
|
"Product ids for 5052 based |
devices, |
|
|
1-5 short integers" |
|
|
) |
| |