0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef EFX_ETHTOOL_COMMON_H
0012 #define EFX_ETHTOOL_COMMON_H
0013
0014 void efx_siena_ethtool_get_drvinfo(struct net_device *net_dev,
0015 struct ethtool_drvinfo *info);
0016 u32 efx_siena_ethtool_get_msglevel(struct net_device *net_dev);
0017 void efx_siena_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable);
0018 void efx_siena_ethtool_self_test(struct net_device *net_dev,
0019 struct ethtool_test *test, u64 *data);
0020 void efx_siena_ethtool_get_pauseparam(struct net_device *net_dev,
0021 struct ethtool_pauseparam *pause);
0022 int efx_siena_ethtool_set_pauseparam(struct net_device *net_dev,
0023 struct ethtool_pauseparam *pause);
0024 int efx_siena_ethtool_get_sset_count(struct net_device *net_dev, int string_set);
0025 void efx_siena_ethtool_get_strings(struct net_device *net_dev, u32 string_set,
0026 u8 *strings);
0027 void efx_siena_ethtool_get_stats(struct net_device *net_dev,
0028 struct ethtool_stats *stats __always_unused,
0029 u64 *data);
0030 int efx_siena_ethtool_get_link_ksettings(struct net_device *net_dev,
0031 struct ethtool_link_ksettings *out);
0032 int efx_siena_ethtool_set_link_ksettings(struct net_device *net_dev,
0033 const struct ethtool_link_ksettings *settings);
0034 int efx_siena_ethtool_get_fecparam(struct net_device *net_dev,
0035 struct ethtool_fecparam *fecparam);
0036 int efx_siena_ethtool_set_fecparam(struct net_device *net_dev,
0037 struct ethtool_fecparam *fecparam);
0038 int efx_siena_ethtool_get_rxnfc(struct net_device *net_dev,
0039 struct ethtool_rxnfc *info, u32 *rule_locs);
0040 int efx_siena_ethtool_set_rxnfc(struct net_device *net_dev,
0041 struct ethtool_rxnfc *info);
0042 u32 efx_siena_ethtool_get_rxfh_indir_size(struct net_device *net_dev);
0043 u32 efx_siena_ethtool_get_rxfh_key_size(struct net_device *net_dev);
0044 int efx_siena_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key,
0045 u8 *hfunc);
0046 int efx_siena_ethtool_set_rxfh(struct net_device *net_dev,
0047 const u32 *indir, const u8 *key, const u8 hfunc);
0048 int efx_siena_ethtool_get_rxfh_context(struct net_device *net_dev, u32 *indir,
0049 u8 *key, u8 *hfunc, u32 rss_context);
0050 int efx_siena_ethtool_set_rxfh_context(struct net_device *net_dev,
0051 const u32 *indir, const u8 *key,
0052 const u8 hfunc, u32 *rss_context,
0053 bool delete);
0054 int efx_siena_ethtool_reset(struct net_device *net_dev, u32 *flags);
0055 int efx_siena_ethtool_get_module_eeprom(struct net_device *net_dev,
0056 struct ethtool_eeprom *ee,
0057 u8 *data);
0058 int efx_siena_ethtool_get_module_info(struct net_device *net_dev,
0059 struct ethtool_modinfo *modinfo);
0060 #endif