Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
davicom.c File Reference
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/unistd.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/phy.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define MII_DM9161_SCR   0x10
 
#define MII_DM9161_SCR_INIT   0x0610
 
#define MII_DM9161_SCR_RMII   0x0100
 
#define MII_DM9161_INTR   0x15
 
#define MII_DM9161_INTR_PEND   0x8000
 
#define MII_DM9161_INTR_DPLX_MASK   0x0800
 
#define MII_DM9161_INTR_SPD_MASK   0x0400
 
#define MII_DM9161_INTR_LINK_MASK   0x0200
 
#define MII_DM9161_INTR_MASK   0x0100
 
#define MII_DM9161_INTR_DPLX_CHANGE   0x0010
 
#define MII_DM9161_INTR_SPD_CHANGE   0x0008
 
#define MII_DM9161_INTR_LINK_CHANGE   0x0004
 
#define MII_DM9161_INTR_INIT   0x0000
 
#define MII_DM9161_INTR_STOP
 
#define MII_DM9161_10BTCSR   0x12
 
#define MII_DM9161_10BTCSR_INIT   0x7800
 
#define DM9161_DELAY   1
 

Functions

 MODULE_DESCRIPTION ("Davicom PHY driver")
 
 MODULE_AUTHOR ("Andy Fleming")
 
 MODULE_LICENSE ("GPL")
 
 module_init (davicom_init)
 
 module_exit (davicom_exit)
 
 MODULE_DEVICE_TABLE (mdio, davicom_tbl)
 

Macro Definition Documentation

#define DM9161_DELAY   1

Definition at line 65 of file davicom.c.

#define MII_DM9161_10BTCSR   0x12

Definition at line 57 of file davicom.c.

#define MII_DM9161_10BTCSR_INIT   0x7800

Definition at line 58 of file davicom.c.

#define MII_DM9161_INTR   0x15

Definition at line 42 of file davicom.c.

#define MII_DM9161_INTR_DPLX_CHANGE   0x0010

Definition at line 48 of file davicom.c.

#define MII_DM9161_INTR_DPLX_MASK   0x0800

Definition at line 44 of file davicom.c.

#define MII_DM9161_INTR_INIT   0x0000

Definition at line 51 of file davicom.c.

#define MII_DM9161_INTR_LINK_CHANGE   0x0004

Definition at line 50 of file davicom.c.

#define MII_DM9161_INTR_LINK_MASK   0x0200

Definition at line 46 of file davicom.c.

#define MII_DM9161_INTR_MASK   0x0100

Definition at line 47 of file davicom.c.

#define MII_DM9161_INTR_PEND   0x8000

Definition at line 43 of file davicom.c.

#define MII_DM9161_INTR_SPD_CHANGE   0x0008

Definition at line 49 of file davicom.c.

#define MII_DM9161_INTR_SPD_MASK   0x0400

Definition at line 45 of file davicom.c.

#define MII_DM9161_INTR_STOP
#define MII_DM9161_SCR   0x10

Definition at line 37 of file davicom.c.

#define MII_DM9161_SCR_INIT   0x0610

Definition at line 38 of file davicom.c.

#define MII_DM9161_SCR_RMII   0x0100

Definition at line 39 of file davicom.c.

Function Documentation

MODULE_AUTHOR ( "Andy Fleming"  )
MODULE_DESCRIPTION ( "Davicom PHY driver )
MODULE_DEVICE_TABLE ( mdio  ,
davicom_tbl   
)
module_exit ( davicom_exit  )
module_init ( davicom_init  )
MODULE_LICENSE ( "GPL"  )