blob: 5433ce6975a0f07f5e8a2fb622cecd185ce6c618 [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 CXGB4_ABI_USER_H
20#define CXGB4_ABI_USER_H
21#include <linux/types.h>
22#define C4IW_UVERBS_ABI_VERSION 3
Christopher Ferris9ce28842018-10-25 12:11:39 -070023enum {
24 C4IW_64B_CQE = (1 << 0)
25};
26struct c4iw_create_cq {
27 __u32 flags;
28 __u32 reserved;
29};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080030struct c4iw_create_cq_resp {
Christopher Ferris76a1d452018-06-27 14:12:29 -070031 __aligned_u64 key;
32 __aligned_u64 gts_key;
33 __aligned_u64 memsize;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080034 __u32 cqid;
35 __u32 size;
36 __u32 qid_mask;
Christopher Ferris9ce28842018-10-25 12:11:39 -070037 __u32 flags;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080038};
39enum {
Christopher Ferris9ce28842018-10-25 12:11:39 -070040 C4IW_QPF_ONCHIP = (1 << 0),
41 C4IW_QPF_WRITE_W_IMM = (1 << 1)
Christopher Ferris6a9755d2017-01-13 14:09:31 -080042};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080043struct c4iw_create_qp_resp {
Christopher Ferris76a1d452018-06-27 14:12:29 -070044 __aligned_u64 ma_sync_key;
45 __aligned_u64 sq_key;
46 __aligned_u64 rq_key;
47 __aligned_u64 sq_db_gts_key;
48 __aligned_u64 rq_db_gts_key;
49 __aligned_u64 sq_memsize;
50 __aligned_u64 rq_memsize;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080051 __u32 sqid;
52 __u32 rqid;
53 __u32 sq_size;
54 __u32 rq_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080055 __u32 qid_mask;
56 __u32 flags;
57};
Christopher Ferris9ce28842018-10-25 12:11:39 -070058struct c4iw_create_srq_resp {
59 __aligned_u64 srq_key;
60 __aligned_u64 srq_db_gts_key;
61 __aligned_u64 srq_memsize;
62 __u32 srqid;
63 __u32 srq_size;
64 __u32 rqt_abs_idx;
65 __u32 qid_mask;
66 __u32 flags;
67 __u32 reserved;
68};
69enum {
70 T4_SRQ_LIMIT_SUPPORT = 1 << 0,
71};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080072struct c4iw_alloc_ucontext_resp {
Christopher Ferris76a1d452018-06-27 14:12:29 -070073 __aligned_u64 status_page_key;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080074 __u32 status_page_size;
75 __u32 reserved;
76};
Christopher Ferris76a1d452018-06-27 14:12:29 -070077struct c4iw_alloc_pd_resp {
78 __u32 pdid;
79};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080080#endif