linux/drivers/net/ethernet/mellanox/mlx5/core/fw_reset.h
<<
>>
Prefs
   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);
  13int mlx5_fw_reset_set_live_patch(struct mlx5_core_dev *dev);
  14
  15int mlx5_fw_reset_wait_reset_done(struct mlx5_core_dev *dev);
  16void mlx5_fw_reset_events_start(struct mlx5_core_dev *dev);
  17void mlx5_fw_reset_events_stop(struct mlx5_core_dev *dev);
  18int mlx5_fw_reset_init(struct mlx5_core_dev *dev);
  19void mlx5_fw_reset_cleanup(struct mlx5_core_dev *dev);
  20
  21#endif
  22