Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ti_usb_3410_5052.c File Reference
#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.

Data Structures

struct  ti_port
 
struct  ti_device
 

Macros

#define TI_DRIVER_AUTHOR   "Al Borchers <[email protected]>"
 
#define TI_DRIVER_DESC   "TI USB 3410/5052 Serial Driver"
 
#define TI_FIRMWARE_BUF_SIZE   16284
 
#define TI_WRITE_BUF_SIZE   1024
 
#define TI_TRANSFER_TIMEOUT   2
 
#define TI_DEFAULT_CLOSING_WAIT   4000 /* in .01 secs */
 
#define TI_SET_SERIAL_FLAGS   0
 
#define TI_READ_URB_RUNNING   0
 
#define TI_READ_URB_STOPPING   1
 
#define TI_READ_URB_STOPPED   2
 
#define TI_EXTRA_VID_PID_COUNT   5
 

Functions

 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)
 

Macro Definition Documentation

#define TI_DEFAULT_CLOSING_WAIT   4000 /* in .01 secs */

Definition at line 52 of file ti_usb_3410_5052.c.

#define TI_DRIVER_AUTHOR   "Al Borchers <[email protected]>"

Definition at line 43 of file ti_usb_3410_5052.c.

#define TI_DRIVER_DESC   "TI USB 3410/5052 Serial Driver"

Definition at line 44 of file ti_usb_3410_5052.c.

#define TI_EXTRA_VID_PID_COUNT   5

Definition at line 62 of file ti_usb_3410_5052.c.

#define TI_FIRMWARE_BUF_SIZE   16284

Definition at line 46 of file ti_usb_3410_5052.c.

#define TI_READ_URB_RUNNING   0

Definition at line 58 of file ti_usb_3410_5052.c.

#define TI_READ_URB_STOPPED   2

Definition at line 60 of file ti_usb_3410_5052.c.

#define TI_READ_URB_STOPPING   1

Definition at line 59 of file ti_usb_3410_5052.c.

#define TI_SET_SERIAL_FLAGS   0

Definition at line 55 of file ti_usb_3410_5052.c.

#define TI_TRANSFER_TIMEOUT   2

Definition at line 50 of file ti_usb_3410_5052.c.

#define TI_WRITE_BUF_SIZE   1024

Definition at line 48 of file ti_usb_3410_5052.c.

Function Documentation

MODULE_AUTHOR ( TI_DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( TI_DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
ti_id_table_combined   
)
module_exit ( ti_exit  )
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_init ( ti_init  )
MODULE_LICENSE ( "GPL"  )
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"   
)