xref: /openbmc/linux/drivers/infiniband/hw/qedr/qedr_iw_cm.h (revision 664b0bae0b87f69bc9deb098f5e0158b9cf18e04)
1de0089e6SKalderon, Michal /* QLogic qed NIC Driver
2de0089e6SKalderon, Michal  * Copyright (c) 2015-2017  QLogic Corporation
3de0089e6SKalderon, Michal  *
4de0089e6SKalderon, Michal  * This software is available to you under a choice of one of two
5de0089e6SKalderon, Michal  * licenses.  You may choose to be licensed under the terms of the GNU
6de0089e6SKalderon, Michal  * General Public License (GPL) Version 2, available from the file
7de0089e6SKalderon, Michal  * COPYING in the main directory of this source tree, or the
8de0089e6SKalderon, Michal  * OpenIB.org BSD license below:
9de0089e6SKalderon, Michal  *
10de0089e6SKalderon, Michal  *     Redistribution and use in source and binary forms, with or
11de0089e6SKalderon, Michal  *     without modification, are permitted provided that the following
12de0089e6SKalderon, Michal  *     conditions are met:
13de0089e6SKalderon, Michal  *
14de0089e6SKalderon, Michal  *      - Redistributions of source code must retain the above
15de0089e6SKalderon, Michal  *        copyright notice, this list of conditions and the following
16de0089e6SKalderon, Michal  *        disclaimer.
17de0089e6SKalderon, Michal  *
18de0089e6SKalderon, Michal  *      - Redistributions in binary form must reproduce the above
19de0089e6SKalderon, Michal  *        copyright notice, this list of conditions and the following
20de0089e6SKalderon, Michal  *        disclaimer in the documentation and /or other materials
21de0089e6SKalderon, Michal  *        provided with the distribution.
22de0089e6SKalderon, Michal  *
23de0089e6SKalderon, Michal  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24de0089e6SKalderon, Michal  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25de0089e6SKalderon, Michal  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26de0089e6SKalderon, Michal  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27de0089e6SKalderon, Michal  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28de0089e6SKalderon, Michal  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29de0089e6SKalderon, Michal  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30de0089e6SKalderon, Michal  * SOFTWARE.
31de0089e6SKalderon, Michal  */
32de0089e6SKalderon, Michal #include <rdma/iw_cm.h>
33*e411e058SKalderon, Michal 
34*e411e058SKalderon, Michal int qedr_iw_connect(struct iw_cm_id *cm_id,
35*e411e058SKalderon, Michal 		    struct iw_cm_conn_param *conn_param);
36*e411e058SKalderon, Michal 
37*e411e058SKalderon, Michal int qedr_iw_create_listen(struct iw_cm_id *cm_id, int backlog);
38*e411e058SKalderon, Michal 
39*e411e058SKalderon, Michal int qedr_iw_destroy_listen(struct iw_cm_id *cm_id);
40*e411e058SKalderon, Michal 
41*e411e058SKalderon, Michal int qedr_iw_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
42*e411e058SKalderon, Michal 
43*e411e058SKalderon, Michal int qedr_iw_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len);
44*e411e058SKalderon, Michal 
45de0089e6SKalderon, Michal void qedr_iw_qp_add_ref(struct ib_qp *qp);
46de0089e6SKalderon, Michal 
47de0089e6SKalderon, Michal void qedr_iw_qp_rem_ref(struct ib_qp *qp);
48de0089e6SKalderon, Michal 
49de0089e6SKalderon, Michal struct ib_qp *qedr_iw_get_qp(struct ib_device *dev, int qpn);
50