9 #ifndef __LINUX_MDIO_H__
10 #define __LINUX_MDIO_H__
15 static inline bool mdio_phy_id_is_c45(
int phy_id)
20 static inline __u16 mdio_phy_id_prtad(
int phy_id)
25 static inline __u16 mdio_phy_id_devad(
int phy_id)
56 #define MDIO_PRTAD_NONE (-1)
57 #define MDIO_DEVAD_NONE (-1)
58 #define MDIO_SUPPORTS_C22 1
59 #define MDIO_SUPPORTS_C45 2
60 #define MDIO_EMULATE_C22 4
72 u32 npage_adv,
u32 npage_lpa);
87 static inline void mdio45_ethtool_gset(
const struct mdio_if_info *mdio,
103 static inline u32 mmd_eee_cap_to_ethtool_sup_t(
u16 eee_cap)
131 static inline u32 mmd_eee_adv_to_ethtool_adv_t(
u16 eee_adv)
135 if (eee_adv & MDIO_EEE_100TX)
137 if (eee_adv & MDIO_EEE_1000T)
139 if (eee_adv & MDIO_EEE_10GT)
141 if (eee_adv & MDIO_EEE_1000KX)
143 if (eee_adv & MDIO_EEE_10GKX4)
159 static inline u16 ethtool_adv_to_mmd_eee_adv_t(
u32 adv)