summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/tehuti/tn40.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/tehuti/tn40.h')
-rw-r--r--drivers/net/ethernet/tehuti/tn40.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/tehuti/tn40.h b/drivers/net/ethernet/tehuti/tn40.h
index 4cbe0c3883c7..10368264f7b7 100644
--- a/drivers/net/ethernet/tehuti/tn40.h
+++ b/drivers/net/ethernet/tehuti/tn40.h
@@ -142,6 +142,9 @@ struct tn40_priv {
char *b0_va; /* Virtual address of buffer */
struct mii_bus *mdio;
+ struct phy_device *phydev;
+ struct phylink *phylink;
+ struct phylink_config phylink_config;
};
/* RX FREE descriptor - 64bit */
@@ -219,6 +222,11 @@ static inline void tn40_write_reg(struct tn40_priv *priv, u32 reg, u32 val)
writel(val, priv->regs + reg);
}
+int tn40_set_link_speed(struct tn40_priv *priv, u32 speed);
+
int tn40_mdiobus_init(struct tn40_priv *priv);
+int tn40_phy_register(struct tn40_priv *priv);
+void tn40_phy_unregister(struct tn40_priv *priv);
+
#endif /* _TN40XX_H */