blob: 1dce2b2e045bab81bcfe1c41a11a1ce3f4c4d57b [file] [log] [blame]
Siva Reddy1edb9ca2014-03-25 12:10:54 -07001/* 10G controller driver for Samsung SoCs
2 *
3 * Copyright (C) 2013 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
5 *
6 * Author: Siva Reddy Kallam <siva.kallam@samsung.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
14
15#include <linux/kernel.h>
16#include <linux/netdevice.h>
17#include <linux/phy.h>
18
19#include "sxgbe_common.h"
20
21struct sxgbe_stats {
22 char stat_string[ETH_GSTRING_LEN];
23 int sizeof_stat;
24 int stat_offset;
25};
26
27#define SXGBE_STAT(m) \
28{ \
29 #m, \
30 FIELD_SIZEOF(struct sxgbe_extra_stats, m), \
31 offsetof(struct sxgbe_priv_data, xstats.m) \
32}
33
34static const struct sxgbe_stats sxgbe_gstrings_stats[] = {
35};
36#define SXGBE_STATS_LEN ARRAY_SIZE(sxgbe_gstrings_stats)
37
38static const struct ethtool_ops sxgbe_ethtool_ops = {
39};
40
41void sxgbe_set_ethtool_ops(struct net_device *netdev)
42{
43 SET_ETHTOOL_OPS(netdev, &sxgbe_ethtool_ops);
44}