blob: fd963097f979edbef6b28715b7b653f801476998 [file] [log] [blame]
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001/****************************************************************************
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 __QEDR_USER_H__
20#define __QEDR_USER_H__
21#include <linux/types.h>
22#define QEDR_ABI_VERSION (8)
Christopher Ferrisd32ca142020-02-04 16:16:51 -080023enum qedr_alloc_ucontext_flags {
24 QEDR_ALLOC_UCTX_RESERVED = 1 << 0,
25 QEDR_ALLOC_UCTX_DB_REC = 1 << 1
26};
27struct qedr_alloc_ucontext_req {
28 __u32 context_flags;
29 __u32 reserved;
30};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080031struct qedr_alloc_ucontext_resp {
Christopher Ferris76a1d452018-06-27 14:12:29 -070032 __aligned_u64 db_pa;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080033 __u32 db_size;
34 __u32 max_send_wr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080035 __u32 max_recv_wr;
36 __u32 max_srq_wr;
37 __u32 sges_per_send_wr;
38 __u32 sges_per_recv_wr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080039 __u32 sges_per_srq_wr;
40 __u32 max_cqes;
Christopher Ferris1308ad32017-11-14 17:32:13 -080041 __u8 dpm_enabled;
42 __u8 wids_enabled;
43 __u16 wid_count;
Christopher Ferris76a1d452018-06-27 14:12:29 -070044 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080045};
46struct qedr_alloc_pd_ureq {
Christopher Ferris76a1d452018-06-27 14:12:29 -070047 __aligned_u64 rsvd1;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080048};
49struct qedr_alloc_pd_uresp {
50 __u32 pd_id;
Christopher Ferris76a1d452018-06-27 14:12:29 -070051 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080052};
53struct qedr_create_cq_ureq {
Christopher Ferris76a1d452018-06-27 14:12:29 -070054 __aligned_u64 addr;
55 __aligned_u64 len;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080056};
57struct qedr_create_cq_uresp {
58 __u32 db_offset;
59 __u16 icid;
Christopher Ferris76a1d452018-06-27 14:12:29 -070060 __u16 reserved;
Christopher Ferrisd32ca142020-02-04 16:16:51 -080061 __aligned_u64 db_rec_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080062};
63struct qedr_create_qp_ureq {
64 __u32 qp_handle_hi;
65 __u32 qp_handle_lo;
Christopher Ferris76a1d452018-06-27 14:12:29 -070066 __aligned_u64 sq_addr;
67 __aligned_u64 sq_len;
68 __aligned_u64 rq_addr;
69 __aligned_u64 rq_len;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080070};
71struct qedr_create_qp_uresp {
72 __u32 qp_id;
73 __u32 atomic_supported;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080074 __u32 sq_db_offset;
75 __u16 sq_icid;
76 __u32 rq_db_offset;
77 __u16 rq_icid;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080078 __u32 rq_db2_offset;
Christopher Ferris76a1d452018-06-27 14:12:29 -070079 __u32 reserved;
Christopher Ferrisd32ca142020-02-04 16:16:51 -080080 __aligned_u64 sq_db_rec_addr;
81 __aligned_u64 rq_db_rec_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080082};
Christopher Ferris9ce28842018-10-25 12:11:39 -070083struct qedr_create_srq_ureq {
84 __aligned_u64 prod_pair_addr;
85 __aligned_u64 srq_addr;
86 __aligned_u64 srq_len;
87};
88struct qedr_create_srq_uresp {
89 __u16 srq_id;
90 __u16 reserved0;
91 __u32 reserved1;
92};
Christopher Ferrisd32ca142020-02-04 16:16:51 -080093struct qedr_user_db_rec {
94 __aligned_u64 db_data;
95};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080096#endif