Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 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 MLX5_ABI_USER_H |
| 20 | #define MLX5_ABI_USER_H |
| 21 | #include <linux/types.h> |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 22 | #include <linux/if_ether.h> |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 23 | enum { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 24 | MLX5_QP_FLAG_SIGNATURE = 1 << 0, |
| 25 | MLX5_QP_FLAG_SCATTER_CQE = 1 << 1, |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 26 | MLX5_QP_FLAG_TUNNEL_OFFLOADS = 1 << 2, |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 27 | MLX5_QP_FLAG_BFREG_INDEX = 1 << 3, |
| 28 | MLX5_QP_FLAG_TYPE_DCT = 1 << 4, |
| 29 | MLX5_QP_FLAG_TYPE_DCI = 1 << 5, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 30 | }; |
| 31 | enum { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 32 | MLX5_SRQ_FLAG_SIGNATURE = 1 << 0, |
| 33 | }; |
| 34 | enum { |
| 35 | MLX5_WQ_FLAG_SIGNATURE = 1 << 0, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 36 | }; |
| 37 | #define MLX5_IB_UVERBS_ABI_VERSION 1 |
| 38 | struct mlx5_ib_alloc_ucontext_req { |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 39 | __u32 total_num_bfregs; |
| 40 | __u32 num_low_latency_bfregs; |
| 41 | }; |
| 42 | enum mlx5_lib_caps { |
| 43 | MLX5_LIB_CAP_4K_UAR = (__u64) 1 << 0, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 44 | }; |
| 45 | struct mlx5_ib_alloc_ucontext_req_v2 { |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 46 | __u32 total_num_bfregs; |
| 47 | __u32 num_low_latency_bfregs; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 48 | __u32 flags; |
| 49 | __u32 comp_mask; |
| 50 | __u8 max_cqe_version; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 51 | __u8 reserved0; |
| 52 | __u16 reserved1; |
| 53 | __u32 reserved2; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 54 | __aligned_u64 lib_caps; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 55 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 56 | enum mlx5_ib_alloc_ucontext_resp_mask { |
| 57 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0, |
| 58 | }; |
| 59 | enum mlx5_user_cmds_supp_uhw { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 60 | MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE = 1 << 0, |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 61 | MLX5_USER_CMDS_SUPP_UHW_CREATE_AH = 1 << 1, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 62 | }; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 63 | enum mlx5_user_inline_mode { |
| 64 | MLX5_USER_INLINE_MODE_NA, |
| 65 | MLX5_USER_INLINE_MODE_NONE, |
| 66 | MLX5_USER_INLINE_MODE_L2, |
| 67 | MLX5_USER_INLINE_MODE_IP, |
| 68 | MLX5_USER_INLINE_MODE_TCP_UDP, |
| 69 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 70 | enum { |
| 71 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM = 1 << 0, |
| 72 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_REQ_METADATA = 1 << 1, |
| 73 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_SPI_STEERING = 1 << 2, |
| 74 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_FULL_OFFLOAD = 1 << 3, |
| 75 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_TX_IV_IS_ESN = 1 << 4, |
| 76 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 77 | struct mlx5_ib_alloc_ucontext_resp { |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 78 | __u32 qp_tab_size; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 79 | __u32 bf_reg_size; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 80 | __u32 tot_bfregs; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 81 | __u32 cache_line_size; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 82 | __u16 max_sq_desc_sz; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 83 | __u16 max_rq_desc_sz; |
| 84 | __u32 max_send_wqebb; |
| 85 | __u32 max_recv_wr; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 86 | __u32 max_srq_recv_wr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 87 | __u16 num_ports; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 88 | __u16 flow_action_flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 89 | __u32 comp_mask; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 90 | __u32 response_length; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 91 | __u8 cqe_version; |
| 92 | __u8 cmds_supp_uhw; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 93 | __u8 eth_min_inline; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 94 | __u8 clock_info_versions; |
| 95 | __aligned_u64 hca_core_clock_offset; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 96 | __u32 log_uar_size; |
| 97 | __u32 num_uars_per_page; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 98 | __u32 num_dyn_bfregs; |
| 99 | __u32 reserved3; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 100 | }; |
| 101 | struct mlx5_ib_alloc_pd_resp { |
| 102 | __u32 pdn; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 103 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 104 | struct mlx5_ib_tso_caps { |
| 105 | __u32 max_tso; |
| 106 | __u32 supported_qpts; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 107 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 108 | struct mlx5_ib_rss_caps { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 109 | __aligned_u64 rx_hash_fields_mask; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 110 | __u8 rx_hash_function; |
| 111 | __u8 reserved[7]; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 112 | }; |
| 113 | enum mlx5_ib_cqe_comp_res_format { |
| 114 | MLX5_IB_CQE_RES_FORMAT_HASH = 1 << 0, |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 115 | MLX5_IB_CQE_RES_FORMAT_CSUM = 1 << 1, |
| 116 | MLX5_IB_CQE_RES_RESERVED = 1 << 2, |
| 117 | }; |
| 118 | struct mlx5_ib_cqe_comp_caps { |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 119 | __u32 max_num; |
| 120 | __u32 supported_format; |
| 121 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 122 | enum mlx5_ib_packet_pacing_cap_flags { |
| 123 | MLX5_IB_PP_SUPPORT_BURST = 1 << 0, |
| 124 | }; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 125 | struct mlx5_packet_pacing_caps { |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 126 | __u32 qp_rate_limit_min; |
| 127 | __u32 qp_rate_limit_max; |
| 128 | __u32 supported_qpts; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 129 | __u8 cap_flags; |
| 130 | __u8 reserved[3]; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 131 | }; |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 132 | enum mlx5_ib_mpw_caps { |
| 133 | MPW_RESERVED = 1 << 0, |
| 134 | MLX5_IB_ALLOW_MPW = 1 << 1, |
| 135 | MLX5_IB_SUPPORT_EMPW = 1 << 2, |
| 136 | }; |
| 137 | enum mlx5_ib_sw_parsing_offloads { |
| 138 | MLX5_IB_SW_PARSING = 1 << 0, |
| 139 | MLX5_IB_SW_PARSING_CSUM = 1 << 1, |
| 140 | MLX5_IB_SW_PARSING_LSO = 1 << 2, |
| 141 | }; |
| 142 | struct mlx5_ib_sw_parsing_caps { |
| 143 | __u32 sw_parsing_offloads; |
| 144 | __u32 supported_qpts; |
| 145 | }; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 146 | struct mlx5_ib_striding_rq_caps { |
| 147 | __u32 min_single_stride_log_num_of_bytes; |
| 148 | __u32 max_single_stride_log_num_of_bytes; |
| 149 | __u32 min_single_wqe_log_num_of_strides; |
| 150 | __u32 max_single_wqe_log_num_of_strides; |
| 151 | __u32 supported_qpts; |
| 152 | __u32 reserved; |
| 153 | }; |
| 154 | enum mlx5_ib_query_dev_resp_flags { |
| 155 | MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_COMP = 1 << 0, |
| 156 | MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_PAD = 1 << 1, |
| 157 | }; |
| 158 | enum mlx5_ib_tunnel_offloads { |
| 159 | MLX5_IB_TUNNELED_OFFLOADS_VXLAN = 1 << 0, |
| 160 | MLX5_IB_TUNNELED_OFFLOADS_GRE = 1 << 1, |
| 161 | MLX5_IB_TUNNELED_OFFLOADS_GENEVE = 1 << 2 |
| 162 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 163 | struct mlx5_ib_query_device_resp { |
| 164 | __u32 comp_mask; |
| 165 | __u32 response_length; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 166 | struct mlx5_ib_tso_caps tso_caps; |
| 167 | struct mlx5_ib_rss_caps rss_caps; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 168 | struct mlx5_ib_cqe_comp_caps cqe_comp_caps; |
| 169 | struct mlx5_packet_pacing_caps packet_pacing_caps; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 170 | __u32 mlx5_ib_support_multi_pkt_send_wqes; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 171 | __u32 flags; |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 172 | struct mlx5_ib_sw_parsing_caps sw_parsing_caps; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 173 | struct mlx5_ib_striding_rq_caps striding_rq_caps; |
| 174 | __u32 tunnel_offloads_caps; |
| 175 | __u32 reserved; |
| 176 | }; |
| 177 | enum mlx5_ib_create_cq_flags { |
| 178 | MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD = 1 << 0, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 179 | }; |
| 180 | struct mlx5_ib_create_cq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 181 | __aligned_u64 buf_addr; |
| 182 | __aligned_u64 db_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 183 | __u32 cqe_size; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 184 | __u8 cqe_comp_en; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 185 | __u8 cqe_comp_res_format; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 186 | __u16 flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 187 | }; |
| 188 | struct mlx5_ib_create_cq_resp { |
| 189 | __u32 cqn; |
| 190 | __u32 reserved; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 191 | }; |
| 192 | struct mlx5_ib_resize_cq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 193 | __aligned_u64 buf_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 194 | __u16 cqe_size; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 195 | __u16 reserved0; |
| 196 | __u32 reserved1; |
| 197 | }; |
| 198 | struct mlx5_ib_create_srq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 199 | __aligned_u64 buf_addr; |
| 200 | __aligned_u64 db_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 201 | __u32 flags; |
| 202 | __u32 reserved0; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 203 | __u32 uidx; |
| 204 | __u32 reserved1; |
| 205 | }; |
| 206 | struct mlx5_ib_create_srq_resp { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 207 | __u32 srqn; |
| 208 | __u32 reserved; |
| 209 | }; |
| 210 | struct mlx5_ib_create_qp { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 211 | __aligned_u64 buf_addr; |
| 212 | __aligned_u64 db_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 213 | __u32 sq_wqe_count; |
| 214 | __u32 rq_wqe_count; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 215 | __u32 rq_wqe_shift; |
| 216 | __u32 flags; |
| 217 | __u32 uidx; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 218 | __u32 bfreg_index; |
| 219 | union { |
| 220 | __aligned_u64 sq_buf_addr; |
| 221 | __aligned_u64 access_key; |
| 222 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 223 | }; |
| 224 | enum mlx5_rx_hash_function_flags { |
| 225 | MLX5_RX_HASH_FUNC_TOEPLITZ = 1 << 0, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 226 | }; |
| 227 | enum mlx5_rx_hash_fields { |
| 228 | MLX5_RX_HASH_SRC_IPV4 = 1 << 0, |
| 229 | MLX5_RX_HASH_DST_IPV4 = 1 << 1, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 230 | MLX5_RX_HASH_SRC_IPV6 = 1 << 2, |
| 231 | MLX5_RX_HASH_DST_IPV6 = 1 << 3, |
| 232 | MLX5_RX_HASH_SRC_PORT_TCP = 1 << 4, |
| 233 | MLX5_RX_HASH_DST_PORT_TCP = 1 << 5, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 234 | MLX5_RX_HASH_SRC_PORT_UDP = 1 << 6, |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 235 | MLX5_RX_HASH_DST_PORT_UDP = 1 << 7, |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 236 | MLX5_RX_HASH_IPSEC_SPI = 1 << 8, |
| 237 | MLX5_RX_HASH_INNER = (1UL << 31), |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 238 | }; |
| 239 | struct mlx5_ib_create_qp_rss { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 240 | __aligned_u64 rx_hash_fields_mask; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 241 | __u8 rx_hash_function; |
| 242 | __u8 rx_key_len; |
| 243 | __u8 reserved[6]; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 244 | __u8 rx_hash_key[128]; |
| 245 | __u32 comp_mask; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 246 | __u32 flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 247 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 248 | struct mlx5_ib_create_qp_resp { |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 249 | __u32 bfreg_index; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 250 | __u32 reserved; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 251 | }; |
| 252 | struct mlx5_ib_alloc_mw { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 253 | __u32 comp_mask; |
| 254 | __u8 num_klms; |
| 255 | __u8 reserved1; |
| 256 | __u16 reserved2; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 257 | }; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 258 | enum mlx5_ib_create_wq_mask { |
| 259 | MLX5_IB_CREATE_WQ_STRIDING_RQ = (1 << 0), |
| 260 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 261 | struct mlx5_ib_create_wq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 262 | __aligned_u64 buf_addr; |
| 263 | __aligned_u64 db_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 264 | __u32 rq_wqe_count; |
| 265 | __u32 rq_wqe_shift; |
| 266 | __u32 user_index; |
| 267 | __u32 flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 268 | __u32 comp_mask; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 269 | __u32 single_stride_log_num_of_bytes; |
| 270 | __u32 single_wqe_log_num_of_strides; |
| 271 | __u32 two_byte_shift_en; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 272 | }; |
| 273 | struct mlx5_ib_create_ah_resp { |
| 274 | __u32 response_length; |
| 275 | __u8 dmac[ETH_ALEN]; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 276 | __u8 reserved[6]; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 277 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 278 | struct mlx5_ib_burst_info { |
| 279 | __u32 max_burst_sz; |
| 280 | __u16 typical_pkt_sz; |
| 281 | __u16 reserved; |
| 282 | }; |
| 283 | struct mlx5_ib_modify_qp { |
| 284 | __u32 comp_mask; |
| 285 | struct mlx5_ib_burst_info burst_info; |
| 286 | __u32 reserved; |
| 287 | }; |
| 288 | struct mlx5_ib_modify_qp_resp { |
| 289 | __u32 response_length; |
| 290 | __u32 dctn; |
| 291 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 292 | struct mlx5_ib_create_wq_resp { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 293 | __u32 response_length; |
| 294 | __u32 reserved; |
| 295 | }; |
| 296 | struct mlx5_ib_create_rwq_ind_tbl_resp { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 297 | __u32 response_length; |
| 298 | __u32 reserved; |
| 299 | }; |
| 300 | struct mlx5_ib_modify_wq { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 301 | __u32 comp_mask; |
| 302 | __u32 reserved; |
| 303 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 304 | struct mlx5_ib_clock_info { |
| 305 | __u32 sign; |
| 306 | __u32 resv; |
| 307 | __aligned_u64 nsec; |
| 308 | __aligned_u64 cycles; |
| 309 | __aligned_u64 frac; |
| 310 | __u32 mult; |
| 311 | __u32 shift; |
| 312 | __aligned_u64 mask; |
| 313 | __aligned_u64 overflow_period; |
| 314 | }; |
| 315 | enum mlx5_ib_mmap_cmd { |
| 316 | MLX5_IB_MMAP_REGULAR_PAGE = 0, |
| 317 | MLX5_IB_MMAP_GET_CONTIGUOUS_PAGES = 1, |
| 318 | MLX5_IB_MMAP_WC_PAGE = 2, |
| 319 | MLX5_IB_MMAP_NC_PAGE = 3, |
| 320 | MLX5_IB_MMAP_CORE_CLOCK = 5, |
| 321 | MLX5_IB_MMAP_ALLOC_WC = 6, |
| 322 | MLX5_IB_MMAP_CLOCK_INFO = 7, |
| 323 | MLX5_IB_MMAP_DEVICE_MEM = 8, |
| 324 | }; |
| 325 | enum { |
| 326 | MLX5_IB_CLOCK_INFO_KERNEL_UPDATING = 1, |
| 327 | }; |
| 328 | enum { |
| 329 | MLX5_IB_CLOCK_INFO_V1 = 0, |
| 330 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 331 | #endif |