Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 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 Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 7 | #ifndef CXGB4_ABI_USER_H |
| 8 | #define CXGB4_ABI_USER_H |
| 9 | #include <linux/types.h> |
| 10 | #define C4IW_UVERBS_ABI_VERSION 3 |
Christopher Ferris | a981e2e | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 11 | enum { |
| 12 | C4IW_64B_CQE = (1 << 0) |
| 13 | }; |
| 14 | struct c4iw_create_cq { |
| 15 | __u32 flags; |
| 16 | __u32 reserved; |
| 17 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 18 | struct c4iw_create_cq_resp { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 19 | __aligned_u64 key; |
| 20 | __aligned_u64 gts_key; |
| 21 | __aligned_u64 memsize; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 22 | __u32 cqid; |
| 23 | __u32 size; |
| 24 | __u32 qid_mask; |
Christopher Ferris | a981e2e | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 25 | __u32 flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 26 | }; |
| 27 | enum { |
Christopher Ferris | a981e2e | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 28 | C4IW_QPF_ONCHIP = (1 << 0), |
| 29 | C4IW_QPF_WRITE_W_IMM = (1 << 1) |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 30 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 31 | struct c4iw_create_qp_resp { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 32 | __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 Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 39 | __u32 sqid; |
| 40 | __u32 rqid; |
| 41 | __u32 sq_size; |
| 42 | __u32 rq_size; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 43 | __u32 qid_mask; |
| 44 | __u32 flags; |
| 45 | }; |
Christopher Ferris | a981e2e | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 46 | struct 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 | }; |
| 57 | enum { |
| 58 | T4_SRQ_LIMIT_SUPPORT = 1 << 0, |
| 59 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 60 | struct c4iw_alloc_ucontext_resp { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 61 | __aligned_u64 status_page_key; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 62 | __u32 status_page_size; |
| 63 | __u32 reserved; |
| 64 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 65 | struct c4iw_alloc_pd_resp { |
| 66 | __u32 pdid; |
| 67 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 68 | #endif |