1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2019 Mellanox Technologies. */
7 #if IS_ENABLED(CONFIG_PCI_HYPERV_INTERFACE)
9 #include <linux/hyperv.h>
10 #include <linux/mlx5/driver.h>
12 int mlx5_hv_read_config(struct mlx5_core_dev *dev, void *buf, int len,
14 int mlx5_hv_write_config(struct mlx5_core_dev *dev, void *buf, int len,
16 int mlx5_hv_register_invalidate(struct mlx5_core_dev *dev, void *context,
17 void (*block_invalidate)(void *context,
19 void mlx5_hv_unregister_invalidate(struct mlx5_core_dev *dev);
22 #endif /* __LIB_HV_H__ */