aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac.h
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2011-12-20 22:58:19 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-21 15:44:34 -0500
commitbfab27a146ed4d722c6d399f844f955f29cd2b81 (patch)
treee433b5c075920229274a3229e0f06b8c6a2d19b2 /drivers/net/ethernet/stmicro/stmmac/stmmac.h
parent225d9b89c937633dfeec502741a174fe0bab5b9f (diff)
stmmac: add the experimental PCI support
This patch adds the PCI support (as EXPERIMENTAL) this has been also tested on XLINX XC2V3000 FF1152AMT0221 D1215994A VIRTEX FPGA board. To support the PCI bus the main part has been reworked and both the platform and the PCI specific parts have been moved into different files. Signed-off-by: Rayagond Kokatanur <rayagond@vayavyalabs.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
index a140a8fbf051..120740020e2c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
@@ -20,7 +20,8 @@
20 Author: Giuseppe Cavallaro <peppe.cavallaro@st.com> 20 Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
21*******************************************************************************/ 21*******************************************************************************/
22 22
23#define DRV_MODULE_VERSION "Oct_2011" 23#define STMMAC_RESOURCE_NAME "stmmaceth"
24#define DRV_MODULE_VERSION "Dec_2011"
24#include <linux/stmmac.h> 25#include <linux/stmmac.h>
25#include <linux/phy.h> 26#include <linux/phy.h>
26#include "common.h" 27#include "common.h"
@@ -82,8 +83,18 @@ struct stmmac_priv {
82 int hw_cap_support; 83 int hw_cap_support;
83}; 84};
84 85
86extern int phyaddr;
87
85extern int stmmac_mdio_unregister(struct net_device *ndev); 88extern int stmmac_mdio_unregister(struct net_device *ndev);
86extern int stmmac_mdio_register(struct net_device *ndev); 89extern int stmmac_mdio_register(struct net_device *ndev);
87extern void stmmac_set_ethtool_ops(struct net_device *netdev); 90extern void stmmac_set_ethtool_ops(struct net_device *netdev);
88extern const struct stmmac_desc_ops enh_desc_ops; 91extern const struct stmmac_desc_ops enh_desc_ops;
89extern const struct stmmac_desc_ops ndesc_ops; 92extern const struct stmmac_desc_ops ndesc_ops;
93
94int stmmac_freeze(struct net_device *ndev);
95int stmmac_restore(struct net_device *ndev);
96int stmmac_resume(struct net_device *ndev);
97int stmmac_suspend(struct net_device *ndev);
98int stmmac_dvr_remove(struct net_device *ndev);
99struct stmmac_priv *stmmac_dvr_probe(struct device *device,
100 struct plat_stmmacenet_data *plat_dat);