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

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]>"
 
#define DRIVER_DESC   "USB Serial Driver core"
 
#define set_to_generic_if_null(type, function)
 

Functions

struct usb_serialusb_serial_get_by_index (unsigned index)
 
void usb_serial_put (struct usb_serial *serial)
 
void usb_serial_port_softint (struct usb_serial_port *port)
 
 EXPORT_SYMBOL_GPL (usb_serial_port_softint)
 
int usb_serial_suspend (struct usb_interface *intf, pm_message_t message)
 
 EXPORT_SYMBOL (usb_serial_suspend)
 
int usb_serial_resume (struct usb_interface *intf)
 
 EXPORT_SYMBOL (usb_serial_resume)
 
 module_init (usb_serial_init)
 
 module_exit (usb_serial_exit)
 
and id_table of @id_table.
int usb_serial_register_drivers (struct usb_serial_driver *const serial_drivers[], const char *name, const struct usb_device_id *id_table)
 
 EXPORT_SYMBOL_GPL (usb_serial_register_drivers)
 
void usb_serial_deregister_drivers (struct usb_serial_driver *const serial_drivers[])
 
 EXPORT_SYMBOL_GPL (usb_serial_deregister_drivers)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Variables

struct tty_driverusb_serial_tty_driver
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]>"

Definition at line 42 of file usb-serial.c.

#define DRIVER_DESC   "USB Serial Driver core"

Definition at line 43 of file usb-serial.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 20 of file usb-serial.c.

#define set_to_generic_if_null (   type,
  function 
)
Value:
do { \
if (!type->function) { \
type->function = usb_serial_generic_##function; \
pr_debug("Had to override the " #function \
" usb serial operation with the generic one.");\
} \
} while (0)

Definition at line 1297 of file usb-serial.c.

Function Documentation

EXPORT_SYMBOL ( usb_serial_suspend  )
EXPORT_SYMBOL ( usb_serial_resume  )
EXPORT_SYMBOL_GPL ( usb_serial_port_softint  )
EXPORT_SYMBOL_GPL ( usb_serial_register_drivers  )
EXPORT_SYMBOL_GPL ( usb_serial_deregister_drivers  )
MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( usb_serial_exit  )
module_init ( usb_serial_init  )
MODULE_LICENSE ( "GPL"  )
void usb_serial_deregister_drivers ( struct usb_serial_driver *const  serial_drivers[])

usb_serial_deregister_drivers - deregister drivers for a usb-serial module : NULL-terminated array of pointers to drivers to be deregistered

Deregisters all the drivers in the array and deregisters and frees the struct usb_driver that was created by the call to usb_serial_register_drivers().

Definition at line 1444 of file usb-serial.c.

struct usb_serial* usb_serial_get_by_index ( unsigned  index)
read

Definition at line 62 of file usb-serial.c.

void usb_serial_port_softint ( struct usb_serial_port port)

Definition at line 528 of file usb-serial.c.

void usb_serial_put ( struct usb_serial serial)

Definition at line 158 of file usb-serial.c.

int usb_serial_register_drivers ( struct usb_serial_driver *const  serial_drivers[],
const char name,
const struct usb_device_id id_table 
)

Definition at line 1371 of file usb-serial.c.

int usb_serial_resume ( struct usb_interface intf)

Definition at line 1145 of file usb-serial.c.

int usb_serial_suspend ( struct usb_interface intf,
pm_message_t  message 
)

Definition at line 1118 of file usb-serial.c.

Variable Documentation

struct tty_driver* usb_serial_tty_driver

Definition at line 1197 of file usb-serial.c.