#include <linux/module.h>
#include <linux/kmod.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/usb.h>
#include <linux/crc32.h>
#include <linux/usb/usbnet.h>
#include <linux/slab.h>
#include "smsc95xx.h"
Go to the source code of this file.
|
#define | SMSC_CHIPNAME "smsc95xx" |
|
#define | SMSC_DRIVER_VERSION "1.0.4" |
|
#define | HS_USB_PKT_SIZE (512) |
|
#define | FS_USB_PKT_SIZE (64) |
|
#define | DEFAULT_HS_BURST_CAP_SIZE (16 * 1024 + 5 * HS_USB_PKT_SIZE) |
|
#define | DEFAULT_FS_BURST_CAP_SIZE (6 * 1024 + 33 * FS_USB_PKT_SIZE) |
|
#define | DEFAULT_BULK_IN_DELAY (0x00002000) |
|
#define | MAX_SINGLE_PACKET_SIZE (2048) |
|
#define | LAN95XX_EEPROM_MAGIC (0x9500) |
|
#define | EEPROM_MAC_OFFSET (0x01) |
|
#define | DEFAULT_TX_CSUM_ENABLE (true) |
|
#define | DEFAULT_RX_CSUM_ENABLE (true) |
|
#define | SMSC95XX_INTERNAL_PHY_ID (1) |
|
#define | SMSC95XX_TX_OVERHEAD (8) |
|
#define | SMSC95XX_TX_OVERHEAD_CSUM (12) |
|
#define | SUPPORTED_WAKE (WAKE_MAGIC) |
|
#define | check_warn(ret, fmt, args...) ({ if (ret < 0) netdev_warn(dev->net, fmt, ##args); }) |
|
#define | check_warn_return(ret, fmt, args...) ({ if (ret < 0) { netdev_warn(dev->net, fmt, ##args); return ret; } }) |
|
#define | check_warn_goto_done(ret, fmt, args...) ({ if (ret < 0) { netdev_warn(dev->net, fmt, ##args); goto done; } }) |
|
#define DEFAULT_BULK_IN_DELAY (0x00002000) |
#define DEFAULT_RX_CSUM_ENABLE (true) |
#define DEFAULT_TX_CSUM_ENABLE (true) |
#define EEPROM_MAC_OFFSET (0x01) |
#define FS_USB_PKT_SIZE (64) |
#define HS_USB_PKT_SIZE (512) |
#define LAN95XX_EEPROM_MAGIC (0x9500) |
#define MAX_SINGLE_PACKET_SIZE (2048) |
#define SMSC95XX_INTERNAL_PHY_ID (1) |
#define SMSC95XX_TX_OVERHEAD (8) |
#define SMSC95XX_TX_OVERHEAD_CSUM (12) |
#define SMSC_CHIPNAME "smsc95xx" |
#define SMSC_DRIVER_VERSION "1.0.4" |
MODULE_AUTHOR |
( |
"Nancy Lin" |
| ) |
|
MODULE_DESCRIPTION |
( |
"SMSC95XX USB 2.0 Ethernet Devices" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
products |
|
|
) |
| |
module_param |
( |
turbo_mode |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
turbo_mode |
, |
|
|
"Enable multiple frames per Rx transaction" |
|
|
) |
| |
module_usb_driver |
( |
smsc95xx_driver |
| ) |
|