fw_reset.h (983B)
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 9void mlx5_fw_reset_enable_remote_dev_reset_set(struct mlx5_core_dev *dev, bool enable); 10bool mlx5_fw_reset_enable_remote_dev_reset_get(struct mlx5_core_dev *dev); 11int mlx5_fw_reset_query(struct mlx5_core_dev *dev, u8 *reset_level, u8 *reset_type); 12int mlx5_fw_reset_set_reset_sync(struct mlx5_core_dev *dev, u8 reset_type_sel, 13 struct netlink_ext_ack *extack); 14int mlx5_fw_reset_set_live_patch(struct mlx5_core_dev *dev); 15 16int mlx5_fw_reset_wait_reset_done(struct mlx5_core_dev *dev); 17void mlx5_fw_reset_events_start(struct mlx5_core_dev *dev); 18void mlx5_fw_reset_events_stop(struct mlx5_core_dev *dev); 19void mlx5_drain_fw_reset(struct mlx5_core_dev *dev); 20int mlx5_fw_reset_init(struct mlx5_core_dev *dev); 21void mlx5_fw_reset_cleanup(struct mlx5_core_dev *dev); 22 23#endif