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

Go to the source code of this file.

Macros

#define phy_read   _phy_read
 
#define phy_write   _phy_write
 
#define MII_CIS8201_10BTCSR   0x16
 
#define TENBTCSR_ECHO_DISABLE   0x2000
 
#define MII_CIS8201_EPCR   0x17
 
#define EPCR_MODE_MASK   0x3000
 
#define EPCR_GMII_MODE   0x0000
 
#define EPCR_RGMII_MODE   0x1000
 
#define EPCR_TBI_MODE   0x2000
 
#define EPCR_RTBI_MODE   0x3000
 
#define MII_CIS8201_ACSR   0x1c
 
#define ACSR_PIN_PRIO_SELECT   0x0004
 

Functions

int emac_mii_reset_phy (struct mii_phy *phy)
 
int emac_mii_reset_gpcs (struct mii_phy *phy)
 
int emac_mii_phy_probe (struct mii_phy *phy, int address)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ACSR_PIN_PRIO_SELECT   0x0004

Definition at line 303 of file phy.c.

#define EPCR_GMII_MODE   0x0000

Definition at line 298 of file phy.c.

#define EPCR_MODE_MASK   0x3000

Definition at line 297 of file phy.c.

#define EPCR_RGMII_MODE   0x1000

Definition at line 299 of file phy.c.

#define EPCR_RTBI_MODE   0x3000

Definition at line 301 of file phy.c.

#define EPCR_TBI_MODE   0x2000

Definition at line 300 of file phy.c.

#define MII_CIS8201_10BTCSR   0x16

Definition at line 294 of file phy.c.

#define MII_CIS8201_ACSR   0x1c

Definition at line 302 of file phy.c.

#define MII_CIS8201_EPCR   0x17

Definition at line 296 of file phy.c.

#define phy_read   _phy_read

Definition at line 31 of file phy.c.

#define phy_write   _phy_write

Definition at line 32 of file phy.c.

#define TENBTCSR_ECHO_DISABLE   0x2000

Definition at line 295 of file phy.c.

Function Documentation

int emac_mii_phy_probe ( struct mii_phy phy,
int  address 
)

Definition at line 483 of file phy.c.

int emac_mii_reset_gpcs ( struct mii_phy phy)

Definition at line 78 of file phy.c.

int emac_mii_reset_phy ( struct mii_phy phy)

Definition at line 54 of file phy.c.

MODULE_LICENSE ( "GPL"  )