Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
vitesse.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/phy.h>

Go to the source code of this file.

Macros

#define MII_VSC8244_EXT_CON1   0x17
 
#define MII_VSC8244_EXTCON1_INIT   0x0000
 
#define MII_VSC8244_EXTCON1_TX_SKEW_MASK   0x0c00
 
#define MII_VSC8244_EXTCON1_RX_SKEW_MASK   0x0300
 
#define MII_VSC8244_EXTCON1_TX_SKEW   0x0800
 
#define MII_VSC8244_EXTCON1_RX_SKEW   0x0200
 
#define MII_VSC8244_IMASK   0x19
 
#define MII_VSC8244_IMASK_IEN   0x8000
 
#define MII_VSC8244_IMASK_SPEED   0x4000
 
#define MII_VSC8244_IMASK_LINK   0x2000
 
#define MII_VSC8244_IMASK_DUPLEX   0x1000
 
#define MII_VSC8244_IMASK_MASK   0xf000
 
#define MII_VSC8221_IMASK_MASK   0xa000
 
#define MII_VSC8244_ISTAT   0x1a
 
#define MII_VSC8244_ISTAT_STATUS   0x8000
 
#define MII_VSC8244_ISTAT_SPEED   0x4000
 
#define MII_VSC8244_ISTAT_LINK   0x2000
 
#define MII_VSC8244_ISTAT_DUPLEX   0x1000
 
#define MII_VSC8244_AUX_CONSTAT   0x1c
 
#define MII_VSC8244_AUXCONSTAT_INIT   0x0000
 
#define MII_VSC8244_AUXCONSTAT_DUPLEX   0x0020
 
#define MII_VSC8244_AUXCONSTAT_SPEED   0x0018
 
#define MII_VSC8244_AUXCONSTAT_GBIT   0x0010
 
#define MII_VSC8244_AUXCONSTAT_100   0x0008
 
#define MII_VSC8221_AUXCONSTAT_INIT   0x0004 /* need to set this bit? */
 
#define MII_VSC8221_AUXCONSTAT_RESERVED   0x0004
 
#define PHY_ID_VSC8244   0x000fc6c0
 
#define PHY_ID_VSC8221   0x000fc550
 

Functions

 MODULE_DESCRIPTION ("Vitesse PHY driver")
 
 MODULE_AUTHOR ("Kriston Carson")
 
 MODULE_LICENSE ("GPL")
 
int vsc824x_add_skew (struct phy_device *phydev)
 
 EXPORT_SYMBOL (vsc824x_add_skew)
 
 module_init (vsc82xx_init)
 
 module_exit (vsc82xx_exit)
 
 MODULE_DEVICE_TABLE (mdio, vitesse_tbl)
 

Macro Definition Documentation

#define MII_VSC8221_AUXCONSTAT_INIT   0x0004 /* need to set this bit? */

Definition at line 54 of file vitesse.c.

#define MII_VSC8221_AUXCONSTAT_RESERVED   0x0004

Definition at line 55 of file vitesse.c.

#define MII_VSC8221_IMASK_MASK   0xa000

Definition at line 37 of file vitesse.c.

#define MII_VSC8244_AUX_CONSTAT   0x1c

Definition at line 47 of file vitesse.c.

#define MII_VSC8244_AUXCONSTAT_100   0x0008

Definition at line 52 of file vitesse.c.

#define MII_VSC8244_AUXCONSTAT_DUPLEX   0x0020

Definition at line 49 of file vitesse.c.

#define MII_VSC8244_AUXCONSTAT_GBIT   0x0010

Definition at line 51 of file vitesse.c.

#define MII_VSC8244_AUXCONSTAT_INIT   0x0000

Definition at line 48 of file vitesse.c.

#define MII_VSC8244_AUXCONSTAT_SPEED   0x0018

Definition at line 50 of file vitesse.c.

#define MII_VSC8244_EXT_CON1   0x17

Definition at line 22 of file vitesse.c.

#define MII_VSC8244_EXTCON1_INIT   0x0000

Definition at line 23 of file vitesse.c.

#define MII_VSC8244_EXTCON1_RX_SKEW   0x0200

Definition at line 27 of file vitesse.c.

#define MII_VSC8244_EXTCON1_RX_SKEW_MASK   0x0300

Definition at line 25 of file vitesse.c.

#define MII_VSC8244_EXTCON1_TX_SKEW   0x0800

Definition at line 26 of file vitesse.c.

#define MII_VSC8244_EXTCON1_TX_SKEW_MASK   0x0c00

Definition at line 24 of file vitesse.c.

#define MII_VSC8244_IMASK   0x19

Definition at line 30 of file vitesse.c.

#define MII_VSC8244_IMASK_DUPLEX   0x1000

Definition at line 34 of file vitesse.c.

#define MII_VSC8244_IMASK_IEN   0x8000

Definition at line 31 of file vitesse.c.

#define MII_VSC8244_IMASK_LINK   0x2000

Definition at line 33 of file vitesse.c.

#define MII_VSC8244_IMASK_MASK   0xf000

Definition at line 35 of file vitesse.c.

#define MII_VSC8244_IMASK_SPEED   0x4000

Definition at line 32 of file vitesse.c.

#define MII_VSC8244_ISTAT   0x1a

Definition at line 40 of file vitesse.c.

#define MII_VSC8244_ISTAT_DUPLEX   0x1000

Definition at line 44 of file vitesse.c.

#define MII_VSC8244_ISTAT_LINK   0x2000

Definition at line 43 of file vitesse.c.

#define MII_VSC8244_ISTAT_SPEED   0x4000

Definition at line 42 of file vitesse.c.

#define MII_VSC8244_ISTAT_STATUS   0x8000

Definition at line 41 of file vitesse.c.

#define PHY_ID_VSC8221   0x000fc550

Definition at line 58 of file vitesse.c.

#define PHY_ID_VSC8244   0x000fc6c0

Definition at line 57 of file vitesse.c.

Function Documentation

EXPORT_SYMBOL ( vsc824x_add_skew  )
MODULE_AUTHOR ( "Kriston Carson"  )
MODULE_DESCRIPTION ( "Vitesse PHY driver )
MODULE_DEVICE_TABLE ( mdio  ,
vitesse_tbl   
)
module_exit ( vsc82xx_exit  )
module_init ( vsc82xx_init  )
MODULE_LICENSE ( "GPL"  )
int vsc824x_add_skew ( struct phy_device phydev)

Definition at line 64 of file vitesse.c.