#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/serial.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/spinlock.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/uaccess.h>
#include <linux/kfifo.h>
#include "oti6858.h"
Go to the source code of this file.
#define CONTROL_DTR_HIGH 0x08 |
#define CONTROL_MASK 0x0c |
#define CONTROL_RTS_HIGH 0x04 |
#define FMT_DATA_BITS_5 0x00 |
#define FMT_DATA_BITS_6 0x01 |
#define FMT_DATA_BITS_7 0x02 |
#define FMT_DATA_BITS_8 0x03 |
#define FMT_DATA_BITS_MASK 0x03 |
#define FMT_PARITY_EVEN 0x18 |
#define FMT_PARITY_MARK 0x28 |
#define FMT_PARITY_MASK 0x38 |
#define FMT_PARITY_NONE 0x00 |
#define FMT_PARITY_ODD 0x08 |
#define FMT_PARITY_SPACE 0x38 |
#define FMT_STOP_BITS_1 0x00 |
#define FMT_STOP_BITS_2 0x40 /* 1.5 stop bits if FMT_DATA_BITS_5 */ |
#define FMT_STOP_BITS_MASK 0xc0 |
#define OTI6858_AUTHOR "Tomasz Michal Lukaszewski <FIXME@FIXME>" |
#define OTI6858_CTRL_EQUALS_PENDING |
( |
|
a, |
|
|
|
priv |
|
) |
| |
Value:
&& ((
a)->control == (
priv)->pending_setup.control) \
&& ((
a)->frame_fmt == (
priv)->pending_setup.frame_fmt))
Definition at line 117 of file oti6858.c.
#define OTI6858_MAX_BAUD_RATE 3000000 |
#define OTI6858_REQ_T_CHECK_TXBUFF 0x00 |
#define OTI6858_REQ_T_GET_STATUS 0x01 |
#define OTI6858_REQ_T_SET_LINE 0x00 |
#define OTI6858_VERSION "0.2" |
#define PIN_CTS 0x10 /* input pin, active low */ |
#define PIN_DCD 0x01 /* input pin, active low */ |
#define PIN_DSR 0x08 /* input pin, active low */ |
#define PIN_DTR 0x04 /* output pin */ |
#define PIN_RI 0x02 /* input pin, active low */ |
#define PIN_RTS 0x20 /* output pin */ |
#define TX_BUFFER_EMPTIED 0x09 |
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
id_table |
|
|
) |
| |
module_usb_serial_driver |
( |
serial_drivers |
, |
|
|
id_table |
|
|
) |
| |