71 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/****************************************************************************3 * Driver for Solarflare network controllers and boards4 * Copyright 2019 Solarflare Communications Inc.5 *6 * This program is free software; you can redistribute it and/or modify it7 * under the terms of the GNU General Public License version 2 as published8 * by the Free Software Foundation, incorporated herein by reference.9 */10 11#ifndef EFX_ETHTOOL_COMMON_H12#define EFX_ETHTOOL_COMMON_H13 14void efx_ethtool_get_drvinfo(struct net_device *net_dev,15 struct ethtool_drvinfo *info);16u32 efx_ethtool_get_msglevel(struct net_device *net_dev);17void efx_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable);18void efx_ethtool_self_test(struct net_device *net_dev,19 struct ethtool_test *test, u64 *data);20void efx_ethtool_get_pauseparam(struct net_device *net_dev,21 struct ethtool_pauseparam *pause);22int efx_ethtool_set_pauseparam(struct net_device *net_dev,23 struct ethtool_pauseparam *pause);24int efx_ethtool_fill_self_tests(struct efx_nic *efx,25 struct efx_self_tests *tests,26 u8 *strings, u64 *data);27int efx_ethtool_get_sset_count(struct net_device *net_dev, int string_set);28void efx_ethtool_get_strings(struct net_device *net_dev, u32 string_set,29 u8 *strings);30void efx_ethtool_get_stats(struct net_device *net_dev,31 struct ethtool_stats *stats __attribute__ ((unused)),32 u64 *data);33int efx_ethtool_get_link_ksettings(struct net_device *net_dev,34 struct ethtool_link_ksettings *out);35int efx_ethtool_set_link_ksettings(struct net_device *net_dev,36 const struct ethtool_link_ksettings *settings);37int efx_ethtool_get_fecparam(struct net_device *net_dev,38 struct ethtool_fecparam *fecparam);39int efx_ethtool_set_fecparam(struct net_device *net_dev,40 struct ethtool_fecparam *fecparam);41int efx_ethtool_get_rxnfc(struct net_device *net_dev,42 struct ethtool_rxnfc *info, u32 *rule_locs);43int efx_ethtool_set_rxnfc(struct net_device *net_dev,44 struct ethtool_rxnfc *info);45u32 efx_ethtool_get_rxfh_indir_size(struct net_device *net_dev);46u32 efx_ethtool_get_rxfh_key_size(struct net_device *net_dev);47int efx_ethtool_get_rxfh(struct net_device *net_dev,48 struct ethtool_rxfh_param *rxfh);49int efx_ethtool_set_rxfh(struct net_device *net_dev,50 struct ethtool_rxfh_param *rxfh,51 struct netlink_ext_ack *extack);52int efx_ethtool_create_rxfh_context(struct net_device *net_dev,53 struct ethtool_rxfh_context *ctx,54 const struct ethtool_rxfh_param *rxfh,55 struct netlink_ext_ack *extack);56int efx_ethtool_modify_rxfh_context(struct net_device *net_dev,57 struct ethtool_rxfh_context *ctx,58 const struct ethtool_rxfh_param *rxfh,59 struct netlink_ext_ack *extack);60int efx_ethtool_remove_rxfh_context(struct net_device *net_dev,61 struct ethtool_rxfh_context *ctx,62 u32 rss_context,63 struct netlink_ext_ack *extack);64int efx_ethtool_reset(struct net_device *net_dev, u32 *flags);65int efx_ethtool_get_module_eeprom(struct net_device *net_dev,66 struct ethtool_eeprom *ee,67 u8 *data);68int efx_ethtool_get_module_info(struct net_device *net_dev,69 struct ethtool_modinfo *modinfo);70#endif71