dnet.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) dnet.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453)
1/*
2 * Dave DNET Ethernet Controller driver
3 *
4 * Copyright (C) 2008 Dave S.r.l. <www.dave.eu>
5 * Copyright (C) 2009 Ilya Yanok, Emcraft Systems Ltd, <yanok@emcraft.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

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

799 return -ENODEV;
800
801 return phy_mii_ioctl(phydev, rq, cmd);
802}
803
804static void dnet_get_drvinfo(struct net_device *dev,
805 struct ethtool_drvinfo *info)
806{
1/*
2 * Dave DNET Ethernet Controller driver
3 *
4 * Copyright (C) 2008 Dave S.r.l. <www.dave.eu>
5 * Copyright (C) 2009 Ilya Yanok, Emcraft Systems Ltd, <yanok@emcraft.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

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

799 return -ENODEV;
800
801 return phy_mii_ioctl(phydev, rq, cmd);
802}
803
804static void dnet_get_drvinfo(struct net_device *dev,
805 struct ethtool_drvinfo *info)
806{
807 strcpy(info->driver, DRV_NAME);
808 strcpy(info->version, DRV_VERSION);
809 strcpy(info->bus_info, "0");
807 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
808 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
809 strlcpy(info->bus_info, "0", sizeof(info->bus_info));
810}
811
812static const struct ethtool_ops dnet_ethtool_ops = {
813 .get_settings = dnet_get_settings,
814 .set_settings = dnet_set_settings,
815 .get_drvinfo = dnet_get_drvinfo,
816 .get_link = ethtool_op_get_link,
817};

--- 179 unchanged lines hidden ---
810}
811
812static const struct ethtool_ops dnet_ethtool_ops = {
813 .get_settings = dnet_get_settings,
814 .set_settings = dnet_set_settings,
815 .get_drvinfo = dnet_get_drvinfo,
816 .get_link = ethtool_op_get_link,
817};

--- 179 unchanged lines hidden ---