blob: cab6aa471d3db2310ef87fb60efe9c703354daa3 [file] [log] [blame]
Christopher Ferris525ce912017-07-26 13:12:53 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __BNXT_RE_UVERBS_ABI_H__
20#define __BNXT_RE_UVERBS_ABI_H__
21#include <linux/types.h>
22#define BNXT_RE_ABI_VERSION 1
Christopher Ferris24f97eb2019-05-20 12:58:13 -070023#define BNXT_RE_CHIP_ID0_CHIP_NUM_SFT 0x00
24#define BNXT_RE_CHIP_ID0_CHIP_REV_SFT 0x10
25#define BNXT_RE_CHIP_ID0_CHIP_MET_SFT 0x18
26enum {
Christopher Ferris3a39c0b2021-09-02 00:03:38 +000027 BNXT_RE_UCNTX_CMASK_HAVE_CCTX = 0x1ULL,
28 BNXT_RE_UCNTX_CMASK_HAVE_MODE = 0x02ULL,
29};
30enum bnxt_re_wqe_mode {
31 BNXT_QPLIB_WQE_MODE_STATIC = 0x00,
32 BNXT_QPLIB_WQE_MODE_VARIABLE = 0x01,
33 BNXT_QPLIB_WQE_MODE_INVALID = 0x02,
Christopher Ferris24f97eb2019-05-20 12:58:13 -070034};
Christopher Ferris525ce912017-07-26 13:12:53 -070035struct bnxt_re_uctx_resp {
36 __u32 dev_id;
37 __u32 max_qp;
38 __u32 pg_size;
39 __u32 cqe_sz;
40 __u32 max_cqd;
41 __u32 rsvd;
Christopher Ferris24f97eb2019-05-20 12:58:13 -070042 __aligned_u64 comp_mask;
43 __u32 chip_id0;
44 __u32 chip_id1;
Christopher Ferris3a39c0b2021-09-02 00:03:38 +000045 __u32 mode;
46 __u32 rsvd1;
Christopher Ferris525ce912017-07-26 13:12:53 -070047};
48struct bnxt_re_pd_resp {
49 __u32 pdid;
50 __u32 dpi;
51 __u64 dbr;
Christopher Ferris76a1d452018-06-27 14:12:29 -070052} __attribute__((packed, aligned(4)));
Christopher Ferris525ce912017-07-26 13:12:53 -070053struct bnxt_re_cq_req {
Christopher Ferris76a1d452018-06-27 14:12:29 -070054 __aligned_u64 cq_va;
55 __aligned_u64 cq_handle;
Christopher Ferris525ce912017-07-26 13:12:53 -070056};
57struct bnxt_re_cq_resp {
58 __u32 cqid;
59 __u32 tail;
60 __u32 phase;
61 __u32 rsvd;
62};
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070063struct bnxt_re_resize_cq_req {
64 __aligned_u64 cq_va;
65};
Christopher Ferris525ce912017-07-26 13:12:53 -070066struct bnxt_re_qp_req {
Christopher Ferris76a1d452018-06-27 14:12:29 -070067 __aligned_u64 qpsva;
68 __aligned_u64 qprva;
69 __aligned_u64 qp_handle;
Christopher Ferris525ce912017-07-26 13:12:53 -070070};
71struct bnxt_re_qp_resp {
72 __u32 qpid;
73 __u32 rsvd;
74};
Christopher Ferris76a1d452018-06-27 14:12:29 -070075struct bnxt_re_srq_req {
76 __aligned_u64 srqva;
77 __aligned_u64 srq_handle;
78};
79struct bnxt_re_srq_resp {
80 __u32 srqid;
81};
Christopher Ferris525ce912017-07-26 13:12:53 -070082enum bnxt_re_shpg_offt {
83 BNXT_RE_BEG_RESV_OFFT = 0x00,
84 BNXT_RE_AVID_OFFT = 0x10,
85 BNXT_RE_AVID_SIZE = 0x04,
86 BNXT_RE_END_RESV_OFFT = 0xFF0
87};
88#endif