xref: /openbmc/linux/drivers/infiniband/sw/rdmavt/srq.h (revision 1edd0337)
1 /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
2 /*
3  * Copyright(c) 2016 Intel Corporation.
4  */
5 
6 #ifndef DEF_RVTSRQ_H
7 #define DEF_RVTSRQ_H
8 
9 #include <rdma/rdma_vt.h>
10 void rvt_driver_srq_init(struct rvt_dev_info *rdi);
11 int rvt_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *srq_init_attr,
12 		   struct ib_udata *udata);
13 int rvt_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr,
14 		   enum ib_srq_attr_mask attr_mask,
15 		   struct ib_udata *udata);
16 int rvt_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr);
17 int rvt_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata);
18 
19 #endif          /* DEF_RVTSRQ_H */
20