sunbmac.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) sunbmac.c (7826d43f2db45c9305a6e0ba165650e1a203f517)
1/* sunbmac.c: Driver for Sparc BigMAC 100baseT ethernet adapters.
2 *
3 * Copyright (C) 1997, 1998, 1999, 2003, 2008 David S. Miller (davem@davemloft.net)
4 */
5
6#include <linux/module.h>
7
8#include <linux/kernel.h>

--- 1028 unchanged lines hidden (view full) ---

1037 tmp = sbus_readl(bregs + BMAC_RXCFG);
1038 tmp |= BIGMAC_RXCFG_ENABLE;
1039 sbus_writel(tmp, bregs + BMAC_RXCFG);
1040}
1041
1042/* Ethtool support... */
1043static void bigmac_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
1044{
1/* sunbmac.c: Driver for Sparc BigMAC 100baseT ethernet adapters.
2 *
3 * Copyright (C) 1997, 1998, 1999, 2003, 2008 David S. Miller (davem@davemloft.net)
4 */
5
6#include <linux/module.h>
7
8#include <linux/kernel.h>

--- 1028 unchanged lines hidden (view full) ---

1037 tmp = sbus_readl(bregs + BMAC_RXCFG);
1038 tmp |= BIGMAC_RXCFG_ENABLE;
1039 sbus_writel(tmp, bregs + BMAC_RXCFG);
1040}
1041
1042/* Ethtool support... */
1043static void bigmac_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
1044{
1045 strcpy(info->driver, "sunbmac");
1046 strcpy(info->version, "2.0");
1045 strlcpy(info->driver, "sunbmac", sizeof(info->driver));
1046 strlcpy(info->version, "2.0", sizeof(info->version));
1047}
1048
1049static u32 bigmac_get_link(struct net_device *dev)
1050{
1051 struct bigmac *bp = netdev_priv(dev);
1052
1053 spin_lock_irq(&bp->lock);
1054 bp->sw_bmsr = bigmac_tcvr_read(bp, bp->tregs, MII_BMSR);

--- 238 unchanged lines hidden ---
1047}
1048
1049static u32 bigmac_get_link(struct net_device *dev)
1050{
1051 struct bigmac *bp = netdev_priv(dev);
1052
1053 spin_lock_irq(&bp->lock);
1054 bp->sw_bmsr = bigmac_tcvr_read(bp, bp->tregs, MII_BMSR);

--- 238 unchanged lines hidden ---