| /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ |
| /* |
| * Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved |
| */ |
| |
| #ifndef _MLX5_IB_DATA_DIRECT_H |
| #define _MLX5_IB_DATA_DIRECT_H |
| |
| struct mlx5_ib_dev; |
| |
| struct mlx5_data_direct_dev { |
| struct device *device; |
| struct pci_dev *pdev; |
| char *vuid; |
| struct list_head list; |
| }; |
| |
| int mlx5_data_direct_ib_reg(struct mlx5_ib_dev *ibdev, char *vuid); |
| void mlx5_data_direct_ib_unreg(struct mlx5_ib_dev *ibdev); |
| int mlx5_data_direct_driver_register(void); |
| void mlx5_data_direct_driver_unregister(void); |
| |
| #endif |