aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/core_env.h
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@mellanox.com>2019-03-03 09:12:08 +0000
committerDavid S. Miller <davem@davemloft.net>2019-03-03 22:23:00 -0800
commit1b1c6c1a3802bf9e7a698d359771e29897c369e5 (patch)
tree0dbbc5e146d98a1ccb6b8e7d35772079d372038a /drivers/net/ethernet/mellanox/mlxsw/core_env.h
parentMerge branch 'tls-Fix-issues-in-tls_device' (diff)
downloadlinux-dev-1b1c6c1a3802bf9e7a698d359771e29897c369e5.tar.xz
linux-dev-1b1c6c1a3802bf9e7a698d359771e29897c369e5.zip
mlxsw: core: Move ethtool module callbacks to a common location
Move the implementation of ethtool module callbacks - .get_module_info() and .get_module_eeprom() - to a common location to allow reuse by the different mlxsw drivers. Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/core_env.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_env.h b/drivers/net/ethernet/mellanox/mlxsw/core_env.h
index 6dbdf63f3ee1..064d0e770c01 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/core_env.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/core_env.h
@@ -7,4 +7,11 @@
int mlxsw_env_module_temp_thresholds_get(struct mlxsw_core *core, int module,
int off, int *temp);
+int mlxsw_env_get_module_info(struct mlxsw_core *mlxsw_core, int module,
+ struct ethtool_modinfo *modinfo);
+
+int mlxsw_env_get_module_eeprom(struct net_device *netdev,
+ struct mlxsw_core *mlxsw_core, int module,
+ struct ethtool_eeprom *ee, u8 *data);
+
#endif