Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340383
b: refs/heads/master
c: 0005f54
h: refs/heads/master
i:
  340381: e15e37b
  340379: 300c398
  340375: 2a2f03f
  340367: 446ce47
  340351: 775b1e1
v: v3
  • Loading branch information
Joachim Eastwood authored and David S. Miller committed Oct 19, 2012
1 parent 7cfa7b0 commit 0329f01
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54f14e4b4d4759ddb0e1c61cb7469bea33842f78
refs/heads/master: 0005f54102a7bcaffc9caa73db7d04d7587ab3c3
9 changes: 6 additions & 3 deletions trunk/drivers/net/ethernet/cadence/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static int macb_mii_probe(struct net_device *dev)
return 0;
}

static int macb_mii_init(struct macb *bp)
int macb_mii_init(struct macb *bp)
{
struct macb_platform_data *pdata;
int err = -ENXIO, i;
Expand Down Expand Up @@ -284,6 +284,7 @@ static int macb_mii_init(struct macb *bp)
err_out:
return err;
}
EXPORT_SYMBOL_GPL(macb_mii_init);

static void macb_update_stats(struct macb *bp)
{
Expand Down Expand Up @@ -1214,15 +1215,16 @@ static void macb_get_drvinfo(struct net_device *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,
.set_settings = macb_set_settings,
.get_drvinfo = macb_get_drvinfo,
.get_link = ethtool_op_get_link,
.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 phy_device *phydev = bp->phy_dev;
Expand All @@ -1235,6 +1237,7 @@ static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)

return phy_mii_ioctl(phydev, rq, cmd);
}
EXPORT_SYMBOL_GPL(macb_ioctl);

static const struct net_device_ops macb_netdev_ops = {
.ndo_open = macb_open,
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/net/ethernet/cadence/macb.h
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,11 @@ struct macb {
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)
{
return MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2;
Expand Down

0 comments on commit 0329f01

Please sign in to comment.