1 /* This file is part of the Emulex RoCE Device Driver for
2 * RoCE (RDMA over Converged Ethernet) adapters.
3 * Copyright (C) 2012-2015 Emulex. All rights reserved.
4 * EMULEX and SLI are trademarks of Emulex.
7 * This software is available to you under a choice of one of two licenses.
8 * You may choose to be licensed under the terms of the GNU General Public
9 * License (GPL) Version 2, available from the file COPYING in the main
10 * directory of this source tree, or the BSD license below:
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
16 * - Redistributions of source code must retain the above copyright notice,
17 * this list of conditions and the following disclaimer.
19 * - Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in
21 * the documentation and/or other materials provided with the distribution.
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
30 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
33 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 * Contact Information:
36 * linux-drivers@emulex.com
40 * Costa Mesa, CA 92626
43 #ifndef __OCRDMA_ABI_H__
44 #define __OCRDMA_ABI_H__
46 #define OCRDMA_ABI_VERSION 2
47 #define OCRDMA_BE_ROCE_ABI_VERSION 1
48 /* user kernel communication data structures. */
50 struct ocrdma_alloc_ucontext_resp
{
59 /* for future use/new features in progress */
64 struct ocrdma_alloc_pd_ureq
{
68 struct ocrdma_alloc_pd_uresp
{
76 struct ocrdma_create_cq_ureq
{
81 #define MAX_CQ_PAGES 8
82 struct ocrdma_create_cq_uresp
{
87 u64 page_addr
[MAX_CQ_PAGES
];
91 /* for future use/new features in progress */
96 #define MAX_QP_PAGES 8
97 #define MAX_UD_AV_PAGES 8
99 struct ocrdma_create_qp_ureq
{
106 struct ocrdma_create_qp_uresp
{
115 u64 sq_page_addr
[MAX_QP_PAGES
];
116 u64 rq_page_addr
[MAX_QP_PAGES
];
121 u32 num_wqe_allocated
;
122 u32 num_rqe_allocated
;
129 struct ocrdma_create_srq_uresp
{
137 u64 rq_page_addr
[MAX_QP_PAGES
];
141 u32 num_rqe_allocated
;
149 #endif /* __OCRDMA_ABI_H__ */