summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx5/dmah.h
blob: 68de72b4744a9d88a701ec12336c05eebb6e0b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 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 */