#include <linux/pci.h>
#include <linux/phy.h>
#include <linux/ethtool.h>
#include "wx_type.h"
#include "wx_ethtool.h"
#include "wx_hw.h"
#include "wx_lib.h"
struct wx_stats { … };
#define WX_STAT(str, m) …
static const struct wx_stats wx_gstrings_stats[] = …;
static const struct wx_stats wx_gstrings_fdir_stats[] = …;
#define WX_NUM_RX_QUEUES …
#define WX_NUM_TX_QUEUES …
#define WX_QUEUE_STATS_LEN …
#define WX_GLOBAL_STATS_LEN …
#define WX_FDIR_STATS_LEN …
#define WX_STATS_LEN …
int wx_get_sset_count(struct net_device *netdev, int sset)
{ … }
EXPORT_SYMBOL(…);
void wx_get_strings(struct net_device *netdev, u32 stringset, u8 *data)
{ … }
EXPORT_SYMBOL(…);
void wx_get_ethtool_stats(struct net_device *netdev,
struct ethtool_stats *stats, u64 *data)
{ … }
EXPORT_SYMBOL(…);
void wx_get_mac_stats(struct net_device *netdev,
struct ethtool_eth_mac_stats *mac_stats)
{ … }
EXPORT_SYMBOL(…);
void wx_get_pause_stats(struct net_device *netdev,
struct ethtool_pause_stats *stats)
{ … }
EXPORT_SYMBOL(…);
void wx_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *info)
{ … }
EXPORT_SYMBOL(…);
int wx_nway_reset(struct net_device *netdev)
{ … }
EXPORT_SYMBOL(…);
int wx_get_link_ksettings(struct net_device *netdev,
struct ethtool_link_ksettings *cmd)
{ … }
EXPORT_SYMBOL(…);
int wx_set_link_ksettings(struct net_device *netdev,
const struct ethtool_link_ksettings *cmd)
{ … }
EXPORT_SYMBOL(…);
void wx_get_pauseparam(struct net_device *netdev,
struct ethtool_pauseparam *pause)
{ … }
EXPORT_SYMBOL(…);
int wx_set_pauseparam(struct net_device *netdev,
struct ethtool_pauseparam *pause)
{ … }
EXPORT_SYMBOL(…);
void wx_get_ringparam(struct net_device *netdev,
struct ethtool_ringparam *ring,
struct kernel_ethtool_ringparam *kernel_ring,
struct netlink_ext_ack *extack)
{ … }
EXPORT_SYMBOL(…);
int wx_get_coalesce(struct net_device *netdev,
struct ethtool_coalesce *ec,
struct kernel_ethtool_coalesce *kernel_coal,
struct netlink_ext_ack *extack)
{ … }
EXPORT_SYMBOL(…);
int wx_set_coalesce(struct net_device *netdev,
struct ethtool_coalesce *ec,
struct kernel_ethtool_coalesce *kernel_coal,
struct netlink_ext_ack *extack)
{ … }
EXPORT_SYMBOL(…);
static unsigned int wx_max_channels(struct wx *wx)
{ … }
void wx_get_channels(struct net_device *dev,
struct ethtool_channels *ch)
{ … }
EXPORT_SYMBOL(…);
int wx_set_channels(struct net_device *dev,
struct ethtool_channels *ch)
{ … }
EXPORT_SYMBOL(…);
u32 wx_get_msglevel(struct net_device *netdev)
{ … }
EXPORT_SYMBOL(…);
void wx_set_msglevel(struct net_device *netdev, u32 data)
{ … }
EXPORT_SYMBOL(…);