xref: /linux/drivers/infiniband/sw/rdmavt/srq.h (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1*3ec648c6SKrzysztof Kozlowski /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2aad9158bSDennis Dalessandro /*
3fe314195SDennis Dalessandro  * Copyright(c) 2016 Intel Corporation.
4aad9158bSDennis Dalessandro  */
5aad9158bSDennis Dalessandro 
6d164bf64SCai Huoqing #ifndef DEF_RVTSRQ_H
7d164bf64SCai Huoqing #define DEF_RVTSRQ_H
8d164bf64SCai Huoqing 
9aad9158bSDennis Dalessandro #include <rdma/rdma_vt.h>
10b8f881b9SJubin John void rvt_driver_srq_init(struct rvt_dev_info *rdi);
1168e326deSLeon Romanovsky int rvt_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *srq_init_attr,
12aad9158bSDennis Dalessandro 		   struct ib_udata *udata);
13aad9158bSDennis Dalessandro int rvt_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr,
14aad9158bSDennis Dalessandro 		   enum ib_srq_attr_mask attr_mask,
15aad9158bSDennis Dalessandro 		   struct ib_udata *udata);
16aad9158bSDennis Dalessandro int rvt_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr);
17119181d1SLeon Romanovsky int rvt_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata);
18aad9158bSDennis Dalessandro 
19aad9158bSDennis Dalessandro #endif          /* DEF_RVTSRQ_H */
20