xref: /linux/drivers/infiniband/hw/mlx5/data_direct.h (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /*
3  * Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved
4  */
5 
6 #ifndef _MLX5_IB_DATA_DIRECT_H
7 #define _MLX5_IB_DATA_DIRECT_H
8 
9 struct mlx5_ib_dev;
10 
11 struct mlx5_data_direct_dev {
12 	struct device *device;
13 	struct pci_dev *pdev;
14 	char *vuid;
15 	struct list_head list;
16 };
17 
18 int mlx5_data_direct_ib_reg(struct mlx5_ib_dev *ibdev, char *vuid);
19 void mlx5_data_direct_ib_unreg(struct mlx5_ib_dev *ibdev);
20 int mlx5_data_direct_driver_register(void);
21 void mlx5_data_direct_driver_unregister(void);
22 
23 #endif
24