mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-18 12:30:31 +00:00
24 lines
493 B
C
24 lines
493 B
C
![]() |
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
|
||
|
/*
|
||
|
* Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved
|
||
|
*/
|
||
|
|
||
|
#ifndef _MLX5_IB_DMAH_H
|
||
|
#define _MLX5_IB_DMAH_H
|
||
|
|
||
|
#include "mlx5_ib.h"
|
||
|
|
||
|
extern const struct ib_device_ops mlx5_ib_dev_dmah_ops;
|
||
|
|
||
|
struct mlx5_ib_dmah {
|
||
|
struct ib_dmah ibdmah;
|
||
|
u16 st_index;
|
||
|
};
|
||
|
|
||
|
static inline struct mlx5_ib_dmah *to_mdmah(struct ib_dmah *ibdmah)
|
||
|
{
|
||
|
return container_of(ibdmah, struct mlx5_ib_dmah, ibdmah);
|
||
|
}
|
||
|
|
||
|
#endif /* _MLX5_IB_DMAH_H */
|