Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
mv88e6xxx.c File Reference
#include <linux/list.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/phy.h>
#include <net/dsa.h>
#include "mv88e6xxx.h"

Go to the source code of this file.

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_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)
 
 module_init (mv88e6xxx_init)
 
 module_exit (mv88e6xxx_cleanup)
 
 MODULE_AUTHOR ("Lennert Buytenhek <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for Marvell 88E6XXX ethernet switch chips")
 
 MODULE_LICENSE ("GPL")
 

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.

MODULE_AUTHOR ( "Lennert Buytenhek <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for Marvell 88E6XXX ethernet switch chips"  )
module_exit ( mv88e6xxx_cleanup  )
module_init ( mv88e6xxx_init  )
MODULE_LICENSE ( "GPL"  )
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_write ( struct dsa_switch ds,
int  addr,
int  regnum,
u16  val 
)

Definition at line 213 of file mv88e6xxx.c.

void mv88e6xxx_poll_link ( struct dsa_switch ds)

Definition at line 356 of file mv88e6xxx.c.

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.