stmmac_do_callback(__priv, xpcs, get_state, __args)
#define stmmac_xpcs_link_up(__priv, __args...) \
stmmac_do_callback(__priv, xpcs, link_up, __args)
-#define stmmac_xpcs_probe(__priv, __args...) \
- stmmac_do_callback(__priv, xpcs, probe, __args)
struct stmmac_regs_off {
u32 ptp_off;
for (addr = 0; addr < max_addr; addr++) {
xpcs->addr = addr;
- ret = stmmac_xpcs_probe(priv, xpcs, mode);
+ ret = xpcs_probe(xpcs, mode);
if (!ret) {
found = 1;
break;
},
};
-static int xpcs_probe(struct mdio_xpcs_args *xpcs, phy_interface_t interface)
+int xpcs_probe(struct mdio_xpcs_args *xpcs, phy_interface_t interface)
{
u32 xpcs_id = xpcs_get_id(xpcs);
int i;
return -ENODEV;
}
+EXPORT_SYMBOL_GPL(xpcs_probe);
static struct mdio_xpcs_ops xpcs_ops = {
.config = xpcs_config,
.get_state = xpcs_get_state,
.link_up = xpcs_link_up,
- .probe = xpcs_probe,
};
struct mdio_xpcs_ops *mdio_xpcs_get_ops(void)
struct phylink_link_state *state);
int (*link_up)(struct mdio_xpcs_args *xpcs, int speed,
phy_interface_t interface);
- int (*probe)(struct mdio_xpcs_args *xpcs, phy_interface_t interface);
};
int xpcs_get_an_mode(struct mdio_xpcs_args *xpcs, phy_interface_t interface);
struct phylink_link_state *state);
int xpcs_config_eee(struct mdio_xpcs_args *xpcs, int mult_fact_100ns,
int enable);
+int xpcs_probe(struct mdio_xpcs_args *xpcs, phy_interface_t interface);
#endif /* __LINUX_PCS_XPCS_H */