cpmac.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) cpmac.c (7826d43f2db45c9305a6e0ba165650e1a203f517)
1/*
2 * Copyright (C) 2006, 2007 Eugene Konev
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

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

899 return -EBUSY;
900 priv->ring_size = ring->rx_pending;
901 return 0;
902}
903
904static void cpmac_get_drvinfo(struct net_device *dev,
905 struct ethtool_drvinfo *info)
906{
1/*
2 * Copyright (C) 2006, 2007 Eugene Konev
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

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

899 return -EBUSY;
900 priv->ring_size = ring->rx_pending;
901 return 0;
902}
903
904static void cpmac_get_drvinfo(struct net_device *dev,
905 struct ethtool_drvinfo *info)
906{
907 strcpy(info->driver, "cpmac");
908 strcpy(info->version, CPMAC_VERSION);
909 info->fw_version[0] = '\0';
910 sprintf(info->bus_info, "%s", "cpmac");
907 strlcpy(info->driver, "cpmac", sizeof(info->driver));
908 strlcpy(info->version, CPMAC_VERSION, sizeof(info->version));
909 snprintf(info->bus_info, sizeof(info->bus_info), "%s", "cpmac");
911 info->regdump_len = 0;
912}
913
914static const struct ethtool_ops cpmac_ethtool_ops = {
915 .get_settings = cpmac_get_settings,
916 .set_settings = cpmac_set_settings,
917 .get_drvinfo = cpmac_get_drvinfo,
918 .get_link = ethtool_op_get_link,

--- 384 unchanged lines hidden ---
910 info->regdump_len = 0;
911}
912
913static const struct ethtool_ops cpmac_ethtool_ops = {
914 .get_settings = cpmac_get_settings,
915 .set_settings = cpmac_set_settings,
916 .get_drvinfo = cpmac_get_drvinfo,
917 .get_link = ethtool_op_get_link,

--- 384 unchanged lines hidden ---