diff options
author | Joachim Eastwood <manabian@gmail.com> | 2015-07-17 00:26:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-20 20:45:57 -0700 |
commit | 402dae0bed98dd41c5d6ab321135e8568a54819e (patch) | |
tree | 8b747b6a75d3324a78ac7229efb9c687dfef7a6c /drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h | |
parent | b0003ead75f394f1c6f3b704be5da8e9eb029f8c (diff) |
stmmac: export probe_config_dt() and get_platform_resources()
Export stmmac_probe_config_dt() and stmmac_get_platform_resources()
so they can be used in the dwmac-* drivers themselves. This will
allow us to build more flexible and standalone drivers which just
use stmmac_platform as a library for setup functions.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h index 71da86d7bd00..84ceb5342686 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h @@ -19,6 +19,14 @@ #ifndef __STMMAC_PLATFORM_H__ #define __STMMAC_PLATFORM_H__ +#include "stmmac.h" + +struct plat_stmmacenet_data * +stmmac_probe_config_dt(struct platform_device *pdev, const char **mac); + +int stmmac_get_platform_resources(struct platform_device *pdev, + struct stmmac_resources *stmmac_res); + int stmmac_pltfr_probe(struct platform_device *pdev); int stmmac_pltfr_remove(struct platform_device *pdev); extern const struct dev_pm_ops stmmac_pltfr_pm_ops; |