18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/**************************************************************************** 38c2ecf20Sopenharmony_ci * Driver for Solarflare network controllers and boards 48c2ecf20Sopenharmony_ci * Copyright 2019 Solarflare Communications Inc. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify it 78c2ecf20Sopenharmony_ci * under the terms of the GNU General Public License version 2 as published 88c2ecf20Sopenharmony_ci * by the Free Software Foundation, incorporated herein by reference. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef EFX_ETHTOOL_COMMON_H 128c2ecf20Sopenharmony_ci#define EFX_ETHTOOL_COMMON_H 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_civoid efx_ethtool_get_drvinfo(struct net_device *net_dev, 158c2ecf20Sopenharmony_ci struct ethtool_drvinfo *info); 168c2ecf20Sopenharmony_ciu32 efx_ethtool_get_msglevel(struct net_device *net_dev); 178c2ecf20Sopenharmony_civoid efx_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable); 188c2ecf20Sopenharmony_civoid efx_ethtool_self_test(struct net_device *net_dev, 198c2ecf20Sopenharmony_ci struct ethtool_test *test, u64 *data); 208c2ecf20Sopenharmony_civoid efx_ethtool_get_pauseparam(struct net_device *net_dev, 218c2ecf20Sopenharmony_ci struct ethtool_pauseparam *pause); 228c2ecf20Sopenharmony_ciint efx_ethtool_set_pauseparam(struct net_device *net_dev, 238c2ecf20Sopenharmony_ci struct ethtool_pauseparam *pause); 248c2ecf20Sopenharmony_ciint efx_ethtool_fill_self_tests(struct efx_nic *efx, 258c2ecf20Sopenharmony_ci struct efx_self_tests *tests, 268c2ecf20Sopenharmony_ci u8 *strings, u64 *data); 278c2ecf20Sopenharmony_ciint efx_ethtool_get_sset_count(struct net_device *net_dev, int string_set); 288c2ecf20Sopenharmony_civoid efx_ethtool_get_strings(struct net_device *net_dev, u32 string_set, 298c2ecf20Sopenharmony_ci u8 *strings); 308c2ecf20Sopenharmony_civoid efx_ethtool_get_stats(struct net_device *net_dev, 318c2ecf20Sopenharmony_ci struct ethtool_stats *stats __attribute__ ((unused)), 328c2ecf20Sopenharmony_ci u64 *data); 338c2ecf20Sopenharmony_ciint efx_ethtool_get_link_ksettings(struct net_device *net_dev, 348c2ecf20Sopenharmony_ci struct ethtool_link_ksettings *out); 358c2ecf20Sopenharmony_ciint efx_ethtool_set_link_ksettings(struct net_device *net_dev, 368c2ecf20Sopenharmony_ci const struct ethtool_link_ksettings *settings); 378c2ecf20Sopenharmony_ciint efx_ethtool_get_fecparam(struct net_device *net_dev, 388c2ecf20Sopenharmony_ci struct ethtool_fecparam *fecparam); 398c2ecf20Sopenharmony_ciint efx_ethtool_set_fecparam(struct net_device *net_dev, 408c2ecf20Sopenharmony_ci struct ethtool_fecparam *fecparam); 418c2ecf20Sopenharmony_ciint efx_ethtool_get_rxnfc(struct net_device *net_dev, 428c2ecf20Sopenharmony_ci struct ethtool_rxnfc *info, u32 *rule_locs); 438c2ecf20Sopenharmony_ciint efx_ethtool_set_rxnfc(struct net_device *net_dev, 448c2ecf20Sopenharmony_ci struct ethtool_rxnfc *info); 458c2ecf20Sopenharmony_ciu32 efx_ethtool_get_rxfh_indir_size(struct net_device *net_dev); 468c2ecf20Sopenharmony_ciu32 efx_ethtool_get_rxfh_key_size(struct net_device *net_dev); 478c2ecf20Sopenharmony_ciint efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, 488c2ecf20Sopenharmony_ci u8 *hfunc); 498c2ecf20Sopenharmony_ciint efx_ethtool_set_rxfh(struct net_device *net_dev, 508c2ecf20Sopenharmony_ci const u32 *indir, const u8 *key, const u8 hfunc); 518c2ecf20Sopenharmony_ciint efx_ethtool_get_rxfh_context(struct net_device *net_dev, u32 *indir, 528c2ecf20Sopenharmony_ci u8 *key, u8 *hfunc, u32 rss_context); 538c2ecf20Sopenharmony_ciint efx_ethtool_set_rxfh_context(struct net_device *net_dev, 548c2ecf20Sopenharmony_ci const u32 *indir, const u8 *key, 558c2ecf20Sopenharmony_ci const u8 hfunc, u32 *rss_context, 568c2ecf20Sopenharmony_ci bool delete); 578c2ecf20Sopenharmony_ciint efx_ethtool_reset(struct net_device *net_dev, u32 *flags); 588c2ecf20Sopenharmony_ciint efx_ethtool_get_module_eeprom(struct net_device *net_dev, 598c2ecf20Sopenharmony_ci struct ethtool_eeprom *ee, 608c2ecf20Sopenharmony_ci u8 *data); 618c2ecf20Sopenharmony_ciint efx_ethtool_get_module_info(struct net_device *net_dev, 628c2ecf20Sopenharmony_ci struct ethtool_modinfo *modinfo); 638c2ecf20Sopenharmony_ci#endif 64