Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ftdi_sio.c File Reference
#include <linux/kernel.h>
#include <linux/errno.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/mutex.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/serial.h>
#include <linux/usb/serial.h>
#include "ftdi_sio.h"
#include "ftdi_sio_ids.h"

Go to the source code of this file.

Data Structures

struct  ftdi_private
 
struct  ftdi_sio_quirk
 

Macros

#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]>, Bill Ryder <[email protected]>, Kuba Ober <[email protected]>, Andreas Mohr, Johan Hovold <[email protected]>"
 
#define DRIVER_DESC   "USB FTDI Serial Converters Driver"
 
#define FTDI_STATUS_B0_MASK   (FTDI_RS0_CTS | FTDI_RS0_DSR | FTDI_RS0_RI | FTDI_RS0_RLSD)
 
#define FTDI_STATUS_B1_MASK   (FTDI_RS_BI)
 
#define FTDI_IMPL_ASYNC_FLAGS
 
#define WDR_TIMEOUT   5000 /* default urb timeout */
 
#define WDR_SHORT_TIMEOUT   1000 /* shorter urb timeout */
 
#define HIGH   1
 
#define LOW   0
 
#define set_mctrl(port, set)   update_mctrl((port), (set), 0)
 
#define clear_mctrl(port, clear)   update_mctrl((port), 0, (clear))
 
#define FTDI_RS_ERR_MASK   (FTDI_RS_BI | FTDI_RS_PE | FTDI_RS_FE | FTDI_RS_OE)
 

Functions

 MODULE_DEVICE_TABLE (usb, id_table_combined)
 
 module_init (ftdi_init)
 
 module_exit (ftdi_exit)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 module_param (vendor, ushort, 0)
 
 MODULE_PARM_DESC (vendor,"User specified vendor ID (default="__MODULE_STRING(FTDI_VID)")")
 
 module_param (product, ushort, 0)
 
 MODULE_PARM_DESC (product,"User specified product ID")
 
 module_param (ndi_latency_timer, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (ndi_latency_timer,"NDI device latency timer override")
 

Macro Definition Documentation

#define clear_mctrl (   port,
  clear 
)    update_mctrl((port), 0, (clear))

Definition at line 1058 of file ftdi_sio.c.

#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]>, Bill Ryder <[email protected]>, Kuba Ober <[email protected]>, Andreas Mohr, Johan Hovold <[email protected]>"

Definition at line 51 of file ftdi_sio.c.

#define DRIVER_DESC   "USB FTDI Serial Converters Driver"

Definition at line 52 of file ftdi_sio.c.

#define FTDI_IMPL_ASYNC_FLAGS
Value:

Definition at line 903 of file ftdi_sio.c.

#define FTDI_RS_ERR_MASK   (FTDI_RS_BI | FTDI_RS_PE | FTDI_RS_FE | FTDI_RS_OE)

Definition at line 1957 of file ftdi_sio.c.

#define FTDI_STATUS_B0_MASK   (FTDI_RS0_CTS | FTDI_RS0_DSR | FTDI_RS0_RI | FTDI_RS0_RLSD)

Definition at line 899 of file ftdi_sio.c.

#define FTDI_STATUS_B1_MASK   (FTDI_RS_BI)

Definition at line 900 of file ftdi_sio.c.

#define HIGH   1

Definition at line 972 of file ftdi_sio.c.

#define LOW   0

Definition at line 973 of file ftdi_sio.c.

#define set_mctrl (   port,
  set 
)    update_mctrl((port), (set), 0)

Definition at line 1057 of file ftdi_sio.c.

#define WDR_SHORT_TIMEOUT   1000 /* shorter urb timeout */

Definition at line 969 of file ftdi_sio.c.

#define WDR_TIMEOUT   5000 /* default urb timeout */

Definition at line 968 of file ftdi_sio.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
id_table_combined   
)
module_exit ( ftdi_exit  )
module_init ( ftdi_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( vendor  ,
ushort  ,
 
)
module_param ( product  ,
ushort  ,
 
)
module_param ( ndi_latency_timer  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( vendor  ,
"User specified vendor ID (default="__MODULE_STRING(FTDI_VID)")"   
)
MODULE_PARM_DESC ( product  ,
"User specified product ID  
)
MODULE_PARM_DESC ( ndi_latency_timer  ,
"NDI device latency timer override"   
)