Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mv88e6xxx.h File Reference

Go to the source code of this file.

Data Structures

struct  mv88e6xxx_priv_state
 
struct  mv88e6xxx_hw_stat
 

Macros

#define REG_PORT(p)   (0x10 + (p))
 
#define REG_GLOBAL   0x1b
 
#define REG_GLOBAL2   0x1c
 
#define REG_READ(addr, reg)
 
#define REG_WRITE(addr, reg, val)
 

Functions

int __mv88e6xxx_reg_read (struct mii_bus *bus, int sw_addr, int addr, int reg)
 
int mv88e6xxx_reg_read (struct dsa_switch *ds, int addr, int reg)
 
int __mv88e6xxx_reg_write (struct mii_bus *bus, int sw_addr, int addr, int reg, u16 val)
 
int mv88e6xxx_reg_write (struct dsa_switch *ds, int addr, int reg, u16 val)
 
int mv88e6xxx_config_prio (struct dsa_switch *ds)
 
int mv88e6xxx_set_addr_direct (struct dsa_switch *ds, u8 *addr)
 
int mv88e6xxx_set_addr_indirect (struct dsa_switch *ds, u8 *addr)
 
int mv88e6xxx_phy_read (struct dsa_switch *ds, int addr, int regnum)
 
int mv88e6xxx_phy_write (struct dsa_switch *ds, int addr, int regnum, u16 val)
 
void mv88e6xxx_ppu_state_init (struct dsa_switch *ds)
 
int mv88e6xxx_phy_read_ppu (struct dsa_switch *ds, int addr, int regnum)
 
int mv88e6xxx_phy_write_ppu (struct dsa_switch *ds, int addr, int regnum, u16 val)
 
void mv88e6xxx_poll_link (struct dsa_switch *ds)
 
void mv88e6xxx_get_strings (struct dsa_switch *ds, int nr_stats, struct mv88e6xxx_hw_stat *stats, int port, uint8_t *data)
 
void mv88e6xxx_get_ethtool_stats (struct dsa_switch *ds, int nr_stats, struct mv88e6xxx_hw_stat *stats, int port, uint64_t *data)
 

Variables

struct dsa_switch_driver mv88e6131_switch_driver
 
struct dsa_switch_driver mv88e6123_61_65_switch_driver
 

Macro Definition Documentation

#define REG_GLOBAL   0x1b

Definition at line 15 of file mv88e6xxx.h.

#define REG_GLOBAL2   0x1c

Definition at line 16 of file mv88e6xxx.h.

#define REG_PORT (   p)    (0x10 + (p))

Definition at line 14 of file mv88e6xxx.h.

#define REG_READ (   addr,
  reg 
)
Value:
({ \
int __ret; \
\
__ret = mv88e6xxx_reg_read(ds, addr, reg); \
if (__ret < 0) \
return __ret; \
__ret; \
})

Definition at line 77 of file mv88e6xxx.h.

#define REG_WRITE (   addr,
  reg,
  val 
)
Value:
({ \
int __ret; \
\
if (__ret < 0) \
return __ret; \
})

Definition at line 87 of file mv88e6xxx.h.

Function Documentation

int __mv88e6xxx_reg_read ( struct mii_bus bus,
int  sw_addr,
int  addr,
int  reg 
)

Definition at line 44 of file mv88e6xxx.c.

int __mv88e6xxx_reg_write ( struct mii_bus bus,
int  sw_addr,
int  addr,
int  reg,
u16  val 
)

Definition at line 95 of file mv88e6xxx.c.

int mv88e6xxx_config_prio ( struct dsa_switch ds)

Definition at line 147 of file mv88e6xxx.c.

void mv88e6xxx_get_ethtool_stats ( struct dsa_switch ds,
int  nr_stats,
struct mv88e6xxx_hw_stat stats,
int  port,
uint64_t data 
)

Definition at line 489 of file mv88e6xxx.c.

void mv88e6xxx_get_strings ( struct dsa_switch ds,
int  nr_stats,
struct mv88e6xxx_hw_stat stats,
int  port,
uint8_t data 
)

Definition at line 477 of file mv88e6xxx.c.

int mv88e6xxx_phy_read ( struct dsa_switch ds,
int  addr,
int  regnum 
)

Definition at line 206 of file mv88e6xxx.c.

int mv88e6xxx_phy_read_ppu ( struct dsa_switch ds,
int  addr,
int  regnum 
)
int mv88e6xxx_phy_write ( struct dsa_switch ds,
int  addr,
int  regnum,
u16  val 
)

Definition at line 213 of file mv88e6xxx.c.

int mv88e6xxx_phy_write_ppu ( struct dsa_switch ds,
int  addr,
int  regnum,
u16  val 
)
void mv88e6xxx_poll_link ( struct dsa_switch ds)

Definition at line 356 of file mv88e6xxx.c.

void mv88e6xxx_ppu_state_init ( struct dsa_switch ds)
int mv88e6xxx_reg_read ( struct dsa_switch ds,
int  addr,
int  reg 
)

Definition at line 82 of file mv88e6xxx.c.

int mv88e6xxx_reg_write ( struct dsa_switch ds,
int  addr,
int  reg,
u16  val 
)

Definition at line 134 of file mv88e6xxx.c.

int mv88e6xxx_set_addr_direct ( struct dsa_switch ds,
u8 addr 
)

Definition at line 169 of file mv88e6xxx.c.

int mv88e6xxx_set_addr_indirect ( struct dsa_switch ds,
u8 addr 
)

Definition at line 178 of file mv88e6xxx.c.

Variable Documentation

struct dsa_switch_driver mv88e6123_61_65_switch_driver

Definition at line 436 of file mv88e6123_61_65.c.

struct dsa_switch_driver mv88e6131_switch_driver

Definition at line 419 of file mv88e6131.c.