Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dm9601.c File Reference
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/stddef.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>

Go to the source code of this file.

Macros

#define DM_READ_REGS   0x00
 
#define DM_WRITE_REGS   0x01
 
#define DM_READ_MEMS   0x02
 
#define DM_WRITE_REG   0x03
 
#define DM_WRITE_MEMS   0x05
 
#define DM_WRITE_MEM   0x07
 
#define DM_NET_CTRL   0x00
 
#define DM_RX_CTRL   0x05
 
#define DM_SHARED_CTRL   0x0b
 
#define DM_SHARED_ADDR   0x0c
 
#define DM_SHARED_DATA   0x0d /* low + high */
 
#define DM_PHY_ADDR   0x10 /* 6 bytes */
 
#define DM_MCAST_ADDR   0x16 /* 8 bytes */
 
#define DM_GPR_CTRL   0x1e
 
#define DM_GPR_DATA   0x1f
 
#define DM_MAX_MCAST   64
 
#define DM_MCAST_SIZE   8
 
#define DM_EEPROM_LEN   256
 
#define DM_TX_OVERHEAD   2 /* 2 byte header */
 
#define DM_RX_OVERHEAD   7 /* 3 byte header + 4 byte crc tail */
 
#define DM_TIMEOUT   1000
 

Functions

 MODULE_DEVICE_TABLE (usb, products)
 
 module_usb_driver (dm9601_driver)
 
 MODULE_AUTHOR ("Peter Korsgaard <[email protected]>")
 
 MODULE_DESCRIPTION ("Davicom DM9601 USB 1.1 ethernet devices")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DM_EEPROM_LEN   256

Definition at line 51 of file dm9601.c.

#define DM_GPR_CTRL   0x1e

Definition at line 46 of file dm9601.c.

#define DM_GPR_DATA   0x1f

Definition at line 47 of file dm9601.c.

#define DM_MAX_MCAST   64

Definition at line 49 of file dm9601.c.

#define DM_MCAST_ADDR   0x16 /* 8 bytes */

Definition at line 45 of file dm9601.c.

#define DM_MCAST_SIZE   8

Definition at line 50 of file dm9601.c.

#define DM_NET_CTRL   0x00

Definition at line 39 of file dm9601.c.

#define DM_PHY_ADDR   0x10 /* 6 bytes */

Definition at line 44 of file dm9601.c.

#define DM_READ_MEMS   0x02

Definition at line 33 of file dm9601.c.

#define DM_READ_REGS   0x00

Definition at line 31 of file dm9601.c.

#define DM_RX_CTRL   0x05

Definition at line 40 of file dm9601.c.

#define DM_RX_OVERHEAD   7 /* 3 byte header + 4 byte crc tail */

Definition at line 53 of file dm9601.c.

#define DM_SHARED_ADDR   0x0c

Definition at line 42 of file dm9601.c.

#define DM_SHARED_CTRL   0x0b

Definition at line 41 of file dm9601.c.

#define DM_SHARED_DATA   0x0d /* low + high */

Definition at line 43 of file dm9601.c.

#define DM_TIMEOUT   1000

Definition at line 54 of file dm9601.c.

#define DM_TX_OVERHEAD   2 /* 2 byte header */

Definition at line 52 of file dm9601.c.

#define DM_WRITE_MEM   0x07

Definition at line 36 of file dm9601.c.

#define DM_WRITE_MEMS   0x05

Definition at line 35 of file dm9601.c.

#define DM_WRITE_REG   0x03

Definition at line 34 of file dm9601.c.

#define DM_WRITE_REGS   0x01

Definition at line 32 of file dm9601.c.

Function Documentation

MODULE_AUTHOR ( "Peter Korsgaard <[email protected]>"  )
MODULE_DESCRIPTION ( "Davicom DM9601 USB 1.1 ethernet devices )
MODULE_DEVICE_TABLE ( usb  ,
products   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( dm9601_driver  )