1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 2 /* Copyright (c) 2020, Mellanox Technologies inc. All rights reserved. */ 3 4 #ifndef __MLX5_FW_RESET_H 5 #define __MLX5_FW_RESET_H 6 7 #include "mlx5_core.h" 8 9 void mlx5_fw_reset_enable_remote_dev_reset_set(struct mlx5_core_dev *dev, bool enable); 10 bool mlx5_fw_reset_enable_remote_dev_reset_get(struct mlx5_core_dev *dev); 11 int mlx5_fw_reset_query(struct mlx5_core_dev *dev, u8 *reset_level, u8 *reset_type); 12 int mlx5_fw_reset_set_reset_sync(struct mlx5_core_dev *dev, u8 reset_type_sel); 13 int mlx5_fw_reset_set_live_patch(struct mlx5_core_dev *dev); 14 15 int mlx5_fw_reset_wait_reset_done(struct mlx5_core_dev *dev); 16 void mlx5_fw_reset_events_start(struct mlx5_core_dev *dev); 17 void mlx5_fw_reset_events_stop(struct mlx5_core_dev *dev); 18 int mlx5_fw_reset_init(struct mlx5_core_dev *dev); 19 void mlx5_fw_reset_cleanup(struct mlx5_core_dev *dev); 20 21 #endif 22