// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies */ #include <linux/mlx5/driver.h> #include "mlx5_core.h" #include "lib/pci_vsc.h" #include "lib/mlx5.h" #define BAD_ACCESS … #define MLX5_PROTECTED_CR_SCAN_CRSPACE … static bool mlx5_crdump_enabled(struct mlx5_core_dev *dev) { … } static int mlx5_crdump_fill(struct mlx5_core_dev *dev, u32 *cr_data) { … } int mlx5_crdump_collect(struct mlx5_core_dev *dev, u32 *cr_data) { … } int mlx5_crdump_enable(struct mlx5_core_dev *dev) { … } void mlx5_crdump_disable(struct mlx5_core_dev *dev) { … }