blob: ae7752b4e2db5049b0473341ce99ab204872a36f [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 OCRDMA_ABI_USER_H
8#define OCRDMA_ABI_USER_H
9#include <linux/types.h>
10#define OCRDMA_ABI_VERSION 2
Christopher Ferris6a9755d2017-01-13 14:09:31 -080011#define OCRDMA_BE_ROCE_ABI_VERSION 1
12struct ocrdma_alloc_ucontext_resp {
13 __u32 dev_id;
14 __u32 wqe_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080015 __u32 max_inline_data;
16 __u32 dpp_wqe_size;
Christopher Ferris76a1d452018-06-27 14:12:29 -070017 __aligned_u64 ah_tbl_page;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080018 __u32 ah_tbl_len;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080019 __u32 rqe_size;
20 __u8 fw_ver[32];
Christopher Ferris76a1d452018-06-27 14:12:29 -070021 __aligned_u64 rsvd1;
22 __aligned_u64 rsvd2;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080023};
24struct ocrdma_alloc_pd_ureq {
Christopher Ferris76a1d452018-06-27 14:12:29 -070025 __u32 rsvd[2];
Christopher Ferris6a9755d2017-01-13 14:09:31 -080026};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080027struct ocrdma_alloc_pd_uresp {
28 __u32 id;
29 __u32 dpp_enabled;
30 __u32 dpp_page_addr_hi;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080031 __u32 dpp_page_addr_lo;
Christopher Ferris76a1d452018-06-27 14:12:29 -070032 __u32 rsvd[2];
Christopher Ferris6a9755d2017-01-13 14:09:31 -080033};
34struct ocrdma_create_cq_ureq {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080035 __u32 dpp_cq;
36 __u32 rsvd;
37};
38#define MAX_CQ_PAGES 8
Christopher Ferris6a9755d2017-01-13 14:09:31 -080039struct ocrdma_create_cq_uresp {
40 __u32 cq_id;
41 __u32 page_size;
42 __u32 num_pages;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080043 __u32 max_hw_cqe;
Christopher Ferris76a1d452018-06-27 14:12:29 -070044 __aligned_u64 page_addr[MAX_CQ_PAGES];
45 __aligned_u64 db_page_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080046 __u32 db_page_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080047 __u32 phase_change;
Christopher Ferris76a1d452018-06-27 14:12:29 -070048 __aligned_u64 rsvd1;
49 __aligned_u64 rsvd2;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080050};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080051#define MAX_QP_PAGES 8
52#define MAX_UD_AV_PAGES 8
53struct ocrdma_create_qp_ureq {
54 __u8 enable_dpp_cq;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080055 __u8 rsvd;
56 __u16 dpp_cq_id;
57 __u32 rsvd1;
58};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080059struct ocrdma_create_qp_uresp {
60 __u16 qp_id;
61 __u16 sq_dbid;
62 __u16 rq_dbid;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080063 __u16 resv0;
64 __u32 sq_page_size;
65 __u32 rq_page_size;
66 __u32 num_sq_pages;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080067 __u32 num_rq_pages;
Christopher Ferris76a1d452018-06-27 14:12:29 -070068 __aligned_u64 sq_page_addr[MAX_QP_PAGES];
69 __aligned_u64 rq_page_addr[MAX_QP_PAGES];
70 __aligned_u64 db_page_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080071 __u32 db_page_size;
72 __u32 dpp_credit;
73 __u32 dpp_offset;
74 __u32 num_wqe_allocated;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080075 __u32 num_rqe_allocated;
76 __u32 db_sq_offset;
77 __u32 db_rq_offset;
78 __u32 db_shift;
Christopher Ferris76a1d452018-06-27 14:12:29 -070079 __aligned_u64 rsvd[11];
80};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080081struct ocrdma_create_srq_uresp {
82 __u16 rq_dbid;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080083 __u16 resv0;
84 __u32 resv1;
85 __u32 rq_page_size;
86 __u32 num_rq_pages;
Christopher Ferris76a1d452018-06-27 14:12:29 -070087 __aligned_u64 rq_page_addr[MAX_QP_PAGES];
88 __aligned_u64 db_page_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080089 __u32 db_page_size;
90 __u32 num_rqe_allocated;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080091 __u32 db_rq_offset;
92 __u32 db_shift;
Christopher Ferris76a1d452018-06-27 14:12:29 -070093 __aligned_u64 rsvd2;
94 __aligned_u64 rsvd3;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080095};
96#endif