• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 int mlx5_fw_reset_query(struct mlx5_core_dev *dev, u8 *reset_level, u8 *reset_type);
10 int mlx5_fw_reset_set_reset_sync(struct mlx5_core_dev *dev, u8 reset_type_sel,
11 				 struct netlink_ext_ack *extack);
12 int mlx5_fw_reset_set_live_patch(struct mlx5_core_dev *dev);
13 
14 int mlx5_fw_reset_wait_reset_done(struct mlx5_core_dev *dev);
15 int mlx5_fw_reset_verify_fw_complete(struct mlx5_core_dev *dev,
16 				     struct netlink_ext_ack *extack);
17 void mlx5_fw_reset_events_start(struct mlx5_core_dev *dev);
18 void mlx5_fw_reset_events_stop(struct mlx5_core_dev *dev);
19 void mlx5_drain_fw_reset(struct mlx5_core_dev *dev);
20 int mlx5_fw_reset_init(struct mlx5_core_dev *dev);
21 void mlx5_fw_reset_cleanup(struct mlx5_core_dev *dev);
22 
23 #endif
24