aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
index dc20c56efc9d..ab4c376cb276 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
@@ -87,6 +87,12 @@ struct stmmac_priv {
87#endif 87#endif
88 int clk_csr; 88 int clk_csr;
89 int synopsys_id; 89 int synopsys_id;
90 struct timer_list eee_ctrl_timer;
91 bool tx_path_in_lpi_mode;
92 int lpi_irq;
93 int eee_enabled;
94 int eee_active;
95 int tx_lpi_timer;
90}; 96};
91 97
92extern int phyaddr; 98extern int phyaddr;
@@ -104,6 +110,8 @@ int stmmac_dvr_remove(struct net_device *ndev);
104struct stmmac_priv *stmmac_dvr_probe(struct device *device, 110struct stmmac_priv *stmmac_dvr_probe(struct device *device,
105 struct plat_stmmacenet_data *plat_dat, 111 struct plat_stmmacenet_data *plat_dat,
106 void __iomem *addr); 112 void __iomem *addr);
113void stmmac_disable_eee_mode(struct stmmac_priv *priv);
114bool stmmac_eee_init(struct stmmac_priv *priv);
107 115
108#ifdef CONFIG_HAVE_CLK 116#ifdef CONFIG_HAVE_CLK
109static inline int stmmac_clk_enable(struct stmmac_priv *priv) 117static inline int stmmac_clk_enable(struct stmmac_priv *priv)