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

Go to the source code of this file.

Data Structures

struct  f_ecm
 

Macros

#define LOG2_STATUS_INTERVAL_MSEC   5 /* 1 << 5 == 32 msec */
 
#define ECM_STATUS_BYTECOUNT   16 /* 8 byte header + data */
 

Enumerations

enum  ecm_notify_state { ECM_NOTIFY_NONE, ECM_NOTIFY_CONNECT, ECM_NOTIFY_SPEED }
 

Functions

int ecm_bind_config (struct usb_configuration *c, u8 ethaddr[ETH_ALEN])
 

Macro Definition Documentation

#define ECM_STATUS_BYTECOUNT   16 /* 8 byte header + data */

Definition at line 95 of file f_ecm.c.

#define LOG2_STATUS_INTERVAL_MSEC   5 /* 1 << 5 == 32 msec */

Definition at line 94 of file f_ecm.c.

Enumeration Type Documentation

Enumerator:
ECM_NOTIFY_NONE 
ECM_NOTIFY_CONNECT 
ECM_NOTIFY_SPEED 

Definition at line 41 of file f_ecm.c.

Function Documentation

int ecm_bind_config ( struct usb_configuration c,
u8  ethaddr[ETH_ALEN] 
)

ecm_bind_config - add CDC Ethernet network link to a configuration : the configuration to support the network link : a buffer in which the ethernet address of the host side side of the link was recorded Context: single threaded during gadget setup

Returns zero on success, else negative errno.

Caller must have called (). Caller is also responsible for calling () before module unload.

Definition at line 854 of file f_ecm.c.