Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
mcs7830.c File Reference
#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.

Data Structures

struct  mcs7830_data
 

Macros

#define MCS7830_RD_BMREQ
 
#define MCS7830_WR_BMREQ
 
#define MCS7830_RD_BREQ   0x0E
 
#define MCS7830_WR_BREQ   0x0D
 
#define MCS7830_CTRL_TIMEOUT   1000
 
#define MCS7830_MAX_MCAST   64
 
#define MCS7830_VENDOR_ID   0x9710
 
#define MCS7832_PRODUCT_ID   0x7832
 
#define MCS7830_PRODUCT_ID   0x7830
 
#define MCS7730_PRODUCT_ID   0x7730
 
#define SITECOM_VENDOR_ID   0x0DF6
 
#define LN_030_PRODUCT_ID   0x0021
 
#define MCS7830_MII_ADVERTISE
 

Enumerations

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
}
 

Functions

 MODULE_DEVICE_TABLE (usb, products)
 
 module_usb_driver (mcs7830_driver)
 
 MODULE_DESCRIPTION ("USB to network adapter MCS7830)")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define LN_030_PRODUCT_ID   0x0021

Definition at line 71 of file mcs7830.c.

#define MCS7730_PRODUCT_ID   0x7730

Definition at line 68 of file mcs7830.c.

#define MCS7830_CTRL_TIMEOUT   1000

Definition at line 62 of file mcs7830.c.

#define MCS7830_MAX_MCAST   64

Definition at line 63 of file mcs7830.c.

#define MCS7830_MII_ADVERTISE
Value:
ADVERTISE_100HALF | ADVERTISE_10FULL | \
ADVERTISE_10HALF | ADVERTISE_CSMA)

Definition at line 73 of file mcs7830.c.

#define MCS7830_PRODUCT_ID   0x7830

Definition at line 67 of file mcs7830.c.

#define MCS7830_RD_BMREQ
Value:
USB_RECIP_DEVICE)

Definition at line 55 of file mcs7830.c.

#define MCS7830_RD_BREQ   0x0E

Definition at line 59 of file mcs7830.c.

#define MCS7830_VENDOR_ID   0x9710

Definition at line 65 of file mcs7830.c.

#define MCS7830_WR_BMREQ
Value:
USB_RECIP_DEVICE)

Definition at line 57 of file mcs7830.c.

#define MCS7830_WR_BREQ   0x0D

Definition at line 60 of file mcs7830.c.

#define MCS7832_PRODUCT_ID   0x7832

Definition at line 66 of file mcs7830.c.

#define SITECOM_VENDOR_ID   0x0DF6

Definition at line 70 of file mcs7830.c.

Enumeration Type Documentation

anonymous enum
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.

anonymous enum
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.

Function Documentation

MODULE_DESCRIPTION ( "USB to network adapter  MCS7830)
MODULE_DEVICE_TABLE ( usb  ,
products   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( mcs7830_driver  )