Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
caif_usb.c File Reference
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/slab.h>
#include <linux/mii.h>
#include <linux/usb.h>
#include <linux/usb/usbnet.h>
#include <net/netns/generic.h>
#include <net/caif/caif_dev.h>
#include <net/caif/caif_layer.h>
#include <net/caif/cfpkt.h>
#include <net/caif/cfcnfg.h>

Go to the source code of this file.

Data Structures

struct  cfusbl
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ":%s(): " fmt, __func__
 
#define CFUSB_PAD_DESCR_SZ   1 /* Alignment descriptor length */
 
#define CFUSB_ALIGNMENT   4 /* Number of bytes to align. */
 
#define CFUSB_MAX_HEADLEN   (CFUSB_PAD_DESCR_SZ + CFUSB_ALIGNMENT-1)
 
#define STE_USB_VID   0x04cc /* USB Product ID for ST-Ericsson */
 
#define STE_USB_PID_CAIF   0x230f /* Product id for CAIF Modems */
 

Functions

 MODULE_LICENSE ("GPL")
 
struct cflayercfusbl_create (int phyid, u8 ethaddr[ETH_ALEN], u8 braddr[ETH_ALEN])
 
 module_init (cfusbl_init)
 
 module_exit (cfusbl_exit)
 

Macro Definition Documentation

#define CFUSB_ALIGNMENT   4 /* Number of bytes to align. */

Definition at line 26 of file caif_usb.c.

#define CFUSB_MAX_HEADLEN   (CFUSB_PAD_DESCR_SZ + CFUSB_ALIGNMENT-1)

Definition at line 27 of file caif_usb.c.

#define CFUSB_PAD_DESCR_SZ   1 /* Alignment descriptor length */

Definition at line 25 of file caif_usb.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ":%s(): " fmt, __func__

Definition at line 9 of file caif_usb.c.

#define STE_USB_PID_CAIF   0x230f /* Product id for CAIF Modems */

Definition at line 29 of file caif_usb.c.

#define STE_USB_VID   0x04cc /* USB Product ID for ST-Ericsson */

Definition at line 28 of file caif_usb.c.

Function Documentation

struct cflayer* cfusbl_create ( int  phyid,
u8  ethaddr[ETH_ALEN],
u8  braddr[ETH_ALEN] 
)
read

Definition at line 84 of file caif_usb.c.

module_exit ( cfusbl_exit  )
module_init ( cfusbl_init  )
MODULE_LICENSE ( "GPL"  )