Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
vsc8211.c File Reference
#include "common.h"

Go to the source code of this file.

Macros

#define CFG_CHG_INTR_MASK
 
#define INTR_MASK
 
#define S_ACSR_ACTIPHY_TMR   0
 
#define M_ACSR_ACTIPHY_TMR   0x3
 
#define V_ACSR_ACTIPHY_TMR(x)   ((x) << S_ACSR_ACTIPHY_TMR)
 
#define S_ACSR_SPEED   3
 
#define M_ACSR_SPEED   0x3
 
#define G_ACSR_SPEED(x)   (((x) >> S_ACSR_SPEED) & M_ACSR_SPEED)
 
#define S_ACSR_DUPLEX   5
 
#define F_ACSR_DUPLEX   (1 << S_ACSR_DUPLEX)
 
#define S_ACSR_ACTIPHY   6
 
#define F_ACSR_ACTIPHY   (1 << S_ACSR_ACTIPHY)
 

Enumerations

enum  {
  VSC8211_SIGDET_CTRL = 19, VSC8211_EXT_CTRL = 23, VSC8211_INTR_ENABLE = 25, VSC8211_INTR_STATUS = 26,
  VSC8211_LED_CTRL = 27, VSC8211_AUX_CTRL_STAT = 28, VSC8211_EXT_PAGE_AXS = 31
}
 
enum  {
  VSC_INTR_RX_ERR = 1 << 0, VSC_INTR_MS_ERR = 1 << 1, VSC_INTR_CABLE = 1 << 2, VSC_INTR_FALSE_CARR = 1 << 3,
  VSC_INTR_MEDIA_CHG = 1 << 4, VSC_INTR_RX_FIFO = 1 << 5, VSC_INTR_TX_FIFO = 1 << 6, VSC_INTR_DESCRAMBL = 1 << 7,
  VSC_INTR_SYMBOL_ERR = 1 << 8, VSC_INTR_NEG_DONE = 1 << 10, VSC_INTR_NEG_ERR = 1 << 11, VSC_INTR_DPLX_CHG = 1 << 12,
  VSC_INTR_LINK_CHG = 1 << 13, VSC_INTR_SPD_CHG = 1 << 14, VSC_INTR_ENABLE = 1 << 15
}
 
enum  { VSC_CTRL_CLAUSE37_VIEW = 1 << 4, VSC_CTRL_MEDIA_MODE_HI = 0xf000 }
 

Functions

int t3_vsc8211_phy_prep (struct cphy *phy, struct adapter *adapter, int phy_addr, const struct mdio_ops *mdio_ops)
 

Macro Definition Documentation

#define CFG_CHG_INTR_MASK
Value:
VSC_INTR_DPLX_CHG | VSC_INTR_SPD_CHG | \
VSC_INTR_NEG_DONE)

Definition at line 68 of file vsc8211.c.

#define F_ACSR_ACTIPHY   (1 << S_ACSR_ACTIPHY)

Definition at line 87 of file vsc8211.c.

#define F_ACSR_DUPLEX   (1 << S_ACSR_DUPLEX)

Definition at line 84 of file vsc8211.c.

#define G_ACSR_SPEED (   x)    (((x) >> S_ACSR_SPEED) & M_ACSR_SPEED)

Definition at line 81 of file vsc8211.c.

#define INTR_MASK
Value:

Definition at line 71 of file vsc8211.c.

#define M_ACSR_ACTIPHY_TMR   0x3

Definition at line 76 of file vsc8211.c.

#define M_ACSR_SPEED   0x3

Definition at line 80 of file vsc8211.c.

#define S_ACSR_ACTIPHY   6

Definition at line 86 of file vsc8211.c.

#define S_ACSR_ACTIPHY_TMR   0

Definition at line 75 of file vsc8211.c.

#define S_ACSR_DUPLEX   5

Definition at line 83 of file vsc8211.c.

#define S_ACSR_SPEED   3

Definition at line 79 of file vsc8211.c.

#define V_ACSR_ACTIPHY_TMR (   x)    ((x) << S_ACSR_ACTIPHY_TMR)

Definition at line 77 of file vsc8211.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
VSC8211_SIGDET_CTRL 
VSC8211_EXT_CTRL 
VSC8211_INTR_ENABLE 
VSC8211_INTR_STATUS 
VSC8211_LED_CTRL 
VSC8211_AUX_CTRL_STAT 
VSC8211_EXT_PAGE_AXS 

Definition at line 35 of file vsc8211.c.

anonymous enum
Enumerator:
VSC_INTR_RX_ERR 
VSC_INTR_MS_ERR 
VSC_INTR_CABLE 
VSC_INTR_FALSE_CARR 
VSC_INTR_MEDIA_CHG 
VSC_INTR_RX_FIFO 
VSC_INTR_TX_FIFO 
VSC_INTR_DESCRAMBL 
VSC_INTR_SYMBOL_ERR 
VSC_INTR_NEG_DONE 
VSC_INTR_NEG_ERR 
VSC_INTR_DPLX_CHG 
VSC_INTR_LINK_CHG 
VSC_INTR_SPD_CHG 
VSC_INTR_ENABLE 

Definition at line 45 of file vsc8211.c.

anonymous enum
Enumerator:
VSC_CTRL_CLAUSE37_VIEW 
VSC_CTRL_MEDIA_MODE_HI 

Definition at line 63 of file vsc8211.c.

Function Documentation

int t3_vsc8211_phy_prep ( struct cphy phy,
struct adapter adapter,
int  phy_addr,
const struct mdio_ops mdio_ops 
)

Definition at line 367 of file vsc8211.c.