#include <linux/can/dev.h>
#include <linux/ethtool.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/platform_device.h>
#include "flexcan.h"
static const char flexcan_priv_flags_strings[][ETH_GSTRING_LEN] = …;
static void
flexcan_get_ringparam(struct net_device *ndev, struct ethtool_ringparam *ring,
struct kernel_ethtool_ringparam *kernel_ring,
struct netlink_ext_ack *ext_ack)
{ … }
static void
flexcan_get_strings(struct net_device *ndev, u32 stringset, u8 *data)
{ … }
static u32 flexcan_get_priv_flags(struct net_device *ndev)
{ … }
static int flexcan_set_priv_flags(struct net_device *ndev, u32 priv_flags)
{ … }
static int flexcan_get_sset_count(struct net_device *netdev, int sset)
{ … }
const struct ethtool_ops flexcan_ethtool_ops = …;