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

Go to the source code of this file.

Macros

#define DRIVER_VERSION   "Cinco de Mayo 2008"
 
#define DRIVER_VENDOR_NUM   0x0525 /* NetChip */
 
#define DRIVER_PRODUCT_NUM   0xa4a0 /* Linux-USB "Gadget Zero" */
 
#define DEFAULT_AUTORESUME   0
 

Functions

 USB_GADGET_COMPOSITE_OPTIONS ()
 
 module_param (buflen, uint, 0)
 
 module_param (loopdefault, bool, S_IRUGO|S_IWUSR)
 
 module_param (autoresume, uint, S_IRUGO)
 
 MODULE_PARM_DESC (autoresume,"zero, or seconds before remote wakeup")
 
struct usb_requestalloc_ep_req (struct usb_ep *ep, int len)
 
void free_ep_req (struct usb_ep *ep, struct usb_request *req)
 
void disable_endpoints (struct usb_composite_dev *cdev, struct usb_ep *in, struct usb_ep *out, struct usb_ep *iso_in, struct usb_ep *iso_out)
 
 MODULE_AUTHOR ("David Brownell")
 
 MODULE_LICENSE ("GPL")
 
 module_init (init)
 
 module_exit (cleanup)
 

Variables

unsigned buflen = 4096
 
unsigned autoresume = DEFAULT_AUTORESUME
 

Macro Definition Documentation

#define DEFAULT_AUTORESUME   0

Definition at line 92 of file zero.c.

#define DRIVER_PRODUCT_NUM   0xa4a0 /* Linux-USB "Gadget Zero" */

Definition at line 91 of file zero.c.

#define DRIVER_VENDOR_NUM   0x0525 /* NetChip */

Definition at line 90 of file zero.c.

#define DRIVER_VERSION   "Cinco de Mayo 2008"

Definition at line 66 of file zero.c.

Function Documentation

struct usb_request* alloc_ep_req ( struct usb_ep ep,
int  len 
)
read

Definition at line 161 of file zero.c.

void disable_endpoints ( struct usb_composite_dev cdev,
struct usb_ep in,
struct usb_ep out,
struct usb_ep iso_in,
struct usb_ep iso_out 
)

Definition at line 199 of file zero.c.

void free_ep_req ( struct usb_ep ep,
struct usb_request req 
)

Definition at line 180 of file zero.c.

MODULE_AUTHOR ( "David Brownell"  )
module_exit ( cleanup  )
module_init ( init  )
MODULE_LICENSE ( "GPL"  )
module_param ( buflen  ,
uint  ,
 
)
module_param ( loopdefault  ,
bool  ,
S_IRUGO S_IWUSR 
)
module_param ( autoresume  ,
uint  ,
S_IRUGO   
)
MODULE_PARM_DESC ( autoresume  ,
zero,
or seconds before remote wakeup"   
)
USB_GADGET_COMPOSITE_OPTIONS ( )

Variable Documentation

unsigned autoresume = DEFAULT_AUTORESUME

Definition at line 103 of file zero.c.

unsigned buflen = 4096

Definition at line 70 of file zero.c.