blob: 5e84fbaad58f3766144f797d0da16d3c29319de7 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris6a9755d2017-01-13 14:09:31 -08007#ifndef CXGB4_ABI_USER_H
8#define CXGB4_ABI_USER_H
9#include <linux/types.h>
10#define C4IW_UVERBS_ABI_VERSION 3
Christopher Ferrisa981e2e2018-10-25 12:11:39 -070011enum {
12 C4IW_64B_CQE = (1 << 0)
13};
14struct c4iw_create_cq {
15 __u32 flags;
16 __u32 reserved;
17};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080018struct c4iw_create_cq_resp {
Christopher Ferris76a1d452018-06-27 14:12:29 -070019 __aligned_u64 key;
20 __aligned_u64 gts_key;
21 __aligned_u64 memsize;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080022 __u32 cqid;
23 __u32 size;
24 __u32 qid_mask;
Christopher Ferrisa981e2e2018-10-25 12:11:39 -070025 __u32 flags;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080026};
27enum {
Christopher Ferrisa981e2e2018-10-25 12:11:39 -070028 C4IW_QPF_ONCHIP = (1 << 0),
29 C4IW_QPF_WRITE_W_IMM = (1 << 1)
Christopher Ferris6a9755d2017-01-13 14:09:31 -080030};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080031struct c4iw_create_qp_resp {
Christopher Ferris76a1d452018-06-27 14:12:29 -070032 __aligned_u64 ma_sync_key;
33 __aligned_u64 sq_key;
34 __aligned_u64 rq_key;
35 __aligned_u64 sq_db_gts_key;
36 __aligned_u64 rq_db_gts_key;
37 __aligned_u64 sq_memsize;
38 __aligned_u64 rq_memsize;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080039 __u32 sqid;
40 __u32 rqid;
41 __u32 sq_size;
42 __u32 rq_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080043 __u32 qid_mask;
44 __u32 flags;
45};
Christopher Ferrisa981e2e2018-10-25 12:11:39 -070046struct c4iw_create_srq_resp {
47 __aligned_u64 srq_key;
48 __aligned_u64 srq_db_gts_key;
49 __aligned_u64 srq_memsize;
50 __u32 srqid;
51 __u32 srq_size;
52 __u32 rqt_abs_idx;
53 __u32 qid_mask;
54 __u32 flags;
55 __u32 reserved;
56};
57enum {
58 T4_SRQ_LIMIT_SUPPORT = 1 << 0,
59};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080060struct c4iw_alloc_ucontext_resp {
Christopher Ferris76a1d452018-06-27 14:12:29 -070061 __aligned_u64 status_page_key;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080062 __u32 status_page_size;
63 __u32 reserved;
64};
Christopher Ferris76a1d452018-06-27 14:12:29 -070065struct c4iw_alloc_pd_resp {
66 __u32 pdid;
67};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080068#endif