#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/serial.h>
#include <linux/serial_reg.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/uaccess.h>
#include <linux/parport.h>
Go to the source code of this file.
|
| enum | mos_regs {
THR,
RHR,
IER,
FCR,
ISR,
LCR,
MCR,
LSR,
MSR,
SPR,
DLL,
DLM,
DPR,
DSR,
DCR,
ECR,
SP1_REG,
SP2_REG,
PP_REG,
SP_CONTROL_REG
} |
| |
| #define DRIVER_AUTHOR "Aspire Communications pvt Ltd." |
| #define DRIVER_DESC "Moschip USB Serial Driver" |
| #define DRIVER_VERSION "2.1" |
| #define LCR_BITS_MASK 0x03 /* Mask for bits/char field */ |
| #define LCR_PAR_MASK 0x38 /* Mask for parity field */ |
| #define LCR_STOP_MASK 0x04 /* Mask for stop bits field */ |
| #define MOS_MAX_PORT 0x02 |
| #define MOS_WDR_TIMEOUT (HZ * 5) |
| #define MOSCHIP_DEVICE_ID_7715 0x7715 |
| #define MOSCHIP_DEVICE_ID_7720 0x7720 |
| #define NUM_URBS 16 /* URB Count */ |
| #define SERIAL_IIR_CTI 0x0c |
| #define SERIAL_IIR_MS 0x00 |
| #define SERIAL_IIR_RDA 0x04 |
| #define SERIAL_IIR_RLS 0x06 |
| #define SERIAL_IIR_THR 0x02 |
| #define URB_TRANSFER_BUFFER_SIZE 32 /* URB Size */ |
| #define USB_VENDOR_ID_MOSCHIP 0x9710 |
- Enumerator:
| THR |
|
| RHR |
|
| IER |
|
| FCR |
|
| ISR |
|
| LCR |
|
| MCR |
|
| LSR |
|
| MSR |
|
| SPR |
|
| DLL |
|
| DLM |
|
| DPR |
|
| DSR |
|
| DCR |
|
| ECR |
|
| SP1_REG |
|
| SP2_REG |
|
| PP_REG |
|
| SP_CONTROL_REG |
|
Definition at line 128 of file mos7720.c.
| MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
id_table |
|
|
) |
| |
| module_usb_serial_driver |
( |
serial_drivers |
, |
|
|
id_table |
|
|
) |
| |