#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/etherdevice.h>
#include <linux/crc32.h>
#include <linux/usb/cdc.h>
#include "u_ether.h"
Go to the source code of this file.
#define FORMATS_SUPPORTED |
Value:
USB_CDC_NCM_NTB32_SUPPORTED)
Definition at line 101 of file f_ncm.c.
Value:{ \
.ndplen_align = 4, \
.dgram_item_len = 1, \
.block_length = 1, \
.fp_index = 1, \
.reserved1 = 0, \
.reserved2 = 0, \
.next_fp_index = 1, \
}
Definition at line 364 of file f_ncm.c.
Value:{ \
.ndplen_align = 8, \
.dgram_item_len = 2, \
.block_length = 2, \
.fp_index = 2, \
.reserved1 = 1, \
.reserved2 = 2, \
.next_fp_index = 2, \
}
Definition at line 379 of file f_ncm.c.
#define LOG2_STATUS_INTERVAL_MSEC 5 /* 1 << 5 == 32 msec */ |
#define MAX_TX_NONFIXED (512 * 3) |
#define NCM_NDP_HDR_CRC 0x01000000 |
#define NCM_NDP_HDR_CRC_MASK 0x01000000 |
#define NCM_NDP_HDR_NOCRC 0x00000000 |
#define NTB_OUT_SIZE 16384 |
#define STRING_CTRL_IDX 0 |
#define STRING_DATA_IDX 2 |
- Enumerator:
NCM_NOTIFY_NONE |
|
NCM_NOTIFY_CONNECT |
|
NCM_NOTIFY_SPEED |
|
Definition at line 42 of file f_ncm.c.
ncm_bind_config - add CDC 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 1302 of file f_ncm.c.