10 #ifndef EFX_MDIO_10G_H
11 #define EFX_MDIO_10G_H
13 #include <linux/mdio.h>
21 static inline unsigned efx_mdio_id_rev(
u32 id) {
return id & 0xf; }
22 static inline unsigned efx_mdio_id_model(
u32 id) {
return (
id >> 4) & 0x3f; }
25 static inline int efx_mdio_read(
struct efx_nic *efx,
int devad,
int addr)
31 efx_mdio_write(
struct efx_nic *efx,
int devad,
int addr,
int value)
33 efx->
mdio.mdio_write(efx->
net_dev, efx->
mdio.prtad, devad, addr, value);
36 static inline u32 efx_mdio_read_id(
struct efx_nic *efx,
int mmd)
40 return (id_hi << 16) | (id_low);
43 static inline bool efx_mdio_phyxgxs_lane_sync(
struct efx_nic *efx)
48 for (i = 0; i < 2; ++
i)
68 int spins,
int spintime);
84 int low_power,
unsigned int mmd_mask);
99 unsigned int mmd_mask);
103 efx_mdio_set_flag(
struct efx_nic *efx,
int devad,
int addr,