@@ -26,6 +26,11 @@ publish_internal_headers(rdma
rdma/vmw_pvrdma-abi.h
)
+publish_internal_headers(rdma/hfi
+ rdma/hfi/hfi1_ioctl.h
+ rdma/hfi/hfi1_user.h
+ )
+
publish_internal_headers(linux
linux/vfio.h
)
@@ -83,11 +83,30 @@ struct hns_roce_ib_create_qp_resp {
__aligned_u64 cap_flags;
};
+enum hns_roce_alloc_uctx_comp_flag {
+ HNS_ROCE_ALLOC_UCTX_COMP_CONFIG = 1 << 0,
+};
+
+enum hns_roce_alloc_uctx_resp_config {
+ HNS_ROCE_UCTX_RESP_MMAP_KEY_EN = 1 << 0,
+};
+
+enum hns_roce_alloc_uctx_req_config {
+ HNS_ROCE_UCTX_REQ_MMAP_KEY_EN = 1 << 0,
+};
+
+struct hns_roce_ib_alloc_ucontext {
+ __u32 comp;
+ __u32 config;
+};
+
struct hns_roce_ib_alloc_ucontext_resp {
__u32 qp_tab_size;
__u32 cqe_size;
__u32 srq_tab_size;
- __u32 reserved;
+ __u8 config;
+ __u8 rsv[3];
+ __aligned_u64 db_mmap_key;
};
struct hns_roce_ib_alloc_pd_resp {
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */
+/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB */
/*
* Copyright (c) 2006 - 2021 Intel Corporation. All rights reserved.
* Copyright (c) 2005 Topspin Communications. All rights reserved.
To commit ?? ("RDMA/hns: Add a new mmap implementation"). Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com> --- kernel-headers/CMakeLists.txt | 5 +++++ kernel-headers/rdma/hns-abi.h | 21 ++++++++++++++++++++- kernel-headers/rdma/irdma-abi.h | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-)