1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 2 /* 3 * Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved 4 */ 5 6 #ifndef _MLX5_IB_DMAH_H 7 #define _MLX5_IB_DMAH_H 8 9 #include "mlx5_ib.h" 10 11 extern const struct ib_device_ops mlx5_ib_dev_dmah_ops; 12 13 struct mlx5_ib_dmah { 14 struct ib_dmah ibdmah; 15 u16 st_index; 16 }; 17 18 static inline struct mlx5_ib_dmah *to_mdmah(struct ib_dmah *ibdmah) 19 { 20 return container_of(ibdmah, struct mlx5_ib_dmah, ibdmah); 21 } 22 23 #endif /* _MLX5_IB_DMAH_H */ 24