Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pl2303.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/serial.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include "pl2303.h"

Go to the source code of this file.

Data Structures

struct  pl2303_serial_private
 
struct  pl2303_private
 

Macros

#define DRIVER_DESC   "Prolific PL2303 USB to serial adaptor driver"
 
#define SET_LINE_REQUEST_TYPE   0x21
 
#define SET_LINE_REQUEST   0x20
 
#define SET_CONTROL_REQUEST_TYPE   0x21
 
#define SET_CONTROL_REQUEST   0x22
 
#define CONTROL_DTR   0x01
 
#define CONTROL_RTS   0x02
 
#define BREAK_REQUEST_TYPE   0x21
 
#define BREAK_REQUEST   0x23
 
#define BREAK_ON   0xffff
 
#define BREAK_OFF   0x0000
 
#define GET_LINE_REQUEST_TYPE   0xa1
 
#define GET_LINE_REQUEST   0x21
 
#define VENDOR_WRITE_REQUEST_TYPE   0x40
 
#define VENDOR_WRITE_REQUEST   0x01
 
#define VENDOR_READ_REQUEST_TYPE   0xc0
 
#define VENDOR_READ_REQUEST   0x01
 
#define UART_STATE   0x08
 
#define UART_STATE_TRANSIENT_MASK   0x74
 
#define UART_DCD   0x01
 
#define UART_DSR   0x02
 
#define UART_BREAK_ERROR   0x04
 
#define UART_RING   0x08
 
#define UART_FRAME_ERROR   0x10
 
#define UART_PARITY_ERROR   0x20
 
#define UART_OVERRUN_ERROR   0x40
 
#define UART_CTS   0x80
 

Enumerations

enum  pl2303_type { type_0, type_1, HX }
 

Functions

 MODULE_DEVICE_TABLE (usb, id_table)
 
 module_usb_serial_driver (serial_drivers, id_table)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BREAK_OFF   0x0000

Definition at line 107 of file pl2303.c.

#define BREAK_ON   0xffff

Definition at line 106 of file pl2303.c.

#define BREAK_REQUEST   0x23

Definition at line 105 of file pl2303.c.

#define BREAK_REQUEST_TYPE   0x21

Definition at line 104 of file pl2303.c.

#define CONTROL_DTR   0x01

Definition at line 101 of file pl2303.c.

#define CONTROL_RTS   0x02

Definition at line 102 of file pl2303.c.

#define DRIVER_DESC   "Prolific PL2303 USB to serial adaptor driver"

Definition at line 37 of file pl2303.c.

#define GET_LINE_REQUEST   0x21

Definition at line 110 of file pl2303.c.

#define GET_LINE_REQUEST_TYPE   0xa1

Definition at line 109 of file pl2303.c.

#define SET_CONTROL_REQUEST   0x22

Definition at line 100 of file pl2303.c.

#define SET_CONTROL_REQUEST_TYPE   0x21

Definition at line 99 of file pl2303.c.

#define SET_LINE_REQUEST   0x20

Definition at line 97 of file pl2303.c.

#define SET_LINE_REQUEST_TYPE   0x21

Definition at line 96 of file pl2303.c.

#define UART_BREAK_ERROR   0x04

Definition at line 122 of file pl2303.c.

#define UART_CTS   0x80

Definition at line 127 of file pl2303.c.

#define UART_DCD   0x01

Definition at line 120 of file pl2303.c.

#define UART_DSR   0x02

Definition at line 121 of file pl2303.c.

#define UART_FRAME_ERROR   0x10

Definition at line 124 of file pl2303.c.

#define UART_OVERRUN_ERROR   0x40

Definition at line 126 of file pl2303.c.

#define UART_PARITY_ERROR   0x20

Definition at line 125 of file pl2303.c.

#define UART_RING   0x08

Definition at line 123 of file pl2303.c.

#define UART_STATE   0x08

Definition at line 118 of file pl2303.c.

#define UART_STATE_TRANSIENT_MASK   0x74

Definition at line 119 of file pl2303.c.

#define VENDOR_READ_REQUEST   0x01

Definition at line 116 of file pl2303.c.

#define VENDOR_READ_REQUEST_TYPE   0xc0

Definition at line 115 of file pl2303.c.

#define VENDOR_WRITE_REQUEST   0x01

Definition at line 113 of file pl2303.c.

#define VENDOR_WRITE_REQUEST_TYPE   0x40

Definition at line 112 of file pl2303.c.

Enumeration Type Documentation

Enumerator:
type_0 
type_1 
HX 

Definition at line 130 of file pl2303.c.

Function Documentation

MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
id_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_serial_driver ( serial_drivers  ,
id_table   
)