Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
tcm_usb_gadget.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/configfs.h>
#include <linux/ctype.h>
#include <linux/usb/ch9.h>
#include <linux/usb/composite.h>
#include <linux/usb/gadget.h>
#include <linux/usb/storage.h>
#include <scsi/scsi.h>
#include <scsi/scsi_tcq.h>
#include <target/target_core_base.h>
#include <target/target_core_fabric.h>
#include <target/target_core_fabric_configfs.h>
#include <target/target_core_configfs.h>
#include <target/configfs_macros.h>
#include <asm/unaligned.h>
#include "tcm_usb_gadget.h"

Go to the source code of this file.

Data Structures

struct  guas_setup_wq
 

Macros

#define UAS_VENDOR_ID   0x0525 /* NetChip */
 
#define UAS_PRODUCT_ID   0xa4a5 /* Linux-USB File-backed Storage Gadget */
 

Functions

 USB_GADGET_COMPOSITE_OPTIONS ()
 
void bot_cleanup_old_alt (struct f_uas *fu)
 
 TF_WWN_ATTR_RO (usbg, version)
 
 TF_TPG_BASE_ATTR (tcm_usbg, enable, S_IRUGO|S_IWUSR)
 
 TF_TPG_BASE_ATTR (tcm_usbg, nexus, S_IRUGO|S_IWUSR)
 
 module_init (usb_target_gadget_init)
 
 module_exit (usb_target_gadget_exit)
 
 MODULE_AUTHOR ("Sebastian Andrzej Siewior <[email protected]>")
 
 MODULE_DESCRIPTION ("usb-gadget fabric")
 
 MODULE_LICENSE ("GPL v2")
 

Variables

struct usbg_tpgthe_only_tpg_I_currently_have
 

Macro Definition Documentation

#define UAS_PRODUCT_ID   0xa4a5 /* Linux-USB File-backed Storage Gadget */

Definition at line 2185 of file tcm_usb_gadget.c.

#define UAS_VENDOR_ID   0x0525 /* NetChip */

Definition at line 2184 of file tcm_usb_gadget.c.

Function Documentation

void bot_cleanup_old_alt ( struct f_uas fu)

Definition at line 373 of file tcm_usb_gadget.c.

MODULE_AUTHOR ( "Sebastian Andrzej Siewior <[email protected]>"  )
MODULE_DESCRIPTION ( "usb-gadget fabric"  )
module_exit ( usb_target_gadget_exit  )
module_init ( usb_target_gadget_init  )
MODULE_LICENSE ( "GPL v2 )
TF_TPG_BASE_ATTR ( tcm_usbg  ,
enable  ,
S_IRUGO S_IWUSR 
)
TF_TPG_BASE_ATTR ( tcm_usbg  ,
nexus  ,
S_IRUGO S_IWUSR 
)
TF_WWN_ATTR_RO ( usbg  ,
version   
)
USB_GADGET_COMPOSITE_OPTIONS ( )

Variable Documentation

struct usbg_tpg* the_only_tpg_I_currently_have

Definition at line 1536 of file tcm_usb_gadget.c.