History

net: phylink: pcs: add 802.3 clause 22 helpers

Implement helpers for PCS accessed via the MII bus using 802.3 clause 22 cycles, conforming to 802.3 clause 37 and Cisco SGMII specifications for the advertisement word.

Russell King committed 6 years ago

Commit 74db1c11 parent 6cc7cf83 files · +217 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/phylink.h+6−0
@@ -317,4 +317,10 @@ int phylink_mii_ioctl(struct phylink *, struct ifreq *, int); · 316 unmodified lines
317317 void phylink_set_port_modes(unsigned long *bits);
318318 void phylink_helper_basex_speed(struct phylink_link_state *state);
319319
320+void phylink_mii_c22_pcs_get_state(struct mdio_device *pcs,
321+ struct phylink_link_state *state);
322+int phylink_mii_c22_pcs_set_advertisement(struct mdio_device *pcs,
323+ const struct phylink_link_state *state);
324+void phylink_mii_c22_pcs_an_restart(struct mdio_device *pcs);
325+
320326 #endif