aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2015-02-14 13:17:50 -0500
committerDavid S. Miller <davem@davemloft.net>2015-02-19 15:52:25 -0500
commitf30446839b5a283cde54f7e233bbebc69bbd3d16 (patch)
treed3ed4858d8c276f529fa956072f2b9723e0e5fcb /drivers/net/dsa/mv88e6xxx.h
parentea8860eb504a953cf8fe0e96c3166201b05c9b73 (diff)
net: dsa: mv88e6352: Refactor shareable code
The mv88e6352 allows access to the port phys via an internal mdio bus which is accessed using registers in the GLOBAL 2 range. The mv88e6171 and probably other devices use the same mechanism. Move this code into the shared mv88e6xxx.c library. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r--drivers/net/dsa/mv88e6xxx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h
index 03e397efde36..72942271bb67 100644
--- a/drivers/net/dsa/mv88e6xxx.h
+++ b/drivers/net/dsa/mv88e6xxx.h
@@ -82,6 +82,12 @@ int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port);
82void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, 82void mv88e6xxx_get_regs(struct dsa_switch *ds, int port,
83 struct ethtool_regs *regs, void *_p); 83 struct ethtool_regs *regs, void *_p);
84int mv88e6xxx_get_temp(struct dsa_switch *ds, int *temp); 84int mv88e6xxx_get_temp(struct dsa_switch *ds, int *temp);
85int mv88e6xxx_phy_wait(struct dsa_switch *ds);
86int mv88e6xxx_eeprom_load_wait(struct dsa_switch *ds);
87int mv88e6xxx_eeprom_busy_wait(struct dsa_switch *ds);
88int mv88e6xxx_phy_read_indirect(struct dsa_switch *ds, int addr, int regnum);
89int mv88e6xxx_phy_write_indirect(struct dsa_switch *ds, int addr, int regnum,
90 u16 val);
85 91
86extern struct dsa_switch_driver mv88e6131_switch_driver; 92extern struct dsa_switch_driver mv88e6131_switch_driver;
87extern struct dsa_switch_driver mv88e6123_61_65_switch_driver; 93extern struct dsa_switch_driver mv88e6123_61_65_switch_driver;