Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
dm9000.c File Reference
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/crc32.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/dm9000.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/irq.h>
#include <linux/slab.h>
#include <asm/delay.h>
#include <asm/irq.h>
#include <asm/io.h>
#include "dm9000.h"

Go to the source code of this file.

Data Structures

struct  board_info
 
struct  dm9000_rxhdr
 

Macros

#define DM9000_PHY   0x40 /* PHY address 0x01 */
 
#define CARDNAME   "dm9000"
 
#define DRV_VERSION   "1.31"
 
#define dm9000_dbg(db, lev, msg...)
 
#define DM_EEPROM_MAGIC   (0x444D394B)
 

Typedefs

typedef struct board_info board_info_t
 

Enumerations

enum  dm9000_type { TYPE_DM9000E, TYPE_DM9000A, TYPE_DM9000B }
 

Functions

 module_param (watchdog, int, 0400)
 
 MODULE_PARM_DESC (watchdog,"transmit timeout in milliseconds")
 
 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"dm9000 debug level (0-4)")
 
 module_init (dm9000_init)
 
 module_exit (dm9000_cleanup)
 
 MODULE_AUTHOR ("Sascha Hauer, Ben Dooks")
 
 MODULE_DESCRIPTION ("Davicom DM9000 network driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:dm9000")
 

Variables

struct dm9000_rxhdr __packed
 

Macro Definition Documentation

#define CARDNAME   "dm9000"

Definition at line 49 of file dm9000.c.

#define dm9000_dbg (   db,
  lev,
  msg... 
)
Value:
do { \
if ((lev) < debug) { \
dev_dbg(db->dev, msg); \
} \
} while (0)

Definition at line 146 of file dm9000.c.

#define DM9000_PHY   0x40 /* PHY address 0x01 */

Definition at line 47 of file dm9000.c.

#define DM_EEPROM_MAGIC   (0x444D394B)

Definition at line 507 of file dm9000.c.

#define DRV_VERSION   "1.31"

Definition at line 50 of file dm9000.c.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
TYPE_DM9000E 
TYPE_DM9000A 
TYPE_DM9000B 

Definition at line 88 of file dm9000.c.

Function Documentation

MODULE_ALIAS ( "platform:dm9000"  )
MODULE_AUTHOR ( "Sascha  Hauer,
Ben Dooks"   
)
MODULE_DESCRIPTION ( "Davicom DM9000 network driver )
module_exit ( dm9000_cleanup  )
module_init ( dm9000_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( watchdog  ,
int  ,
0400   
)
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( watchdog  ,
"transmit timeout in milliseconds"   
)
MODULE_PARM_DESC ( debug  ,
"dm9000 debug level (0-4)"   
)

Variable Documentation