#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 "smsc75xx.h"
Go to the source code of this file.
|
#define | SMSC_CHIPNAME "smsc75xx" |
|
#define | SMSC_DRIVER_VERSION "1.0.0" |
|
#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 (9000) |
|
#define | LAN75XX_EEPROM_MAGIC (0x7500) |
|
#define | EEPROM_MAC_OFFSET (0x01) |
|
#define | DEFAULT_TX_CSUM_ENABLE (true) |
|
#define | DEFAULT_RX_CSUM_ENABLE (true) |
|
#define | DEFAULT_TSO_ENABLE (true) |
|
#define | SMSC75XX_INTERNAL_PHY_ID (1) |
|
#define | SMSC75XX_TX_OVERHEAD (8) |
|
#define | MAX_RX_FIFO_SIZE (20 * 1024) |
|
#define | MAX_TX_FIFO_SIZE (12 * 1024) |
|
#define | USB_VENDOR_ID_SMSC (0x0424) |
|
#define | USB_PRODUCT_ID_LAN7500 (0x7500) |
|
#define | USB_PRODUCT_ID_LAN7505 (0x7505) |
|
#define | RXW_PADDING 2 |
|
#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_TSO_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 LAN75XX_EEPROM_MAGIC (0x7500) |
#define MAX_RX_FIFO_SIZE (20 * 1024) |
#define MAX_SINGLE_PACKET_SIZE (9000) |
#define MAX_TX_FIFO_SIZE (12 * 1024) |
#define SMSC75XX_INTERNAL_PHY_ID (1) |
#define SMSC75XX_TX_OVERHEAD (8) |
#define SMSC_CHIPNAME "smsc75xx" |
#define SMSC_DRIVER_VERSION "1.0.0" |
#define USB_PRODUCT_ID_LAN7500 (0x7500) |
#define USB_PRODUCT_ID_LAN7505 (0x7505) |
#define USB_VENDOR_ID_SMSC (0x0424) |
MODULE_AUTHOR |
( |
"Nancy Lin" |
| ) |
|
MODULE_DESCRIPTION |
( |
"SMSC75XX USB 2.0 Gigabit 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 |
( |
smsc75xx_driver |
| ) |
|