diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-08-10 09:18:42 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-08-10 09:18:42 +0000 |
commit | 6ce62982dd482d17e8b7044ffc0058026b5007e9 (patch) | |
tree | 8b59a037f74370d5710bbd79a080442b82416ca2 /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ethtool.c | |
parent | 91a01e41067edb1d08727e7170b2fe76c4859f9c (diff) | |
download | mtk-20170518-6ce62982dd482d17e8b7044ffc0058026b5007e9.zip mtk-20170518-6ce62982dd482d17e8b7044ffc0058026b5007e9.tar.gz mtk-20170518-6ce62982dd482d17e8b7044ffc0058026b5007e9.tar.bz2 |
ag71xx: add initial message level support
SVN-Revision: 12262
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ethtool.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ethtool.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ethtool.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ethtool.c index 9aa7b3a..f6a282c 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ethtool.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ethtool.c @@ -47,9 +47,25 @@ static void ag71xx_ethtool_get_drvinfo(struct net_device *dev, strcpy(info->bus_info, ag->pdev->dev.bus_id); } +static u32 ag71xx_ethtool_get_msglevel(struct net_device *dev) +{ + struct ag71xx *ag = netdev_priv(dev); + + return ag->msg_enable; +} + +static void ag71xx_ethtool_set_msglevel(struct net_device *dev, u32 msg_level) +{ + struct ag71xx *ag = netdev_priv(dev); + + ag->msg_enable = msg_level; +} + struct ethtool_ops ag71xx_ethtool_ops = { .set_settings = ag71xx_ethtool_set_settings, .get_settings = ag71xx_ethtool_get_settings, .get_drvinfo = ag71xx_ethtool_get_drvinfo, + .get_msglevel = ag71xx_ethtool_get_msglevel, + .set_msglevel = ag71xx_ethtool_set_msglevel, .get_link = ethtool_op_get_link, }; |