Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
serial.c File Reference
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include "u_serial.h"
#include "gadget_chips.h"
#include "f_acm.c"
#include "f_obex.c"
#include "f_serial.c"
#include "u_serial.c"

Go to the source code of this file.

Macros

#define GS_VERSION_STR   "v2.4"
 
#define GS_VERSION_NUM   0x2400
 
#define GS_LONG_NAME   "Gadget Serial"
 
#define GS_VERSION_NAME   GS_LONG_NAME " " GS_VERSION_STR
 
#define GS_VENDOR_ID   0x0525 /* NetChip */
 
#define GS_PRODUCT_ID   0xa4a6 /* Linux-USB Serial Gadget */
 
#define GS_CDC_PRODUCT_ID   0xa4a7 /* ... as CDC-ACM */
 
#define GS_CDC_OBEX_PRODUCT_ID   0xa4a9 /* ... as CDC-OBEX */
 
#define STRING_DESCRIPTION_IDX   USB_GADGET_FIRST_AVAIL_IDX
 

Functions

 USB_GADGET_COMPOSITE_OPTIONS ()
 
 MODULE_DESCRIPTION (GS_VERSION_NAME)
 
 MODULE_AUTHOR ("Al Borchers")
 
 MODULE_AUTHOR ("David Brownell")
 
 MODULE_LICENSE ("GPL")
 
 module_param (use_acm, bool, 0)
 
 MODULE_PARM_DESC (use_acm,"Use CDC ACM, default=yes")
 
 module_param (use_obex, bool, 0)
 
 MODULE_PARM_DESC (use_obex,"Use CDC OBEX, default=no")
 
 module_param (n_ports, uint, 0)
 
 MODULE_PARM_DESC (n_ports,"number of ports to create, default=1")
 
 module_init (init)
 
 module_exit (cleanup)
 

Macro Definition Documentation

#define GS_CDC_OBEX_PRODUCT_ID   0xa4a9 /* ... as CDC-OBEX */

Definition at line 55 of file serial.c.

#define GS_CDC_PRODUCT_ID   0xa4a7 /* ... as CDC-ACM */

Definition at line 54 of file serial.c.

#define GS_LONG_NAME   "Gadget Serial"

Definition at line 27 of file serial.c.

#define GS_PRODUCT_ID   0xa4a6 /* Linux-USB Serial Gadget */

Definition at line 53 of file serial.c.

#define GS_VENDOR_ID   0x0525 /* NetChip */

Definition at line 52 of file serial.c.

#define GS_VERSION_NAME   GS_LONG_NAME " " GS_VERSION_STR

Definition at line 28 of file serial.c.

#define GS_VERSION_NUM   0x2400

Definition at line 25 of file serial.c.

#define GS_VERSION_STR   "v2.4"

Definition at line 24 of file serial.c.

#define STRING_DESCRIPTION_IDX   USB_GADGET_FIRST_AVAIL_IDX

Definition at line 59 of file serial.c.

Function Documentation

MODULE_AUTHOR ( "Al Borchers"  )
MODULE_AUTHOR ( "David Brownell"  )
MODULE_DESCRIPTION ( GS_VERSION_NAME  )
module_exit ( cleanup  )
module_init ( init  )
MODULE_LICENSE ( "GPL"  )
module_param ( use_acm  ,
bool  ,
 
)
module_param ( use_obex  ,
bool  ,
 
)
module_param ( n_ports  ,
uint  ,
 
)
MODULE_PARM_DESC ( use_acm  ,
"Use CDC  ACM 
)
MODULE_PARM_DESC ( use_obex  ,
"Use CDC  OBEX 
)
MODULE_PARM_DESC ( n_ports  ,
"number of ports to  create 
)
USB_GADGET_COMPOSITE_OPTIONS ( )