• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
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
23 struct bnxt_re_uctx_resp {
24   __u32 dev_id;
25   __u32 max_qp;
26   __u32 pg_size;
27   __u32 cqe_sz;
28   __u32 max_cqd;
29   __u32 rsvd;
30 };
31 struct bnxt_re_pd_resp {
32   __u32 pdid;
33   __u32 dpi;
34   __u64 dbr;
35 } __attribute__((packed, aligned(4)));
36 struct bnxt_re_cq_req {
37   __aligned_u64 cq_va;
38   __aligned_u64 cq_handle;
39 };
40 struct bnxt_re_cq_resp {
41   __u32 cqid;
42   __u32 tail;
43   __u32 phase;
44   __u32 rsvd;
45 };
46 struct bnxt_re_qp_req {
47   __aligned_u64 qpsva;
48   __aligned_u64 qprva;
49   __aligned_u64 qp_handle;
50 };
51 struct bnxt_re_qp_resp {
52   __u32 qpid;
53   __u32 rsvd;
54 };
55 struct bnxt_re_srq_req {
56   __aligned_u64 srqva;
57   __aligned_u64 srq_handle;
58 };
59 struct bnxt_re_srq_resp {
60   __u32 srqid;
61 };
62 enum bnxt_re_shpg_offt {
63   BNXT_RE_BEG_RESV_OFFT = 0x00,
64   BNXT_RE_AVID_OFFT = 0x10,
65   BNXT_RE_AVID_SIZE = 0x04,
66   BNXT_RE_END_RESV_OFFT = 0xFF0
67 };
68 #endif
69