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

Go to the source code of this file.

Data Structures

struct  f_obex
 

Macros

#define OBEX_CTRL_IDX   0
 
#define OBEX_DATA_IDX   1
 

Functions

int __init obex_bind_config (struct usb_configuration *c, u8 port_num)
 
 MODULE_AUTHOR ("Felipe Balbi")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define OBEX_CTRL_IDX   0

Definition at line 54 of file f_obex.c.

#define OBEX_DATA_IDX   1

Definition at line 55 of file f_obex.c.

Function Documentation

MODULE_AUTHOR ( "Felipe Balbi"  )
MODULE_LICENSE ( "GPL"  )
int __init obex_bind_config ( struct usb_configuration c,
u8  port_num 
)

obex_bind_config - add a CDC OBEX function to a configuration : the configuration to support the CDC OBEX instance : /dev/ttyGS* port this interface will use Context: single threaded during gadget setup

Returns zero on success, else negative errno.

Caller must have called () with enough ports to handle all the ones it binds. Caller is also responsible for calling () before module unload.

Definition at line 418 of file f_obex.c.