]> Git Repo - J-linux.git/blob - drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h
Merge remote-tracking branch 'spi/for-5.14' into spi-linus
[J-linux.git] / drivers / net / ethernet / stmicro / stmmac / stmmac_platform.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*******************************************************************************
3   Copyright (C) 2007-2009  STMicroelectronics Ltd
4
5
6   Author: Giuseppe Cavallaro <[email protected]>
7 *******************************************************************************/
8
9 #ifndef __STMMAC_PLATFORM_H__
10 #define __STMMAC_PLATFORM_H__
11
12 #include "stmmac.h"
13
14 struct plat_stmmacenet_data *
15 stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac);
16 void stmmac_remove_config_dt(struct platform_device *pdev,
17                              struct plat_stmmacenet_data *plat);
18
19 int stmmac_get_platform_resources(struct platform_device *pdev,
20                                   struct stmmac_resources *stmmac_res);
21
22 int stmmac_pltfr_remove(struct platform_device *pdev);
23 extern const struct dev_pm_ops stmmac_pltfr_pm_ops;
24
25 static inline void *get_stmmac_bsp_priv(struct device *dev)
26 {
27         struct net_device *ndev = dev_get_drvdata(dev);
28         struct stmmac_priv *priv = netdev_priv(ndev);
29
30         return priv->plat->bsp_priv;
31 }
32
33 #endif /* __STMMAC_PLATFORM_H__ */
This page took 0.032735 seconds and 4 git commands to generate.