Commit 0005f541 authored by Joachim Eastwood's avatar Joachim Eastwood Committed by David S. Miller

net/macb: export some symbols for at91_ether

Export some symbols to start sharing code between
macb and at91_ether drivers.
Signed-off-by: default avatarJoachim Eastwood <manabian@gmail.com>
parent 54f14e4b
...@@ -228,7 +228,7 @@ static int macb_mii_probe(struct net_device *dev) ...@@ -228,7 +228,7 @@ static int macb_mii_probe(struct net_device *dev)
return 0; return 0;
} }
static int macb_mii_init(struct macb *bp) int macb_mii_init(struct macb *bp)
{ {
struct macb_platform_data *pdata; struct macb_platform_data *pdata;
int err = -ENXIO, i; int err = -ENXIO, i;
...@@ -284,6 +284,7 @@ static int macb_mii_init(struct macb *bp) ...@@ -284,6 +284,7 @@ static int macb_mii_init(struct macb *bp)
err_out: err_out:
return err; return err;
} }
EXPORT_SYMBOL_GPL(macb_mii_init);
static void macb_update_stats(struct macb *bp) static void macb_update_stats(struct macb *bp)
{ {
...@@ -1214,15 +1215,16 @@ static void macb_get_drvinfo(struct net_device *dev, ...@@ -1214,15 +1215,16 @@ static void macb_get_drvinfo(struct net_device *dev,
strcpy(info->bus_info, dev_name(&bp->pdev->dev)); strcpy(info->bus_info, dev_name(&bp->pdev->dev));
} }
static const struct ethtool_ops macb_ethtool_ops = { const struct ethtool_ops macb_ethtool_ops = {
.get_settings = macb_get_settings, .get_settings = macb_get_settings,
.set_settings = macb_set_settings, .set_settings = macb_set_settings,
.get_drvinfo = macb_get_drvinfo, .get_drvinfo = macb_get_drvinfo,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
.get_ts_info = ethtool_op_get_ts_info, .get_ts_info = ethtool_op_get_ts_info,
}; };
EXPORT_SYMBOL_GPL(macb_ethtool_ops);
static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
{ {
struct macb *bp = netdev_priv(dev); struct macb *bp = netdev_priv(dev);
struct phy_device *phydev = bp->phy_dev; struct phy_device *phydev = bp->phy_dev;
...@@ -1235,6 +1237,7 @@ static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) ...@@ -1235,6 +1237,7 @@ static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
return phy_mii_ioctl(phydev, rq, cmd); return phy_mii_ioctl(phydev, rq, cmd);
} }
EXPORT_SYMBOL_GPL(macb_ioctl);
static const struct net_device_ops macb_netdev_ops = { static const struct net_device_ops macb_netdev_ops = {
.ndo_open = macb_open, .ndo_open = macb_open,
......
...@@ -577,6 +577,11 @@ struct macb { ...@@ -577,6 +577,11 @@ struct macb {
struct recv_desc_bufs *dlist_phys; /* descriptor list physical address */ struct recv_desc_bufs *dlist_phys; /* descriptor list physical address */
}; };
extern const struct ethtool_ops macb_ethtool_ops;
int macb_mii_init(struct macb *bp);
int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
static inline bool macb_is_gem(struct macb *bp) static inline bool macb_is_gem(struct macb *bp)
{ {
return MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2; return MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment