0001
0002
0003
0004 #ifndef __LIB_HV_H__
0005 #define __LIB_HV_H__
0006
0007 #if IS_ENABLED(CONFIG_PCI_HYPERV_INTERFACE)
0008
0009 #include <linux/hyperv.h>
0010 #include <linux/mlx5/driver.h>
0011
0012 int mlx5_hv_read_config(struct mlx5_core_dev *dev, void *buf, int len,
0013 int offset);
0014 int mlx5_hv_write_config(struct mlx5_core_dev *dev, void *buf, int len,
0015 int offset);
0016 int mlx5_hv_register_invalidate(struct mlx5_core_dev *dev, void *context,
0017 void (*block_invalidate)(void *context,
0018 u64 block_mask));
0019 void mlx5_hv_unregister_invalidate(struct mlx5_core_dev *dev);
0020 #endif
0021
0022 #endif