Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*******************************************************************************
0003   Copyright (C) 2007-2009  STMicroelectronics Ltd
0004 
0005 
0006   Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
0007 *******************************************************************************/
0008 
0009 #ifndef __STMMAC_PLATFORM_H__
0010 #define __STMMAC_PLATFORM_H__
0011 
0012 #include "stmmac.h"
0013 
0014 struct plat_stmmacenet_data *
0015 stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac);
0016 void stmmac_remove_config_dt(struct platform_device *pdev,
0017                  struct plat_stmmacenet_data *plat);
0018 
0019 int stmmac_get_platform_resources(struct platform_device *pdev,
0020                   struct stmmac_resources *stmmac_res);
0021 
0022 int stmmac_pltfr_remove(struct platform_device *pdev);
0023 extern const struct dev_pm_ops stmmac_pltfr_pm_ops;
0024 
0025 static inline void *get_stmmac_bsp_priv(struct device *dev)
0026 {
0027     struct net_device *ndev = dev_get_drvdata(dev);
0028     struct stmmac_priv *priv = netdev_priv(ndev);
0029 
0030     return priv->plat->bsp_priv;
0031 }
0032 
0033 #endif /* __STMMAC_PLATFORM_H__ */