Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
f_mass_storage.c File Reference
#include <linux/blkdev.h>
#include <linux/completion.h>
#include <linux/dcache.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/fcntl.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/kref.h>
#include <linux/kthread.h>
#include <linux/limits.h>
#include <linux/rwsem.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/freezer.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/usb/composite.h>
#include "gadget_chips.h"
#include "storage_common.c"

Go to the source code of this file.

Data Structures

struct  fsg_operations
 
struct  fsg_common
 
struct  fsg_config
 
struct  fsg_config::fsg_lun_config
 
struct  fsg_dev
 
struct  fsg_module_parameters
 

Macros

#define FSG_DRIVER_DESC   "Mass Storage Function"
 
#define FSG_DRIVER_VERSION   "2009/09/11"
 
#define FSG_NO_DEVICE_STRINGS   1
 
#define FSG_NO_OTG   1
 
#define FSG_NO_INTR_EP   1
 
#define IGNORE_BULK_OUT   0
 
#define fsg_is_set(common)   likely(__fsg_is_set(common, __func__, __LINE__))
 
#define _FSG_MODULE_PARAM_ARRAY(prefix, params, name, type, desc)
 
#define _FSG_MODULE_PARAM(prefix, params, name, type, desc)
 
#define FSG_MODULE_PARAMETERS(prefix, params)
 

Typedefs

typedef void(* fsg_routine_t )(struct fsg_dev *)
 

Macro Definition Documentation

#define _FSG_MODULE_PARAM (   prefix,
  params,
  name,
  type,
  desc 
)
Value:
S_IRUGO); \
MODULE_PARM_DESC(prefix ## name, desc)

Definition at line 3055 of file f_mass_storage.c.

#define _FSG_MODULE_PARAM_ARRAY (   prefix,
  params,
  name,
  type,
  desc 
)
Value:
&prefix ## params.name ## _count, \
S_IRUGO); \
MODULE_PARM_DESC(prefix ## name, desc)

Definition at line 3049 of file f_mass_storage.c.

#define FSG_DRIVER_DESC   "Mass Storage Function"

Definition at line 226 of file f_mass_storage.c.

#define FSG_DRIVER_VERSION   "2009/09/11"

Definition at line 227 of file f_mass_storage.c.

#define fsg_is_set (   common)    likely(__fsg_is_set(common, __func__, __LINE__))

Definition at line 382 of file f_mass_storage.c.

#define FSG_MODULE_PARAMETERS (   prefix,
  params 
)
Value:
"names of backing files or devices"); \
_FSG_MODULE_PARAM_ARRAY(prefix, params, ro, bool, \
"true to force read-only"); \
_FSG_MODULE_PARAM_ARRAY(prefix, params, removable, bool, \
"true to simulate removable media"); \
_FSG_MODULE_PARAM_ARRAY(prefix, params, cdrom, bool, \
"true to simulate CD-ROM instead of disk"); \
_FSG_MODULE_PARAM_ARRAY(prefix, params, nofua, bool, \
"true to ignore SCSI WRITE(10,12) FUA bit"); \
_FSG_MODULE_PARAM(prefix, params, luns, uint, \
"number of LUNs"); \
_FSG_MODULE_PARAM(prefix, params, stall, bool, \
"false to prevent bulk stalls")

Definition at line 3060 of file f_mass_storage.c.

#define FSG_NO_DEVICE_STRINGS   1

Definition at line 231 of file f_mass_storage.c.

#define FSG_NO_INTR_EP   1

Definition at line 233 of file f_mass_storage.c.

#define FSG_NO_OTG   1

Definition at line 232 of file f_mass_storage.c.

#define IGNORE_BULK_OUT   0

Definition at line 366 of file f_mass_storage.c.

Typedef Documentation

typedef void(* fsg_routine_t)(struct fsg_dev *)

Definition at line 389 of file f_mass_storage.c.