Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cdc_ncm.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/ctype.h>
#include <linux/ethtool.h>
#include <linux/workqueue.h>
#include <linux/mii.h>
#include <linux/crc32.h>
#include <linux/usb.h>
#include <linux/hrtimer.h>
#include <linux/atomic.h>
#include <linux/usb/usbnet.h>
#include <linux/usb/cdc.h>

Go to the source code of this file.

Data Structures

struct  cdc_ncm_data
 
struct  cdc_ncm_ctx
 

Macros

#define DRIVER_VERSION   "14-Mar-2012"
 
#define USB_CDC_NCM_NDP16_LENGTH_MIN   0x10
 
#define CDC_NCM_NTB_MAX_SIZE_TX   32768 /* bytes */
 
#define CDC_NCM_NTB_MAX_SIZE_RX   32768 /* bytes */
 
#define CDC_NCM_MIN_DATAGRAM_SIZE   1514 /* bytes */
 
#define CDC_NCM_MIN_TX_PKT   512 /* bytes */
 
#define CDC_NCM_MAX_DATAGRAM_SIZE   8192 /* bytes */
 
#define CDC_NCM_DPT_DATAGRAMS_MAX   40
 
#define CDC_NCM_RESTART_TIMER_DATAGRAM_CNT   3
 
#define CDC_NCM_TIMER_PENDING_CNT   2
 
#define CDC_NCM_TIMER_INTERVAL   (400UL * NSEC_PER_USEC)
 
#define CDC_NCM_MIN_HDR_SIZE
 

Functions

 MODULE_DEVICE_TABLE (usb, cdc_devs)
 
 module_usb_driver (cdc_ncm_driver)
 
 MODULE_AUTHOR ("Hans Petter Selasky")
 
 MODULE_DESCRIPTION ("USB CDC NCM host driver")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 

Macro Definition Documentation

#define CDC_NCM_DPT_DATAGRAMS_MAX   40

Definition at line 76 of file cdc_ncm.c.

#define CDC_NCM_MAX_DATAGRAM_SIZE   8192 /* bytes */

Definition at line 70 of file cdc_ncm.c.

#define CDC_NCM_MIN_DATAGRAM_SIZE   1514 /* bytes */

Definition at line 65 of file cdc_ncm.c.

#define CDC_NCM_MIN_HDR_SIZE
Value:

Definition at line 84 of file cdc_ncm.c.

#define CDC_NCM_MIN_TX_PKT   512 /* bytes */

Definition at line 67 of file cdc_ncm.c.

#define CDC_NCM_NTB_MAX_SIZE_RX   32768 /* bytes */

Definition at line 62 of file cdc_ncm.c.

#define CDC_NCM_NTB_MAX_SIZE_TX   32768 /* bytes */

Definition at line 61 of file cdc_ncm.c.

#define CDC_NCM_RESTART_TIMER_DATAGRAM_CNT   3

Definition at line 79 of file cdc_ncm.c.

#define CDC_NCM_TIMER_INTERVAL   (400UL * NSEC_PER_USEC)

Definition at line 81 of file cdc_ncm.c.

#define CDC_NCM_TIMER_PENDING_CNT   2

Definition at line 80 of file cdc_ncm.c.

#define DRIVER_VERSION   "14-Mar-2012"

Definition at line 55 of file cdc_ncm.c.

#define USB_CDC_NCM_NDP16_LENGTH_MIN   0x10

Definition at line 58 of file cdc_ncm.c.

Function Documentation

MODULE_AUTHOR ( "Hans Petter Selasky"  )
MODULE_DESCRIPTION ( "USB CDC NCM host driver )
MODULE_DEVICE_TABLE ( usb  ,
cdc_devs   
)
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_usb_driver ( cdc_ncm_driver  )