#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/tty.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/serial.h>
#include <asm/unaligned.h>
Go to the source code of this file.
#define CH341_BAUDBASE_DIVMAX 3 |
#define CH341_BAUDBASE_FACTOR 1532620800 |
#define CH341_BIT_CTS 0x01 |
#define CH341_BIT_DCD 0x08 |
#define CH341_BIT_DSR 0x02 |
#define CH341_BIT_DTR (1 << 5) |
#define CH341_BIT_RI 0x04 |
#define CH341_BIT_RTS (1 << 6) |
#define CH341_BITS_MODEM_STAT 0x0f /* all bits */ |
#define CH341_MULT_STAT 0x04 /* multiple status since last interrupt event */ |
#define CH341_NBREAK_BITS_REG1 0x01 |
#define CH341_NBREAK_BITS_REG2 0x40 |
#define CH341_REG_BREAK1 0x05 |
#define CH341_REG_BREAK2 0x18 |
#define CH341_REQ_READ_REG 0x95 |
#define CH341_REQ_WRITE_REG 0x9A |
#define DEFAULT_BAUD_RATE 9600 |
#define DEFAULT_TIMEOUT 1000 |
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
id_table |
|
|
) |
| |
module_usb_serial_driver |
( |
serial_drivers |
, |
|
|
id_table |
|
|
) |
| |