^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (c) 2005-2006 Intel Corporation. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef IB_USER_MARSHALL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define IB_USER_MARSHALL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <rdma/ib_verbs.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <rdma/ib_sa.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <rdma/ib_user_verbs.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <rdma/ib_user_sa.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void ib_copy_qp_attr_to_user(struct ib_device *device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct ib_uverbs_qp_attr *dst,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) struct ib_qp_attr *src);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) void ib_copy_ah_attr_to_user(struct ib_device *device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) struct ib_uverbs_ah_attr *dst,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct rdma_ah_attr *src);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct sa_path_rec *src);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) void ib_copy_path_rec_from_user(struct sa_path_rec *dst,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) struct ib_user_path_rec *src);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif /* IB_USER_MARSHALL_H */