Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cicada.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_CIS8201_EXT_CON1   0x17
 
#define MII_CIS8201_EXTCON1_INIT   0x0000
 
#define MII_CIS8201_IMASK   0x19
 
#define MII_CIS8201_IMASK_IEN   0x8000
 
#define MII_CIS8201_IMASK_SPEED   0x4000
 
#define MII_CIS8201_IMASK_LINK   0x2000
 
#define MII_CIS8201_IMASK_DUPLEX   0x1000
 
#define MII_CIS8201_IMASK_MASK   0xf000
 
#define MII_CIS8201_ISTAT   0x1a
 
#define MII_CIS8201_ISTAT_STATUS   0x8000
 
#define MII_CIS8201_ISTAT_SPEED   0x4000
 
#define MII_CIS8201_ISTAT_LINK   0x2000
 
#define MII_CIS8201_ISTAT_DUPLEX   0x1000
 
#define MII_CIS8201_AUX_CONSTAT   0x1c
 
#define MII_CIS8201_AUXCONSTAT_INIT   0x0004
 
#define MII_CIS8201_AUXCONSTAT_DUPLEX   0x0020
 
#define MII_CIS8201_AUXCONSTAT_SPEED   0x0018
 
#define MII_CIS8201_AUXCONSTAT_GBIT   0x0010
 
#define MII_CIS8201_AUXCONSTAT_100   0x0008
 

Functions

 MODULE_DESCRIPTION ("Cicadia PHY driver")
 
 MODULE_AUTHOR ("Andy Fleming")
 
 MODULE_LICENSE ("GPL")
 
 module_init (cicada_init)
 
 module_exit (cicada_exit)
 
 MODULE_DEVICE_TABLE (mdio, cicada_tbl)
 

Macro Definition Documentation

#define MII_CIS8201_AUX_CONSTAT   0x1c

Definition at line 57 of file cicada.c.

#define MII_CIS8201_AUXCONSTAT_100   0x0008

Definition at line 62 of file cicada.c.

#define MII_CIS8201_AUXCONSTAT_DUPLEX   0x0020

Definition at line 59 of file cicada.c.

#define MII_CIS8201_AUXCONSTAT_GBIT   0x0010

Definition at line 61 of file cicada.c.

#define MII_CIS8201_AUXCONSTAT_INIT   0x0004

Definition at line 58 of file cicada.c.

#define MII_CIS8201_AUXCONSTAT_SPEED   0x0018

Definition at line 60 of file cicada.c.

#define MII_CIS8201_EXT_CON1   0x17

Definition at line 38 of file cicada.c.

#define MII_CIS8201_EXTCON1_INIT   0x0000

Definition at line 39 of file cicada.c.

#define MII_CIS8201_IMASK   0x19

Definition at line 42 of file cicada.c.

#define MII_CIS8201_IMASK_DUPLEX   0x1000

Definition at line 46 of file cicada.c.

#define MII_CIS8201_IMASK_IEN   0x8000

Definition at line 43 of file cicada.c.

#define MII_CIS8201_IMASK_LINK   0x2000

Definition at line 45 of file cicada.c.

#define MII_CIS8201_IMASK_MASK   0xf000

Definition at line 47 of file cicada.c.

#define MII_CIS8201_IMASK_SPEED   0x4000

Definition at line 44 of file cicada.c.

#define MII_CIS8201_ISTAT   0x1a

Definition at line 50 of file cicada.c.

#define MII_CIS8201_ISTAT_DUPLEX   0x1000

Definition at line 54 of file cicada.c.

#define MII_CIS8201_ISTAT_LINK   0x2000

Definition at line 53 of file cicada.c.

#define MII_CIS8201_ISTAT_SPEED   0x4000

Definition at line 52 of file cicada.c.

#define MII_CIS8201_ISTAT_STATUS   0x8000

Definition at line 51 of file cicada.c.

Function Documentation

MODULE_AUTHOR ( "Andy Fleming"  )
MODULE_DESCRIPTION ( "Cicadia PHY driver )
MODULE_DEVICE_TABLE ( mdio  ,
cicada_tbl   
)
module_exit ( cicada_exit  )
module_init ( cicada_init  )
MODULE_LICENSE ( "GPL"  )