summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/tehuti/tn40.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2024-06-24 08:55:06 +0900
committerJakub Kicinski <kuba@kernel.org>2024-06-25 18:44:19 -0700
commit7fdbd2f2bb5dc33c50604ea66eb8ae16247cc518 (patch)
treef760a12ccb4adecd6fc4ba860d260bd774e31069 /drivers/net/ethernet/tehuti/tn40.h
parent37c4947af44d51358cb03262c8e6eeac4a1cd642 (diff)
net: tn40xx: add mdio bus support
This patch adds supports for mdio bus. A later path adds PHYLIB support on the top of this. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Link: https://patch.msgid.link/20240623235507.108147-7-fujita.tomonori@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/tehuti/tn40.h')
-rw-r--r--drivers/net/ethernet/tehuti/tn40.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/tehuti/tn40.h b/drivers/net/ethernet/tehuti/tn40.h
index 20b400e58ef9..4cbe0c3883c7 100644
--- a/drivers/net/ethernet/tehuti/tn40.h
+++ b/drivers/net/ethernet/tehuti/tn40.h
@@ -140,6 +140,8 @@ struct tn40_priv {
u32 b0_len;
dma_addr_t b0_dma; /* Physical address of buffer */
char *b0_va; /* Virtual address of buffer */
+
+ struct mii_bus *mdio;
};
/* RX FREE descriptor - 64bit */
@@ -217,4 +219,6 @@ static inline void tn40_write_reg(struct tn40_priv *priv, u32 reg, u32 val)
writel(val, priv->regs + reg);
}
+int tn40_mdiobus_init(struct tn40_priv *priv);
+
#endif /* _TN40XX_H */