Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
f_sourcesink.c File Reference
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/module.h>
#include "g_zero.h"
#include "gadget_chips.h"

Go to the source code of this file.

Data Structures

struct  f_sourcesink
 

Macros

#define FS_ALT_IFC_1_OFFSET   3
 
#define HS_ALT_IFC_1_OFFSET   3
 
#define SS_ALT_IFC_1_OFFSET   5
 

Functions

 module_param (pattern, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (pattern,"0 = all zeroes, 1 = mod63, 2 = none")
 
 module_param (isoc_interval, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (isoc_interval,"1 - 16")
 
 module_param (isoc_maxpacket, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (isoc_maxpacket,"0 - 1023 (fs), 0 - 1024 (hs/ss)")
 
 module_param (isoc_mult, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (isoc_mult,"0 - 2 (hs/ss only)")
 
 module_param (isoc_maxburst, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (isoc_maxburst,"0 - 15 (ss only)")
 
int __init sourcesink_add (struct usb_composite_dev *cdev, bool autoresume)
 

Variables

struct usb_ss_ep_comp_descriptor ss_source_comp_desc
 
struct usb_ss_ep_comp_descriptor ss_sink_comp_desc
 
struct usb_ss_ep_comp_descriptor ss_iso_source_comp_desc
 
struct usb_ss_ep_comp_descriptor ss_iso_sink_comp_desc
 

Macro Definition Documentation

#define FS_ALT_IFC_1_OFFSET   3
#define HS_ALT_IFC_1_OFFSET   3
#define SS_ALT_IFC_1_OFFSET   5

Function Documentation

module_param ( pattern  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param ( isoc_interval  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param ( isoc_maxpacket  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param ( isoc_mult  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param ( isoc_maxburst  ,
uint  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( pattern  ,
0 = all zeroes,
= mod63 
)
MODULE_PARM_DESC ( isoc_interval  ,
"1 - 16"   
)
MODULE_PARM_DESC ( isoc_maxpacket  ,
"0 - 1023   fs,
0-1024(hs/ss)"   
)
MODULE_PARM_DESC ( isoc_mult  ,
"0 - 2 (hs/ss only)"   
)
MODULE_PARM_DESC ( isoc_maxburst  ,
"0 - 15 (ss only)"   
)
int __init sourcesink_add ( struct usb_composite_dev cdev,
bool  autoresume 
)

sourcesink_add - add a source/sink testing configuration to a device : the device to support the configuration

Definition at line 873 of file f_sourcesink.c.

Variable Documentation

struct usb_ss_ep_comp_descriptor ss_iso_sink_comp_desc
Initial value:
= {
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
.bMaxBurst = 0,
.bmAttributes = 0,
.wBytesPerInterval = cpu_to_le16(1024),
}

Definition at line 269 of file f_sourcesink.c.

struct usb_ss_ep_comp_descriptor ss_iso_source_comp_desc
Initial value:
= {
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
.bMaxBurst = 0,
.bmAttributes = 0,
.wBytesPerInterval = cpu_to_le16(1024),
}

Definition at line 251 of file f_sourcesink.c.

struct usb_ss_ep_comp_descriptor ss_sink_comp_desc
Initial value:
= {
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
.bMaxBurst = 0,
.bmAttributes = 0,
.wBytesPerInterval = 0,
}

Definition at line 233 of file f_sourcesink.c.

struct usb_ss_ep_comp_descriptor ss_source_comp_desc
Initial value:
= {
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
.bMaxBurst = 0,
.bmAttributes = 0,
.wBytesPerInterval = 0,
}

Definition at line 216 of file f_sourcesink.c.