Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
g_ffs.c File Reference
#include <linux/module.h>
#include "f_fs.c"

Go to the source code of this file.

Data Structures

struct  gfs_ffs_obj
 
struct  gfs_configuration
 

Macros

#define pr_fmt(fmt)   "g_ffs: " fmt
 
#define gether_cleanup()   do { } while (0)
 
#define gether_setup(gadget, hostaddr)   ((int)0)
 
#define gfs_hostaddr   NULL
 
#define DRIVER_NAME   "g_ffs"
 
#define DRIVER_DESC   "USB Function Filesystem"
 
#define DRIVER_VERSION   "24 Aug 2004"
 
#define GFS_VENDOR_ID   0x1d6b /* Linux Foundation */
 
#define GFS_PRODUCT_ID   0x0105 /* FunctionFS Gadget */
 
#define GFS_MAX_DEVS   10
 

Functions

 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_AUTHOR ("Michal Nazarewicz")
 
 MODULE_LICENSE ("GPL")
 
 USB_GADGET_COMPOSITE_OPTIONS ()
 
 module_param_named (bDeviceClass, gfs_dev_desc.bDeviceClass, byte, 0644)
 
 MODULE_PARM_DESC (bDeviceClass,"USB Device class")
 
 module_param_named (bDeviceSubClass, gfs_dev_desc.bDeviceSubClass, byte, 0644)
 
 MODULE_PARM_DESC (bDeviceSubClass,"USB Device subclass")
 
 module_param_named (bDeviceProtocol, gfs_dev_desc.bDeviceProtocol, byte, 0644)
 
 MODULE_PARM_DESC (bDeviceProtocol,"USB Device protocol")
 
 module_param_array_named (functions, func_names, charp,&func_num, 0)
 
 MODULE_PARM_DESC (functions,"USB Functions list")
 
 module_init (gfs_init)
 
 module_exit (gfs_exit)
 

Variables

struct gfs_configuration gfs_configurations []
 

Macro Definition Documentation

#define DRIVER_DESC   "USB Function Filesystem"

Definition at line 53 of file g_ffs.c.

#define DRIVER_NAME   "g_ffs"

Definition at line 52 of file g_ffs.c.

#define DRIVER_VERSION   "24 Aug 2004"

Definition at line 54 of file g_ffs.c.

#define gether_cleanup (   void)    do { } while (0)

Definition at line 45 of file g_ffs.c.

#define gether_setup (   gadget,
  hostaddr 
)    ((int)0)

Definition at line 46 of file g_ffs.c.

#define gfs_hostaddr   NULL

Definition at line 47 of file g_ffs.c.

#define GFS_MAX_DEVS   10

Definition at line 63 of file g_ffs.c.

#define GFS_PRODUCT_ID   0x0105 /* FunctionFS Gadget */

Definition at line 61 of file g_ffs.c.

#define GFS_VENDOR_ID   0x1d6b /* Linux Foundation */

Definition at line 60 of file g_ffs.c.

#define pr_fmt (   fmt)    "g_ffs: " fmt

Definition at line 13 of file g_ffs.c.

Function Documentation

MODULE_AUTHOR ( "Michal Nazarewicz"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( gfs_exit  )
module_init ( gfs_init  )
MODULE_LICENSE ( "GPL"  )
module_param_array_named ( functions  ,
func_names  ,
charp  ,
func_num,
 
)
module_param_named ( bDeviceClass  ,
gfs_dev_desc.  bDeviceClass,
byte  ,
0644   
)
module_param_named ( bDeviceSubClass  ,
gfs_dev_desc.  bDeviceSubClass,
byte  ,
0644   
)
module_param_named ( bDeviceProtocol  ,
gfs_dev_desc.  bDeviceProtocol,
byte  ,
0644   
)
MODULE_PARM_DESC ( bDeviceClass  ,
"USB Device class  
)
MODULE_PARM_DESC ( bDeviceSubClass  ,
"USB Device subclass  
)
MODULE_PARM_DESC ( bDeviceProtocol  ,
"USB Device protocol  
)
MODULE_PARM_DESC ( functions  ,
"USB Functions list  
)
USB_GADGET_COMPOSITE_OPTIONS ( )

Variable Documentation

struct gfs_configuration gfs_configurations[]
Initial value:
= {
}