diff options
| author | Ioana Ciornei <[email protected]> | 2020-08-30 11:33:58 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-08-31 12:52:33 -0700 |
| commit | afd6220999d4932616322f8a893371f8d0567a2a (patch) | |
| tree | 848efcc4125ae5e61aa6988c2382ec0762b3d2a0 /include/linux/phylink.h | |
| parent | d60432994ea2ec559f60951260f381be9e460b64 (diff) | |
net: phylink: add helper function to decode USXGMII word
With the new addition of the USXGMII link partner ability constants we
can now introduce a phylink helper that decodes the USXGMII word and
populates the appropriate fields in the phylink_link_state structure
based on them.
Signed-off-by: Ioana Ciornei <[email protected]>
Reviewed-by: Russell King <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/phylink.h')
| -rw-r--r-- | include/linux/phylink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index c36fb41a7d90..d81a714cfbbd 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -490,4 +490,7 @@ void phylink_mii_c22_pcs_an_restart(struct mdio_device *pcs); void phylink_mii_c45_pcs_get_state(struct mdio_device *pcs, struct phylink_link_state *state); + +void phylink_decode_usxgmii_word(struct phylink_link_state *state, + uint16_t lpa); #endif |
