#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.
|
#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) |
|
|
| 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") |
|
#define DRIVER_DESC "USB FTDI Serial Converters Driver" |
#define FTDI_IMPL_ASYNC_FLAGS |
#define WDR_SHORT_TIMEOUT 1000 /* shorter urb timeout */ |
#define WDR_TIMEOUT 5000 /* default urb timeout */ |
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
id_table_combined |
|
|
) |
| |
module_exit |
( |
ftdi_exit |
| ) |
|
module_init |
( |
ftdi_init |
| ) |
|
module_param |
( |
ndi_latency_timer |
, |
|
|
int |
, |
|
|
S_IRUGO| |
S_IWUSR |
|
) |
| |