#include <linux/crc32.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/init.h>
#include <linux/mii.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/usb/usbnet.h>
Go to the source code of this file.
|
enum | {
HIF_REG_MULTICAST_HASH = 0x00,
HIF_REG_PACKET_GAP1 = 0x08,
HIF_REG_PACKET_GAP2 = 0x09,
HIF_REG_PHY_DATA = 0x0a,
HIF_REG_PHY_CMD1 = 0x0c,
HIF_REG_PHY_CMD1_READ = 0x40,
HIF_REG_PHY_CMD1_WRITE = 0x20,
HIF_REG_PHY_CMD1_PHYADDR = 0x01,
HIF_REG_PHY_CMD2 = 0x0d,
HIF_REG_PHY_CMD2_PEND_FLAG_BIT = 0x80,
HIF_REG_PHY_CMD2_READY_FLAG_BIT = 0x40,
HIF_REG_CONFIG = 0x0e,
HIF_REG_CONFIG_CFG = 0x80,
HIF_REG_CONFIG_SPEED100 = 0x40,
HIF_REG_CONFIG_FULLDUPLEX_ENABLE = 0x20,
HIF_REG_CONFIG_RXENABLE = 0x10,
HIF_REG_CONFIG_TXENABLE = 0x08,
HIF_REG_CONFIG_SLEEPMODE = 0x04,
HIF_REG_CONFIG_ALLMULTICAST = 0x02,
HIF_REG_CONFIG_PROMISCUOUS = 0x01,
HIF_REG_ETHERNET_ADDR = 0x0f,
HIF_REG_FRAME_DROP_COUNTER = 0x15,
HIF_REG_PAUSE_THRESHOLD = 0x16,
HIF_REG_PAUSE_THRESHOLD_DEFAULT = 0
} |
|
enum | {
MCS7830_RX_SHORT_FRAME = 0x01,
MCS7830_RX_LENGTH_ERROR = 0x02,
MCS7830_RX_ALIGNMENT_ERROR = 0x04,
MCS7830_RX_CRC_ERROR = 0x08,
MCS7830_RX_LARGE_FRAME = 0x10,
MCS7830_RX_FRAME_CORRECT = 0x20
} |
|
#define LN_030_PRODUCT_ID 0x0021 |
#define MCS7730_PRODUCT_ID 0x7730 |
#define MCS7830_CTRL_TIMEOUT 1000 |
#define MCS7830_MAX_MCAST 64 |
#define MCS7830_MII_ADVERTISE |
#define MCS7830_PRODUCT_ID 0x7830 |
#define MCS7830_RD_BREQ 0x0E |
#define MCS7830_VENDOR_ID 0x9710 |
#define MCS7830_WR_BREQ 0x0D |
#define MCS7832_PRODUCT_ID 0x7832 |
#define SITECOM_VENDOR_ID 0x0DF6 |
- Enumerator:
HIF_REG_MULTICAST_HASH |
|
HIF_REG_PACKET_GAP1 |
|
HIF_REG_PACKET_GAP2 |
|
HIF_REG_PHY_DATA |
|
HIF_REG_PHY_CMD1 |
|
HIF_REG_PHY_CMD1_READ |
|
HIF_REG_PHY_CMD1_WRITE |
|
HIF_REG_PHY_CMD1_PHYADDR |
|
HIF_REG_PHY_CMD2 |
|
HIF_REG_PHY_CMD2_PEND_FLAG_BIT |
|
HIF_REG_PHY_CMD2_READY_FLAG_BIT |
|
HIF_REG_CONFIG |
|
HIF_REG_CONFIG_CFG |
|
HIF_REG_CONFIG_SPEED100 |
|
HIF_REG_CONFIG_FULLDUPLEX_ENABLE |
|
HIF_REG_CONFIG_RXENABLE |
|
HIF_REG_CONFIG_TXENABLE |
|
HIF_REG_CONFIG_SLEEPMODE |
|
HIF_REG_CONFIG_ALLMULTICAST |
|
HIF_REG_CONFIG_PROMISCUOUS |
|
HIF_REG_ETHERNET_ADDR |
|
HIF_REG_FRAME_DROP_COUNTER |
|
HIF_REG_PAUSE_THRESHOLD |
|
HIF_REG_PAUSE_THRESHOLD_DEFAULT |
|
Definition at line 78 of file mcs7830.c.
- Enumerator:
MCS7830_RX_SHORT_FRAME |
|
MCS7830_RX_LENGTH_ERROR |
|
MCS7830_RX_ALIGNMENT_ERROR |
|
MCS7830_RX_CRC_ERROR |
|
MCS7830_RX_LARGE_FRAME |
|
MCS7830_RX_FRAME_CORRECT |
|
Definition at line 107 of file mcs7830.c.
MODULE_DESCRIPTION |
( |
"USB to network adapter |
MCS7830 | ) |
|
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
products |
|
|
) |
| |
module_usb_driver |
( |
mcs7830_driver |
| ) |
|