|
@@ -30,4 +30,12 @@ int stmmac_get_platform_resources(struct platform_device *pdev,
|
|
|
int stmmac_pltfr_remove(struct platform_device *pdev);
|
|
|
extern const struct dev_pm_ops stmmac_pltfr_pm_ops;
|
|
|
|
|
|
+static inline void *get_stmmac_bsp_priv(struct device *dev)
|
|
|
+{
|
|
|
+ struct net_device *ndev = dev_get_drvdata(dev);
|
|
|
+ struct stmmac_priv *priv = netdev_priv(ndev);
|
|
|
+
|
|
|
+ return priv->plat->bsp_priv;
|
|
|
+}
|
|
|
+
|
|
|
#endif /* __STMMAC_PLATFORM_H__ */
|