]> git.ipfire.org Git - thirdparty/linux.git/blame - drivers/net/ethernet/mellanox/mlxsw/core_env.h
mlxsw: core: Move ethtool module callbacks to a common location
[thirdparty/linux.git] / drivers / net / ethernet / mellanox / mlxsw / core_env.h
CommitLineData
d93c19a1
VP
1/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2/* Copyright (c) 2018 Mellanox Technologies. All rights reserved */
3
4#ifndef _MLXSW_CORE_ENV_H
5#define _MLXSW_CORE_ENV_H
6
7int mlxsw_env_module_temp_thresholds_get(struct mlxsw_core *core, int module,
8 int off, int *temp);
9
1b1c6c1a
VP
10int mlxsw_env_get_module_info(struct mlxsw_core *mlxsw_core, int module,
11 struct ethtool_modinfo *modinfo);
12
13int mlxsw_env_get_module_eeprom(struct net_device *netdev,
14 struct mlxsw_core *mlxsw_core, int module,
15 struct ethtool_eeprom *ee, u8 *data);
16
d93c19a1 17#endif