xref: /openbmc/linux/drivers/infiniband/sw/rdmavt/cq.h (revision 0ad53fe3)
1 /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
2 /*
3  * Copyright(c) 2016 - 2018 Intel Corporation.
4  */
5 
6 #ifndef DEF_RVTCQ_H
7 #define DEF_RVTCQ_H
8 
9 #include <rdma/rdma_vt.h>
10 #include <rdma/rdmavt_cq.h>
11 
12 int rvt_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr,
13 		  struct ib_udata *udata);
14 int rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata);
15 int rvt_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags notify_flags);
16 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata);
17 int rvt_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry);
18 int rvt_driver_cq_init(void);
19 void rvt_cq_exit(void);
20 #endif          /* DEF_RVTCQ_H */
21