diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-02-14 13:17:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-19 15:52:25 -0500 |
commit | f30446839b5a283cde54f7e233bbebc69bbd3d16 (patch) | |
tree | d3ed4858d8c276f529fa956072f2b9723e0e5fcb /drivers/net/dsa/mv88e6xxx.h | |
parent | ea8860eb504a953cf8fe0e96c3166201b05c9b73 (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.h | 6 |
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); | |||
82 | void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, | 82 | void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, |
83 | struct ethtool_regs *regs, void *_p); | 83 | struct ethtool_regs *regs, void *_p); |
84 | int mv88e6xxx_get_temp(struct dsa_switch *ds, int *temp); | 84 | int mv88e6xxx_get_temp(struct dsa_switch *ds, int *temp); |
85 | int mv88e6xxx_phy_wait(struct dsa_switch *ds); | ||
86 | int mv88e6xxx_eeprom_load_wait(struct dsa_switch *ds); | ||
87 | int mv88e6xxx_eeprom_busy_wait(struct dsa_switch *ds); | ||
88 | int mv88e6xxx_phy_read_indirect(struct dsa_switch *ds, int addr, int regnum); | ||
89 | int mv88e6xxx_phy_write_indirect(struct dsa_switch *ds, int addr, int regnum, | ||
90 | u16 val); | ||
85 | 91 | ||
86 | extern struct dsa_switch_driver mv88e6131_switch_driver; | 92 | extern struct dsa_switch_driver mv88e6131_switch_driver; |
87 | extern struct dsa_switch_driver mv88e6123_61_65_switch_driver; | 93 | extern struct dsa_switch_driver mv88e6123_61_65_switch_driver; |