1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */
3 * Broadcom NetXtreme-E RoCE driver.
5 * Copyright (c) 2016 - 2017, Broadcom. All rights reserved. The term
6 * Broadcom refers to Broadcom Limited and/or its subsidiaries.
8 * This software is available to you under a choice of one of two
9 * licenses. You may choose to be licensed under the terms of the GNU
10 * General Public License (GPL) Version 2, available from the file
11 * COPYING in the main directory of this source tree, or the
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in
22 * the documentation and/or other materials provided with the
25 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''
26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
27 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
29 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
32 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
34 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
35 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 * Description: Uverbs ABI header file
40 #ifndef __BNXT_RE_UVERBS_ABI_H__
41 #define __BNXT_RE_UVERBS_ABI_H__
43 #include <linux/types.h>
45 #define BNXT_RE_ABI_VERSION 1
47 struct bnxt_re_uctx_resp
{
56 struct bnxt_re_pd_resp
{
62 struct bnxt_re_cq_req
{
67 struct bnxt_re_cq_resp
{
74 struct bnxt_re_qp_req
{
80 struct bnxt_re_qp_resp
{
85 enum bnxt_re_shpg_offt
{
86 BNXT_RE_BEG_RESV_OFFT
= 0x00,
87 BNXT_RE_AVID_OFFT
= 0x10,
88 BNXT_RE_AVID_SIZE
= 0x04,
89 BNXT_RE_END_RESV_OFFT
= 0xFF0
92 #endif /* __BNXT_RE_UVERBS_ABI_H__*/