Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
dl2k.c File Reference
#include "dl2k.h"
#include <linux/dma-mapping.h>

Go to the source code of this file.

Macros

#define DRV_NAME   "DL2000/TC902x-based linux driver"
 
#define DRV_VERSION   "v1.19"
 
#define DRV_RELDATE   "2007/08/12"
 
#define dw32(reg, val)   iowrite32(val, ioaddr + (reg))
 
#define dw16(reg, val)   iowrite16(val, ioaddr + (reg))
 
#define dw8(reg, val)   iowrite8(val, ioaddr + (reg))
 
#define dr32(reg)   ioread32(ioaddr + (reg))
 
#define dr16(reg)   ioread16(ioaddr + (reg))
 
#define dr8(reg)   ioread8(ioaddr + (reg))
 
#define MAX_UNITS   8
 
#define DEFAULT_INTR
 
#define EEP_READ   0x0200
 
#define EEP_BUSY   0x8000
 
#define mii_delay()   dr8(PhyCtrl)
 

Enumerations

enum  phy_ctrl_bits {
  MII_READ = 0x00, MII_CLK = 0x01, MII_DATA1 = 0x02, MII_WRITE = 0x04,
  MII_DUPLEX = 0x08
}
 

Functions

 MODULE_AUTHOR ("Edward Peng")
 
 MODULE_DESCRIPTION ("D-Link DL2000-based Gigabit Ethernet Adapter")
 
 MODULE_LICENSE ("GPL")
 
 module_param_array (mtu, int, NULL, 0)
 
 module_param_array (media, charp, NULL, 0)
 
 module_param_array (vlan, int, NULL, 0)
 
 module_param_array (jumbo, int, NULL, 0)
 
 module_param (tx_flow, int, 0)
 
 module_param (rx_flow, int, 0)
 
 module_param (copy_thresh, int, 0)
 
 module_param (rx_coalesce, int, 0)
 
 module_param (rx_timeout, int, 0)
 
 module_param (tx_coalesce, int, 0)
 
 module_init (rio_init)
 
 module_exit (rio_exit)
 

Macro Definition Documentation

#define DEFAULT_INTR
Value:

Definition at line 57 of file dl2k.c.

#define dr16 (   reg)    ioread16(ioaddr + (reg))

Definition at line 23 of file dl2k.c.

#define dr32 (   reg)    ioread32(ioaddr + (reg))

Definition at line 22 of file dl2k.c.

#define dr8 (   reg)    ioread8(ioaddr + (reg))

Definition at line 24 of file dl2k.c.

#define DRV_NAME   "DL2000/TC902x-based linux driver"

Definition at line 13 of file dl2k.c.

#define DRV_RELDATE   "2007/08/12"

Definition at line 15 of file dl2k.c.

#define DRV_VERSION   "v1.19"

Definition at line 14 of file dl2k.c.

#define dw16 (   reg,
  val 
)    iowrite16(val, ioaddr + (reg))

Definition at line 20 of file dl2k.c.

#define dw32 (   reg,
  val 
)    iowrite32(val, ioaddr + (reg))

Definition at line 19 of file dl2k.c.

#define dw8 (   reg,
  val 
)    iowrite8(val, ioaddr + (reg))

Definition at line 21 of file dl2k.c.

#define EEP_BUSY   0x8000

Definition at line 1279 of file dl2k.c.

#define EEP_READ   0x0200

Definition at line 1278 of file dl2k.c.

#define MAX_UNITS   8

Definition at line 28 of file dl2k.c.

#define mii_delay ( )    dr8(PhyCtrl)

Definition at line 1300 of file dl2k.c.

Enumeration Type Documentation

Enumerator:
MII_READ 
MII_CLK 
MII_DATA1 
MII_WRITE 
MII_DUPLEX 

Definition at line 1295 of file dl2k.c.

Function Documentation

MODULE_AUTHOR ( "Edward Peng"  )
MODULE_DESCRIPTION ( "D-Link DL2000-based Gigabit Ethernet Adapter )
module_exit ( rio_exit  )
module_init ( rio_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( tx_flow  ,
int  ,
 
)
module_param ( rx_flow  ,
int  ,
 
)
module_param ( copy_thresh  ,
int  ,
 
)
module_param ( rx_coalesce  ,
int  ,
 
)
module_param ( rx_timeout  ,
int  ,
 
)
module_param ( tx_coalesce  ,
int  ,
 
)
module_param_array ( mtu  ,
int  ,
NULL  ,
 
)
module_param_array ( media  ,
charp  ,
NULL  ,
 
)
module_param_array ( vlan  ,
int  ,
NULL  ,
 
)
module_param_array ( jumbo  ,
int  ,
NULL  ,
 
)