blob: 986a615f623cf13dd99d97c1360553414ef4a833 [file] [log] [blame]
Eli Cohend29b7962014-10-02 12:19:43 +03001/*
Saeed Mahameede2816822015-05-28 22:28:40 +03002 * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved.
Eli Cohend29b7962014-10-02 12:19:43 +03003 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:
9 *
10 * Redistribution and use in source and binary forms, with or
11 * without modification, are permitted provided that the following
12 * conditions are met:
13 *
14 * - Redistributions of source code must retain the above
15 * copyright notice, this list of conditions and the following
16 * disclaimer.
17 *
18 * - Redistributions in binary form must reproduce the above
19 * copyright notice, this list of conditions and the following
20 * disclaimer in the documentation and/or other materials
21 * provided with the distribution.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
Saeed Mahameede2816822015-05-28 22:28:40 +030031*/
Eli Cohend29b7962014-10-02 12:19:43 +030032#ifndef MLX5_IFC_H
33#define MLX5_IFC_H
34
35enum {
Saeed Mahameede2816822015-05-28 22:28:40 +030036 MLX5_EVENT_TYPE_CODING_COMPLETION_EVENTS = 0x0,
37 MLX5_EVENT_TYPE_CODING_PATH_MIGRATED_SUCCEEDED = 0x1,
38 MLX5_EVENT_TYPE_CODING_COMMUNICATION_ESTABLISHED = 0x2,
39 MLX5_EVENT_TYPE_CODING_SEND_QUEUE_DRAINED = 0x3,
40 MLX5_EVENT_TYPE_CODING_LAST_WQE_REACHED = 0x13,
41 MLX5_EVENT_TYPE_CODING_SRQ_LIMIT = 0x14,
42 MLX5_EVENT_TYPE_CODING_DCT_ALL_CONNECTIONS_CLOSED = 0x1c,
43 MLX5_EVENT_TYPE_CODING_DCT_ACCESS_KEY_VIOLATION = 0x1d,
44 MLX5_EVENT_TYPE_CODING_CQ_ERROR = 0x4,
45 MLX5_EVENT_TYPE_CODING_LOCAL_WQ_CATASTROPHIC_ERROR = 0x5,
46 MLX5_EVENT_TYPE_CODING_PATH_MIGRATION_FAILED = 0x7,
47 MLX5_EVENT_TYPE_CODING_PAGE_FAULT_EVENT = 0xc,
48 MLX5_EVENT_TYPE_CODING_INVALID_REQUEST_LOCAL_WQ_ERROR = 0x10,
49 MLX5_EVENT_TYPE_CODING_LOCAL_ACCESS_VIOLATION_WQ_ERROR = 0x11,
50 MLX5_EVENT_TYPE_CODING_LOCAL_SRQ_CATASTROPHIC_ERROR = 0x12,
51 MLX5_EVENT_TYPE_CODING_INTERNAL_ERROR = 0x8,
52 MLX5_EVENT_TYPE_CODING_PORT_STATE_CHANGE = 0x9,
53 MLX5_EVENT_TYPE_CODING_GPIO_EVENT = 0x15,
54 MLX5_EVENT_TYPE_CODING_REMOTE_CONFIGURATION_PROTOCOL_EVENT = 0x19,
55 MLX5_EVENT_TYPE_CODING_DOORBELL_BLUEFLAME_CONGESTION_EVENT = 0x1a,
56 MLX5_EVENT_TYPE_CODING_STALL_VL_EVENT = 0x1b,
57 MLX5_EVENT_TYPE_CODING_DROPPED_PACKET_LOGGED_EVENT = 0x1f,
58 MLX5_EVENT_TYPE_CODING_COMMAND_INTERFACE_COMPLETION = 0xa,
59 MLX5_EVENT_TYPE_CODING_PAGE_REQUEST = 0xb
60};
61
62enum {
63 MLX5_MODIFY_TIR_BITMASK_LRO = 0x0,
64 MLX5_MODIFY_TIR_BITMASK_INDIRECT_TABLE = 0x1,
65 MLX5_MODIFY_TIR_BITMASK_HASH = 0x2,
66 MLX5_MODIFY_TIR_BITMASK_TUNNELED_OFFLOAD_EN = 0x3
67};
68
69enum {
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +020070 MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE = 0x0,
71 MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3,
72};
73
74enum {
Eli Cohend29b7962014-10-02 12:19:43 +030075 MLX5_CMD_OP_QUERY_HCA_CAP = 0x100,
76 MLX5_CMD_OP_QUERY_ADAPTER = 0x101,
77 MLX5_CMD_OP_INIT_HCA = 0x102,
78 MLX5_CMD_OP_TEARDOWN_HCA = 0x103,
79 MLX5_CMD_OP_ENABLE_HCA = 0x104,
80 MLX5_CMD_OP_DISABLE_HCA = 0x105,
81 MLX5_CMD_OP_QUERY_PAGES = 0x107,
82 MLX5_CMD_OP_MANAGE_PAGES = 0x108,
83 MLX5_CMD_OP_SET_HCA_CAP = 0x109,
Saeed Mahameede2816822015-05-28 22:28:40 +030084 MLX5_CMD_OP_QUERY_ISSI = 0x10a,
85 MLX5_CMD_OP_SET_ISSI = 0x10b,
Eli Cohend29b7962014-10-02 12:19:43 +030086 MLX5_CMD_OP_CREATE_MKEY = 0x200,
87 MLX5_CMD_OP_QUERY_MKEY = 0x201,
88 MLX5_CMD_OP_DESTROY_MKEY = 0x202,
89 MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS = 0x203,
90 MLX5_CMD_OP_PAGE_FAULT_RESUME = 0x204,
91 MLX5_CMD_OP_CREATE_EQ = 0x301,
92 MLX5_CMD_OP_DESTROY_EQ = 0x302,
93 MLX5_CMD_OP_QUERY_EQ = 0x303,
94 MLX5_CMD_OP_GEN_EQE = 0x304,
95 MLX5_CMD_OP_CREATE_CQ = 0x400,
96 MLX5_CMD_OP_DESTROY_CQ = 0x401,
97 MLX5_CMD_OP_QUERY_CQ = 0x402,
98 MLX5_CMD_OP_MODIFY_CQ = 0x403,
99 MLX5_CMD_OP_CREATE_QP = 0x500,
100 MLX5_CMD_OP_DESTROY_QP = 0x501,
101 MLX5_CMD_OP_RST2INIT_QP = 0x502,
102 MLX5_CMD_OP_INIT2RTR_QP = 0x503,
103 MLX5_CMD_OP_RTR2RTS_QP = 0x504,
104 MLX5_CMD_OP_RTS2RTS_QP = 0x505,
105 MLX5_CMD_OP_SQERR2RTS_QP = 0x506,
106 MLX5_CMD_OP_2ERR_QP = 0x507,
107 MLX5_CMD_OP_2RST_QP = 0x50a,
108 MLX5_CMD_OP_QUERY_QP = 0x50b,
Saeed Mahameede2816822015-05-28 22:28:40 +0300109 MLX5_CMD_OP_SQD_RTS_QP = 0x50c,
Eli Cohend29b7962014-10-02 12:19:43 +0300110 MLX5_CMD_OP_INIT2INIT_QP = 0x50e,
111 MLX5_CMD_OP_CREATE_PSV = 0x600,
112 MLX5_CMD_OP_DESTROY_PSV = 0x601,
113 MLX5_CMD_OP_CREATE_SRQ = 0x700,
114 MLX5_CMD_OP_DESTROY_SRQ = 0x701,
115 MLX5_CMD_OP_QUERY_SRQ = 0x702,
116 MLX5_CMD_OP_ARM_RQ = 0x703,
Saeed Mahameede2816822015-05-28 22:28:40 +0300117 MLX5_CMD_OP_CREATE_XRC_SRQ = 0x705,
118 MLX5_CMD_OP_DESTROY_XRC_SRQ = 0x706,
119 MLX5_CMD_OP_QUERY_XRC_SRQ = 0x707,
120 MLX5_CMD_OP_ARM_XRC_SRQ = 0x708,
Eli Cohend29b7962014-10-02 12:19:43 +0300121 MLX5_CMD_OP_CREATE_DCT = 0x710,
122 MLX5_CMD_OP_DESTROY_DCT = 0x711,
123 MLX5_CMD_OP_DRAIN_DCT = 0x712,
124 MLX5_CMD_OP_QUERY_DCT = 0x713,
125 MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION = 0x714,
126 MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750,
127 MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751,
128 MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752,
129 MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT = 0x753,
130 MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT = 0x754,
131 MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT = 0x755,
Saeed Mahameede2816822015-05-28 22:28:40 +0300132 MLX5_CMD_OP_QUERY_ROCE_ADDRESS = 0x760,
Eli Cohend29b7962014-10-02 12:19:43 +0300133 MLX5_CMD_OP_SET_ROCE_ADDRESS = 0x761,
Saeed Mahameede2816822015-05-28 22:28:40 +0300134 MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT = 0x762,
135 MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT = 0x763,
136 MLX5_CMD_OP_QUERY_HCA_VPORT_GID = 0x764,
137 MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY = 0x765,
Eli Cohend29b7962014-10-02 12:19:43 +0300138 MLX5_CMD_OP_QUERY_VPORT_COUNTER = 0x770,
139 MLX5_CMD_OP_ALLOC_Q_COUNTER = 0x771,
140 MLX5_CMD_OP_DEALLOC_Q_COUNTER = 0x772,
141 MLX5_CMD_OP_QUERY_Q_COUNTER = 0x773,
142 MLX5_CMD_OP_ALLOC_PD = 0x800,
143 MLX5_CMD_OP_DEALLOC_PD = 0x801,
144 MLX5_CMD_OP_ALLOC_UAR = 0x802,
145 MLX5_CMD_OP_DEALLOC_UAR = 0x803,
146 MLX5_CMD_OP_CONFIG_INT_MODERATION = 0x804,
147 MLX5_CMD_OP_ACCESS_REG = 0x805,
148 MLX5_CMD_OP_ATTACH_TO_MCG = 0x806,
Saeed Mahameede2816822015-05-28 22:28:40 +0300149 MLX5_CMD_OP_DETTACH_FROM_MCG = 0x807,
Eli Cohend29b7962014-10-02 12:19:43 +0300150 MLX5_CMD_OP_GET_DROPPED_PACKET_LOG = 0x80a,
151 MLX5_CMD_OP_MAD_IFC = 0x50d,
152 MLX5_CMD_OP_QUERY_MAD_DEMUX = 0x80b,
153 MLX5_CMD_OP_SET_MAD_DEMUX = 0x80c,
154 MLX5_CMD_OP_NOP = 0x80d,
155 MLX5_CMD_OP_ALLOC_XRCD = 0x80e,
156 MLX5_CMD_OP_DEALLOC_XRCD = 0x80f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300157 MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN = 0x816,
158 MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN = 0x817,
159 MLX5_CMD_OP_QUERY_CONG_STATUS = 0x822,
160 MLX5_CMD_OP_MODIFY_CONG_STATUS = 0x823,
161 MLX5_CMD_OP_QUERY_CONG_PARAMS = 0x824,
162 MLX5_CMD_OP_MODIFY_CONG_PARAMS = 0x825,
163 MLX5_CMD_OP_QUERY_CONG_STATISTICS = 0x826,
164 MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT = 0x827,
165 MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT = 0x828,
166 MLX5_CMD_OP_SET_L2_TABLE_ENTRY = 0x829,
167 MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY = 0x82a,
168 MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY = 0x82b,
Tariq Toukan928cfe82016-02-22 18:17:29 +0200169 MLX5_CMD_OP_SET_WOL_ROL = 0x830,
170 MLX5_CMD_OP_QUERY_WOL_ROL = 0x831,
Eli Cohend29b7962014-10-02 12:19:43 +0300171 MLX5_CMD_OP_CREATE_TIR = 0x900,
172 MLX5_CMD_OP_MODIFY_TIR = 0x901,
173 MLX5_CMD_OP_DESTROY_TIR = 0x902,
174 MLX5_CMD_OP_QUERY_TIR = 0x903,
Eli Cohend29b7962014-10-02 12:19:43 +0300175 MLX5_CMD_OP_CREATE_SQ = 0x904,
176 MLX5_CMD_OP_MODIFY_SQ = 0x905,
177 MLX5_CMD_OP_DESTROY_SQ = 0x906,
178 MLX5_CMD_OP_QUERY_SQ = 0x907,
179 MLX5_CMD_OP_CREATE_RQ = 0x908,
180 MLX5_CMD_OP_MODIFY_RQ = 0x909,
181 MLX5_CMD_OP_DESTROY_RQ = 0x90a,
182 MLX5_CMD_OP_QUERY_RQ = 0x90b,
183 MLX5_CMD_OP_CREATE_RMP = 0x90c,
184 MLX5_CMD_OP_MODIFY_RMP = 0x90d,
185 MLX5_CMD_OP_DESTROY_RMP = 0x90e,
186 MLX5_CMD_OP_QUERY_RMP = 0x90f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300187 MLX5_CMD_OP_CREATE_TIS = 0x912,
188 MLX5_CMD_OP_MODIFY_TIS = 0x913,
189 MLX5_CMD_OP_DESTROY_TIS = 0x914,
190 MLX5_CMD_OP_QUERY_TIS = 0x915,
191 MLX5_CMD_OP_CREATE_RQT = 0x916,
192 MLX5_CMD_OP_MODIFY_RQT = 0x917,
193 MLX5_CMD_OP_DESTROY_RQT = 0x918,
194 MLX5_CMD_OP_QUERY_RQT = 0x919,
Maor Gottlieb2cc43b42016-01-11 10:25:59 +0200195 MLX5_CMD_OP_SET_FLOW_TABLE_ROOT = 0x92f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300196 MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930,
197 MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931,
198 MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932,
199 MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933,
200 MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934,
201 MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935,
202 MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936,
203 MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937,
Maor Gottlieb34a40e62016-01-11 10:26:00 +0200204 MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938,
Amir Vadai9dc0b282016-05-13 12:55:39 +0000205 MLX5_CMD_OP_ALLOC_FLOW_COUNTER = 0x939,
206 MLX5_CMD_OP_DEALLOC_FLOW_COUNTER = 0x93a,
207 MLX5_CMD_OP_QUERY_FLOW_COUNTER = 0x93b,
Shahar Klein86d56a12016-06-10 00:07:30 +0300208 MLX5_CMD_OP_MODIFY_FLOW_TABLE = 0x93c,
209 MLX5_CMD_OP_MAX
Saeed Mahameede2816822015-05-28 22:28:40 +0300210};
211
212struct mlx5_ifc_flow_table_fields_supported_bits {
213 u8 outer_dmac[0x1];
214 u8 outer_smac[0x1];
215 u8 outer_ether_type[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200216 u8 reserved_at_3[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300217 u8 outer_first_prio[0x1];
218 u8 outer_first_cfi[0x1];
219 u8 outer_first_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200220 u8 reserved_at_7[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300221 u8 outer_second_prio[0x1];
222 u8 outer_second_cfi[0x1];
223 u8 outer_second_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200224 u8 reserved_at_b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300225 u8 outer_sip[0x1];
226 u8 outer_dip[0x1];
227 u8 outer_frag[0x1];
228 u8 outer_ip_protocol[0x1];
229 u8 outer_ip_ecn[0x1];
230 u8 outer_ip_dscp[0x1];
231 u8 outer_udp_sport[0x1];
232 u8 outer_udp_dport[0x1];
233 u8 outer_tcp_sport[0x1];
234 u8 outer_tcp_dport[0x1];
235 u8 outer_tcp_flags[0x1];
236 u8 outer_gre_protocol[0x1];
237 u8 outer_gre_key[0x1];
238 u8 outer_vxlan_vni[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200239 u8 reserved_at_1a[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +0300240 u8 source_eswitch_port[0x1];
241
242 u8 inner_dmac[0x1];
243 u8 inner_smac[0x1];
244 u8 inner_ether_type[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200245 u8 reserved_at_23[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300246 u8 inner_first_prio[0x1];
247 u8 inner_first_cfi[0x1];
248 u8 inner_first_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200249 u8 reserved_at_27[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300250 u8 inner_second_prio[0x1];
251 u8 inner_second_cfi[0x1];
252 u8 inner_second_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200253 u8 reserved_at_2b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300254 u8 inner_sip[0x1];
255 u8 inner_dip[0x1];
256 u8 inner_frag[0x1];
257 u8 inner_ip_protocol[0x1];
258 u8 inner_ip_ecn[0x1];
259 u8 inner_ip_dscp[0x1];
260 u8 inner_udp_sport[0x1];
261 u8 inner_udp_dport[0x1];
262 u8 inner_tcp_sport[0x1];
263 u8 inner_tcp_dport[0x1];
264 u8 inner_tcp_flags[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200265 u8 reserved_at_37[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +0300266
Matan Barakb4ff3a32016-02-09 14:57:42 +0200267 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300268};
269
270struct mlx5_ifc_flow_table_prop_layout_bits {
271 u8 ft_support[0x1];
Amir Vadai9dc0b282016-05-13 12:55:39 +0000272 u8 reserved_at_1[0x1];
273 u8 flow_counter[0x1];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200274 u8 flow_modify_en[0x1];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +0200275 u8 modify_root[0x1];
Maor Gottlieb34a40e62016-01-11 10:26:00 +0200276 u8 identified_miss_table_mode[0x1];
277 u8 flow_table_modify[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200278 u8 reserved_at_7[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +0300279
Matan Barakb4ff3a32016-02-09 14:57:42 +0200280 u8 reserved_at_20[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300281 u8 log_max_ft_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200282 u8 reserved_at_28[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300283 u8 max_ft_level[0x8];
284
Matan Barakb4ff3a32016-02-09 14:57:42 +0200285 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300286
Matan Barakb4ff3a32016-02-09 14:57:42 +0200287 u8 reserved_at_60[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200288 u8 log_max_ft_num[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300289
Matan Barakb4ff3a32016-02-09 14:57:42 +0200290 u8 reserved_at_80[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200291 u8 log_max_destination[0x8];
292
Matan Barakb4ff3a32016-02-09 14:57:42 +0200293 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +0300294 u8 log_max_flow[0x8];
295
Matan Barakb4ff3a32016-02-09 14:57:42 +0200296 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300297
298 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support;
299
300 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support;
301};
302
303struct mlx5_ifc_odp_per_transport_service_cap_bits {
304 u8 send[0x1];
305 u8 receive[0x1];
306 u8 write[0x1];
307 u8 read[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200308 u8 reserved_at_4[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300309 u8 srq_receive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200310 u8 reserved_at_6[0x1a];
Saeed Mahameede2816822015-05-28 22:28:40 +0300311};
312
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200313struct mlx5_ifc_ipv4_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200314 u8 reserved_at_0[0x60];
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200315
316 u8 ipv4[0x20];
317};
318
319struct mlx5_ifc_ipv6_layout_bits {
320 u8 ipv6[16][0x8];
321};
322
323union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits {
324 struct mlx5_ifc_ipv6_layout_bits ipv6_layout;
325 struct mlx5_ifc_ipv4_layout_bits ipv4_layout;
Matan Barakb4ff3a32016-02-09 14:57:42 +0200326 u8 reserved_at_0[0x80];
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200327};
328
Saeed Mahameede2816822015-05-28 22:28:40 +0300329struct mlx5_ifc_fte_match_set_lyr_2_4_bits {
330 u8 smac_47_16[0x20];
331
332 u8 smac_15_0[0x10];
333 u8 ethertype[0x10];
334
335 u8 dmac_47_16[0x20];
336
337 u8 dmac_15_0[0x10];
338 u8 first_prio[0x3];
339 u8 first_cfi[0x1];
340 u8 first_vid[0xc];
341
342 u8 ip_protocol[0x8];
343 u8 ip_dscp[0x6];
344 u8 ip_ecn[0x2];
345 u8 vlan_tag[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200346 u8 reserved_at_91[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300347 u8 frag[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200348 u8 reserved_at_93[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300349 u8 tcp_flags[0x9];
350
351 u8 tcp_sport[0x10];
352 u8 tcp_dport[0x10];
353
Matan Barakb4ff3a32016-02-09 14:57:42 +0200354 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300355
356 u8 udp_sport[0x10];
357 u8 udp_dport[0x10];
358
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200359 union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits src_ipv4_src_ipv6;
Saeed Mahameede2816822015-05-28 22:28:40 +0300360
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200361 union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits dst_ipv4_dst_ipv6;
Saeed Mahameede2816822015-05-28 22:28:40 +0300362};
363
364struct mlx5_ifc_fte_match_set_misc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200365 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300366
Matan Barakb4ff3a32016-02-09 14:57:42 +0200367 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300368 u8 source_port[0x10];
369
370 u8 outer_second_prio[0x3];
371 u8 outer_second_cfi[0x1];
372 u8 outer_second_vid[0xc];
373 u8 inner_second_prio[0x3];
374 u8 inner_second_cfi[0x1];
375 u8 inner_second_vid[0xc];
376
377 u8 outer_second_vlan_tag[0x1];
378 u8 inner_second_vlan_tag[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200379 u8 reserved_at_62[0xe];
Saeed Mahameede2816822015-05-28 22:28:40 +0300380 u8 gre_protocol[0x10];
381
382 u8 gre_key_h[0x18];
383 u8 gre_key_l[0x8];
384
385 u8 vxlan_vni[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200386 u8 reserved_at_b8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300387
Matan Barakb4ff3a32016-02-09 14:57:42 +0200388 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300389
Matan Barakb4ff3a32016-02-09 14:57:42 +0200390 u8 reserved_at_e0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300391 u8 outer_ipv6_flow_label[0x14];
392
Matan Barakb4ff3a32016-02-09 14:57:42 +0200393 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300394 u8 inner_ipv6_flow_label[0x14];
395
Matan Barakb4ff3a32016-02-09 14:57:42 +0200396 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +0300397};
398
399struct mlx5_ifc_cmd_pas_bits {
400 u8 pa_h[0x20];
401
402 u8 pa_l[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200403 u8 reserved_at_34[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300404};
405
406struct mlx5_ifc_uint64_bits {
407 u8 hi[0x20];
408
409 u8 lo[0x20];
410};
411
412enum {
413 MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0,
414 MLX5_ADS_STAT_RATE_2_5GBPS = 0x7,
415 MLX5_ADS_STAT_RATE_10GBPS = 0x8,
416 MLX5_ADS_STAT_RATE_30GBPS = 0x9,
417 MLX5_ADS_STAT_RATE_5GBPS = 0xa,
418 MLX5_ADS_STAT_RATE_20GBPS = 0xb,
419 MLX5_ADS_STAT_RATE_40GBPS = 0xc,
420 MLX5_ADS_STAT_RATE_60GBPS = 0xd,
421 MLX5_ADS_STAT_RATE_80GBPS = 0xe,
422 MLX5_ADS_STAT_RATE_120GBPS = 0xf,
423};
424
425struct mlx5_ifc_ads_bits {
426 u8 fl[0x1];
427 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200428 u8 reserved_at_2[0xe];
Saeed Mahameede2816822015-05-28 22:28:40 +0300429 u8 pkey_index[0x10];
430
Matan Barakb4ff3a32016-02-09 14:57:42 +0200431 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300432 u8 grh[0x1];
433 u8 mlid[0x7];
434 u8 rlid[0x10];
435
436 u8 ack_timeout[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200437 u8 reserved_at_45[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300438 u8 src_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200439 u8 reserved_at_50[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300440 u8 stat_rate[0x4];
441 u8 hop_limit[0x8];
442
Matan Barakb4ff3a32016-02-09 14:57:42 +0200443 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300444 u8 tclass[0x8];
445 u8 flow_label[0x14];
446
447 u8 rgid_rip[16][0x8];
448
Matan Barakb4ff3a32016-02-09 14:57:42 +0200449 u8 reserved_at_100[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300450 u8 f_dscp[0x1];
451 u8 f_ecn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200452 u8 reserved_at_106[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300453 u8 f_eth_prio[0x1];
454 u8 ecn[0x2];
455 u8 dscp[0x6];
456 u8 udp_sport[0x10];
457
458 u8 dei_cfi[0x1];
459 u8 eth_prio[0x3];
460 u8 sl[0x4];
461 u8 port[0x8];
462 u8 rmac_47_32[0x10];
463
464 u8 rmac_31_0[0x20];
465};
466
467struct mlx5_ifc_flow_table_nic_cap_bits {
Maor Gottliebb3638e12016-03-07 18:51:46 +0200468 u8 nic_rx_multi_path_tirs[0x1];
469 u8 reserved_at_1[0x1ff];
Saeed Mahameede2816822015-05-28 22:28:40 +0300470
471 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;
472
Matan Barakb4ff3a32016-02-09 14:57:42 +0200473 u8 reserved_at_400[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300474
475 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;
476
477 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit;
478
Matan Barakb4ff3a32016-02-09 14:57:42 +0200479 u8 reserved_at_a00[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300480
481 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer;
482
Matan Barakb4ff3a32016-02-09 14:57:42 +0200483 u8 reserved_at_e00[0x7200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300484};
485
Saeed Mahameed495716b2015-12-01 18:03:19 +0200486struct mlx5_ifc_flow_table_eswitch_cap_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200487 u8 reserved_at_0[0x200];
Saeed Mahameed495716b2015-12-01 18:03:19 +0200488
489 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb;
490
491 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress;
492
493 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress;
494
Matan Barakb4ff3a32016-02-09 14:57:42 +0200495 u8 reserved_at_800[0x7800];
Saeed Mahameed495716b2015-12-01 18:03:19 +0200496};
497
Saeed Mahameedd6666752015-12-01 18:03:22 +0200498struct mlx5_ifc_e_switch_cap_bits {
499 u8 vport_svlan_strip[0x1];
500 u8 vport_cvlan_strip[0x1];
501 u8 vport_svlan_insert[0x1];
502 u8 vport_cvlan_insert_if_not_exist[0x1];
503 u8 vport_cvlan_insert_overwrite[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200504 u8 reserved_at_5[0x1b];
Saeed Mahameedd6666752015-12-01 18:03:22 +0200505
Matan Barakb4ff3a32016-02-09 14:57:42 +0200506 u8 reserved_at_20[0x7e0];
Saeed Mahameedd6666752015-12-01 18:03:22 +0200507};
508
Saeed Mahameede2816822015-05-28 22:28:40 +0300509struct mlx5_ifc_per_protocol_networking_offload_caps_bits {
510 u8 csum_cap[0x1];
511 u8 vlan_cap[0x1];
512 u8 lro_cap[0x1];
513 u8 lro_psh_flag[0x1];
514 u8 lro_time_stamp[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200515 u8 reserved_at_5[0x3];
Tariq Toukan66189962015-11-12 19:35:26 +0200516 u8 self_lb_en_modifiable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200517 u8 reserved_at_9[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300518 u8 max_lso_cap[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200519 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300520 u8 rss_ind_tbl_cap[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300521 u8 reg_umr_sq[0x1];
522 u8 scatter_fcs[0x1];
523 u8 reserved_at_1a[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300524 u8 tunnel_lso_const_out_ip_id[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200525 u8 reserved_at_1c[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300526 u8 tunnel_statless_gre[0x1];
527 u8 tunnel_stateless_vxlan[0x1];
528
Matan Barakb4ff3a32016-02-09 14:57:42 +0200529 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300530
Matan Barakb4ff3a32016-02-09 14:57:42 +0200531 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300532 u8 lro_min_mss_size[0x10];
533
Matan Barakb4ff3a32016-02-09 14:57:42 +0200534 u8 reserved_at_60[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +0300535
536 u8 lro_timer_supported_periods[4][0x20];
537
Matan Barakb4ff3a32016-02-09 14:57:42 +0200538 u8 reserved_at_200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +0300539};
540
541struct mlx5_ifc_roce_cap_bits {
542 u8 roce_apm[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200543 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +0300544
Matan Barakb4ff3a32016-02-09 14:57:42 +0200545 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +0300546
Matan Barakb4ff3a32016-02-09 14:57:42 +0200547 u8 reserved_at_80[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300548 u8 l3_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200549 u8 reserved_at_90[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300550 u8 roce_version[0x8];
551
Matan Barakb4ff3a32016-02-09 14:57:42 +0200552 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300553 u8 r_roce_dest_udp_port[0x10];
554
555 u8 r_roce_max_src_udp_port[0x10];
556 u8 r_roce_min_src_udp_port[0x10];
557
Matan Barakb4ff3a32016-02-09 14:57:42 +0200558 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300559 u8 roce_address_table_size[0x10];
560
Matan Barakb4ff3a32016-02-09 14:57:42 +0200561 u8 reserved_at_100[0x700];
Saeed Mahameede2816822015-05-28 22:28:40 +0300562};
563
564enum {
565 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0,
566 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2,
567 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4,
568 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8,
569 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10,
570 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20,
571 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40,
572 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80,
573 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100,
574};
575
576enum {
577 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1,
578 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2,
579 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4,
580 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8,
581 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10,
582 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20,
583 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40,
584 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80,
585 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100,
586};
587
588struct mlx5_ifc_atomic_caps_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200589 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300590
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200591 u8 atomic_req_8B_endianess_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200592 u8 reserved_at_42[0x4];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200593 u8 supported_atomic_req_8B_endianess_mode_1[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300594
Matan Barakb4ff3a32016-02-09 14:57:42 +0200595 u8 reserved_at_47[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +0300596
Matan Barakb4ff3a32016-02-09 14:57:42 +0200597 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300598
Matan Barakb4ff3a32016-02-09 14:57:42 +0200599 u8 reserved_at_80[0x10];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200600 u8 atomic_operations[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300601
Matan Barakb4ff3a32016-02-09 14:57:42 +0200602 u8 reserved_at_a0[0x10];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200603 u8 atomic_size_qp[0x10];
604
Matan Barakb4ff3a32016-02-09 14:57:42 +0200605 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300606 u8 atomic_size_dc[0x10];
607
Matan Barakb4ff3a32016-02-09 14:57:42 +0200608 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +0300609};
610
611struct mlx5_ifc_odp_cap_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200612 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300613
614 u8 sig[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200615 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +0300616
Matan Barakb4ff3a32016-02-09 14:57:42 +0200617 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300618
619 struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps;
620
621 struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps;
622
623 struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps;
624
Matan Barakb4ff3a32016-02-09 14:57:42 +0200625 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +0300626};
627
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200628struct mlx5_ifc_calc_op {
629 u8 reserved_at_0[0x10];
630 u8 reserved_at_10[0x9];
631 u8 op_swap_endianness[0x1];
632 u8 op_min[0x1];
633 u8 op_xor[0x1];
634 u8 op_or[0x1];
635 u8 op_and[0x1];
636 u8 op_max[0x1];
637 u8 op_add[0x1];
638};
639
640struct mlx5_ifc_vector_calc_cap_bits {
641 u8 calc_matrix[0x1];
642 u8 reserved_at_1[0x1f];
643 u8 reserved_at_20[0x8];
644 u8 max_vec_count[0x8];
645 u8 reserved_at_30[0xd];
646 u8 max_chunk_size[0x3];
647 struct mlx5_ifc_calc_op calc0;
648 struct mlx5_ifc_calc_op calc1;
649 struct mlx5_ifc_calc_op calc2;
650 struct mlx5_ifc_calc_op calc3;
651
652 u8 reserved_at_e0[0x720];
653};
654
Saeed Mahameede2816822015-05-28 22:28:40 +0300655enum {
656 MLX5_WQ_TYPE_LINKED_LIST = 0x0,
657 MLX5_WQ_TYPE_CYCLIC = 0x1,
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300658 MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +0300659};
660
661enum {
662 MLX5_WQ_END_PAD_MODE_NONE = 0x0,
663 MLX5_WQ_END_PAD_MODE_ALIGN = 0x1,
664};
665
666enum {
667 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0,
668 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1,
669 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2,
670 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3,
671 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4,
672};
673
674enum {
675 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0,
676 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1,
677 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2,
678 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3,
679 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4,
680 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5,
681};
682
683enum {
684 MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0,
685 MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1,
686};
687
688enum {
689 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0,
690 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1,
691 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3,
692};
693
694enum {
695 MLX5_CAP_PORT_TYPE_IB = 0x0,
696 MLX5_CAP_PORT_TYPE_ETH = 0x1,
Eli Cohend29b7962014-10-02 12:19:43 +0300697};
698
Eli Cohenb7755162014-10-02 12:19:44 +0300699struct mlx5_ifc_cmd_hca_cap_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200700 u8 reserved_at_0[0x80];
Eli Cohenb7755162014-10-02 12:19:44 +0300701
702 u8 log_max_srq_sz[0x8];
703 u8 log_max_qp_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200704 u8 reserved_at_90[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300705 u8 log_max_qp[0x5];
706
Matan Barakb4ff3a32016-02-09 14:57:42 +0200707 u8 reserved_at_a0[0xb];
Saeed Mahameede2816822015-05-28 22:28:40 +0300708 u8 log_max_srq[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200709 u8 reserved_at_b0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300710
Matan Barakb4ff3a32016-02-09 14:57:42 +0200711 u8 reserved_at_c0[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300712 u8 log_max_cq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200713 u8 reserved_at_d0[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300714 u8 log_max_cq[0x5];
715
716 u8 log_max_eq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200717 u8 reserved_at_e8[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300718 u8 log_max_mkey[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200719 u8 reserved_at_f0[0xc];
Eli Cohenb7755162014-10-02 12:19:44 +0300720 u8 log_max_eq[0x4];
721
722 u8 max_indirection[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200723 u8 reserved_at_108[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300724 u8 log_max_mrw_sz[0x7];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200725 u8 reserved_at_110[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300726 u8 log_max_bsf_list_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200727 u8 reserved_at_118[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300728 u8 log_max_klm_list_size[0x6];
729
Matan Barakb4ff3a32016-02-09 14:57:42 +0200730 u8 reserved_at_120[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300731 u8 log_max_ra_req_dc[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200732 u8 reserved_at_130[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300733 u8 log_max_ra_res_dc[0x6];
734
Matan Barakb4ff3a32016-02-09 14:57:42 +0200735 u8 reserved_at_140[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300736 u8 log_max_ra_req_qp[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200737 u8 reserved_at_150[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300738 u8 log_max_ra_res_qp[0x6];
739
740 u8 pad_cap[0x1];
741 u8 cc_query_allowed[0x1];
742 u8 cc_modify_allowed[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200743 u8 reserved_at_163[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +0300744 u8 gid_table_size[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300745
Saeed Mahameede2816822015-05-28 22:28:40 +0300746 u8 out_of_seq_cnt[0x1];
747 u8 vport_counters[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200748 u8 reserved_at_182[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300749 u8 max_qp_cnt[0xa];
750 u8 pkey_table_size[0x10];
751
Saeed Mahameede2816822015-05-28 22:28:40 +0300752 u8 vport_group_manager[0x1];
753 u8 vhca_group_manager[0x1];
754 u8 ib_virt[0x1];
755 u8 eth_virt[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200756 u8 reserved_at_1a4[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300757 u8 ets[0x1];
758 u8 nic_flow_table[0x1];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200759 u8 eswitch_flow_table[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300760 u8 early_vf_enable[0x1];
761 u8 reserved_at_1a9[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300762 u8 local_ca_ack_delay[0x5];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300763 u8 reserved_at_1af[0x2];
764 u8 ports_check[0x1];
765 u8 reserved_at_1b2[0x1];
766 u8 disable_link_up[0x1];
767 u8 beacon_led[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300768 u8 port_type[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300769 u8 num_ports[0x8];
770
Tariq Toukane1c9c622016-04-11 23:10:21 +0300771 u8 reserved_at_1c0[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300772 u8 log_max_msg[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300773 u8 reserved_at_1c8[0x4];
Saeed Mahameed4f3961e2016-02-22 18:17:25 +0200774 u8 max_tc[0x4];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300775 u8 reserved_at_1d0[0x6];
Tariq Toukan928cfe82016-02-22 18:17:29 +0200776 u8 rol_s[0x1];
777 u8 rol_g[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300778 u8 reserved_at_1d8[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +0200779 u8 wol_s[0x1];
780 u8 wol_g[0x1];
781 u8 wol_a[0x1];
782 u8 wol_b[0x1];
783 u8 wol_m[0x1];
784 u8 wol_u[0x1];
785 u8 wol_p[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300786
787 u8 stat_rate_support[0x10];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300788 u8 reserved_at_1f0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300789 u8 cqe_version[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300790
Saeed Mahameede2816822015-05-28 22:28:40 +0300791 u8 compact_address_vector[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300792 u8 striding_rq[0x1];
793 u8 reserved_at_201[0x2];
Erez Shitrit1015c2e2016-02-21 16:27:16 +0200794 u8 ipoib_basic_offloads[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300795 u8 reserved_at_205[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +0300796 u8 drain_sigerr[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300797 u8 cmdif_checksum[0x2];
798 u8 sigerr_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300799 u8 reserved_at_213[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300800 u8 wq_signature[0x1];
801 u8 sctr_data_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300802 u8 reserved_at_216[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300803 u8 sho[0x1];
804 u8 tph[0x1];
805 u8 rf[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300806 u8 dct[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300807 u8 reserved_at_21b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300808 u8 eth_net_offloads[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300809 u8 roce[0x1];
810 u8 atomic[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300811 u8 reserved_at_21f[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300812
813 u8 cq_oi[0x1];
814 u8 cq_resize[0x1];
815 u8 cq_moderation[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300816 u8 reserved_at_223[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300817 u8 cq_eq_remap[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300818 u8 pg[0x1];
819 u8 block_lb_mc[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300820 u8 reserved_at_229[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300821 u8 scqe_break_moderation[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300822 u8 cq_period_start_from_cqe[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300823 u8 cd[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300824 u8 reserved_at_22d[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300825 u8 apm[0x1];
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200826 u8 vector_calc[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300827 u8 umr_ptr_rlky[0x1];
Matan Barakd2370e02016-02-29 18:05:30 +0200828 u8 imaicl[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300829 u8 reserved_at_232[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300830 u8 qkv[0x1];
831 u8 pkv[0x1];
Haggai Eranb11a4f92016-02-29 15:45:03 +0200832 u8 set_deth_sqpn[0x1];
833 u8 reserved_at_239[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300834 u8 xrc[0x1];
835 u8 ud[0x1];
836 u8 uc[0x1];
837 u8 rc[0x1];
838
Tariq Toukane1c9c622016-04-11 23:10:21 +0300839 u8 reserved_at_240[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300840 u8 uar_sz[0x6];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300841 u8 reserved_at_250[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300842 u8 log_pg_sz[0x8];
843
844 u8 bf[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300845 u8 reserved_at_261[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300846 u8 pad_tx_eth_packet[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300847 u8 reserved_at_263[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300848 u8 log_bf_reg_size[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300849 u8 reserved_at_270[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300850
Tariq Toukane1c9c622016-04-11 23:10:21 +0300851 u8 reserved_at_280[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300852 u8 max_wqe_sz_sq[0x10];
853
Tariq Toukane1c9c622016-04-11 23:10:21 +0300854 u8 reserved_at_2a0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300855 u8 max_wqe_sz_rq[0x10];
856
Tariq Toukane1c9c622016-04-11 23:10:21 +0300857 u8 reserved_at_2c0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300858 u8 max_wqe_sz_sq_dc[0x10];
859
Tariq Toukane1c9c622016-04-11 23:10:21 +0300860 u8 reserved_at_2e0[0x7];
Eli Cohenb7755162014-10-02 12:19:44 +0300861 u8 max_qp_mcg[0x19];
862
Tariq Toukane1c9c622016-04-11 23:10:21 +0300863 u8 reserved_at_300[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +0300864 u8 log_max_mcg[0x8];
865
Tariq Toukane1c9c622016-04-11 23:10:21 +0300866 u8 reserved_at_320[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300867 u8 log_max_transport_domain[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300868 u8 reserved_at_328[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300869 u8 log_max_pd[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300870 u8 reserved_at_330[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300871 u8 log_max_xrcd[0x5];
872
Tariq Toukane1c9c622016-04-11 23:10:21 +0300873 u8 reserved_at_340[0x20];
Eli Cohenb7755162014-10-02 12:19:44 +0300874
Tariq Toukane1c9c622016-04-11 23:10:21 +0300875 u8 reserved_at_360[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300876 u8 log_max_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300877 u8 reserved_at_368[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300878 u8 log_max_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300879 u8 reserved_at_370[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300880 u8 log_max_tir[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300881 u8 reserved_at_378[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300882 u8 log_max_tis[0x5];
883
Saeed Mahameede2816822015-05-28 22:28:40 +0300884 u8 basic_cyclic_rcv_wqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300885 u8 reserved_at_381[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300886 u8 log_max_rmp[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300887 u8 reserved_at_388[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300888 u8 log_max_rqt[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300889 u8 reserved_at_390[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300890 u8 log_max_rqt_size[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300891 u8 reserved_at_398[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300892 u8 log_max_tis_per_sq[0x5];
893
Tariq Toukane1c9c622016-04-11 23:10:21 +0300894 u8 reserved_at_3a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300895 u8 log_max_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300896 u8 reserved_at_3a8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300897 u8 log_min_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300898 u8 reserved_at_3b0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300899 u8 log_max_stride_sz_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300900 u8 reserved_at_3b8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300901 u8 log_min_stride_sz_sq[0x5];
Eli Cohenb7755162014-10-02 12:19:44 +0300902
Tariq Toukane1c9c622016-04-11 23:10:21 +0300903 u8 reserved_at_3c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +0300904 u8 log_max_wq_sz[0x5];
905
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200906 u8 nic_vport_change_event[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300907 u8 reserved_at_3e1[0xa];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200908 u8 log_max_vlan_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300909 u8 reserved_at_3f0[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200910 u8 log_max_current_mc_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300911 u8 reserved_at_3f8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200912 u8 log_max_current_uc_list[0x5];
913
Tariq Toukane1c9c622016-04-11 23:10:21 +0300914 u8 reserved_at_400[0x80];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200915
Tariq Toukane1c9c622016-04-11 23:10:21 +0300916 u8 reserved_at_480[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300917 u8 log_max_l2_table[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300918 u8 reserved_at_488[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300919 u8 log_uar_page_sz[0x10];
920
Tariq Toukane1c9c622016-04-11 23:10:21 +0300921 u8 reserved_at_4a0[0x20];
Linus Torvalds048ccca2016-01-23 18:45:06 -0800922 u8 device_frequency_mhz[0x20];
Eran Ben Elishab0844442015-12-29 14:58:30 +0200923 u8 device_frequency_khz[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300924
925 u8 reserved_at_500[0x80];
926
927 u8 reserved_at_580[0x3f];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300928 u8 cqe_compression[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300929
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300930 u8 cqe_compression_timeout[0x10];
931 u8 cqe_compression_max_num[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300932
Tariq Toukane1c9c622016-04-11 23:10:21 +0300933 u8 reserved_at_5e0[0x220];
Saeed Mahameede2816822015-05-28 22:28:40 +0300934};
935
Saeed Mahameed81848732015-12-01 18:03:20 +0200936enum mlx5_flow_destination_type {
937 MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0,
938 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1,
939 MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2,
Amir Vadaibd5251db2016-05-13 12:55:40 +0000940
941 MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100,
Saeed Mahameede2816822015-05-28 22:28:40 +0300942};
943
944struct mlx5_ifc_dest_format_struct_bits {
945 u8 destination_type[0x8];
946 u8 destination_id[0x18];
947
Matan Barakb4ff3a32016-02-09 14:57:42 +0200948 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300949};
950
Amir Vadai9dc0b282016-05-13 12:55:39 +0000951struct mlx5_ifc_flow_counter_list_bits {
952 u8 reserved_at_0[0x10];
953 u8 flow_counter_id[0x10];
954
955 u8 reserved_at_20[0x20];
956};
957
958union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits {
959 struct mlx5_ifc_dest_format_struct_bits dest_format_struct;
960 struct mlx5_ifc_flow_counter_list_bits flow_counter_list;
961 u8 reserved_at_0[0x40];
962};
963
Saeed Mahameede2816822015-05-28 22:28:40 +0300964struct mlx5_ifc_fte_match_param_bits {
965 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
966
967 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
968
969 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
970
Matan Barakb4ff3a32016-02-09 14:57:42 +0200971 u8 reserved_at_600[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +0300972};
973
974enum {
975 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
976 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
977 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
978 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
979 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
980};
981
982struct mlx5_ifc_rx_hash_field_select_bits {
983 u8 l3_prot_type[0x1];
984 u8 l4_prot_type[0x1];
985 u8 selected_fields[0x1e];
986};
987
988enum {
989 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
990 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
991};
992
993enum {
994 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
995 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
996};
997
998struct mlx5_ifc_wq_bits {
999 u8 wq_type[0x4];
1000 u8 wq_signature[0x1];
1001 u8 end_padding_mode[0x2];
1002 u8 cd_slave[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001003 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001004
1005 u8 hds_skip_first_sge[0x1];
1006 u8 log2_hds_buf_size[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001007 u8 reserved_at_24[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03001008 u8 page_offset[0x5];
1009 u8 lwm[0x10];
1010
Matan Barakb4ff3a32016-02-09 14:57:42 +02001011 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001012 u8 pd[0x18];
1013
Matan Barakb4ff3a32016-02-09 14:57:42 +02001014 u8 reserved_at_60[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001015 u8 uar_page[0x18];
1016
1017 u8 dbr_addr[0x40];
1018
1019 u8 hw_counter[0x20];
1020
1021 u8 sw_counter[0x20];
1022
Matan Barakb4ff3a32016-02-09 14:57:42 +02001023 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001024 u8 log_wq_stride[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001025 u8 reserved_at_110[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001026 u8 log_wq_pg_sz[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001027 u8 reserved_at_118[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001028 u8 log_wq_sz[0x5];
1029
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001030 u8 reserved_at_120[0x15];
1031 u8 log_wqe_num_of_strides[0x3];
1032 u8 two_byte_shift_en[0x1];
1033 u8 reserved_at_139[0x4];
1034 u8 log_wqe_stride_size[0x3];
1035
1036 u8 reserved_at_140[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001037
1038 struct mlx5_ifc_cmd_pas_bits pas[0];
1039};
1040
1041struct mlx5_ifc_rq_num_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001042 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001043 u8 rq_num[0x18];
1044};
1045
1046struct mlx5_ifc_mac_address_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001047 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001048 u8 mac_addr_47_32[0x10];
1049
1050 u8 mac_addr_31_0[0x20];
1051};
1052
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001053struct mlx5_ifc_vlan_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001054 u8 reserved_at_0[0x14];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001055 u8 vlan[0x0c];
1056
Matan Barakb4ff3a32016-02-09 14:57:42 +02001057 u8 reserved_at_20[0x20];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001058};
1059
Saeed Mahameede2816822015-05-28 22:28:40 +03001060struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001061 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001062
1063 u8 min_time_between_cnps[0x20];
1064
Matan Barakb4ff3a32016-02-09 14:57:42 +02001065 u8 reserved_at_c0[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03001066 u8 cnp_dscp[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001067 u8 reserved_at_d8[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001068 u8 cnp_802p_prio[0x3];
1069
Matan Barakb4ff3a32016-02-09 14:57:42 +02001070 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +03001071};
1072
1073struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001074 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001075
Matan Barakb4ff3a32016-02-09 14:57:42 +02001076 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001077 u8 clamp_tgt_rate[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001078 u8 reserved_at_65[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001079 u8 clamp_tgt_rate_after_time_inc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001080 u8 reserved_at_69[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03001081
Matan Barakb4ff3a32016-02-09 14:57:42 +02001082 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001083
1084 u8 rpg_time_reset[0x20];
1085
1086 u8 rpg_byte_reset[0x20];
1087
1088 u8 rpg_threshold[0x20];
1089
1090 u8 rpg_max_rate[0x20];
1091
1092 u8 rpg_ai_rate[0x20];
1093
1094 u8 rpg_hai_rate[0x20];
1095
1096 u8 rpg_gd[0x20];
1097
1098 u8 rpg_min_dec_fac[0x20];
1099
1100 u8 rpg_min_rate[0x20];
1101
Matan Barakb4ff3a32016-02-09 14:57:42 +02001102 u8 reserved_at_1c0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001103
1104 u8 rate_to_set_on_first_cnp[0x20];
1105
1106 u8 dce_tcp_g[0x20];
1107
1108 u8 dce_tcp_rtt[0x20];
1109
1110 u8 rate_reduce_monitor_period[0x20];
1111
Matan Barakb4ff3a32016-02-09 14:57:42 +02001112 u8 reserved_at_320[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001113
1114 u8 initial_alpha_value[0x20];
1115
Matan Barakb4ff3a32016-02-09 14:57:42 +02001116 u8 reserved_at_360[0x4a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001117};
1118
1119struct mlx5_ifc_cong_control_802_1qau_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001120 u8 reserved_at_0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001121
1122 u8 rppp_max_rps[0x20];
1123
1124 u8 rpg_time_reset[0x20];
1125
1126 u8 rpg_byte_reset[0x20];
1127
1128 u8 rpg_threshold[0x20];
1129
1130 u8 rpg_max_rate[0x20];
1131
1132 u8 rpg_ai_rate[0x20];
1133
1134 u8 rpg_hai_rate[0x20];
1135
1136 u8 rpg_gd[0x20];
1137
1138 u8 rpg_min_dec_fac[0x20];
1139
1140 u8 rpg_min_rate[0x20];
1141
Matan Barakb4ff3a32016-02-09 14:57:42 +02001142 u8 reserved_at_1c0[0x640];
Saeed Mahameede2816822015-05-28 22:28:40 +03001143};
1144
1145enum {
1146 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1147 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1148 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1149};
1150
1151struct mlx5_ifc_resize_field_select_bits {
1152 u8 resize_field_select[0x20];
1153};
1154
1155enum {
1156 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1157 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1158 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1159 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1160};
1161
1162struct mlx5_ifc_modify_field_select_bits {
1163 u8 modify_field_select[0x20];
1164};
1165
1166struct mlx5_ifc_field_select_r_roce_np_bits {
1167 u8 field_select_r_roce_np[0x20];
1168};
1169
1170struct mlx5_ifc_field_select_r_roce_rp_bits {
1171 u8 field_select_r_roce_rp[0x20];
1172};
1173
1174enum {
1175 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1176 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1177 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1178 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1179 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1180 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1181 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1182 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1183 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1184 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1185};
1186
1187struct mlx5_ifc_field_select_802_1qau_rp_bits {
1188 u8 field_select_8021qaurp[0x20];
1189};
1190
1191struct mlx5_ifc_phys_layer_cntrs_bits {
1192 u8 time_since_last_clear_high[0x20];
1193
1194 u8 time_since_last_clear_low[0x20];
1195
1196 u8 symbol_errors_high[0x20];
1197
1198 u8 symbol_errors_low[0x20];
1199
1200 u8 sync_headers_errors_high[0x20];
1201
1202 u8 sync_headers_errors_low[0x20];
1203
1204 u8 edpl_bip_errors_lane0_high[0x20];
1205
1206 u8 edpl_bip_errors_lane0_low[0x20];
1207
1208 u8 edpl_bip_errors_lane1_high[0x20];
1209
1210 u8 edpl_bip_errors_lane1_low[0x20];
1211
1212 u8 edpl_bip_errors_lane2_high[0x20];
1213
1214 u8 edpl_bip_errors_lane2_low[0x20];
1215
1216 u8 edpl_bip_errors_lane3_high[0x20];
1217
1218 u8 edpl_bip_errors_lane3_low[0x20];
1219
1220 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1221
1222 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1223
1224 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1225
1226 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1227
1228 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1229
1230 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1231
1232 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1233
1234 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1235
1236 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1237
1238 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1239
1240 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1241
1242 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1243
1244 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1245
1246 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1247
1248 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1249
1250 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1251
1252 u8 rs_fec_corrected_blocks_high[0x20];
1253
1254 u8 rs_fec_corrected_blocks_low[0x20];
1255
1256 u8 rs_fec_uncorrectable_blocks_high[0x20];
1257
1258 u8 rs_fec_uncorrectable_blocks_low[0x20];
1259
1260 u8 rs_fec_no_errors_blocks_high[0x20];
1261
1262 u8 rs_fec_no_errors_blocks_low[0x20];
1263
1264 u8 rs_fec_single_error_blocks_high[0x20];
1265
1266 u8 rs_fec_single_error_blocks_low[0x20];
1267
1268 u8 rs_fec_corrected_symbols_total_high[0x20];
1269
1270 u8 rs_fec_corrected_symbols_total_low[0x20];
1271
1272 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1273
1274 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1275
1276 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1277
1278 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1279
1280 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1281
1282 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1283
1284 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1285
1286 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1287
1288 u8 link_down_events[0x20];
1289
1290 u8 successful_recovery_events[0x20];
1291
Matan Barakb4ff3a32016-02-09 14:57:42 +02001292 u8 reserved_at_640[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03001293};
1294
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001295struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits {
1296 u8 symbol_error_counter[0x10];
1297
1298 u8 link_error_recovery_counter[0x8];
1299
1300 u8 link_downed_counter[0x8];
1301
1302 u8 port_rcv_errors[0x10];
1303
1304 u8 port_rcv_remote_physical_errors[0x10];
1305
1306 u8 port_rcv_switch_relay_errors[0x10];
1307
1308 u8 port_xmit_discards[0x10];
1309
1310 u8 port_xmit_constraint_errors[0x8];
1311
1312 u8 port_rcv_constraint_errors[0x8];
1313
1314 u8 reserved_at_70[0x8];
1315
1316 u8 link_overrun_errors[0x8];
1317
1318 u8 reserved_at_80[0x10];
1319
1320 u8 vl_15_dropped[0x10];
1321
1322 u8 reserved_at_a0[0xa0];
1323};
1324
Saeed Mahameede2816822015-05-28 22:28:40 +03001325struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1326 u8 transmit_queue_high[0x20];
1327
1328 u8 transmit_queue_low[0x20];
1329
Matan Barakb4ff3a32016-02-09 14:57:42 +02001330 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001331};
1332
1333struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1334 u8 rx_octets_high[0x20];
1335
1336 u8 rx_octets_low[0x20];
1337
Matan Barakb4ff3a32016-02-09 14:57:42 +02001338 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001339
1340 u8 rx_frames_high[0x20];
1341
1342 u8 rx_frames_low[0x20];
1343
1344 u8 tx_octets_high[0x20];
1345
1346 u8 tx_octets_low[0x20];
1347
Matan Barakb4ff3a32016-02-09 14:57:42 +02001348 u8 reserved_at_180[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001349
1350 u8 tx_frames_high[0x20];
1351
1352 u8 tx_frames_low[0x20];
1353
1354 u8 rx_pause_high[0x20];
1355
1356 u8 rx_pause_low[0x20];
1357
1358 u8 rx_pause_duration_high[0x20];
1359
1360 u8 rx_pause_duration_low[0x20];
1361
1362 u8 tx_pause_high[0x20];
1363
1364 u8 tx_pause_low[0x20];
1365
1366 u8 tx_pause_duration_high[0x20];
1367
1368 u8 tx_pause_duration_low[0x20];
1369
1370 u8 rx_pause_transition_high[0x20];
1371
1372 u8 rx_pause_transition_low[0x20];
1373
Matan Barakb4ff3a32016-02-09 14:57:42 +02001374 u8 reserved_at_3c0[0x400];
Saeed Mahameede2816822015-05-28 22:28:40 +03001375};
1376
1377struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1378 u8 port_transmit_wait_high[0x20];
1379
1380 u8 port_transmit_wait_low[0x20];
1381
Matan Barakb4ff3a32016-02-09 14:57:42 +02001382 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001383};
1384
1385struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1386 u8 dot3stats_alignment_errors_high[0x20];
1387
1388 u8 dot3stats_alignment_errors_low[0x20];
1389
1390 u8 dot3stats_fcs_errors_high[0x20];
1391
1392 u8 dot3stats_fcs_errors_low[0x20];
1393
1394 u8 dot3stats_single_collision_frames_high[0x20];
1395
1396 u8 dot3stats_single_collision_frames_low[0x20];
1397
1398 u8 dot3stats_multiple_collision_frames_high[0x20];
1399
1400 u8 dot3stats_multiple_collision_frames_low[0x20];
1401
1402 u8 dot3stats_sqe_test_errors_high[0x20];
1403
1404 u8 dot3stats_sqe_test_errors_low[0x20];
1405
1406 u8 dot3stats_deferred_transmissions_high[0x20];
1407
1408 u8 dot3stats_deferred_transmissions_low[0x20];
1409
1410 u8 dot3stats_late_collisions_high[0x20];
1411
1412 u8 dot3stats_late_collisions_low[0x20];
1413
1414 u8 dot3stats_excessive_collisions_high[0x20];
1415
1416 u8 dot3stats_excessive_collisions_low[0x20];
1417
1418 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1419
1420 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1421
1422 u8 dot3stats_carrier_sense_errors_high[0x20];
1423
1424 u8 dot3stats_carrier_sense_errors_low[0x20];
1425
1426 u8 dot3stats_frame_too_longs_high[0x20];
1427
1428 u8 dot3stats_frame_too_longs_low[0x20];
1429
1430 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1431
1432 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1433
1434 u8 dot3stats_symbol_errors_high[0x20];
1435
1436 u8 dot3stats_symbol_errors_low[0x20];
1437
1438 u8 dot3control_in_unknown_opcodes_high[0x20];
1439
1440 u8 dot3control_in_unknown_opcodes_low[0x20];
1441
1442 u8 dot3in_pause_frames_high[0x20];
1443
1444 u8 dot3in_pause_frames_low[0x20];
1445
1446 u8 dot3out_pause_frames_high[0x20];
1447
1448 u8 dot3out_pause_frames_low[0x20];
1449
Matan Barakb4ff3a32016-02-09 14:57:42 +02001450 u8 reserved_at_400[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001451};
1452
1453struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1454 u8 ether_stats_drop_events_high[0x20];
1455
1456 u8 ether_stats_drop_events_low[0x20];
1457
1458 u8 ether_stats_octets_high[0x20];
1459
1460 u8 ether_stats_octets_low[0x20];
1461
1462 u8 ether_stats_pkts_high[0x20];
1463
1464 u8 ether_stats_pkts_low[0x20];
1465
1466 u8 ether_stats_broadcast_pkts_high[0x20];
1467
1468 u8 ether_stats_broadcast_pkts_low[0x20];
1469
1470 u8 ether_stats_multicast_pkts_high[0x20];
1471
1472 u8 ether_stats_multicast_pkts_low[0x20];
1473
1474 u8 ether_stats_crc_align_errors_high[0x20];
1475
1476 u8 ether_stats_crc_align_errors_low[0x20];
1477
1478 u8 ether_stats_undersize_pkts_high[0x20];
1479
1480 u8 ether_stats_undersize_pkts_low[0x20];
1481
1482 u8 ether_stats_oversize_pkts_high[0x20];
1483
1484 u8 ether_stats_oversize_pkts_low[0x20];
1485
1486 u8 ether_stats_fragments_high[0x20];
1487
1488 u8 ether_stats_fragments_low[0x20];
1489
1490 u8 ether_stats_jabbers_high[0x20];
1491
1492 u8 ether_stats_jabbers_low[0x20];
1493
1494 u8 ether_stats_collisions_high[0x20];
1495
1496 u8 ether_stats_collisions_low[0x20];
1497
1498 u8 ether_stats_pkts64octets_high[0x20];
1499
1500 u8 ether_stats_pkts64octets_low[0x20];
1501
1502 u8 ether_stats_pkts65to127octets_high[0x20];
1503
1504 u8 ether_stats_pkts65to127octets_low[0x20];
1505
1506 u8 ether_stats_pkts128to255octets_high[0x20];
1507
1508 u8 ether_stats_pkts128to255octets_low[0x20];
1509
1510 u8 ether_stats_pkts256to511octets_high[0x20];
1511
1512 u8 ether_stats_pkts256to511octets_low[0x20];
1513
1514 u8 ether_stats_pkts512to1023octets_high[0x20];
1515
1516 u8 ether_stats_pkts512to1023octets_low[0x20];
1517
1518 u8 ether_stats_pkts1024to1518octets_high[0x20];
1519
1520 u8 ether_stats_pkts1024to1518octets_low[0x20];
1521
1522 u8 ether_stats_pkts1519to2047octets_high[0x20];
1523
1524 u8 ether_stats_pkts1519to2047octets_low[0x20];
1525
1526 u8 ether_stats_pkts2048to4095octets_high[0x20];
1527
1528 u8 ether_stats_pkts2048to4095octets_low[0x20];
1529
1530 u8 ether_stats_pkts4096to8191octets_high[0x20];
1531
1532 u8 ether_stats_pkts4096to8191octets_low[0x20];
1533
1534 u8 ether_stats_pkts8192to10239octets_high[0x20];
1535
1536 u8 ether_stats_pkts8192to10239octets_low[0x20];
1537
Matan Barakb4ff3a32016-02-09 14:57:42 +02001538 u8 reserved_at_540[0x280];
Saeed Mahameede2816822015-05-28 22:28:40 +03001539};
1540
1541struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1542 u8 if_in_octets_high[0x20];
1543
1544 u8 if_in_octets_low[0x20];
1545
1546 u8 if_in_ucast_pkts_high[0x20];
1547
1548 u8 if_in_ucast_pkts_low[0x20];
1549
1550 u8 if_in_discards_high[0x20];
1551
1552 u8 if_in_discards_low[0x20];
1553
1554 u8 if_in_errors_high[0x20];
1555
1556 u8 if_in_errors_low[0x20];
1557
1558 u8 if_in_unknown_protos_high[0x20];
1559
1560 u8 if_in_unknown_protos_low[0x20];
1561
1562 u8 if_out_octets_high[0x20];
1563
1564 u8 if_out_octets_low[0x20];
1565
1566 u8 if_out_ucast_pkts_high[0x20];
1567
1568 u8 if_out_ucast_pkts_low[0x20];
1569
1570 u8 if_out_discards_high[0x20];
1571
1572 u8 if_out_discards_low[0x20];
1573
1574 u8 if_out_errors_high[0x20];
1575
1576 u8 if_out_errors_low[0x20];
1577
1578 u8 if_in_multicast_pkts_high[0x20];
1579
1580 u8 if_in_multicast_pkts_low[0x20];
1581
1582 u8 if_in_broadcast_pkts_high[0x20];
1583
1584 u8 if_in_broadcast_pkts_low[0x20];
1585
1586 u8 if_out_multicast_pkts_high[0x20];
1587
1588 u8 if_out_multicast_pkts_low[0x20];
1589
1590 u8 if_out_broadcast_pkts_high[0x20];
1591
1592 u8 if_out_broadcast_pkts_low[0x20];
1593
Matan Barakb4ff3a32016-02-09 14:57:42 +02001594 u8 reserved_at_340[0x480];
Saeed Mahameede2816822015-05-28 22:28:40 +03001595};
1596
1597struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
1598 u8 a_frames_transmitted_ok_high[0x20];
1599
1600 u8 a_frames_transmitted_ok_low[0x20];
1601
1602 u8 a_frames_received_ok_high[0x20];
1603
1604 u8 a_frames_received_ok_low[0x20];
1605
1606 u8 a_frame_check_sequence_errors_high[0x20];
1607
1608 u8 a_frame_check_sequence_errors_low[0x20];
1609
1610 u8 a_alignment_errors_high[0x20];
1611
1612 u8 a_alignment_errors_low[0x20];
1613
1614 u8 a_octets_transmitted_ok_high[0x20];
1615
1616 u8 a_octets_transmitted_ok_low[0x20];
1617
1618 u8 a_octets_received_ok_high[0x20];
1619
1620 u8 a_octets_received_ok_low[0x20];
1621
1622 u8 a_multicast_frames_xmitted_ok_high[0x20];
1623
1624 u8 a_multicast_frames_xmitted_ok_low[0x20];
1625
1626 u8 a_broadcast_frames_xmitted_ok_high[0x20];
1627
1628 u8 a_broadcast_frames_xmitted_ok_low[0x20];
1629
1630 u8 a_multicast_frames_received_ok_high[0x20];
1631
1632 u8 a_multicast_frames_received_ok_low[0x20];
1633
1634 u8 a_broadcast_frames_received_ok_high[0x20];
1635
1636 u8 a_broadcast_frames_received_ok_low[0x20];
1637
1638 u8 a_in_range_length_errors_high[0x20];
1639
1640 u8 a_in_range_length_errors_low[0x20];
1641
1642 u8 a_out_of_range_length_field_high[0x20];
1643
1644 u8 a_out_of_range_length_field_low[0x20];
1645
1646 u8 a_frame_too_long_errors_high[0x20];
1647
1648 u8 a_frame_too_long_errors_low[0x20];
1649
1650 u8 a_symbol_error_during_carrier_high[0x20];
1651
1652 u8 a_symbol_error_during_carrier_low[0x20];
1653
1654 u8 a_mac_control_frames_transmitted_high[0x20];
1655
1656 u8 a_mac_control_frames_transmitted_low[0x20];
1657
1658 u8 a_mac_control_frames_received_high[0x20];
1659
1660 u8 a_mac_control_frames_received_low[0x20];
1661
1662 u8 a_unsupported_opcodes_received_high[0x20];
1663
1664 u8 a_unsupported_opcodes_received_low[0x20];
1665
1666 u8 a_pause_mac_ctrl_frames_received_high[0x20];
1667
1668 u8 a_pause_mac_ctrl_frames_received_low[0x20];
1669
1670 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
1671
1672 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
1673
Matan Barakb4ff3a32016-02-09 14:57:42 +02001674 u8 reserved_at_4c0[0x300];
Saeed Mahameede2816822015-05-28 22:28:40 +03001675};
1676
1677struct mlx5_ifc_cmd_inter_comp_event_bits {
1678 u8 command_completion_vector[0x20];
1679
Matan Barakb4ff3a32016-02-09 14:57:42 +02001680 u8 reserved_at_20[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001681};
1682
1683struct mlx5_ifc_stall_vl_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001684 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001685 u8 port_num[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001686 u8 reserved_at_19[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001687 u8 vl[0x4];
1688
Matan Barakb4ff3a32016-02-09 14:57:42 +02001689 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001690};
1691
1692struct mlx5_ifc_db_bf_congestion_event_bits {
1693 u8 event_subtype[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001694 u8 reserved_at_8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001695 u8 congestion_level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001696 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001697
Matan Barakb4ff3a32016-02-09 14:57:42 +02001698 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001699};
1700
1701struct mlx5_ifc_gpio_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001702 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001703
1704 u8 gpio_event_hi[0x20];
1705
1706 u8 gpio_event_lo[0x20];
1707
Matan Barakb4ff3a32016-02-09 14:57:42 +02001708 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03001709};
1710
1711struct mlx5_ifc_port_state_change_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001712 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03001713
1714 u8 port_num[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001715 u8 reserved_at_44[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03001716
Matan Barakb4ff3a32016-02-09 14:57:42 +02001717 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001718};
1719
1720struct mlx5_ifc_dropped_packet_logged_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001721 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001722};
1723
1724enum {
1725 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
1726 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
1727};
1728
1729struct mlx5_ifc_cq_error_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001730 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001731 u8 cqn[0x18];
1732
Matan Barakb4ff3a32016-02-09 14:57:42 +02001733 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001734
Matan Barakb4ff3a32016-02-09 14:57:42 +02001735 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001736 u8 syndrome[0x8];
1737
Matan Barakb4ff3a32016-02-09 14:57:42 +02001738 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001739};
1740
1741struct mlx5_ifc_rdma_page_fault_event_bits {
1742 u8 bytes_committed[0x20];
1743
1744 u8 r_key[0x20];
1745
Matan Barakb4ff3a32016-02-09 14:57:42 +02001746 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001747 u8 packet_len[0x10];
1748
1749 u8 rdma_op_len[0x20];
1750
1751 u8 rdma_va[0x40];
1752
Matan Barakb4ff3a32016-02-09 14:57:42 +02001753 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001754 u8 rdma[0x1];
1755 u8 write[0x1];
1756 u8 requestor[0x1];
1757 u8 qp_number[0x18];
1758};
1759
1760struct mlx5_ifc_wqe_associated_page_fault_event_bits {
1761 u8 bytes_committed[0x20];
1762
Matan Barakb4ff3a32016-02-09 14:57:42 +02001763 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001764 u8 wqe_index[0x10];
1765
Matan Barakb4ff3a32016-02-09 14:57:42 +02001766 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001767 u8 len[0x10];
1768
Matan Barakb4ff3a32016-02-09 14:57:42 +02001769 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001770
Matan Barakb4ff3a32016-02-09 14:57:42 +02001771 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001772 u8 rdma[0x1];
1773 u8 write_read[0x1];
1774 u8 requestor[0x1];
1775 u8 qpn[0x18];
1776};
1777
1778struct mlx5_ifc_qp_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001779 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001780
1781 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001782 u8 reserved_at_a8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001783
Matan Barakb4ff3a32016-02-09 14:57:42 +02001784 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001785 u8 qpn_rqn_sqn[0x18];
1786};
1787
1788struct mlx5_ifc_dct_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001789 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001790
Matan Barakb4ff3a32016-02-09 14:57:42 +02001791 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001792 u8 dct_number[0x18];
1793};
1794
1795struct mlx5_ifc_comp_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001796 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001797
Matan Barakb4ff3a32016-02-09 14:57:42 +02001798 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001799 u8 cq_number[0x18];
1800};
1801
1802enum {
1803 MLX5_QPC_STATE_RST = 0x0,
1804 MLX5_QPC_STATE_INIT = 0x1,
1805 MLX5_QPC_STATE_RTR = 0x2,
1806 MLX5_QPC_STATE_RTS = 0x3,
1807 MLX5_QPC_STATE_SQER = 0x4,
1808 MLX5_QPC_STATE_ERR = 0x6,
1809 MLX5_QPC_STATE_SQD = 0x7,
1810 MLX5_QPC_STATE_SUSPENDED = 0x9,
1811};
1812
1813enum {
1814 MLX5_QPC_ST_RC = 0x0,
1815 MLX5_QPC_ST_UC = 0x1,
1816 MLX5_QPC_ST_UD = 0x2,
1817 MLX5_QPC_ST_XRC = 0x3,
1818 MLX5_QPC_ST_DCI = 0x5,
1819 MLX5_QPC_ST_QP0 = 0x7,
1820 MLX5_QPC_ST_QP1 = 0x8,
1821 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
1822 MLX5_QPC_ST_REG_UMR = 0xc,
1823};
1824
1825enum {
1826 MLX5_QPC_PM_STATE_ARMED = 0x0,
1827 MLX5_QPC_PM_STATE_REARM = 0x1,
1828 MLX5_QPC_PM_STATE_RESERVED = 0x2,
1829 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
1830};
1831
1832enum {
1833 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
1834 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
1835};
1836
1837enum {
1838 MLX5_QPC_MTU_256_BYTES = 0x1,
1839 MLX5_QPC_MTU_512_BYTES = 0x2,
1840 MLX5_QPC_MTU_1K_BYTES = 0x3,
1841 MLX5_QPC_MTU_2K_BYTES = 0x4,
1842 MLX5_QPC_MTU_4K_BYTES = 0x5,
1843 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
1844};
1845
1846enum {
1847 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
1848 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
1849 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
1850 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
1851 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
1852 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
1853 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
1854 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
1855};
1856
1857enum {
1858 MLX5_QPC_CS_REQ_DISABLE = 0x0,
1859 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
1860 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
1861};
1862
1863enum {
1864 MLX5_QPC_CS_RES_DISABLE = 0x0,
1865 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
1866 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
1867};
1868
1869struct mlx5_ifc_qpc_bits {
1870 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001871 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001872 u8 st[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001873 u8 reserved_at_10[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001874 u8 pm_state[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001875 u8 reserved_at_15[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03001876 u8 end_padding_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001877 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001878
1879 u8 wq_signature[0x1];
1880 u8 block_lb_mc[0x1];
1881 u8 atomic_like_write_en[0x1];
1882 u8 latency_sensitive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001883 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001884 u8 drain_sigerr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001885 u8 reserved_at_26[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001886 u8 pd[0x18];
1887
1888 u8 mtu[0x3];
1889 u8 log_msg_max[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001890 u8 reserved_at_48[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001891 u8 log_rq_size[0x4];
1892 u8 log_rq_stride[0x3];
1893 u8 no_sq[0x1];
1894 u8 log_sq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001895 u8 reserved_at_55[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03001896 u8 rlky[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02001897 u8 ulp_stateless_offload_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001898
1899 u8 counter_set_id[0x8];
1900 u8 uar_page[0x18];
1901
Matan Barakb4ff3a32016-02-09 14:57:42 +02001902 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001903 u8 user_index[0x18];
1904
Matan Barakb4ff3a32016-02-09 14:57:42 +02001905 u8 reserved_at_a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001906 u8 log_page_size[0x5];
1907 u8 remote_qpn[0x18];
1908
1909 struct mlx5_ifc_ads_bits primary_address_path;
1910
1911 struct mlx5_ifc_ads_bits secondary_address_path;
1912
1913 u8 log_ack_req_freq[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001914 u8 reserved_at_384[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001915 u8 log_sra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001916 u8 reserved_at_38b[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001917 u8 retry_count[0x3];
1918 u8 rnr_retry[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001919 u8 reserved_at_393[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001920 u8 fre[0x1];
1921 u8 cur_rnr_retry[0x3];
1922 u8 cur_retry_count[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001923 u8 reserved_at_39b[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001924
Matan Barakb4ff3a32016-02-09 14:57:42 +02001925 u8 reserved_at_3a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001926
Matan Barakb4ff3a32016-02-09 14:57:42 +02001927 u8 reserved_at_3c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001928 u8 next_send_psn[0x18];
1929
Matan Barakb4ff3a32016-02-09 14:57:42 +02001930 u8 reserved_at_3e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001931 u8 cqn_snd[0x18];
1932
Matan Barakb4ff3a32016-02-09 14:57:42 +02001933 u8 reserved_at_400[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03001934
Matan Barakb4ff3a32016-02-09 14:57:42 +02001935 u8 reserved_at_440[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001936 u8 last_acked_psn[0x18];
1937
Matan Barakb4ff3a32016-02-09 14:57:42 +02001938 u8 reserved_at_460[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001939 u8 ssn[0x18];
1940
Matan Barakb4ff3a32016-02-09 14:57:42 +02001941 u8 reserved_at_480[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001942 u8 log_rra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001943 u8 reserved_at_48b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001944 u8 atomic_mode[0x4];
1945 u8 rre[0x1];
1946 u8 rwe[0x1];
1947 u8 rae[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001948 u8 reserved_at_493[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001949 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001950 u8 reserved_at_49a[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001951 u8 cd_slave_receive[0x1];
1952 u8 cd_slave_send[0x1];
1953 u8 cd_master[0x1];
1954
Matan Barakb4ff3a32016-02-09 14:57:42 +02001955 u8 reserved_at_4a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001956 u8 min_rnr_nak[0x5];
1957 u8 next_rcv_psn[0x18];
1958
Matan Barakb4ff3a32016-02-09 14:57:42 +02001959 u8 reserved_at_4c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001960 u8 xrcd[0x18];
1961
Matan Barakb4ff3a32016-02-09 14:57:42 +02001962 u8 reserved_at_4e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001963 u8 cqn_rcv[0x18];
1964
1965 u8 dbr_addr[0x40];
1966
1967 u8 q_key[0x20];
1968
Matan Barakb4ff3a32016-02-09 14:57:42 +02001969 u8 reserved_at_560[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001970 u8 rq_type[0x3];
1971 u8 srqn_rmpn[0x18];
1972
Matan Barakb4ff3a32016-02-09 14:57:42 +02001973 u8 reserved_at_580[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001974 u8 rmsn[0x18];
1975
1976 u8 hw_sq_wqebb_counter[0x10];
1977 u8 sw_sq_wqebb_counter[0x10];
1978
1979 u8 hw_rq_counter[0x20];
1980
1981 u8 sw_rq_counter[0x20];
1982
Matan Barakb4ff3a32016-02-09 14:57:42 +02001983 u8 reserved_at_600[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001984
Matan Barakb4ff3a32016-02-09 14:57:42 +02001985 u8 reserved_at_620[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03001986 u8 cgs[0x1];
1987 u8 cs_req[0x8];
1988 u8 cs_res[0x8];
1989
1990 u8 dc_access_key[0x40];
1991
Matan Barakb4ff3a32016-02-09 14:57:42 +02001992 u8 reserved_at_680[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001993};
1994
1995struct mlx5_ifc_roce_addr_layout_bits {
1996 u8 source_l3_address[16][0x8];
1997
Matan Barakb4ff3a32016-02-09 14:57:42 +02001998 u8 reserved_at_80[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001999 u8 vlan_valid[0x1];
2000 u8 vlan_id[0xc];
2001 u8 source_mac_47_32[0x10];
2002
2003 u8 source_mac_31_0[0x20];
2004
Matan Barakb4ff3a32016-02-09 14:57:42 +02002005 u8 reserved_at_c0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002006 u8 roce_l3_type[0x4];
2007 u8 roce_version[0x8];
2008
Matan Barakb4ff3a32016-02-09 14:57:42 +02002009 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002010};
2011
2012union mlx5_ifc_hca_cap_union_bits {
2013 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
2014 struct mlx5_ifc_odp_cap_bits odp_cap;
2015 struct mlx5_ifc_atomic_caps_bits atomic_caps;
2016 struct mlx5_ifc_roce_cap_bits roce_cap;
2017 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
2018 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
Saeed Mahameed495716b2015-12-01 18:03:19 +02002019 struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap;
Saeed Mahameedd6666752015-12-01 18:03:22 +02002020 struct mlx5_ifc_e_switch_cap_bits e_switch_cap;
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02002021 struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002022 u8 reserved_at_0[0x8000];
Saeed Mahameede2816822015-05-28 22:28:40 +03002023};
2024
2025enum {
2026 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
2027 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
2028 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
Amir Vadai9dc0b282016-05-13 12:55:39 +00002029 MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8,
Saeed Mahameede2816822015-05-28 22:28:40 +03002030};
2031
2032struct mlx5_ifc_flow_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002033 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002034
2035 u8 group_id[0x20];
2036
Matan Barakb4ff3a32016-02-09 14:57:42 +02002037 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002038 u8 flow_tag[0x18];
2039
Matan Barakb4ff3a32016-02-09 14:57:42 +02002040 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002041 u8 action[0x10];
2042
Matan Barakb4ff3a32016-02-09 14:57:42 +02002043 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002044 u8 destination_list_size[0x18];
2045
Amir Vadai9dc0b282016-05-13 12:55:39 +00002046 u8 reserved_at_a0[0x8];
2047 u8 flow_counter_list_size[0x18];
2048
2049 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03002050
2051 struct mlx5_ifc_fte_match_param_bits match_value;
2052
Matan Barakb4ff3a32016-02-09 14:57:42 +02002053 u8 reserved_at_1200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03002054
Amir Vadai9dc0b282016-05-13 12:55:39 +00002055 union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits destination[0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002056};
2057
2058enum {
2059 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
2060 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
2061};
2062
2063struct mlx5_ifc_xrc_srqc_bits {
2064 u8 state[0x4];
2065 u8 log_xrc_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002066 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002067
2068 u8 wq_signature[0x1];
2069 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002070 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002071 u8 rlky[0x1];
2072 u8 basic_cyclic_rcv_wqe[0x1];
2073 u8 log_rq_stride[0x3];
2074 u8 xrcd[0x18];
2075
2076 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002077 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002078 u8 cqn[0x18];
2079
Matan Barakb4ff3a32016-02-09 14:57:42 +02002080 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002081
2082 u8 user_index_equal_xrc_srqn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002083 u8 reserved_at_81[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002084 u8 log_page_size[0x6];
2085 u8 user_index[0x18];
2086
Matan Barakb4ff3a32016-02-09 14:57:42 +02002087 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002088
Matan Barakb4ff3a32016-02-09 14:57:42 +02002089 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002090 u8 pd[0x18];
2091
2092 u8 lwm[0x10];
2093 u8 wqe_cnt[0x10];
2094
Matan Barakb4ff3a32016-02-09 14:57:42 +02002095 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002096
2097 u8 db_record_addr_h[0x20];
2098
2099 u8 db_record_addr_l[0x1e];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002100 u8 reserved_at_17e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002101
Matan Barakb4ff3a32016-02-09 14:57:42 +02002102 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002103};
2104
2105struct mlx5_ifc_traffic_counter_bits {
2106 u8 packets[0x40];
2107
2108 u8 octets[0x40];
2109};
2110
2111struct mlx5_ifc_tisc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002112 u8 reserved_at_0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002113 u8 prio[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002114 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002115
Matan Barakb4ff3a32016-02-09 14:57:42 +02002116 u8 reserved_at_20[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03002117
Matan Barakb4ff3a32016-02-09 14:57:42 +02002118 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002119 u8 transport_domain[0x18];
2120
Matan Barakb4ff3a32016-02-09 14:57:42 +02002121 u8 reserved_at_140[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002122};
2123
2124enum {
2125 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
2126 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
2127};
2128
2129enum {
2130 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
2131 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
2132};
2133
2134enum {
Saeed Mahameed2be69672015-07-23 23:35:56 +03002135 MLX5_RX_HASH_FN_NONE = 0x0,
2136 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
2137 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002138};
2139
2140enum {
2141 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1,
2142 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2,
2143};
2144
2145struct mlx5_ifc_tirc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002146 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002147
2148 u8 disp_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002149 u8 reserved_at_24[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002150
Matan Barakb4ff3a32016-02-09 14:57:42 +02002151 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002152
Matan Barakb4ff3a32016-02-09 14:57:42 +02002153 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002154 u8 lro_timeout_period_usecs[0x10];
2155 u8 lro_enable_mask[0x4];
2156 u8 lro_max_ip_payload_size[0x8];
2157
Matan Barakb4ff3a32016-02-09 14:57:42 +02002158 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002159
Matan Barakb4ff3a32016-02-09 14:57:42 +02002160 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002161 u8 inline_rqn[0x18];
2162
2163 u8 rx_hash_symmetric[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002164 u8 reserved_at_101[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002165 u8 tunneled_offload_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002166 u8 reserved_at_103[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002167 u8 indirect_table[0x18];
2168
2169 u8 rx_hash_fn[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002170 u8 reserved_at_124[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002171 u8 self_lb_block[0x2];
2172 u8 transport_domain[0x18];
2173
2174 u8 rx_hash_toeplitz_key[10][0x20];
2175
2176 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
2177
2178 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
2179
Matan Barakb4ff3a32016-02-09 14:57:42 +02002180 u8 reserved_at_2c0[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002181};
2182
2183enum {
2184 MLX5_SRQC_STATE_GOOD = 0x0,
2185 MLX5_SRQC_STATE_ERROR = 0x1,
2186};
2187
2188struct mlx5_ifc_srqc_bits {
2189 u8 state[0x4];
2190 u8 log_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002191 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002192
2193 u8 wq_signature[0x1];
2194 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002195 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002196 u8 rlky[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002197 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002198 u8 log_rq_stride[0x3];
2199 u8 xrcd[0x18];
2200
2201 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002202 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002203 u8 cqn[0x18];
2204
Matan Barakb4ff3a32016-02-09 14:57:42 +02002205 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002206
Matan Barakb4ff3a32016-02-09 14:57:42 +02002207 u8 reserved_at_80[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002208 u8 log_page_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002209 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002210
Matan Barakb4ff3a32016-02-09 14:57:42 +02002211 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002212
Matan Barakb4ff3a32016-02-09 14:57:42 +02002213 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002214 u8 pd[0x18];
2215
2216 u8 lwm[0x10];
2217 u8 wqe_cnt[0x10];
2218
Matan Barakb4ff3a32016-02-09 14:57:42 +02002219 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002220
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03002221 u8 dbr_addr[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002222
Matan Barakb4ff3a32016-02-09 14:57:42 +02002223 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002224};
2225
2226enum {
2227 MLX5_SQC_STATE_RST = 0x0,
2228 MLX5_SQC_STATE_RDY = 0x1,
2229 MLX5_SQC_STATE_ERR = 0x3,
2230};
2231
2232struct mlx5_ifc_sqc_bits {
2233 u8 rlky[0x1];
2234 u8 cd_master[0x1];
2235 u8 fre[0x1];
2236 u8 flush_in_error_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002237 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002238 u8 state[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002239 u8 reg_umr[0x1];
2240 u8 reserved_at_d[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03002241
Matan Barakb4ff3a32016-02-09 14:57:42 +02002242 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002243 u8 user_index[0x18];
2244
Matan Barakb4ff3a32016-02-09 14:57:42 +02002245 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002246 u8 cqn[0x18];
2247
Matan Barakb4ff3a32016-02-09 14:57:42 +02002248 u8 reserved_at_60[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002249
2250 u8 tis_lst_sz[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002251 u8 reserved_at_110[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002252
Matan Barakb4ff3a32016-02-09 14:57:42 +02002253 u8 reserved_at_120[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002254
Matan Barakb4ff3a32016-02-09 14:57:42 +02002255 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002256 u8 tis_num_0[0x18];
2257
2258 struct mlx5_ifc_wq_bits wq;
2259};
2260
2261struct mlx5_ifc_rqtc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002262 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002263
Matan Barakb4ff3a32016-02-09 14:57:42 +02002264 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002265 u8 rqt_max_size[0x10];
2266
Matan Barakb4ff3a32016-02-09 14:57:42 +02002267 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002268 u8 rqt_actual_size[0x10];
2269
Matan Barakb4ff3a32016-02-09 14:57:42 +02002270 u8 reserved_at_e0[0x6a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002271
2272 struct mlx5_ifc_rq_num_bits rq_num[0];
2273};
2274
2275enum {
2276 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2277 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2278};
2279
2280enum {
2281 MLX5_RQC_STATE_RST = 0x0,
2282 MLX5_RQC_STATE_RDY = 0x1,
2283 MLX5_RQC_STATE_ERR = 0x3,
2284};
2285
2286struct mlx5_ifc_rqc_bits {
2287 u8 rlky[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002288 u8 reserved_at_1[0x1];
2289 u8 scatter_fcs[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002290 u8 vsd[0x1];
2291 u8 mem_rq_type[0x4];
2292 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002293 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002294 u8 flush_in_error_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002295 u8 reserved_at_e[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03002296
Matan Barakb4ff3a32016-02-09 14:57:42 +02002297 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002298 u8 user_index[0x18];
2299
Matan Barakb4ff3a32016-02-09 14:57:42 +02002300 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002301 u8 cqn[0x18];
2302
2303 u8 counter_set_id[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002304 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002305
Matan Barakb4ff3a32016-02-09 14:57:42 +02002306 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002307 u8 rmpn[0x18];
2308
Matan Barakb4ff3a32016-02-09 14:57:42 +02002309 u8 reserved_at_a0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002310
2311 struct mlx5_ifc_wq_bits wq;
2312};
2313
2314enum {
2315 MLX5_RMPC_STATE_RDY = 0x1,
2316 MLX5_RMPC_STATE_ERR = 0x3,
2317};
2318
2319struct mlx5_ifc_rmpc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002320 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002321 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002322 u8 reserved_at_c[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002323
2324 u8 basic_cyclic_rcv_wqe[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002325 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03002326
Matan Barakb4ff3a32016-02-09 14:57:42 +02002327 u8 reserved_at_40[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03002328
2329 struct mlx5_ifc_wq_bits wq;
2330};
2331
Saeed Mahameede2816822015-05-28 22:28:40 +03002332struct mlx5_ifc_nic_vport_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002333 u8 reserved_at_0[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03002334 u8 roce_en[0x1];
2335
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002336 u8 arm_change_event[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002337 u8 reserved_at_21[0x1a];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002338 u8 event_on_mtu[0x1];
2339 u8 event_on_promisc_change[0x1];
2340 u8 event_on_vlan_change[0x1];
2341 u8 event_on_mc_address_change[0x1];
2342 u8 event_on_uc_address_change[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002343
Matan Barakb4ff3a32016-02-09 14:57:42 +02002344 u8 reserved_at_40[0xf0];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002345
2346 u8 mtu[0x10];
2347
Achiad Shochat9efa7522015-12-23 18:47:20 +02002348 u8 system_image_guid[0x40];
2349 u8 port_guid[0x40];
2350 u8 node_guid[0x40];
2351
Matan Barakb4ff3a32016-02-09 14:57:42 +02002352 u8 reserved_at_200[0x140];
Achiad Shochat9efa7522015-12-23 18:47:20 +02002353 u8 qkey_violation_counter[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002354 u8 reserved_at_350[0x430];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002355
2356 u8 promisc_uc[0x1];
2357 u8 promisc_mc[0x1];
2358 u8 promisc_all[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002359 u8 reserved_at_783[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002360 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002361 u8 reserved_at_788[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002362 u8 allowed_list_size[0xc];
2363
2364 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2365
Matan Barakb4ff3a32016-02-09 14:57:42 +02002366 u8 reserved_at_7e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002367
2368 u8 current_uc_mac_address[0][0x40];
2369};
2370
2371enum {
2372 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2373 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2374 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
2375};
2376
2377struct mlx5_ifc_mkc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002378 u8 reserved_at_0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002379 u8 free[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002380 u8 reserved_at_2[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03002381 u8 small_fence_on_rdma_read_response[0x1];
2382 u8 umr_en[0x1];
2383 u8 a[0x1];
2384 u8 rw[0x1];
2385 u8 rr[0x1];
2386 u8 lw[0x1];
2387 u8 lr[0x1];
2388 u8 access_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002389 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002390
2391 u8 qpn[0x18];
2392 u8 mkey_7_0[0x8];
2393
Matan Barakb4ff3a32016-02-09 14:57:42 +02002394 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002395
2396 u8 length64[0x1];
2397 u8 bsf_en[0x1];
2398 u8 sync_umr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002399 u8 reserved_at_63[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002400 u8 expected_sigerr_count[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002401 u8 reserved_at_66[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002402 u8 en_rinval[0x1];
2403 u8 pd[0x18];
2404
2405 u8 start_addr[0x40];
2406
2407 u8 len[0x40];
2408
2409 u8 bsf_octword_size[0x20];
2410
Matan Barakb4ff3a32016-02-09 14:57:42 +02002411 u8 reserved_at_120[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002412
2413 u8 translations_octword_size[0x20];
2414
Matan Barakb4ff3a32016-02-09 14:57:42 +02002415 u8 reserved_at_1c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +03002416 u8 log_page_size[0x5];
2417
Matan Barakb4ff3a32016-02-09 14:57:42 +02002418 u8 reserved_at_1e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002419};
2420
2421struct mlx5_ifc_pkey_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002422 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002423 u8 pkey[0x10];
2424};
2425
2426struct mlx5_ifc_array128_auto_bits {
2427 u8 array128_auto[16][0x8];
2428};
2429
2430struct mlx5_ifc_hca_vport_context_bits {
2431 u8 field_select[0x20];
2432
Matan Barakb4ff3a32016-02-09 14:57:42 +02002433 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002434
2435 u8 sm_virt_aware[0x1];
2436 u8 has_smi[0x1];
2437 u8 has_raw[0x1];
2438 u8 grh_required[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002439 u8 reserved_at_104[0xc];
Majd Dibbiny707c4602015-06-04 19:30:41 +03002440 u8 port_physical_state[0x4];
2441 u8 vport_state_policy[0x4];
2442 u8 port_state[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002443 u8 vport_state[0x4];
2444
Matan Barakb4ff3a32016-02-09 14:57:42 +02002445 u8 reserved_at_120[0x20];
Majd Dibbiny707c4602015-06-04 19:30:41 +03002446
2447 u8 system_image_guid[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002448
2449 u8 port_guid[0x40];
2450
2451 u8 node_guid[0x40];
2452
2453 u8 cap_mask1[0x20];
2454
2455 u8 cap_mask1_field_select[0x20];
2456
2457 u8 cap_mask2[0x20];
2458
2459 u8 cap_mask2_field_select[0x20];
2460
Matan Barakb4ff3a32016-02-09 14:57:42 +02002461 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002462
2463 u8 lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002464 u8 reserved_at_310[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002465 u8 init_type_reply[0x4];
2466 u8 lmc[0x3];
2467 u8 subnet_timeout[0x5];
2468
2469 u8 sm_lid[0x10];
2470 u8 sm_sl[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002471 u8 reserved_at_334[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002472
2473 u8 qkey_violation_counter[0x10];
2474 u8 pkey_violation_counter[0x10];
2475
Matan Barakb4ff3a32016-02-09 14:57:42 +02002476 u8 reserved_at_360[0xca0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002477};
2478
Saeed Mahameedd6666752015-12-01 18:03:22 +02002479struct mlx5_ifc_esw_vport_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002480 u8 reserved_at_0[0x3];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002481 u8 vport_svlan_strip[0x1];
2482 u8 vport_cvlan_strip[0x1];
2483 u8 vport_svlan_insert[0x1];
2484 u8 vport_cvlan_insert[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002485 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002486
Matan Barakb4ff3a32016-02-09 14:57:42 +02002487 u8 reserved_at_20[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002488
2489 u8 svlan_cfi[0x1];
2490 u8 svlan_pcp[0x3];
2491 u8 svlan_id[0xc];
2492 u8 cvlan_cfi[0x1];
2493 u8 cvlan_pcp[0x3];
2494 u8 cvlan_id[0xc];
2495
Matan Barakb4ff3a32016-02-09 14:57:42 +02002496 u8 reserved_at_60[0x7a0];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002497};
2498
Saeed Mahameede2816822015-05-28 22:28:40 +03002499enum {
2500 MLX5_EQC_STATUS_OK = 0x0,
2501 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
2502};
2503
2504enum {
2505 MLX5_EQC_ST_ARMED = 0x9,
2506 MLX5_EQC_ST_FIRED = 0xa,
2507};
2508
2509struct mlx5_ifc_eqc_bits {
2510 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002511 u8 reserved_at_4[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03002512 u8 ec[0x1];
2513 u8 oi[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002514 u8 reserved_at_f[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002515 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002516 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002517
Matan Barakb4ff3a32016-02-09 14:57:42 +02002518 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002519
Matan Barakb4ff3a32016-02-09 14:57:42 +02002520 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002521 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002522 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002523
Matan Barakb4ff3a32016-02-09 14:57:42 +02002524 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002525 u8 log_eq_size[0x5];
2526 u8 uar_page[0x18];
2527
Matan Barakb4ff3a32016-02-09 14:57:42 +02002528 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002529
Matan Barakb4ff3a32016-02-09 14:57:42 +02002530 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002531 u8 intr[0x8];
2532
Matan Barakb4ff3a32016-02-09 14:57:42 +02002533 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002534 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002535 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002536
Matan Barakb4ff3a32016-02-09 14:57:42 +02002537 u8 reserved_at_e0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002538
Matan Barakb4ff3a32016-02-09 14:57:42 +02002539 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002540 u8 consumer_counter[0x18];
2541
Matan Barakb4ff3a32016-02-09 14:57:42 +02002542 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002543 u8 producer_counter[0x18];
2544
Matan Barakb4ff3a32016-02-09 14:57:42 +02002545 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002546};
2547
2548enum {
2549 MLX5_DCTC_STATE_ACTIVE = 0x0,
2550 MLX5_DCTC_STATE_DRAINING = 0x1,
2551 MLX5_DCTC_STATE_DRAINED = 0x2,
2552};
2553
2554enum {
2555 MLX5_DCTC_CS_RES_DISABLE = 0x0,
2556 MLX5_DCTC_CS_RES_NA = 0x1,
2557 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
2558};
2559
2560enum {
2561 MLX5_DCTC_MTU_256_BYTES = 0x1,
2562 MLX5_DCTC_MTU_512_BYTES = 0x2,
2563 MLX5_DCTC_MTU_1K_BYTES = 0x3,
2564 MLX5_DCTC_MTU_2K_BYTES = 0x4,
2565 MLX5_DCTC_MTU_4K_BYTES = 0x5,
2566};
2567
2568struct mlx5_ifc_dctc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002569 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002570 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002571 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002572
Matan Barakb4ff3a32016-02-09 14:57:42 +02002573 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002574 u8 user_index[0x18];
2575
Matan Barakb4ff3a32016-02-09 14:57:42 +02002576 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002577 u8 cqn[0x18];
2578
2579 u8 counter_set_id[0x8];
2580 u8 atomic_mode[0x4];
2581 u8 rre[0x1];
2582 u8 rwe[0x1];
2583 u8 rae[0x1];
2584 u8 atomic_like_write_en[0x1];
2585 u8 latency_sensitive[0x1];
2586 u8 rlky[0x1];
2587 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002588 u8 reserved_at_73[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03002589
Matan Barakb4ff3a32016-02-09 14:57:42 +02002590 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002591 u8 cs_res[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002592 u8 reserved_at_90[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002593 u8 min_rnr_nak[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002594 u8 reserved_at_98[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002595
Matan Barakb4ff3a32016-02-09 14:57:42 +02002596 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002597 u8 srqn[0x18];
2598
Matan Barakb4ff3a32016-02-09 14:57:42 +02002599 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002600 u8 pd[0x18];
2601
2602 u8 tclass[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002603 u8 reserved_at_e8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002604 u8 flow_label[0x14];
2605
2606 u8 dc_access_key[0x40];
2607
Matan Barakb4ff3a32016-02-09 14:57:42 +02002608 u8 reserved_at_140[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002609 u8 mtu[0x3];
2610 u8 port[0x8];
2611 u8 pkey_index[0x10];
2612
Matan Barakb4ff3a32016-02-09 14:57:42 +02002613 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002614 u8 my_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002615 u8 reserved_at_170[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002616 u8 hop_limit[0x8];
2617
2618 u8 dc_access_key_violation_count[0x20];
2619
Matan Barakb4ff3a32016-02-09 14:57:42 +02002620 u8 reserved_at_1a0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002621 u8 dei_cfi[0x1];
2622 u8 eth_prio[0x3];
2623 u8 ecn[0x2];
2624 u8 dscp[0x6];
2625
Matan Barakb4ff3a32016-02-09 14:57:42 +02002626 u8 reserved_at_1c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002627};
2628
2629enum {
2630 MLX5_CQC_STATUS_OK = 0x0,
2631 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
2632 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
2633};
2634
2635enum {
2636 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
2637 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
2638};
2639
2640enum {
2641 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
2642 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
2643 MLX5_CQC_ST_FIRED = 0xa,
2644};
2645
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002646enum {
2647 MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0,
2648 MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1,
2649};
2650
Saeed Mahameede2816822015-05-28 22:28:40 +03002651struct mlx5_ifc_cqc_bits {
2652 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002653 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002654 u8 cqe_sz[0x3];
2655 u8 cc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002656 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002657 u8 scqe_break_moderation_en[0x1];
2658 u8 oi[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002659 u8 cq_period_mode[0x2];
2660 u8 cqe_comp_en[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002661 u8 mini_cqe_res_format[0x2];
2662 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002663 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002664
Matan Barakb4ff3a32016-02-09 14:57:42 +02002665 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002666
Matan Barakb4ff3a32016-02-09 14:57:42 +02002667 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002668 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002669 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002670
Matan Barakb4ff3a32016-02-09 14:57:42 +02002671 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002672 u8 log_cq_size[0x5];
2673 u8 uar_page[0x18];
2674
Matan Barakb4ff3a32016-02-09 14:57:42 +02002675 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002676 u8 cq_period[0xc];
2677 u8 cq_max_count[0x10];
2678
Matan Barakb4ff3a32016-02-09 14:57:42 +02002679 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002680 u8 c_eqn[0x8];
2681
Matan Barakb4ff3a32016-02-09 14:57:42 +02002682 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002683 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002684 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002685
Matan Barakb4ff3a32016-02-09 14:57:42 +02002686 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002687
Matan Barakb4ff3a32016-02-09 14:57:42 +02002688 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002689 u8 last_notified_index[0x18];
2690
Matan Barakb4ff3a32016-02-09 14:57:42 +02002691 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002692 u8 last_solicit_index[0x18];
2693
Matan Barakb4ff3a32016-02-09 14:57:42 +02002694 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002695 u8 consumer_counter[0x18];
2696
Matan Barakb4ff3a32016-02-09 14:57:42 +02002697 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002698 u8 producer_counter[0x18];
2699
Matan Barakb4ff3a32016-02-09 14:57:42 +02002700 u8 reserved_at_180[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002701
2702 u8 dbr_addr[0x40];
2703};
2704
2705union mlx5_ifc_cong_control_roce_ecn_auto_bits {
2706 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
2707 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
2708 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002709 u8 reserved_at_0[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03002710};
2711
2712struct mlx5_ifc_query_adapter_param_block_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002713 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002714
Matan Barakb4ff3a32016-02-09 14:57:42 +02002715 u8 reserved_at_c0[0x8];
Majd Dibbiny211e6c82015-06-04 19:30:42 +03002716 u8 ieee_vendor_id[0x18];
2717
Matan Barakb4ff3a32016-02-09 14:57:42 +02002718 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002719 u8 vsd_vendor_id[0x10];
2720
2721 u8 vsd[208][0x8];
2722
2723 u8 vsd_contd_psid[16][0x8];
2724};
2725
2726union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
2727 struct mlx5_ifc_modify_field_select_bits modify_field_select;
2728 struct mlx5_ifc_resize_field_select_bits resize_field_select;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002729 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002730};
2731
2732union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
2733 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
2734 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
2735 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002736 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002737};
2738
2739union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
2740 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
2741 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
2742 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
2743 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
2744 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
2745 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
2746 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02002747 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03002748 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002749 u8 reserved_at_0[0x7c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002750};
2751
2752union mlx5_ifc_event_auto_bits {
2753 struct mlx5_ifc_comp_event_bits comp_event;
2754 struct mlx5_ifc_dct_events_bits dct_events;
2755 struct mlx5_ifc_qp_events_bits qp_events;
2756 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
2757 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
2758 struct mlx5_ifc_cq_error_bits cq_error;
2759 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
2760 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
2761 struct mlx5_ifc_gpio_event_bits gpio_event;
2762 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
2763 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
2764 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002765 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002766};
2767
2768struct mlx5_ifc_health_buffer_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002769 u8 reserved_at_0[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03002770
2771 u8 assert_existptr[0x20];
2772
2773 u8 assert_callra[0x20];
2774
Matan Barakb4ff3a32016-02-09 14:57:42 +02002775 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002776
2777 u8 fw_version[0x20];
2778
2779 u8 hw_id[0x20];
2780
Matan Barakb4ff3a32016-02-09 14:57:42 +02002781 u8 reserved_at_1c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002782
2783 u8 irisc_index[0x8];
2784 u8 synd[0x8];
2785 u8 ext_synd[0x10];
2786};
2787
2788struct mlx5_ifc_register_loopback_control_bits {
2789 u8 no_lb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002790 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03002791 u8 port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002792 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002793
Matan Barakb4ff3a32016-02-09 14:57:42 +02002794 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002795};
2796
2797struct mlx5_ifc_teardown_hca_out_bits {
2798 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002799 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002800
2801 u8 syndrome[0x20];
2802
Matan Barakb4ff3a32016-02-09 14:57:42 +02002803 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002804};
2805
2806enum {
2807 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
2808 MLX5_TEARDOWN_HCA_IN_PROFILE_PANIC_CLOSE = 0x1,
2809};
2810
2811struct mlx5_ifc_teardown_hca_in_bits {
2812 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002813 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002814
Matan Barakb4ff3a32016-02-09 14:57:42 +02002815 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002816 u8 op_mod[0x10];
2817
Matan Barakb4ff3a32016-02-09 14:57:42 +02002818 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002819 u8 profile[0x10];
2820
Matan Barakb4ff3a32016-02-09 14:57:42 +02002821 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002822};
2823
2824struct mlx5_ifc_sqerr2rts_qp_out_bits {
2825 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002826 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002827
2828 u8 syndrome[0x20];
2829
Matan Barakb4ff3a32016-02-09 14:57:42 +02002830 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002831};
2832
2833struct mlx5_ifc_sqerr2rts_qp_in_bits {
2834 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002835 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002836
Matan Barakb4ff3a32016-02-09 14:57:42 +02002837 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002838 u8 op_mod[0x10];
2839
Matan Barakb4ff3a32016-02-09 14:57:42 +02002840 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002841 u8 qpn[0x18];
2842
Matan Barakb4ff3a32016-02-09 14:57:42 +02002843 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002844
2845 u8 opt_param_mask[0x20];
2846
Matan Barakb4ff3a32016-02-09 14:57:42 +02002847 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002848
2849 struct mlx5_ifc_qpc_bits qpc;
2850
Matan Barakb4ff3a32016-02-09 14:57:42 +02002851 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002852};
2853
2854struct mlx5_ifc_sqd2rts_qp_out_bits {
2855 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002856 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002857
2858 u8 syndrome[0x20];
2859
Matan Barakb4ff3a32016-02-09 14:57:42 +02002860 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002861};
2862
2863struct mlx5_ifc_sqd2rts_qp_in_bits {
2864 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002865 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002866
Matan Barakb4ff3a32016-02-09 14:57:42 +02002867 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002868 u8 op_mod[0x10];
2869
Matan Barakb4ff3a32016-02-09 14:57:42 +02002870 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002871 u8 qpn[0x18];
2872
Matan Barakb4ff3a32016-02-09 14:57:42 +02002873 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002874
2875 u8 opt_param_mask[0x20];
2876
Matan Barakb4ff3a32016-02-09 14:57:42 +02002877 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002878
2879 struct mlx5_ifc_qpc_bits qpc;
2880
Matan Barakb4ff3a32016-02-09 14:57:42 +02002881 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002882};
2883
2884struct mlx5_ifc_set_roce_address_out_bits {
2885 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002886 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002887
2888 u8 syndrome[0x20];
2889
Matan Barakb4ff3a32016-02-09 14:57:42 +02002890 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002891};
2892
2893struct mlx5_ifc_set_roce_address_in_bits {
2894 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002895 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002896
Matan Barakb4ff3a32016-02-09 14:57:42 +02002897 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002898 u8 op_mod[0x10];
2899
2900 u8 roce_address_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002901 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002902
Matan Barakb4ff3a32016-02-09 14:57:42 +02002903 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002904
2905 struct mlx5_ifc_roce_addr_layout_bits roce_address;
2906};
2907
2908struct mlx5_ifc_set_mad_demux_out_bits {
2909 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002910 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002911
2912 u8 syndrome[0x20];
2913
Matan Barakb4ff3a32016-02-09 14:57:42 +02002914 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002915};
2916
2917enum {
2918 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
2919 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
2920};
2921
2922struct mlx5_ifc_set_mad_demux_in_bits {
2923 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002924 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002925
Matan Barakb4ff3a32016-02-09 14:57:42 +02002926 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002927 u8 op_mod[0x10];
2928
Matan Barakb4ff3a32016-02-09 14:57:42 +02002929 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002930
Matan Barakb4ff3a32016-02-09 14:57:42 +02002931 u8 reserved_at_60[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002932 u8 demux_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002933 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002934};
2935
2936struct mlx5_ifc_set_l2_table_entry_out_bits {
2937 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002938 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002939
2940 u8 syndrome[0x20];
2941
Matan Barakb4ff3a32016-02-09 14:57:42 +02002942 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002943};
2944
2945struct mlx5_ifc_set_l2_table_entry_in_bits {
2946 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002947 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002948
Matan Barakb4ff3a32016-02-09 14:57:42 +02002949 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002950 u8 op_mod[0x10];
2951
Matan Barakb4ff3a32016-02-09 14:57:42 +02002952 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002953
Matan Barakb4ff3a32016-02-09 14:57:42 +02002954 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002955 u8 table_index[0x18];
2956
Matan Barakb4ff3a32016-02-09 14:57:42 +02002957 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002958
Matan Barakb4ff3a32016-02-09 14:57:42 +02002959 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03002960 u8 vlan_valid[0x1];
2961 u8 vlan[0xc];
2962
2963 struct mlx5_ifc_mac_address_layout_bits mac_address;
2964
Matan Barakb4ff3a32016-02-09 14:57:42 +02002965 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002966};
2967
2968struct mlx5_ifc_set_issi_out_bits {
2969 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002970 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002971
2972 u8 syndrome[0x20];
2973
Matan Barakb4ff3a32016-02-09 14:57:42 +02002974 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002975};
2976
2977struct mlx5_ifc_set_issi_in_bits {
2978 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002979 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002980
Matan Barakb4ff3a32016-02-09 14:57:42 +02002981 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002982 u8 op_mod[0x10];
2983
Matan Barakb4ff3a32016-02-09 14:57:42 +02002984 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002985 u8 current_issi[0x10];
2986
Matan Barakb4ff3a32016-02-09 14:57:42 +02002987 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002988};
2989
2990struct mlx5_ifc_set_hca_cap_out_bits {
2991 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002992 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002993
2994 u8 syndrome[0x20];
2995
Matan Barakb4ff3a32016-02-09 14:57:42 +02002996 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03002997};
2998
2999struct mlx5_ifc_set_hca_cap_in_bits {
3000 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003001 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003002
Matan Barakb4ff3a32016-02-09 14:57:42 +02003003 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003004 u8 op_mod[0x10];
3005
Matan Barakb4ff3a32016-02-09 14:57:42 +02003006 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003007
Saeed Mahameede2816822015-05-28 22:28:40 +03003008 union mlx5_ifc_hca_cap_union_bits capability;
3009};
3010
Maor Gottlieb26a81452015-12-10 17:12:39 +02003011enum {
3012 MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0,
3013 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1,
3014 MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2,
3015 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3
3016};
3017
Saeed Mahameede2816822015-05-28 22:28:40 +03003018struct mlx5_ifc_set_fte_out_bits {
3019 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003020 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003021
3022 u8 syndrome[0x20];
3023
Matan Barakb4ff3a32016-02-09 14:57:42 +02003024 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003025};
3026
3027struct mlx5_ifc_set_fte_in_bits {
3028 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003029 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003030
Matan Barakb4ff3a32016-02-09 14:57:42 +02003031 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003032 u8 op_mod[0x10];
3033
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003034 u8 other_vport[0x1];
3035 u8 reserved_at_41[0xf];
3036 u8 vport_number[0x10];
3037
3038 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003039
3040 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003041 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003042
Matan Barakb4ff3a32016-02-09 14:57:42 +02003043 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003044 u8 table_id[0x18];
3045
Matan Barakb4ff3a32016-02-09 14:57:42 +02003046 u8 reserved_at_c0[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +02003047 u8 modify_enable_mask[0x8];
3048
Matan Barakb4ff3a32016-02-09 14:57:42 +02003049 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003050
3051 u8 flow_index[0x20];
3052
Matan Barakb4ff3a32016-02-09 14:57:42 +02003053 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003054
3055 struct mlx5_ifc_flow_context_bits flow_context;
3056};
3057
3058struct mlx5_ifc_rts2rts_qp_out_bits {
3059 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003060 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003061
3062 u8 syndrome[0x20];
3063
Matan Barakb4ff3a32016-02-09 14:57:42 +02003064 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003065};
3066
3067struct mlx5_ifc_rts2rts_qp_in_bits {
3068 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003069 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003070
Matan Barakb4ff3a32016-02-09 14:57:42 +02003071 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003072 u8 op_mod[0x10];
3073
Matan Barakb4ff3a32016-02-09 14:57:42 +02003074 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003075 u8 qpn[0x18];
3076
Matan Barakb4ff3a32016-02-09 14:57:42 +02003077 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003078
3079 u8 opt_param_mask[0x20];
3080
Matan Barakb4ff3a32016-02-09 14:57:42 +02003081 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003082
3083 struct mlx5_ifc_qpc_bits qpc;
3084
Matan Barakb4ff3a32016-02-09 14:57:42 +02003085 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003086};
3087
3088struct mlx5_ifc_rtr2rts_qp_out_bits {
3089 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003090 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003091
3092 u8 syndrome[0x20];
3093
Matan Barakb4ff3a32016-02-09 14:57:42 +02003094 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003095};
3096
3097struct mlx5_ifc_rtr2rts_qp_in_bits {
3098 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003099 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003100
Matan Barakb4ff3a32016-02-09 14:57:42 +02003101 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003102 u8 op_mod[0x10];
3103
Matan Barakb4ff3a32016-02-09 14:57:42 +02003104 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003105 u8 qpn[0x18];
3106
Matan Barakb4ff3a32016-02-09 14:57:42 +02003107 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003108
3109 u8 opt_param_mask[0x20];
3110
Matan Barakb4ff3a32016-02-09 14:57:42 +02003111 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003112
3113 struct mlx5_ifc_qpc_bits qpc;
3114
Matan Barakb4ff3a32016-02-09 14:57:42 +02003115 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003116};
3117
3118struct mlx5_ifc_rst2init_qp_out_bits {
3119 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003120 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003121
3122 u8 syndrome[0x20];
3123
Matan Barakb4ff3a32016-02-09 14:57:42 +02003124 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003125};
3126
3127struct mlx5_ifc_rst2init_qp_in_bits {
3128 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003129 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003130
Matan Barakb4ff3a32016-02-09 14:57:42 +02003131 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003132 u8 op_mod[0x10];
3133
Matan Barakb4ff3a32016-02-09 14:57:42 +02003134 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003135 u8 qpn[0x18];
3136
Matan Barakb4ff3a32016-02-09 14:57:42 +02003137 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003138
3139 u8 opt_param_mask[0x20];
3140
Matan Barakb4ff3a32016-02-09 14:57:42 +02003141 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003142
3143 struct mlx5_ifc_qpc_bits qpc;
3144
Matan Barakb4ff3a32016-02-09 14:57:42 +02003145 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003146};
3147
3148struct mlx5_ifc_query_xrc_srq_out_bits {
3149 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003150 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003151
3152 u8 syndrome[0x20];
3153
Matan Barakb4ff3a32016-02-09 14:57:42 +02003154 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003155
3156 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
3157
Matan Barakb4ff3a32016-02-09 14:57:42 +02003158 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003159
3160 u8 pas[0][0x40];
3161};
3162
3163struct mlx5_ifc_query_xrc_srq_in_bits {
3164 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003165 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003166
Matan Barakb4ff3a32016-02-09 14:57:42 +02003167 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003168 u8 op_mod[0x10];
3169
Matan Barakb4ff3a32016-02-09 14:57:42 +02003170 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003171 u8 xrc_srqn[0x18];
3172
Matan Barakb4ff3a32016-02-09 14:57:42 +02003173 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003174};
3175
3176enum {
3177 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
3178 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
3179};
3180
3181struct mlx5_ifc_query_vport_state_out_bits {
3182 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003183 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003184
3185 u8 syndrome[0x20];
3186
Matan Barakb4ff3a32016-02-09 14:57:42 +02003187 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003188
Matan Barakb4ff3a32016-02-09 14:57:42 +02003189 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003190 u8 admin_state[0x4];
3191 u8 state[0x4];
3192};
3193
3194enum {
3195 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0,
Saeed Mahameede7546512015-12-01 18:03:13 +02003196 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1,
Saeed Mahameede2816822015-05-28 22:28:40 +03003197};
3198
3199struct mlx5_ifc_query_vport_state_in_bits {
3200 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003201 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003202
Matan Barakb4ff3a32016-02-09 14:57:42 +02003203 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003204 u8 op_mod[0x10];
3205
3206 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003207 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003208 u8 vport_number[0x10];
3209
Matan Barakb4ff3a32016-02-09 14:57:42 +02003210 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003211};
3212
3213struct mlx5_ifc_query_vport_counter_out_bits {
3214 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003215 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003216
3217 u8 syndrome[0x20];
3218
Matan Barakb4ff3a32016-02-09 14:57:42 +02003219 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003220
3221 struct mlx5_ifc_traffic_counter_bits received_errors;
3222
3223 struct mlx5_ifc_traffic_counter_bits transmit_errors;
3224
3225 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
3226
3227 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
3228
3229 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
3230
3231 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
3232
3233 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
3234
3235 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
3236
3237 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
3238
3239 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
3240
3241 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
3242
3243 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
3244
Matan Barakb4ff3a32016-02-09 14:57:42 +02003245 u8 reserved_at_680[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +03003246};
3247
3248enum {
3249 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
3250};
3251
3252struct mlx5_ifc_query_vport_counter_in_bits {
3253 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003254 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003255
Matan Barakb4ff3a32016-02-09 14:57:42 +02003256 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003257 u8 op_mod[0x10];
3258
3259 u8 other_vport[0x1];
Meny Yossefib54ba272016-02-18 18:14:59 +02003260 u8 reserved_at_41[0xb];
3261 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003262 u8 vport_number[0x10];
3263
Matan Barakb4ff3a32016-02-09 14:57:42 +02003264 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003265
3266 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003267 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03003268
Matan Barakb4ff3a32016-02-09 14:57:42 +02003269 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003270};
3271
3272struct mlx5_ifc_query_tis_out_bits {
3273 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003274 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003275
3276 u8 syndrome[0x20];
3277
Matan Barakb4ff3a32016-02-09 14:57:42 +02003278 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003279
3280 struct mlx5_ifc_tisc_bits tis_context;
3281};
3282
3283struct mlx5_ifc_query_tis_in_bits {
3284 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003285 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003286
Matan Barakb4ff3a32016-02-09 14:57:42 +02003287 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003288 u8 op_mod[0x10];
3289
Matan Barakb4ff3a32016-02-09 14:57:42 +02003290 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003291 u8 tisn[0x18];
3292
Matan Barakb4ff3a32016-02-09 14:57:42 +02003293 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003294};
3295
3296struct mlx5_ifc_query_tir_out_bits {
3297 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003298 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003299
3300 u8 syndrome[0x20];
3301
Matan Barakb4ff3a32016-02-09 14:57:42 +02003302 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003303
3304 struct mlx5_ifc_tirc_bits tir_context;
3305};
3306
3307struct mlx5_ifc_query_tir_in_bits {
3308 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003309 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003310
Matan Barakb4ff3a32016-02-09 14:57:42 +02003311 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003312 u8 op_mod[0x10];
3313
Matan Barakb4ff3a32016-02-09 14:57:42 +02003314 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003315 u8 tirn[0x18];
3316
Matan Barakb4ff3a32016-02-09 14:57:42 +02003317 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003318};
3319
3320struct mlx5_ifc_query_srq_out_bits {
3321 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003322 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003323
3324 u8 syndrome[0x20];
3325
Matan Barakb4ff3a32016-02-09 14:57:42 +02003326 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003327
3328 struct mlx5_ifc_srqc_bits srq_context_entry;
3329
Matan Barakb4ff3a32016-02-09 14:57:42 +02003330 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003331
3332 u8 pas[0][0x40];
3333};
3334
3335struct mlx5_ifc_query_srq_in_bits {
3336 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003337 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003338
Matan Barakb4ff3a32016-02-09 14:57:42 +02003339 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003340 u8 op_mod[0x10];
3341
Matan Barakb4ff3a32016-02-09 14:57:42 +02003342 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003343 u8 srqn[0x18];
3344
Matan Barakb4ff3a32016-02-09 14:57:42 +02003345 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003346};
3347
3348struct mlx5_ifc_query_sq_out_bits {
3349 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003350 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003351
3352 u8 syndrome[0x20];
3353
Matan Barakb4ff3a32016-02-09 14:57:42 +02003354 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003355
3356 struct mlx5_ifc_sqc_bits sq_context;
3357};
3358
3359struct mlx5_ifc_query_sq_in_bits {
3360 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003361 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003362
Matan Barakb4ff3a32016-02-09 14:57:42 +02003363 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003364 u8 op_mod[0x10];
3365
Matan Barakb4ff3a32016-02-09 14:57:42 +02003366 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003367 u8 sqn[0x18];
3368
Matan Barakb4ff3a32016-02-09 14:57:42 +02003369 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003370};
3371
3372struct mlx5_ifc_query_special_contexts_out_bits {
3373 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003374 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003375
3376 u8 syndrome[0x20];
3377
Matan Barakb4ff3a32016-02-09 14:57:42 +02003378 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003379
3380 u8 resd_lkey[0x20];
3381};
3382
3383struct mlx5_ifc_query_special_contexts_in_bits {
3384 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003385 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003386
Matan Barakb4ff3a32016-02-09 14:57:42 +02003387 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003388 u8 op_mod[0x10];
3389
Matan Barakb4ff3a32016-02-09 14:57:42 +02003390 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003391};
3392
3393struct mlx5_ifc_query_rqt_out_bits {
3394 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003395 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003396
3397 u8 syndrome[0x20];
3398
Matan Barakb4ff3a32016-02-09 14:57:42 +02003399 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003400
3401 struct mlx5_ifc_rqtc_bits rqt_context;
3402};
3403
3404struct mlx5_ifc_query_rqt_in_bits {
3405 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003406 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003407
Matan Barakb4ff3a32016-02-09 14:57:42 +02003408 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003409 u8 op_mod[0x10];
3410
Matan Barakb4ff3a32016-02-09 14:57:42 +02003411 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003412 u8 rqtn[0x18];
3413
Matan Barakb4ff3a32016-02-09 14:57:42 +02003414 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003415};
3416
3417struct mlx5_ifc_query_rq_out_bits {
3418 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003419 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003420
3421 u8 syndrome[0x20];
3422
Matan Barakb4ff3a32016-02-09 14:57:42 +02003423 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003424
3425 struct mlx5_ifc_rqc_bits rq_context;
3426};
3427
3428struct mlx5_ifc_query_rq_in_bits {
3429 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003430 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003431
Matan Barakb4ff3a32016-02-09 14:57:42 +02003432 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003433 u8 op_mod[0x10];
3434
Matan Barakb4ff3a32016-02-09 14:57:42 +02003435 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003436 u8 rqn[0x18];
3437
Matan Barakb4ff3a32016-02-09 14:57:42 +02003438 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003439};
3440
3441struct mlx5_ifc_query_roce_address_out_bits {
3442 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003443 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003444
3445 u8 syndrome[0x20];
3446
Matan Barakb4ff3a32016-02-09 14:57:42 +02003447 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003448
3449 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3450};
3451
3452struct mlx5_ifc_query_roce_address_in_bits {
3453 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003454 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003455
Matan Barakb4ff3a32016-02-09 14:57:42 +02003456 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003457 u8 op_mod[0x10];
3458
3459 u8 roce_address_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003460 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003461
Matan Barakb4ff3a32016-02-09 14:57:42 +02003462 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003463};
3464
3465struct mlx5_ifc_query_rmp_out_bits {
3466 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003467 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003468
3469 u8 syndrome[0x20];
3470
Matan Barakb4ff3a32016-02-09 14:57:42 +02003471 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003472
3473 struct mlx5_ifc_rmpc_bits rmp_context;
3474};
3475
3476struct mlx5_ifc_query_rmp_in_bits {
3477 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003478 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003479
Matan Barakb4ff3a32016-02-09 14:57:42 +02003480 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003481 u8 op_mod[0x10];
3482
Matan Barakb4ff3a32016-02-09 14:57:42 +02003483 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003484 u8 rmpn[0x18];
3485
Matan Barakb4ff3a32016-02-09 14:57:42 +02003486 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003487};
3488
3489struct mlx5_ifc_query_qp_out_bits {
3490 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003491 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003492
3493 u8 syndrome[0x20];
3494
Matan Barakb4ff3a32016-02-09 14:57:42 +02003495 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003496
3497 u8 opt_param_mask[0x20];
3498
Matan Barakb4ff3a32016-02-09 14:57:42 +02003499 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003500
3501 struct mlx5_ifc_qpc_bits qpc;
3502
Matan Barakb4ff3a32016-02-09 14:57:42 +02003503 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003504
3505 u8 pas[0][0x40];
3506};
3507
3508struct mlx5_ifc_query_qp_in_bits {
3509 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003510 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003511
Matan Barakb4ff3a32016-02-09 14:57:42 +02003512 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003513 u8 op_mod[0x10];
3514
Matan Barakb4ff3a32016-02-09 14:57:42 +02003515 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003516 u8 qpn[0x18];
3517
Matan Barakb4ff3a32016-02-09 14:57:42 +02003518 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003519};
3520
3521struct mlx5_ifc_query_q_counter_out_bits {
3522 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003523 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003524
3525 u8 syndrome[0x20];
3526
Matan Barakb4ff3a32016-02-09 14:57:42 +02003527 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003528
3529 u8 rx_write_requests[0x20];
3530
Matan Barakb4ff3a32016-02-09 14:57:42 +02003531 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003532
3533 u8 rx_read_requests[0x20];
3534
Matan Barakb4ff3a32016-02-09 14:57:42 +02003535 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003536
3537 u8 rx_atomic_requests[0x20];
3538
Matan Barakb4ff3a32016-02-09 14:57:42 +02003539 u8 reserved_at_120[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003540
3541 u8 rx_dct_connect[0x20];
3542
Matan Barakb4ff3a32016-02-09 14:57:42 +02003543 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003544
3545 u8 out_of_buffer[0x20];
3546
Matan Barakb4ff3a32016-02-09 14:57:42 +02003547 u8 reserved_at_1a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003548
3549 u8 out_of_sequence[0x20];
3550
Matan Barakb4ff3a32016-02-09 14:57:42 +02003551 u8 reserved_at_1e0[0x620];
Saeed Mahameede2816822015-05-28 22:28:40 +03003552};
3553
3554struct mlx5_ifc_query_q_counter_in_bits {
3555 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003556 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003557
Matan Barakb4ff3a32016-02-09 14:57:42 +02003558 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003559 u8 op_mod[0x10];
3560
Matan Barakb4ff3a32016-02-09 14:57:42 +02003561 u8 reserved_at_40[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003562
3563 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003564 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03003565
Matan Barakb4ff3a32016-02-09 14:57:42 +02003566 u8 reserved_at_e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003567 u8 counter_set_id[0x8];
3568};
3569
3570struct mlx5_ifc_query_pages_out_bits {
3571 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003572 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003573
3574 u8 syndrome[0x20];
3575
Matan Barakb4ff3a32016-02-09 14:57:42 +02003576 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003577 u8 function_id[0x10];
3578
3579 u8 num_pages[0x20];
3580};
3581
3582enum {
3583 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
3584 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
3585 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
3586};
3587
3588struct mlx5_ifc_query_pages_in_bits {
3589 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003590 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003591
Matan Barakb4ff3a32016-02-09 14:57:42 +02003592 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003593 u8 op_mod[0x10];
3594
Matan Barakb4ff3a32016-02-09 14:57:42 +02003595 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003596 u8 function_id[0x10];
3597
Matan Barakb4ff3a32016-02-09 14:57:42 +02003598 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003599};
3600
3601struct mlx5_ifc_query_nic_vport_context_out_bits {
3602 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003603 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003604
3605 u8 syndrome[0x20];
3606
Matan Barakb4ff3a32016-02-09 14:57:42 +02003607 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003608
3609 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
3610};
3611
3612struct mlx5_ifc_query_nic_vport_context_in_bits {
3613 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003614 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003615
Matan Barakb4ff3a32016-02-09 14:57:42 +02003616 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003617 u8 op_mod[0x10];
3618
3619 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003620 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003621 u8 vport_number[0x10];
3622
Matan Barakb4ff3a32016-02-09 14:57:42 +02003623 u8 reserved_at_60[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003624 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003625 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003626};
3627
3628struct mlx5_ifc_query_mkey_out_bits {
3629 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003630 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003631
3632 u8 syndrome[0x20];
3633
Matan Barakb4ff3a32016-02-09 14:57:42 +02003634 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003635
3636 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
3637
Matan Barakb4ff3a32016-02-09 14:57:42 +02003638 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003639
3640 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
3641
3642 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
3643};
3644
3645struct mlx5_ifc_query_mkey_in_bits {
3646 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003647 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003648
Matan Barakb4ff3a32016-02-09 14:57:42 +02003649 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003650 u8 op_mod[0x10];
3651
Matan Barakb4ff3a32016-02-09 14:57:42 +02003652 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003653 u8 mkey_index[0x18];
3654
3655 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003656 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03003657};
3658
3659struct mlx5_ifc_query_mad_demux_out_bits {
3660 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003661 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003662
3663 u8 syndrome[0x20];
3664
Matan Barakb4ff3a32016-02-09 14:57:42 +02003665 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003666
3667 u8 mad_dumux_parameters_block[0x20];
3668};
3669
3670struct mlx5_ifc_query_mad_demux_in_bits {
3671 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003672 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003673
Matan Barakb4ff3a32016-02-09 14:57:42 +02003674 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003675 u8 op_mod[0x10];
3676
Matan Barakb4ff3a32016-02-09 14:57:42 +02003677 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003678};
3679
3680struct mlx5_ifc_query_l2_table_entry_out_bits {
3681 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003682 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003683
3684 u8 syndrome[0x20];
3685
Matan Barakb4ff3a32016-02-09 14:57:42 +02003686 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003687
Matan Barakb4ff3a32016-02-09 14:57:42 +02003688 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03003689 u8 vlan_valid[0x1];
3690 u8 vlan[0xc];
3691
3692 struct mlx5_ifc_mac_address_layout_bits mac_address;
3693
Matan Barakb4ff3a32016-02-09 14:57:42 +02003694 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003695};
3696
3697struct mlx5_ifc_query_l2_table_entry_in_bits {
3698 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003699 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003700
Matan Barakb4ff3a32016-02-09 14:57:42 +02003701 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003702 u8 op_mod[0x10];
3703
Matan Barakb4ff3a32016-02-09 14:57:42 +02003704 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003705
Matan Barakb4ff3a32016-02-09 14:57:42 +02003706 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003707 u8 table_index[0x18];
3708
Matan Barakb4ff3a32016-02-09 14:57:42 +02003709 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03003710};
3711
3712struct mlx5_ifc_query_issi_out_bits {
3713 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003714 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003715
3716 u8 syndrome[0x20];
3717
Matan Barakb4ff3a32016-02-09 14:57:42 +02003718 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003719 u8 current_issi[0x10];
3720
Matan Barakb4ff3a32016-02-09 14:57:42 +02003721 u8 reserved_at_60[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003722
Matan Barakb4ff3a32016-02-09 14:57:42 +02003723 u8 reserved_at_100[76][0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003724 u8 supported_issi_dw0[0x20];
3725};
3726
3727struct mlx5_ifc_query_issi_in_bits {
3728 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003729 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003730
Matan Barakb4ff3a32016-02-09 14:57:42 +02003731 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003732 u8 op_mod[0x10];
3733
Matan Barakb4ff3a32016-02-09 14:57:42 +02003734 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003735};
3736
3737struct mlx5_ifc_query_hca_vport_pkey_out_bits {
3738 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003739 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003740
3741 u8 syndrome[0x20];
3742
Matan Barakb4ff3a32016-02-09 14:57:42 +02003743 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003744
3745 struct mlx5_ifc_pkey_bits pkey[0];
3746};
3747
3748struct mlx5_ifc_query_hca_vport_pkey_in_bits {
3749 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003750 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003751
Matan Barakb4ff3a32016-02-09 14:57:42 +02003752 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003753 u8 op_mod[0x10];
3754
3755 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003756 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03003757 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003758 u8 vport_number[0x10];
3759
Matan Barakb4ff3a32016-02-09 14:57:42 +02003760 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003761 u8 pkey_index[0x10];
3762};
3763
Eli Coheneff901d2016-03-11 22:58:42 +02003764enum {
3765 MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0,
3766 MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1,
3767 MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2,
3768};
3769
Saeed Mahameede2816822015-05-28 22:28:40 +03003770struct mlx5_ifc_query_hca_vport_gid_out_bits {
3771 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003772 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003773
3774 u8 syndrome[0x20];
3775
Matan Barakb4ff3a32016-02-09 14:57:42 +02003776 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003777
3778 u8 gids_num[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003779 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003780
3781 struct mlx5_ifc_array128_auto_bits gid[0];
3782};
3783
3784struct mlx5_ifc_query_hca_vport_gid_in_bits {
3785 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003786 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003787
Matan Barakb4ff3a32016-02-09 14:57:42 +02003788 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003789 u8 op_mod[0x10];
3790
3791 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003792 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03003793 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003794 u8 vport_number[0x10];
3795
Matan Barakb4ff3a32016-02-09 14:57:42 +02003796 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003797 u8 gid_index[0x10];
3798};
3799
3800struct mlx5_ifc_query_hca_vport_context_out_bits {
3801 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003802 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003803
3804 u8 syndrome[0x20];
3805
Matan Barakb4ff3a32016-02-09 14:57:42 +02003806 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003807
3808 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
3809};
3810
3811struct mlx5_ifc_query_hca_vport_context_in_bits {
3812 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003813 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003814
Matan Barakb4ff3a32016-02-09 14:57:42 +02003815 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003816 u8 op_mod[0x10];
3817
3818 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003819 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03003820 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003821 u8 vport_number[0x10];
3822
Matan Barakb4ff3a32016-02-09 14:57:42 +02003823 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003824};
3825
3826struct mlx5_ifc_query_hca_cap_out_bits {
3827 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003828 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003829
3830 u8 syndrome[0x20];
3831
Matan Barakb4ff3a32016-02-09 14:57:42 +02003832 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003833
3834 union mlx5_ifc_hca_cap_union_bits capability;
Eli Cohenb7755162014-10-02 12:19:44 +03003835};
3836
3837struct mlx5_ifc_query_hca_cap_in_bits {
3838 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003839 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003840
Matan Barakb4ff3a32016-02-09 14:57:42 +02003841 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003842 u8 op_mod[0x10];
3843
Matan Barakb4ff3a32016-02-09 14:57:42 +02003844 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003845};
3846
Saeed Mahameede2816822015-05-28 22:28:40 +03003847struct mlx5_ifc_query_flow_table_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03003848 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003849 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03003850
3851 u8 syndrome[0x20];
3852
Matan Barakb4ff3a32016-02-09 14:57:42 +02003853 u8 reserved_at_40[0x80];
Eli Cohenb7755162014-10-02 12:19:44 +03003854
Matan Barakb4ff3a32016-02-09 14:57:42 +02003855 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003856 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003857 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003858 u8 log_size[0x8];
3859
Matan Barakb4ff3a32016-02-09 14:57:42 +02003860 u8 reserved_at_e0[0x120];
Eli Cohenb7755162014-10-02 12:19:44 +03003861};
3862
Saeed Mahameede2816822015-05-28 22:28:40 +03003863struct mlx5_ifc_query_flow_table_in_bits {
3864 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003865 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003866
Matan Barakb4ff3a32016-02-09 14:57:42 +02003867 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003868 u8 op_mod[0x10];
3869
Matan Barakb4ff3a32016-02-09 14:57:42 +02003870 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003871
3872 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003873 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003874
Matan Barakb4ff3a32016-02-09 14:57:42 +02003875 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003876 u8 table_id[0x18];
3877
Matan Barakb4ff3a32016-02-09 14:57:42 +02003878 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03003879};
3880
3881struct mlx5_ifc_query_fte_out_bits {
3882 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003883 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003884
3885 u8 syndrome[0x20];
3886
Matan Barakb4ff3a32016-02-09 14:57:42 +02003887 u8 reserved_at_40[0x1c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003888
3889 struct mlx5_ifc_flow_context_bits flow_context;
3890};
3891
3892struct mlx5_ifc_query_fte_in_bits {
3893 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003894 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003895
Matan Barakb4ff3a32016-02-09 14:57:42 +02003896 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003897 u8 op_mod[0x10];
3898
Matan Barakb4ff3a32016-02-09 14:57:42 +02003899 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003900
3901 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003902 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003903
Matan Barakb4ff3a32016-02-09 14:57:42 +02003904 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003905 u8 table_id[0x18];
3906
Matan Barakb4ff3a32016-02-09 14:57:42 +02003907 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003908
3909 u8 flow_index[0x20];
3910
Matan Barakb4ff3a32016-02-09 14:57:42 +02003911 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003912};
3913
3914enum {
3915 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
3916 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
3917 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
3918};
3919
3920struct mlx5_ifc_query_flow_group_out_bits {
3921 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003922 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003923
3924 u8 syndrome[0x20];
3925
Matan Barakb4ff3a32016-02-09 14:57:42 +02003926 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003927
3928 u8 start_flow_index[0x20];
3929
Matan Barakb4ff3a32016-02-09 14:57:42 +02003930 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003931
3932 u8 end_flow_index[0x20];
3933
Matan Barakb4ff3a32016-02-09 14:57:42 +02003934 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003935
Matan Barakb4ff3a32016-02-09 14:57:42 +02003936 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003937 u8 match_criteria_enable[0x8];
3938
3939 struct mlx5_ifc_fte_match_param_bits match_criteria;
3940
Matan Barakb4ff3a32016-02-09 14:57:42 +02003941 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03003942};
3943
3944struct mlx5_ifc_query_flow_group_in_bits {
3945 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003946 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003947
Matan Barakb4ff3a32016-02-09 14:57:42 +02003948 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003949 u8 op_mod[0x10];
3950
Matan Barakb4ff3a32016-02-09 14:57:42 +02003951 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003952
3953 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003954 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003955
Matan Barakb4ff3a32016-02-09 14:57:42 +02003956 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003957 u8 table_id[0x18];
3958
3959 u8 group_id[0x20];
3960
Matan Barakb4ff3a32016-02-09 14:57:42 +02003961 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03003962};
3963
Amir Vadai9dc0b282016-05-13 12:55:39 +00003964struct mlx5_ifc_query_flow_counter_out_bits {
3965 u8 status[0x8];
3966 u8 reserved_at_8[0x18];
3967
3968 u8 syndrome[0x20];
3969
3970 u8 reserved_at_40[0x40];
3971
3972 struct mlx5_ifc_traffic_counter_bits flow_statistics[0];
3973};
3974
3975struct mlx5_ifc_query_flow_counter_in_bits {
3976 u8 opcode[0x10];
3977 u8 reserved_at_10[0x10];
3978
3979 u8 reserved_at_20[0x10];
3980 u8 op_mod[0x10];
3981
3982 u8 reserved_at_40[0x80];
3983
3984 u8 clear[0x1];
3985 u8 reserved_at_c1[0xf];
3986 u8 num_of_counters[0x10];
3987
3988 u8 reserved_at_e0[0x10];
3989 u8 flow_counter_id[0x10];
3990};
3991
Saeed Mahameedd6666752015-12-01 18:03:22 +02003992struct mlx5_ifc_query_esw_vport_context_out_bits {
3993 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003994 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003995
3996 u8 syndrome[0x20];
3997
Matan Barakb4ff3a32016-02-09 14:57:42 +02003998 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003999
4000 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4001};
4002
4003struct mlx5_ifc_query_esw_vport_context_in_bits {
4004 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004005 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004006
Matan Barakb4ff3a32016-02-09 14:57:42 +02004007 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004008 u8 op_mod[0x10];
4009
4010 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004011 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004012 u8 vport_number[0x10];
4013
Matan Barakb4ff3a32016-02-09 14:57:42 +02004014 u8 reserved_at_60[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004015};
4016
4017struct mlx5_ifc_modify_esw_vport_context_out_bits {
4018 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004019 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004020
4021 u8 syndrome[0x20];
4022
Matan Barakb4ff3a32016-02-09 14:57:42 +02004023 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004024};
4025
4026struct mlx5_ifc_esw_vport_context_fields_select_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004027 u8 reserved_at_0[0x1c];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004028 u8 vport_cvlan_insert[0x1];
4029 u8 vport_svlan_insert[0x1];
4030 u8 vport_cvlan_strip[0x1];
4031 u8 vport_svlan_strip[0x1];
4032};
4033
4034struct mlx5_ifc_modify_esw_vport_context_in_bits {
4035 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004036 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004037
Matan Barakb4ff3a32016-02-09 14:57:42 +02004038 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004039 u8 op_mod[0x10];
4040
4041 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004042 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004043 u8 vport_number[0x10];
4044
4045 struct mlx5_ifc_esw_vport_context_fields_select_bits field_select;
4046
4047 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4048};
4049
Saeed Mahameede2816822015-05-28 22:28:40 +03004050struct mlx5_ifc_query_eq_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004051 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004052 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004053
4054 u8 syndrome[0x20];
4055
Matan Barakb4ff3a32016-02-09 14:57:42 +02004056 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004057
4058 struct mlx5_ifc_eqc_bits eq_context_entry;
4059
Matan Barakb4ff3a32016-02-09 14:57:42 +02004060 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004061
4062 u8 event_bitmask[0x40];
4063
Matan Barakb4ff3a32016-02-09 14:57:42 +02004064 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03004065
4066 u8 pas[0][0x40];
4067};
4068
4069struct mlx5_ifc_query_eq_in_bits {
4070 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004071 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004072
Matan Barakb4ff3a32016-02-09 14:57:42 +02004073 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004074 u8 op_mod[0x10];
4075
Matan Barakb4ff3a32016-02-09 14:57:42 +02004076 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004077 u8 eq_number[0x8];
4078
Matan Barakb4ff3a32016-02-09 14:57:42 +02004079 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004080};
4081
4082struct mlx5_ifc_query_dct_out_bits {
4083 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004084 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004085
4086 u8 syndrome[0x20];
4087
Matan Barakb4ff3a32016-02-09 14:57:42 +02004088 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004089
4090 struct mlx5_ifc_dctc_bits dct_context_entry;
4091
Matan Barakb4ff3a32016-02-09 14:57:42 +02004092 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03004093};
4094
4095struct mlx5_ifc_query_dct_in_bits {
4096 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004097 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004098
Matan Barakb4ff3a32016-02-09 14:57:42 +02004099 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004100 u8 op_mod[0x10];
4101
Matan Barakb4ff3a32016-02-09 14:57:42 +02004102 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004103 u8 dctn[0x18];
4104
Matan Barakb4ff3a32016-02-09 14:57:42 +02004105 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004106};
4107
4108struct mlx5_ifc_query_cq_out_bits {
4109 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004110 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004111
4112 u8 syndrome[0x20];
4113
Matan Barakb4ff3a32016-02-09 14:57:42 +02004114 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004115
4116 struct mlx5_ifc_cqc_bits cq_context;
4117
Matan Barakb4ff3a32016-02-09 14:57:42 +02004118 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004119
4120 u8 pas[0][0x40];
4121};
4122
4123struct mlx5_ifc_query_cq_in_bits {
4124 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004125 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004126
Matan Barakb4ff3a32016-02-09 14:57:42 +02004127 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004128 u8 op_mod[0x10];
4129
Matan Barakb4ff3a32016-02-09 14:57:42 +02004130 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004131 u8 cqn[0x18];
4132
Matan Barakb4ff3a32016-02-09 14:57:42 +02004133 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004134};
4135
4136struct mlx5_ifc_query_cong_status_out_bits {
4137 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004138 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004139
4140 u8 syndrome[0x20];
4141
Matan Barakb4ff3a32016-02-09 14:57:42 +02004142 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004143
4144 u8 enable[0x1];
4145 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004146 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03004147};
4148
4149struct mlx5_ifc_query_cong_status_in_bits {
4150 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004151 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004152
Matan Barakb4ff3a32016-02-09 14:57:42 +02004153 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004154 u8 op_mod[0x10];
4155
Matan Barakb4ff3a32016-02-09 14:57:42 +02004156 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004157 u8 priority[0x4];
4158 u8 cong_protocol[0x4];
4159
Matan Barakb4ff3a32016-02-09 14:57:42 +02004160 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004161};
4162
4163struct mlx5_ifc_query_cong_statistics_out_bits {
4164 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004165 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004166
4167 u8 syndrome[0x20];
4168
Matan Barakb4ff3a32016-02-09 14:57:42 +02004169 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004170
4171 u8 cur_flows[0x20];
4172
4173 u8 sum_flows[0x20];
4174
4175 u8 cnp_ignored_high[0x20];
4176
4177 u8 cnp_ignored_low[0x20];
4178
4179 u8 cnp_handled_high[0x20];
4180
4181 u8 cnp_handled_low[0x20];
4182
Matan Barakb4ff3a32016-02-09 14:57:42 +02004183 u8 reserved_at_140[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03004184
4185 u8 time_stamp_high[0x20];
4186
4187 u8 time_stamp_low[0x20];
4188
4189 u8 accumulators_period[0x20];
4190
4191 u8 ecn_marked_roce_packets_high[0x20];
4192
4193 u8 ecn_marked_roce_packets_low[0x20];
4194
4195 u8 cnps_sent_high[0x20];
4196
4197 u8 cnps_sent_low[0x20];
4198
Matan Barakb4ff3a32016-02-09 14:57:42 +02004199 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03004200};
4201
4202struct mlx5_ifc_query_cong_statistics_in_bits {
4203 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004204 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004205
Matan Barakb4ff3a32016-02-09 14:57:42 +02004206 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004207 u8 op_mod[0x10];
4208
4209 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004210 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004211
Matan Barakb4ff3a32016-02-09 14:57:42 +02004212 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004213};
4214
4215struct mlx5_ifc_query_cong_params_out_bits {
4216 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004217 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004218
4219 u8 syndrome[0x20];
4220
Matan Barakb4ff3a32016-02-09 14:57:42 +02004221 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004222
4223 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
4224};
4225
4226struct mlx5_ifc_query_cong_params_in_bits {
4227 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004228 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004229
Matan Barakb4ff3a32016-02-09 14:57:42 +02004230 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004231 u8 op_mod[0x10];
4232
Matan Barakb4ff3a32016-02-09 14:57:42 +02004233 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03004234 u8 cong_protocol[0x4];
4235
Matan Barakb4ff3a32016-02-09 14:57:42 +02004236 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004237};
4238
4239struct mlx5_ifc_query_adapter_out_bits {
4240 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004241 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004242
4243 u8 syndrome[0x20];
4244
Matan Barakb4ff3a32016-02-09 14:57:42 +02004245 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004246
4247 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
4248};
4249
4250struct mlx5_ifc_query_adapter_in_bits {
4251 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004252 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004253
Matan Barakb4ff3a32016-02-09 14:57:42 +02004254 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004255 u8 op_mod[0x10];
4256
Matan Barakb4ff3a32016-02-09 14:57:42 +02004257 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004258};
4259
4260struct mlx5_ifc_qp_2rst_out_bits {
4261 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004262 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004263
4264 u8 syndrome[0x20];
4265
Matan Barakb4ff3a32016-02-09 14:57:42 +02004266 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004267};
4268
4269struct mlx5_ifc_qp_2rst_in_bits {
4270 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004271 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004272
Matan Barakb4ff3a32016-02-09 14:57:42 +02004273 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004274 u8 op_mod[0x10];
4275
Matan Barakb4ff3a32016-02-09 14:57:42 +02004276 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004277 u8 qpn[0x18];
4278
Matan Barakb4ff3a32016-02-09 14:57:42 +02004279 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004280};
4281
4282struct mlx5_ifc_qp_2err_out_bits {
4283 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004284 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004285
4286 u8 syndrome[0x20];
4287
Matan Barakb4ff3a32016-02-09 14:57:42 +02004288 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004289};
4290
4291struct mlx5_ifc_qp_2err_in_bits {
4292 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004293 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004294
Matan Barakb4ff3a32016-02-09 14:57:42 +02004295 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004296 u8 op_mod[0x10];
4297
Matan Barakb4ff3a32016-02-09 14:57:42 +02004298 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004299 u8 qpn[0x18];
4300
Matan Barakb4ff3a32016-02-09 14:57:42 +02004301 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004302};
4303
4304struct mlx5_ifc_page_fault_resume_out_bits {
4305 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004306 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004307
4308 u8 syndrome[0x20];
4309
Matan Barakb4ff3a32016-02-09 14:57:42 +02004310 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004311};
4312
4313struct mlx5_ifc_page_fault_resume_in_bits {
4314 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004315 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004316
Matan Barakb4ff3a32016-02-09 14:57:42 +02004317 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004318 u8 op_mod[0x10];
4319
4320 u8 error[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004321 u8 reserved_at_41[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004322 u8 rdma[0x1];
4323 u8 read_write[0x1];
4324 u8 req_res[0x1];
4325 u8 qpn[0x18];
4326
Matan Barakb4ff3a32016-02-09 14:57:42 +02004327 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004328};
4329
4330struct mlx5_ifc_nop_out_bits {
4331 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004332 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004333
4334 u8 syndrome[0x20];
4335
Matan Barakb4ff3a32016-02-09 14:57:42 +02004336 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004337};
4338
4339struct mlx5_ifc_nop_in_bits {
4340 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004341 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004342
Matan Barakb4ff3a32016-02-09 14:57:42 +02004343 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004344 u8 op_mod[0x10];
4345
Matan Barakb4ff3a32016-02-09 14:57:42 +02004346 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004347};
4348
4349struct mlx5_ifc_modify_vport_state_out_bits {
4350 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004351 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004352
4353 u8 syndrome[0x20];
4354
Matan Barakb4ff3a32016-02-09 14:57:42 +02004355 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004356};
4357
4358struct mlx5_ifc_modify_vport_state_in_bits {
4359 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004360 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004361
Matan Barakb4ff3a32016-02-09 14:57:42 +02004362 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004363 u8 op_mod[0x10];
4364
4365 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004366 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004367 u8 vport_number[0x10];
4368
Matan Barakb4ff3a32016-02-09 14:57:42 +02004369 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004370 u8 admin_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004371 u8 reserved_at_7c[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004372};
4373
4374struct mlx5_ifc_modify_tis_out_bits {
4375 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004376 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004377
4378 u8 syndrome[0x20];
4379
Matan Barakb4ff3a32016-02-09 14:57:42 +02004380 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004381};
4382
majd@mellanox.com75850d02016-01-14 19:13:06 +02004383struct mlx5_ifc_modify_tis_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004384 u8 reserved_at_0[0x20];
majd@mellanox.com75850d02016-01-14 19:13:06 +02004385
Matan Barakb4ff3a32016-02-09 14:57:42 +02004386 u8 reserved_at_20[0x1f];
majd@mellanox.com75850d02016-01-14 19:13:06 +02004387 u8 prio[0x1];
4388};
4389
Saeed Mahameede2816822015-05-28 22:28:40 +03004390struct mlx5_ifc_modify_tis_in_bits {
4391 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004392 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004393
Matan Barakb4ff3a32016-02-09 14:57:42 +02004394 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004395 u8 op_mod[0x10];
4396
Matan Barakb4ff3a32016-02-09 14:57:42 +02004397 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004398 u8 tisn[0x18];
4399
Matan Barakb4ff3a32016-02-09 14:57:42 +02004400 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004401
majd@mellanox.com75850d02016-01-14 19:13:06 +02004402 struct mlx5_ifc_modify_tis_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004403
Matan Barakb4ff3a32016-02-09 14:57:42 +02004404 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004405
4406 struct mlx5_ifc_tisc_bits ctx;
4407};
4408
Achiad Shochatd9eea402015-08-04 14:05:42 +03004409struct mlx5_ifc_modify_tir_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004410 u8 reserved_at_0[0x20];
Achiad Shochatd9eea402015-08-04 14:05:42 +03004411
Matan Barakb4ff3a32016-02-09 14:57:42 +02004412 u8 reserved_at_20[0x1b];
Tariq Toukan66189962015-11-12 19:35:26 +02004413 u8 self_lb_en[0x1];
Tariq Toukanbdfc0282016-02-29 21:17:12 +02004414 u8 reserved_at_3c[0x1];
4415 u8 hash[0x1];
4416 u8 reserved_at_3e[0x1];
Achiad Shochatd9eea402015-08-04 14:05:42 +03004417 u8 lro[0x1];
4418};
4419
Saeed Mahameede2816822015-05-28 22:28:40 +03004420struct mlx5_ifc_modify_tir_out_bits {
4421 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004422 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004423
4424 u8 syndrome[0x20];
4425
Matan Barakb4ff3a32016-02-09 14:57:42 +02004426 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004427};
4428
4429struct mlx5_ifc_modify_tir_in_bits {
4430 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004431 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004432
Matan Barakb4ff3a32016-02-09 14:57:42 +02004433 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004434 u8 op_mod[0x10];
4435
Matan Barakb4ff3a32016-02-09 14:57:42 +02004436 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004437 u8 tirn[0x18];
4438
Matan Barakb4ff3a32016-02-09 14:57:42 +02004439 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004440
Achiad Shochatd9eea402015-08-04 14:05:42 +03004441 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004442
Matan Barakb4ff3a32016-02-09 14:57:42 +02004443 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004444
4445 struct mlx5_ifc_tirc_bits ctx;
4446};
4447
4448struct mlx5_ifc_modify_sq_out_bits {
4449 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004450 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004451
4452 u8 syndrome[0x20];
4453
Matan Barakb4ff3a32016-02-09 14:57:42 +02004454 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004455};
4456
4457struct mlx5_ifc_modify_sq_in_bits {
4458 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004459 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004460
Matan Barakb4ff3a32016-02-09 14:57:42 +02004461 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004462 u8 op_mod[0x10];
4463
4464 u8 sq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004465 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004466 u8 sqn[0x18];
4467
Matan Barakb4ff3a32016-02-09 14:57:42 +02004468 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004469
4470 u8 modify_bitmask[0x40];
4471
Matan Barakb4ff3a32016-02-09 14:57:42 +02004472 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004473
4474 struct mlx5_ifc_sqc_bits ctx;
4475};
4476
4477struct mlx5_ifc_modify_rqt_out_bits {
4478 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004479 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004480
4481 u8 syndrome[0x20];
4482
Matan Barakb4ff3a32016-02-09 14:57:42 +02004483 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004484};
4485
Achiad Shochat5c503682015-08-04 14:05:43 +03004486struct mlx5_ifc_rqt_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004487 u8 reserved_at_0[0x20];
Achiad Shochat5c503682015-08-04 14:05:43 +03004488
Matan Barakb4ff3a32016-02-09 14:57:42 +02004489 u8 reserved_at_20[0x1f];
Achiad Shochat5c503682015-08-04 14:05:43 +03004490 u8 rqn_list[0x1];
4491};
4492
Saeed Mahameede2816822015-05-28 22:28:40 +03004493struct mlx5_ifc_modify_rqt_in_bits {
4494 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004495 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004496
Matan Barakb4ff3a32016-02-09 14:57:42 +02004497 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004498 u8 op_mod[0x10];
4499
Matan Barakb4ff3a32016-02-09 14:57:42 +02004500 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004501 u8 rqtn[0x18];
4502
Matan Barakb4ff3a32016-02-09 14:57:42 +02004503 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004504
Achiad Shochat5c503682015-08-04 14:05:43 +03004505 struct mlx5_ifc_rqt_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004506
Matan Barakb4ff3a32016-02-09 14:57:42 +02004507 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004508
4509 struct mlx5_ifc_rqtc_bits ctx;
4510};
4511
4512struct mlx5_ifc_modify_rq_out_bits {
4513 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004514 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004515
4516 u8 syndrome[0x20];
4517
Matan Barakb4ff3a32016-02-09 14:57:42 +02004518 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004519};
4520
4521struct mlx5_ifc_modify_rq_in_bits {
4522 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004523 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004524
Matan Barakb4ff3a32016-02-09 14:57:42 +02004525 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004526 u8 op_mod[0x10];
4527
4528 u8 rq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004529 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004530 u8 rqn[0x18];
4531
Matan Barakb4ff3a32016-02-09 14:57:42 +02004532 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004533
4534 u8 modify_bitmask[0x40];
4535
Matan Barakb4ff3a32016-02-09 14:57:42 +02004536 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004537
4538 struct mlx5_ifc_rqc_bits ctx;
4539};
4540
4541struct mlx5_ifc_modify_rmp_out_bits {
4542 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004543 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004544
4545 u8 syndrome[0x20];
4546
Matan Barakb4ff3a32016-02-09 14:57:42 +02004547 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004548};
4549
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03004550struct mlx5_ifc_rmp_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004551 u8 reserved_at_0[0x20];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03004552
Matan Barakb4ff3a32016-02-09 14:57:42 +02004553 u8 reserved_at_20[0x1f];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03004554 u8 lwm[0x1];
4555};
4556
Saeed Mahameede2816822015-05-28 22:28:40 +03004557struct mlx5_ifc_modify_rmp_in_bits {
4558 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004559 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004560
Matan Barakb4ff3a32016-02-09 14:57:42 +02004561 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004562 u8 op_mod[0x10];
4563
4564 u8 rmp_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004565 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004566 u8 rmpn[0x18];
4567
Matan Barakb4ff3a32016-02-09 14:57:42 +02004568 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004569
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03004570 struct mlx5_ifc_rmp_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004571
Matan Barakb4ff3a32016-02-09 14:57:42 +02004572 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004573
4574 struct mlx5_ifc_rmpc_bits ctx;
4575};
4576
4577struct mlx5_ifc_modify_nic_vport_context_out_bits {
4578 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004579 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004580
4581 u8 syndrome[0x20];
4582
Matan Barakb4ff3a32016-02-09 14:57:42 +02004583 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004584};
4585
4586struct mlx5_ifc_modify_nic_vport_field_select_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004587 u8 reserved_at_0[0x19];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02004588 u8 mtu[0x1];
4589 u8 change_event[0x1];
4590 u8 promisc[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03004591 u8 permanent_address[0x1];
4592 u8 addresses_list[0x1];
4593 u8 roce_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004594 u8 reserved_at_1f[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03004595};
4596
4597struct mlx5_ifc_modify_nic_vport_context_in_bits {
4598 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004599 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004600
Matan Barakb4ff3a32016-02-09 14:57:42 +02004601 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004602 u8 op_mod[0x10];
4603
4604 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004605 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004606 u8 vport_number[0x10];
4607
4608 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
4609
Matan Barakb4ff3a32016-02-09 14:57:42 +02004610 u8 reserved_at_80[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03004611
4612 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
4613};
4614
4615struct mlx5_ifc_modify_hca_vport_context_out_bits {
4616 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004617 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004618
4619 u8 syndrome[0x20];
4620
Matan Barakb4ff3a32016-02-09 14:57:42 +02004621 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004622};
4623
4624struct mlx5_ifc_modify_hca_vport_context_in_bits {
4625 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004626 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004627
Matan Barakb4ff3a32016-02-09 14:57:42 +02004628 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004629 u8 op_mod[0x10];
4630
4631 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004632 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004633 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004634 u8 vport_number[0x10];
4635
Matan Barakb4ff3a32016-02-09 14:57:42 +02004636 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004637
4638 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4639};
4640
4641struct mlx5_ifc_modify_cq_out_bits {
4642 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004643 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004644
4645 u8 syndrome[0x20];
4646
Matan Barakb4ff3a32016-02-09 14:57:42 +02004647 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004648};
4649
4650enum {
4651 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
4652 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
4653};
4654
4655struct mlx5_ifc_modify_cq_in_bits {
4656 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004657 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004658
Matan Barakb4ff3a32016-02-09 14:57:42 +02004659 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004660 u8 op_mod[0x10];
4661
Matan Barakb4ff3a32016-02-09 14:57:42 +02004662 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004663 u8 cqn[0x18];
4664
4665 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
4666
4667 struct mlx5_ifc_cqc_bits cq_context;
4668
Matan Barakb4ff3a32016-02-09 14:57:42 +02004669 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004670
4671 u8 pas[0][0x40];
4672};
4673
4674struct mlx5_ifc_modify_cong_status_out_bits {
4675 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004676 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004677
4678 u8 syndrome[0x20];
4679
Matan Barakb4ff3a32016-02-09 14:57:42 +02004680 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004681};
4682
4683struct mlx5_ifc_modify_cong_status_in_bits {
4684 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004685 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004686
Matan Barakb4ff3a32016-02-09 14:57:42 +02004687 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004688 u8 op_mod[0x10];
4689
Matan Barakb4ff3a32016-02-09 14:57:42 +02004690 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004691 u8 priority[0x4];
4692 u8 cong_protocol[0x4];
4693
4694 u8 enable[0x1];
4695 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004696 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03004697};
4698
4699struct mlx5_ifc_modify_cong_params_out_bits {
4700 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004701 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004702
4703 u8 syndrome[0x20];
4704
Matan Barakb4ff3a32016-02-09 14:57:42 +02004705 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004706};
4707
4708struct mlx5_ifc_modify_cong_params_in_bits {
4709 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004710 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004711
Matan Barakb4ff3a32016-02-09 14:57:42 +02004712 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004713 u8 op_mod[0x10];
4714
Matan Barakb4ff3a32016-02-09 14:57:42 +02004715 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03004716 u8 cong_protocol[0x4];
4717
4718 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
4719
Matan Barakb4ff3a32016-02-09 14:57:42 +02004720 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004721
4722 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
4723};
4724
4725struct mlx5_ifc_manage_pages_out_bits {
4726 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004727 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004728
4729 u8 syndrome[0x20];
4730
4731 u8 output_num_entries[0x20];
4732
Matan Barakb4ff3a32016-02-09 14:57:42 +02004733 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004734
4735 u8 pas[0][0x40];
4736};
4737
4738enum {
4739 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
4740 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
4741 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
4742};
4743
4744struct mlx5_ifc_manage_pages_in_bits {
4745 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004746 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004747
Matan Barakb4ff3a32016-02-09 14:57:42 +02004748 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004749 u8 op_mod[0x10];
4750
Matan Barakb4ff3a32016-02-09 14:57:42 +02004751 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004752 u8 function_id[0x10];
4753
4754 u8 input_num_entries[0x20];
4755
4756 u8 pas[0][0x40];
4757};
4758
4759struct mlx5_ifc_mad_ifc_out_bits {
4760 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004761 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004762
4763 u8 syndrome[0x20];
4764
Matan Barakb4ff3a32016-02-09 14:57:42 +02004765 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004766
4767 u8 response_mad_packet[256][0x8];
4768};
4769
4770struct mlx5_ifc_mad_ifc_in_bits {
4771 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004772 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004773
Matan Barakb4ff3a32016-02-09 14:57:42 +02004774 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004775 u8 op_mod[0x10];
4776
4777 u8 remote_lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004778 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004779 u8 port[0x8];
4780
Matan Barakb4ff3a32016-02-09 14:57:42 +02004781 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004782
4783 u8 mad[256][0x8];
4784};
4785
4786struct mlx5_ifc_init_hca_out_bits {
4787 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004788 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004789
4790 u8 syndrome[0x20];
4791
Matan Barakb4ff3a32016-02-09 14:57:42 +02004792 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004793};
4794
4795struct mlx5_ifc_init_hca_in_bits {
4796 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004797 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004798
Matan Barakb4ff3a32016-02-09 14:57:42 +02004799 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004800 u8 op_mod[0x10];
4801
Matan Barakb4ff3a32016-02-09 14:57:42 +02004802 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004803};
4804
4805struct mlx5_ifc_init2rtr_qp_out_bits {
4806 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004807 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004808
4809 u8 syndrome[0x20];
4810
Matan Barakb4ff3a32016-02-09 14:57:42 +02004811 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004812};
4813
4814struct mlx5_ifc_init2rtr_qp_in_bits {
4815 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004816 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004817
Matan Barakb4ff3a32016-02-09 14:57:42 +02004818 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004819 u8 op_mod[0x10];
4820
Matan Barakb4ff3a32016-02-09 14:57:42 +02004821 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004822 u8 qpn[0x18];
4823
Matan Barakb4ff3a32016-02-09 14:57:42 +02004824 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004825
4826 u8 opt_param_mask[0x20];
4827
Matan Barakb4ff3a32016-02-09 14:57:42 +02004828 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004829
4830 struct mlx5_ifc_qpc_bits qpc;
4831
Matan Barakb4ff3a32016-02-09 14:57:42 +02004832 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004833};
4834
4835struct mlx5_ifc_init2init_qp_out_bits {
4836 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004837 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004838
4839 u8 syndrome[0x20];
4840
Matan Barakb4ff3a32016-02-09 14:57:42 +02004841 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004842};
4843
4844struct mlx5_ifc_init2init_qp_in_bits {
4845 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004846 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004847
Matan Barakb4ff3a32016-02-09 14:57:42 +02004848 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004849 u8 op_mod[0x10];
4850
Matan Barakb4ff3a32016-02-09 14:57:42 +02004851 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004852 u8 qpn[0x18];
4853
Matan Barakb4ff3a32016-02-09 14:57:42 +02004854 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004855
4856 u8 opt_param_mask[0x20];
4857
Matan Barakb4ff3a32016-02-09 14:57:42 +02004858 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004859
4860 struct mlx5_ifc_qpc_bits qpc;
4861
Matan Barakb4ff3a32016-02-09 14:57:42 +02004862 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004863};
4864
4865struct mlx5_ifc_get_dropped_packet_log_out_bits {
4866 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004867 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004868
4869 u8 syndrome[0x20];
4870
Matan Barakb4ff3a32016-02-09 14:57:42 +02004871 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004872
4873 u8 packet_headers_log[128][0x8];
4874
4875 u8 packet_syndrome[64][0x8];
4876};
4877
4878struct mlx5_ifc_get_dropped_packet_log_in_bits {
4879 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004880 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004881
Matan Barakb4ff3a32016-02-09 14:57:42 +02004882 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004883 u8 op_mod[0x10];
4884
Matan Barakb4ff3a32016-02-09 14:57:42 +02004885 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004886};
4887
4888struct mlx5_ifc_gen_eqe_in_bits {
4889 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004890 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004891
Matan Barakb4ff3a32016-02-09 14:57:42 +02004892 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004893 u8 op_mod[0x10];
4894
Matan Barakb4ff3a32016-02-09 14:57:42 +02004895 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004896 u8 eq_number[0x8];
4897
Matan Barakb4ff3a32016-02-09 14:57:42 +02004898 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004899
4900 u8 eqe[64][0x8];
4901};
4902
4903struct mlx5_ifc_gen_eq_out_bits {
4904 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004905 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004906
4907 u8 syndrome[0x20];
4908
Matan Barakb4ff3a32016-02-09 14:57:42 +02004909 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004910};
4911
4912struct mlx5_ifc_enable_hca_out_bits {
4913 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004914 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004915
4916 u8 syndrome[0x20];
4917
Matan Barakb4ff3a32016-02-09 14:57:42 +02004918 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004919};
4920
4921struct mlx5_ifc_enable_hca_in_bits {
4922 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004923 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004924
Matan Barakb4ff3a32016-02-09 14:57:42 +02004925 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004926 u8 op_mod[0x10];
4927
Matan Barakb4ff3a32016-02-09 14:57:42 +02004928 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004929 u8 function_id[0x10];
4930
Matan Barakb4ff3a32016-02-09 14:57:42 +02004931 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004932};
4933
4934struct mlx5_ifc_drain_dct_out_bits {
4935 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004936 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004937
4938 u8 syndrome[0x20];
4939
Matan Barakb4ff3a32016-02-09 14:57:42 +02004940 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004941};
4942
4943struct mlx5_ifc_drain_dct_in_bits {
4944 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004945 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004946
Matan Barakb4ff3a32016-02-09 14:57:42 +02004947 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004948 u8 op_mod[0x10];
4949
Matan Barakb4ff3a32016-02-09 14:57:42 +02004950 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004951 u8 dctn[0x18];
4952
Matan Barakb4ff3a32016-02-09 14:57:42 +02004953 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004954};
4955
4956struct mlx5_ifc_disable_hca_out_bits {
4957 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004958 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004959
4960 u8 syndrome[0x20];
4961
Matan Barakb4ff3a32016-02-09 14:57:42 +02004962 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004963};
4964
4965struct mlx5_ifc_disable_hca_in_bits {
4966 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004967 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004968
Matan Barakb4ff3a32016-02-09 14:57:42 +02004969 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004970 u8 op_mod[0x10];
4971
Matan Barakb4ff3a32016-02-09 14:57:42 +02004972 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004973 u8 function_id[0x10];
4974
Matan Barakb4ff3a32016-02-09 14:57:42 +02004975 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004976};
4977
4978struct mlx5_ifc_detach_from_mcg_out_bits {
4979 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004980 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004981
4982 u8 syndrome[0x20];
4983
Matan Barakb4ff3a32016-02-09 14:57:42 +02004984 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004985};
4986
4987struct mlx5_ifc_detach_from_mcg_in_bits {
4988 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004989 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004990
Matan Barakb4ff3a32016-02-09 14:57:42 +02004991 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004992 u8 op_mod[0x10];
4993
Matan Barakb4ff3a32016-02-09 14:57:42 +02004994 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004995 u8 qpn[0x18];
4996
Matan Barakb4ff3a32016-02-09 14:57:42 +02004997 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004998
4999 u8 multicast_gid[16][0x8];
5000};
5001
5002struct mlx5_ifc_destroy_xrc_srq_out_bits {
5003 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005004 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005005
5006 u8 syndrome[0x20];
5007
Matan Barakb4ff3a32016-02-09 14:57:42 +02005008 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005009};
5010
5011struct mlx5_ifc_destroy_xrc_srq_in_bits {
5012 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005013 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005014
Matan Barakb4ff3a32016-02-09 14:57:42 +02005015 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005016 u8 op_mod[0x10];
5017
Matan Barakb4ff3a32016-02-09 14:57:42 +02005018 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005019 u8 xrc_srqn[0x18];
5020
Matan Barakb4ff3a32016-02-09 14:57:42 +02005021 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005022};
5023
5024struct mlx5_ifc_destroy_tis_out_bits {
5025 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005026 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005027
5028 u8 syndrome[0x20];
5029
Matan Barakb4ff3a32016-02-09 14:57:42 +02005030 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005031};
5032
5033struct mlx5_ifc_destroy_tis_in_bits {
5034 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005035 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005036
Matan Barakb4ff3a32016-02-09 14:57:42 +02005037 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005038 u8 op_mod[0x10];
5039
Matan Barakb4ff3a32016-02-09 14:57:42 +02005040 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005041 u8 tisn[0x18];
5042
Matan Barakb4ff3a32016-02-09 14:57:42 +02005043 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005044};
5045
5046struct mlx5_ifc_destroy_tir_out_bits {
5047 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005048 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005049
5050 u8 syndrome[0x20];
5051
Matan Barakb4ff3a32016-02-09 14:57:42 +02005052 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005053};
5054
5055struct mlx5_ifc_destroy_tir_in_bits {
5056 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005057 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005058
Matan Barakb4ff3a32016-02-09 14:57:42 +02005059 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005060 u8 op_mod[0x10];
5061
Matan Barakb4ff3a32016-02-09 14:57:42 +02005062 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005063 u8 tirn[0x18];
5064
Matan Barakb4ff3a32016-02-09 14:57:42 +02005065 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005066};
5067
5068struct mlx5_ifc_destroy_srq_out_bits {
5069 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005070 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005071
5072 u8 syndrome[0x20];
5073
Matan Barakb4ff3a32016-02-09 14:57:42 +02005074 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005075};
5076
5077struct mlx5_ifc_destroy_srq_in_bits {
5078 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005079 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005080
Matan Barakb4ff3a32016-02-09 14:57:42 +02005081 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005082 u8 op_mod[0x10];
5083
Matan Barakb4ff3a32016-02-09 14:57:42 +02005084 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005085 u8 srqn[0x18];
5086
Matan Barakb4ff3a32016-02-09 14:57:42 +02005087 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005088};
5089
5090struct mlx5_ifc_destroy_sq_out_bits {
5091 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005092 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005093
5094 u8 syndrome[0x20];
5095
Matan Barakb4ff3a32016-02-09 14:57:42 +02005096 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005097};
5098
5099struct mlx5_ifc_destroy_sq_in_bits {
5100 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005101 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005102
Matan Barakb4ff3a32016-02-09 14:57:42 +02005103 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005104 u8 op_mod[0x10];
5105
Matan Barakb4ff3a32016-02-09 14:57:42 +02005106 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005107 u8 sqn[0x18];
5108
Matan Barakb4ff3a32016-02-09 14:57:42 +02005109 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005110};
5111
5112struct mlx5_ifc_destroy_rqt_out_bits {
5113 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005114 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005115
5116 u8 syndrome[0x20];
5117
Matan Barakb4ff3a32016-02-09 14:57:42 +02005118 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005119};
5120
5121struct mlx5_ifc_destroy_rqt_in_bits {
5122 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005123 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005124
Matan Barakb4ff3a32016-02-09 14:57:42 +02005125 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005126 u8 op_mod[0x10];
5127
Matan Barakb4ff3a32016-02-09 14:57:42 +02005128 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005129 u8 rqtn[0x18];
5130
Matan Barakb4ff3a32016-02-09 14:57:42 +02005131 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005132};
5133
5134struct mlx5_ifc_destroy_rq_out_bits {
5135 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005136 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005137
5138 u8 syndrome[0x20];
5139
Matan Barakb4ff3a32016-02-09 14:57:42 +02005140 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005141};
5142
5143struct mlx5_ifc_destroy_rq_in_bits {
5144 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005145 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005146
Matan Barakb4ff3a32016-02-09 14:57:42 +02005147 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005148 u8 op_mod[0x10];
5149
Matan Barakb4ff3a32016-02-09 14:57:42 +02005150 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005151 u8 rqn[0x18];
5152
Matan Barakb4ff3a32016-02-09 14:57:42 +02005153 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005154};
5155
5156struct mlx5_ifc_destroy_rmp_out_bits {
5157 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005158 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005159
5160 u8 syndrome[0x20];
5161
Matan Barakb4ff3a32016-02-09 14:57:42 +02005162 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005163};
5164
5165struct mlx5_ifc_destroy_rmp_in_bits {
5166 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005167 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005168
Matan Barakb4ff3a32016-02-09 14:57:42 +02005169 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005170 u8 op_mod[0x10];
5171
Matan Barakb4ff3a32016-02-09 14:57:42 +02005172 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005173 u8 rmpn[0x18];
5174
Matan Barakb4ff3a32016-02-09 14:57:42 +02005175 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005176};
5177
5178struct mlx5_ifc_destroy_qp_out_bits {
5179 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005180 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005181
5182 u8 syndrome[0x20];
5183
Matan Barakb4ff3a32016-02-09 14:57:42 +02005184 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005185};
5186
5187struct mlx5_ifc_destroy_qp_in_bits {
5188 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005189 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005190
Matan Barakb4ff3a32016-02-09 14:57:42 +02005191 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005192 u8 op_mod[0x10];
5193
Matan Barakb4ff3a32016-02-09 14:57:42 +02005194 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005195 u8 qpn[0x18];
5196
Matan Barakb4ff3a32016-02-09 14:57:42 +02005197 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005198};
5199
5200struct mlx5_ifc_destroy_psv_out_bits {
5201 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005202 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005203
5204 u8 syndrome[0x20];
5205
Matan Barakb4ff3a32016-02-09 14:57:42 +02005206 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005207};
5208
5209struct mlx5_ifc_destroy_psv_in_bits {
5210 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005211 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005212
Matan Barakb4ff3a32016-02-09 14:57:42 +02005213 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005214 u8 op_mod[0x10];
5215
Matan Barakb4ff3a32016-02-09 14:57:42 +02005216 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005217 u8 psvn[0x18];
5218
Matan Barakb4ff3a32016-02-09 14:57:42 +02005219 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005220};
5221
5222struct mlx5_ifc_destroy_mkey_out_bits {
5223 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005224 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005225
5226 u8 syndrome[0x20];
5227
Matan Barakb4ff3a32016-02-09 14:57:42 +02005228 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005229};
5230
5231struct mlx5_ifc_destroy_mkey_in_bits {
5232 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005233 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005234
Matan Barakb4ff3a32016-02-09 14:57:42 +02005235 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005236 u8 op_mod[0x10];
5237
Matan Barakb4ff3a32016-02-09 14:57:42 +02005238 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005239 u8 mkey_index[0x18];
5240
Matan Barakb4ff3a32016-02-09 14:57:42 +02005241 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005242};
5243
5244struct mlx5_ifc_destroy_flow_table_out_bits {
5245 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005246 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005247
5248 u8 syndrome[0x20];
5249
Matan Barakb4ff3a32016-02-09 14:57:42 +02005250 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005251};
5252
5253struct mlx5_ifc_destroy_flow_table_in_bits {
5254 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005255 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005256
Matan Barakb4ff3a32016-02-09 14:57:42 +02005257 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005258 u8 op_mod[0x10];
5259
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005260 u8 other_vport[0x1];
5261 u8 reserved_at_41[0xf];
5262 u8 vport_number[0x10];
5263
5264 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005265
5266 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005267 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005268
Matan Barakb4ff3a32016-02-09 14:57:42 +02005269 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005270 u8 table_id[0x18];
5271
Matan Barakb4ff3a32016-02-09 14:57:42 +02005272 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03005273};
5274
5275struct mlx5_ifc_destroy_flow_group_out_bits {
5276 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005277 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005278
5279 u8 syndrome[0x20];
5280
Matan Barakb4ff3a32016-02-09 14:57:42 +02005281 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005282};
5283
5284struct mlx5_ifc_destroy_flow_group_in_bits {
5285 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005286 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005287
Matan Barakb4ff3a32016-02-09 14:57:42 +02005288 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005289 u8 op_mod[0x10];
5290
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005291 u8 other_vport[0x1];
5292 u8 reserved_at_41[0xf];
5293 u8 vport_number[0x10];
5294
5295 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005296
5297 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005298 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005299
Matan Barakb4ff3a32016-02-09 14:57:42 +02005300 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005301 u8 table_id[0x18];
5302
5303 u8 group_id[0x20];
5304
Matan Barakb4ff3a32016-02-09 14:57:42 +02005305 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03005306};
5307
5308struct mlx5_ifc_destroy_eq_out_bits {
5309 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005310 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005311
5312 u8 syndrome[0x20];
5313
Matan Barakb4ff3a32016-02-09 14:57:42 +02005314 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005315};
5316
5317struct mlx5_ifc_destroy_eq_in_bits {
5318 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005319 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005320
Matan Barakb4ff3a32016-02-09 14:57:42 +02005321 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005322 u8 op_mod[0x10];
5323
Matan Barakb4ff3a32016-02-09 14:57:42 +02005324 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005325 u8 eq_number[0x8];
5326
Matan Barakb4ff3a32016-02-09 14:57:42 +02005327 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005328};
5329
5330struct mlx5_ifc_destroy_dct_out_bits {
5331 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005332 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005333
5334 u8 syndrome[0x20];
5335
Matan Barakb4ff3a32016-02-09 14:57:42 +02005336 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005337};
5338
5339struct mlx5_ifc_destroy_dct_in_bits {
5340 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005341 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005342
Matan Barakb4ff3a32016-02-09 14:57:42 +02005343 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005344 u8 op_mod[0x10];
5345
Matan Barakb4ff3a32016-02-09 14:57:42 +02005346 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005347 u8 dctn[0x18];
5348
Matan Barakb4ff3a32016-02-09 14:57:42 +02005349 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005350};
5351
5352struct mlx5_ifc_destroy_cq_out_bits {
5353 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005354 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005355
5356 u8 syndrome[0x20];
5357
Matan Barakb4ff3a32016-02-09 14:57:42 +02005358 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005359};
5360
5361struct mlx5_ifc_destroy_cq_in_bits {
5362 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005363 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005364
Matan Barakb4ff3a32016-02-09 14:57:42 +02005365 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005366 u8 op_mod[0x10];
5367
Matan Barakb4ff3a32016-02-09 14:57:42 +02005368 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005369 u8 cqn[0x18];
5370
Matan Barakb4ff3a32016-02-09 14:57:42 +02005371 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005372};
5373
5374struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
5375 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005376 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005377
5378 u8 syndrome[0x20];
5379
Matan Barakb4ff3a32016-02-09 14:57:42 +02005380 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005381};
5382
5383struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
5384 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005385 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005386
Matan Barakb4ff3a32016-02-09 14:57:42 +02005387 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005388 u8 op_mod[0x10];
5389
Matan Barakb4ff3a32016-02-09 14:57:42 +02005390 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005391
Matan Barakb4ff3a32016-02-09 14:57:42 +02005392 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005393 u8 vxlan_udp_port[0x10];
5394};
5395
5396struct mlx5_ifc_delete_l2_table_entry_out_bits {
5397 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005398 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005399
5400 u8 syndrome[0x20];
5401
Matan Barakb4ff3a32016-02-09 14:57:42 +02005402 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005403};
5404
5405struct mlx5_ifc_delete_l2_table_entry_in_bits {
5406 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005407 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005408
Matan Barakb4ff3a32016-02-09 14:57:42 +02005409 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005410 u8 op_mod[0x10];
5411
Matan Barakb4ff3a32016-02-09 14:57:42 +02005412 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03005413
Matan Barakb4ff3a32016-02-09 14:57:42 +02005414 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005415 u8 table_index[0x18];
5416
Matan Barakb4ff3a32016-02-09 14:57:42 +02005417 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03005418};
5419
5420struct mlx5_ifc_delete_fte_out_bits {
5421 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005422 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005423
5424 u8 syndrome[0x20];
5425
Matan Barakb4ff3a32016-02-09 14:57:42 +02005426 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005427};
5428
5429struct mlx5_ifc_delete_fte_in_bits {
5430 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005431 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005432
Matan Barakb4ff3a32016-02-09 14:57:42 +02005433 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005434 u8 op_mod[0x10];
5435
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005436 u8 other_vport[0x1];
5437 u8 reserved_at_41[0xf];
5438 u8 vport_number[0x10];
5439
5440 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005441
5442 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005443 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005444
Matan Barakb4ff3a32016-02-09 14:57:42 +02005445 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005446 u8 table_id[0x18];
5447
Matan Barakb4ff3a32016-02-09 14:57:42 +02005448 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005449
5450 u8 flow_index[0x20];
5451
Matan Barakb4ff3a32016-02-09 14:57:42 +02005452 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005453};
5454
5455struct mlx5_ifc_dealloc_xrcd_out_bits {
5456 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005457 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005458
5459 u8 syndrome[0x20];
5460
Matan Barakb4ff3a32016-02-09 14:57:42 +02005461 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005462};
5463
5464struct mlx5_ifc_dealloc_xrcd_in_bits {
5465 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005466 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005467
Matan Barakb4ff3a32016-02-09 14:57:42 +02005468 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005469 u8 op_mod[0x10];
5470
Matan Barakb4ff3a32016-02-09 14:57:42 +02005471 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005472 u8 xrcd[0x18];
5473
Matan Barakb4ff3a32016-02-09 14:57:42 +02005474 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005475};
5476
5477struct mlx5_ifc_dealloc_uar_out_bits {
5478 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005479 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005480
5481 u8 syndrome[0x20];
5482
Matan Barakb4ff3a32016-02-09 14:57:42 +02005483 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005484};
5485
5486struct mlx5_ifc_dealloc_uar_in_bits {
5487 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005488 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005489
Matan Barakb4ff3a32016-02-09 14:57:42 +02005490 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005491 u8 op_mod[0x10];
5492
Matan Barakb4ff3a32016-02-09 14:57:42 +02005493 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005494 u8 uar[0x18];
5495
Matan Barakb4ff3a32016-02-09 14:57:42 +02005496 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005497};
5498
5499struct mlx5_ifc_dealloc_transport_domain_out_bits {
5500 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005501 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005502
5503 u8 syndrome[0x20];
5504
Matan Barakb4ff3a32016-02-09 14:57:42 +02005505 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005506};
5507
5508struct mlx5_ifc_dealloc_transport_domain_in_bits {
5509 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005510 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005511
Matan Barakb4ff3a32016-02-09 14:57:42 +02005512 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005513 u8 op_mod[0x10];
5514
Matan Barakb4ff3a32016-02-09 14:57:42 +02005515 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005516 u8 transport_domain[0x18];
5517
Matan Barakb4ff3a32016-02-09 14:57:42 +02005518 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005519};
5520
5521struct mlx5_ifc_dealloc_q_counter_out_bits {
5522 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005523 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005524
5525 u8 syndrome[0x20];
5526
Matan Barakb4ff3a32016-02-09 14:57:42 +02005527 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005528};
5529
5530struct mlx5_ifc_dealloc_q_counter_in_bits {
5531 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005532 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005533
Matan Barakb4ff3a32016-02-09 14:57:42 +02005534 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005535 u8 op_mod[0x10];
5536
Matan Barakb4ff3a32016-02-09 14:57:42 +02005537 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005538 u8 counter_set_id[0x8];
5539
Matan Barakb4ff3a32016-02-09 14:57:42 +02005540 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005541};
5542
5543struct mlx5_ifc_dealloc_pd_out_bits {
5544 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005545 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005546
5547 u8 syndrome[0x20];
5548
Matan Barakb4ff3a32016-02-09 14:57:42 +02005549 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005550};
5551
5552struct mlx5_ifc_dealloc_pd_in_bits {
5553 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005554 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005555
Matan Barakb4ff3a32016-02-09 14:57:42 +02005556 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005557 u8 op_mod[0x10];
5558
Matan Barakb4ff3a32016-02-09 14:57:42 +02005559 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005560 u8 pd[0x18];
5561
Matan Barakb4ff3a32016-02-09 14:57:42 +02005562 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005563};
5564
Amir Vadai9dc0b282016-05-13 12:55:39 +00005565struct mlx5_ifc_dealloc_flow_counter_out_bits {
5566 u8 status[0x8];
5567 u8 reserved_at_8[0x18];
5568
5569 u8 syndrome[0x20];
5570
5571 u8 reserved_at_40[0x40];
5572};
5573
5574struct mlx5_ifc_dealloc_flow_counter_in_bits {
5575 u8 opcode[0x10];
5576 u8 reserved_at_10[0x10];
5577
5578 u8 reserved_at_20[0x10];
5579 u8 op_mod[0x10];
5580
5581 u8 reserved_at_40[0x10];
5582 u8 flow_counter_id[0x10];
5583
5584 u8 reserved_at_60[0x20];
5585};
5586
Saeed Mahameede2816822015-05-28 22:28:40 +03005587struct mlx5_ifc_create_xrc_srq_out_bits {
5588 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005589 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005590
5591 u8 syndrome[0x20];
5592
Matan Barakb4ff3a32016-02-09 14:57:42 +02005593 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005594 u8 xrc_srqn[0x18];
5595
Matan Barakb4ff3a32016-02-09 14:57:42 +02005596 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005597};
5598
5599struct mlx5_ifc_create_xrc_srq_in_bits {
5600 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005601 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005602
Matan Barakb4ff3a32016-02-09 14:57:42 +02005603 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005604 u8 op_mod[0x10];
5605
Matan Barakb4ff3a32016-02-09 14:57:42 +02005606 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005607
5608 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
5609
Matan Barakb4ff3a32016-02-09 14:57:42 +02005610 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03005611
5612 u8 pas[0][0x40];
5613};
5614
5615struct mlx5_ifc_create_tis_out_bits {
5616 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005617 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005618
5619 u8 syndrome[0x20];
5620
Matan Barakb4ff3a32016-02-09 14:57:42 +02005621 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005622 u8 tisn[0x18];
5623
Matan Barakb4ff3a32016-02-09 14:57:42 +02005624 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005625};
5626
5627struct mlx5_ifc_create_tis_in_bits {
5628 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005629 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005630
Matan Barakb4ff3a32016-02-09 14:57:42 +02005631 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005632 u8 op_mod[0x10];
5633
Matan Barakb4ff3a32016-02-09 14:57:42 +02005634 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005635
5636 struct mlx5_ifc_tisc_bits ctx;
5637};
5638
5639struct mlx5_ifc_create_tir_out_bits {
5640 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005641 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005642
5643 u8 syndrome[0x20];
5644
Matan Barakb4ff3a32016-02-09 14:57:42 +02005645 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005646 u8 tirn[0x18];
5647
Matan Barakb4ff3a32016-02-09 14:57:42 +02005648 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005649};
5650
5651struct mlx5_ifc_create_tir_in_bits {
5652 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005653 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005654
Matan Barakb4ff3a32016-02-09 14:57:42 +02005655 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005656 u8 op_mod[0x10];
5657
Matan Barakb4ff3a32016-02-09 14:57:42 +02005658 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005659
5660 struct mlx5_ifc_tirc_bits ctx;
5661};
5662
5663struct mlx5_ifc_create_srq_out_bits {
5664 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005665 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005666
5667 u8 syndrome[0x20];
5668
Matan Barakb4ff3a32016-02-09 14:57:42 +02005669 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005670 u8 srqn[0x18];
5671
Matan Barakb4ff3a32016-02-09 14:57:42 +02005672 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005673};
5674
5675struct mlx5_ifc_create_srq_in_bits {
5676 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005677 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005678
Matan Barakb4ff3a32016-02-09 14:57:42 +02005679 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005680 u8 op_mod[0x10];
5681
Matan Barakb4ff3a32016-02-09 14:57:42 +02005682 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005683
5684 struct mlx5_ifc_srqc_bits srq_context_entry;
5685
Matan Barakb4ff3a32016-02-09 14:57:42 +02005686 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03005687
5688 u8 pas[0][0x40];
5689};
5690
5691struct mlx5_ifc_create_sq_out_bits {
5692 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005693 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005694
5695 u8 syndrome[0x20];
5696
Matan Barakb4ff3a32016-02-09 14:57:42 +02005697 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005698 u8 sqn[0x18];
5699
Matan Barakb4ff3a32016-02-09 14:57:42 +02005700 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005701};
5702
5703struct mlx5_ifc_create_sq_in_bits {
5704 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005705 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005706
Matan Barakb4ff3a32016-02-09 14:57:42 +02005707 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005708 u8 op_mod[0x10];
5709
Matan Barakb4ff3a32016-02-09 14:57:42 +02005710 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005711
5712 struct mlx5_ifc_sqc_bits ctx;
5713};
5714
5715struct mlx5_ifc_create_rqt_out_bits {
5716 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005717 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005718
5719 u8 syndrome[0x20];
5720
Matan Barakb4ff3a32016-02-09 14:57:42 +02005721 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005722 u8 rqtn[0x18];
5723
Matan Barakb4ff3a32016-02-09 14:57:42 +02005724 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005725};
5726
5727struct mlx5_ifc_create_rqt_in_bits {
5728 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005729 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005730
Matan Barakb4ff3a32016-02-09 14:57:42 +02005731 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005732 u8 op_mod[0x10];
5733
Matan Barakb4ff3a32016-02-09 14:57:42 +02005734 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005735
5736 struct mlx5_ifc_rqtc_bits rqt_context;
5737};
5738
5739struct mlx5_ifc_create_rq_out_bits {
5740 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005741 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005742
5743 u8 syndrome[0x20];
5744
Matan Barakb4ff3a32016-02-09 14:57:42 +02005745 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005746 u8 rqn[0x18];
5747
Matan Barakb4ff3a32016-02-09 14:57:42 +02005748 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005749};
5750
5751struct mlx5_ifc_create_rq_in_bits {
5752 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005753 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005754
Matan Barakb4ff3a32016-02-09 14:57:42 +02005755 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005756 u8 op_mod[0x10];
5757
Matan Barakb4ff3a32016-02-09 14:57:42 +02005758 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005759
5760 struct mlx5_ifc_rqc_bits ctx;
5761};
5762
5763struct mlx5_ifc_create_rmp_out_bits {
5764 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005765 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005766
5767 u8 syndrome[0x20];
5768
Matan Barakb4ff3a32016-02-09 14:57:42 +02005769 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005770 u8 rmpn[0x18];
5771
Matan Barakb4ff3a32016-02-09 14:57:42 +02005772 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005773};
5774
5775struct mlx5_ifc_create_rmp_in_bits {
5776 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005777 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005778
Matan Barakb4ff3a32016-02-09 14:57:42 +02005779 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005780 u8 op_mod[0x10];
5781
Matan Barakb4ff3a32016-02-09 14:57:42 +02005782 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005783
5784 struct mlx5_ifc_rmpc_bits ctx;
5785};
5786
5787struct mlx5_ifc_create_qp_out_bits {
5788 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005789 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005790
5791 u8 syndrome[0x20];
5792
Matan Barakb4ff3a32016-02-09 14:57:42 +02005793 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005794 u8 qpn[0x18];
5795
Matan Barakb4ff3a32016-02-09 14:57:42 +02005796 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005797};
5798
5799struct mlx5_ifc_create_qp_in_bits {
5800 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005801 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005802
Matan Barakb4ff3a32016-02-09 14:57:42 +02005803 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005804 u8 op_mod[0x10];
5805
Matan Barakb4ff3a32016-02-09 14:57:42 +02005806 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005807
5808 u8 opt_param_mask[0x20];
5809
Matan Barakb4ff3a32016-02-09 14:57:42 +02005810 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005811
5812 struct mlx5_ifc_qpc_bits qpc;
5813
Matan Barakb4ff3a32016-02-09 14:57:42 +02005814 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005815
5816 u8 pas[0][0x40];
5817};
5818
5819struct mlx5_ifc_create_psv_out_bits {
5820 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005821 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005822
5823 u8 syndrome[0x20];
5824
Matan Barakb4ff3a32016-02-09 14:57:42 +02005825 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005826
Matan Barakb4ff3a32016-02-09 14:57:42 +02005827 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005828 u8 psv0_index[0x18];
5829
Matan Barakb4ff3a32016-02-09 14:57:42 +02005830 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005831 u8 psv1_index[0x18];
5832
Matan Barakb4ff3a32016-02-09 14:57:42 +02005833 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005834 u8 psv2_index[0x18];
5835
Matan Barakb4ff3a32016-02-09 14:57:42 +02005836 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005837 u8 psv3_index[0x18];
5838};
5839
5840struct mlx5_ifc_create_psv_in_bits {
5841 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005842 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005843
Matan Barakb4ff3a32016-02-09 14:57:42 +02005844 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005845 u8 op_mod[0x10];
5846
5847 u8 num_psv[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005848 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005849 u8 pd[0x18];
5850
Matan Barakb4ff3a32016-02-09 14:57:42 +02005851 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005852};
5853
5854struct mlx5_ifc_create_mkey_out_bits {
5855 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005856 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005857
5858 u8 syndrome[0x20];
5859
Matan Barakb4ff3a32016-02-09 14:57:42 +02005860 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005861 u8 mkey_index[0x18];
5862
Matan Barakb4ff3a32016-02-09 14:57:42 +02005863 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005864};
5865
5866struct mlx5_ifc_create_mkey_in_bits {
5867 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005868 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005869
Matan Barakb4ff3a32016-02-09 14:57:42 +02005870 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005871 u8 op_mod[0x10];
5872
Matan Barakb4ff3a32016-02-09 14:57:42 +02005873 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005874
5875 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005876 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03005877
5878 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
5879
Matan Barakb4ff3a32016-02-09 14:57:42 +02005880 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005881
5882 u8 translations_octword_actual_size[0x20];
5883
Matan Barakb4ff3a32016-02-09 14:57:42 +02005884 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03005885
5886 u8 klm_pas_mtt[0][0x20];
5887};
5888
5889struct mlx5_ifc_create_flow_table_out_bits {
5890 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005891 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005892
5893 u8 syndrome[0x20];
5894
Matan Barakb4ff3a32016-02-09 14:57:42 +02005895 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005896 u8 table_id[0x18];
5897
Matan Barakb4ff3a32016-02-09 14:57:42 +02005898 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005899};
5900
5901struct mlx5_ifc_create_flow_table_in_bits {
5902 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005903 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005904
Matan Barakb4ff3a32016-02-09 14:57:42 +02005905 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005906 u8 op_mod[0x10];
5907
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005908 u8 other_vport[0x1];
5909 u8 reserved_at_41[0xf];
5910 u8 vport_number[0x10];
5911
5912 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005913
5914 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005915 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005916
Matan Barakb4ff3a32016-02-09 14:57:42 +02005917 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005918
Matan Barakb4ff3a32016-02-09 14:57:42 +02005919 u8 reserved_at_c0[0x4];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02005920 u8 table_miss_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005921 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005922 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005923 u8 log_size[0x8];
5924
Matan Barakb4ff3a32016-02-09 14:57:42 +02005925 u8 reserved_at_e0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02005926 u8 table_miss_id[0x18];
5927
Matan Barakb4ff3a32016-02-09 14:57:42 +02005928 u8 reserved_at_100[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03005929};
5930
5931struct mlx5_ifc_create_flow_group_out_bits {
5932 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005933 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005934
5935 u8 syndrome[0x20];
5936
Matan Barakb4ff3a32016-02-09 14:57:42 +02005937 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005938 u8 group_id[0x18];
5939
Matan Barakb4ff3a32016-02-09 14:57:42 +02005940 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005941};
5942
5943enum {
5944 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
5945 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
5946 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
5947};
5948
5949struct mlx5_ifc_create_flow_group_in_bits {
5950 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005951 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005952
Matan Barakb4ff3a32016-02-09 14:57:42 +02005953 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005954 u8 op_mod[0x10];
5955
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005956 u8 other_vport[0x1];
5957 u8 reserved_at_41[0xf];
5958 u8 vport_number[0x10];
5959
5960 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005961
5962 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005963 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005964
Matan Barakb4ff3a32016-02-09 14:57:42 +02005965 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005966 u8 table_id[0x18];
5967
Matan Barakb4ff3a32016-02-09 14:57:42 +02005968 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005969
5970 u8 start_flow_index[0x20];
5971
Matan Barakb4ff3a32016-02-09 14:57:42 +02005972 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005973
5974 u8 end_flow_index[0x20];
5975
Matan Barakb4ff3a32016-02-09 14:57:42 +02005976 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005977
Matan Barakb4ff3a32016-02-09 14:57:42 +02005978 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005979 u8 match_criteria_enable[0x8];
5980
5981 struct mlx5_ifc_fte_match_param_bits match_criteria;
5982
Matan Barakb4ff3a32016-02-09 14:57:42 +02005983 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03005984};
5985
5986struct mlx5_ifc_create_eq_out_bits {
5987 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005988 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005989
5990 u8 syndrome[0x20];
5991
Matan Barakb4ff3a32016-02-09 14:57:42 +02005992 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005993 u8 eq_number[0x8];
5994
Matan Barakb4ff3a32016-02-09 14:57:42 +02005995 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005996};
5997
5998struct mlx5_ifc_create_eq_in_bits {
5999 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006000 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006001
Matan Barakb4ff3a32016-02-09 14:57:42 +02006002 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006003 u8 op_mod[0x10];
6004
Matan Barakb4ff3a32016-02-09 14:57:42 +02006005 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006006
6007 struct mlx5_ifc_eqc_bits eq_context_entry;
6008
Matan Barakb4ff3a32016-02-09 14:57:42 +02006009 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006010
6011 u8 event_bitmask[0x40];
6012
Matan Barakb4ff3a32016-02-09 14:57:42 +02006013 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03006014
6015 u8 pas[0][0x40];
6016};
6017
6018struct mlx5_ifc_create_dct_out_bits {
6019 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006020 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006021
6022 u8 syndrome[0x20];
6023
Matan Barakb4ff3a32016-02-09 14:57:42 +02006024 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006025 u8 dctn[0x18];
6026
Matan Barakb4ff3a32016-02-09 14:57:42 +02006027 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006028};
6029
6030struct mlx5_ifc_create_dct_in_bits {
6031 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006032 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006033
Matan Barakb4ff3a32016-02-09 14:57:42 +02006034 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006035 u8 op_mod[0x10];
6036
Matan Barakb4ff3a32016-02-09 14:57:42 +02006037 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006038
6039 struct mlx5_ifc_dctc_bits dct_context_entry;
6040
Matan Barakb4ff3a32016-02-09 14:57:42 +02006041 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03006042};
6043
6044struct mlx5_ifc_create_cq_out_bits {
6045 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006046 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006047
6048 u8 syndrome[0x20];
6049
Matan Barakb4ff3a32016-02-09 14:57:42 +02006050 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006051 u8 cqn[0x18];
6052
Matan Barakb4ff3a32016-02-09 14:57:42 +02006053 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006054};
6055
6056struct mlx5_ifc_create_cq_in_bits {
6057 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006058 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006059
Matan Barakb4ff3a32016-02-09 14:57:42 +02006060 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006061 u8 op_mod[0x10];
6062
Matan Barakb4ff3a32016-02-09 14:57:42 +02006063 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006064
6065 struct mlx5_ifc_cqc_bits cq_context;
6066
Matan Barakb4ff3a32016-02-09 14:57:42 +02006067 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006068
6069 u8 pas[0][0x40];
6070};
6071
6072struct mlx5_ifc_config_int_moderation_out_bits {
6073 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006074 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006075
6076 u8 syndrome[0x20];
6077
Matan Barakb4ff3a32016-02-09 14:57:42 +02006078 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006079 u8 min_delay[0xc];
6080 u8 int_vector[0x10];
6081
Matan Barakb4ff3a32016-02-09 14:57:42 +02006082 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006083};
6084
6085enum {
6086 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
6087 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
6088};
6089
6090struct mlx5_ifc_config_int_moderation_in_bits {
6091 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006092 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006093
Matan Barakb4ff3a32016-02-09 14:57:42 +02006094 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006095 u8 op_mod[0x10];
6096
Matan Barakb4ff3a32016-02-09 14:57:42 +02006097 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006098 u8 min_delay[0xc];
6099 u8 int_vector[0x10];
6100
Matan Barakb4ff3a32016-02-09 14:57:42 +02006101 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006102};
6103
6104struct mlx5_ifc_attach_to_mcg_out_bits {
6105 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006106 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006107
6108 u8 syndrome[0x20];
6109
Matan Barakb4ff3a32016-02-09 14:57:42 +02006110 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006111};
6112
6113struct mlx5_ifc_attach_to_mcg_in_bits {
6114 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006115 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006116
Matan Barakb4ff3a32016-02-09 14:57:42 +02006117 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006118 u8 op_mod[0x10];
6119
Matan Barakb4ff3a32016-02-09 14:57:42 +02006120 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006121 u8 qpn[0x18];
6122
Matan Barakb4ff3a32016-02-09 14:57:42 +02006123 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006124
6125 u8 multicast_gid[16][0x8];
6126};
6127
6128struct mlx5_ifc_arm_xrc_srq_out_bits {
6129 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006130 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006131
6132 u8 syndrome[0x20];
6133
Matan Barakb4ff3a32016-02-09 14:57:42 +02006134 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006135};
6136
6137enum {
6138 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
6139};
6140
6141struct mlx5_ifc_arm_xrc_srq_in_bits {
6142 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006143 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006144
Matan Barakb4ff3a32016-02-09 14:57:42 +02006145 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006146 u8 op_mod[0x10];
6147
Matan Barakb4ff3a32016-02-09 14:57:42 +02006148 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006149 u8 xrc_srqn[0x18];
6150
Matan Barakb4ff3a32016-02-09 14:57:42 +02006151 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006152 u8 lwm[0x10];
6153};
6154
6155struct mlx5_ifc_arm_rq_out_bits {
6156 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006157 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006158
6159 u8 syndrome[0x20];
6160
Matan Barakb4ff3a32016-02-09 14:57:42 +02006161 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006162};
6163
6164enum {
6165 MLX5_ARM_RQ_IN_OP_MOD_SRQ_ = 0x1,
6166};
6167
6168struct mlx5_ifc_arm_rq_in_bits {
6169 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006170 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006171
Matan Barakb4ff3a32016-02-09 14:57:42 +02006172 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006173 u8 op_mod[0x10];
6174
Matan Barakb4ff3a32016-02-09 14:57:42 +02006175 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006176 u8 srq_number[0x18];
6177
Matan Barakb4ff3a32016-02-09 14:57:42 +02006178 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006179 u8 lwm[0x10];
6180};
6181
6182struct mlx5_ifc_arm_dct_out_bits {
6183 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006184 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006185
6186 u8 syndrome[0x20];
6187
Matan Barakb4ff3a32016-02-09 14:57:42 +02006188 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006189};
6190
6191struct mlx5_ifc_arm_dct_in_bits {
6192 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006193 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006194
Matan Barakb4ff3a32016-02-09 14:57:42 +02006195 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006196 u8 op_mod[0x10];
6197
Matan Barakb4ff3a32016-02-09 14:57:42 +02006198 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006199 u8 dct_number[0x18];
6200
Matan Barakb4ff3a32016-02-09 14:57:42 +02006201 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006202};
6203
6204struct mlx5_ifc_alloc_xrcd_out_bits {
6205 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006206 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006207
6208 u8 syndrome[0x20];
6209
Matan Barakb4ff3a32016-02-09 14:57:42 +02006210 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006211 u8 xrcd[0x18];
6212
Matan Barakb4ff3a32016-02-09 14:57:42 +02006213 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006214};
6215
6216struct mlx5_ifc_alloc_xrcd_in_bits {
6217 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006218 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006219
Matan Barakb4ff3a32016-02-09 14:57:42 +02006220 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006221 u8 op_mod[0x10];
6222
Matan Barakb4ff3a32016-02-09 14:57:42 +02006223 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006224};
6225
6226struct mlx5_ifc_alloc_uar_out_bits {
6227 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006228 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006229
6230 u8 syndrome[0x20];
6231
Matan Barakb4ff3a32016-02-09 14:57:42 +02006232 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006233 u8 uar[0x18];
6234
Matan Barakb4ff3a32016-02-09 14:57:42 +02006235 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006236};
6237
6238struct mlx5_ifc_alloc_uar_in_bits {
6239 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006240 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006241
Matan Barakb4ff3a32016-02-09 14:57:42 +02006242 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006243 u8 op_mod[0x10];
6244
Matan Barakb4ff3a32016-02-09 14:57:42 +02006245 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006246};
6247
6248struct mlx5_ifc_alloc_transport_domain_out_bits {
6249 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006250 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006251
6252 u8 syndrome[0x20];
6253
Matan Barakb4ff3a32016-02-09 14:57:42 +02006254 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006255 u8 transport_domain[0x18];
6256
Matan Barakb4ff3a32016-02-09 14:57:42 +02006257 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006258};
6259
6260struct mlx5_ifc_alloc_transport_domain_in_bits {
6261 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006262 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006263
Matan Barakb4ff3a32016-02-09 14:57:42 +02006264 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006265 u8 op_mod[0x10];
6266
Matan Barakb4ff3a32016-02-09 14:57:42 +02006267 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006268};
6269
6270struct mlx5_ifc_alloc_q_counter_out_bits {
6271 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006272 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006273
6274 u8 syndrome[0x20];
6275
Matan Barakb4ff3a32016-02-09 14:57:42 +02006276 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006277 u8 counter_set_id[0x8];
6278
Matan Barakb4ff3a32016-02-09 14:57:42 +02006279 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006280};
6281
6282struct mlx5_ifc_alloc_q_counter_in_bits {
6283 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006284 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006285
Matan Barakb4ff3a32016-02-09 14:57:42 +02006286 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006287 u8 op_mod[0x10];
6288
Matan Barakb4ff3a32016-02-09 14:57:42 +02006289 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006290};
6291
6292struct mlx5_ifc_alloc_pd_out_bits {
6293 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006294 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006295
6296 u8 syndrome[0x20];
6297
Matan Barakb4ff3a32016-02-09 14:57:42 +02006298 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006299 u8 pd[0x18];
6300
Matan Barakb4ff3a32016-02-09 14:57:42 +02006301 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006302};
6303
6304struct mlx5_ifc_alloc_pd_in_bits {
6305 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006306 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006307
Matan Barakb4ff3a32016-02-09 14:57:42 +02006308 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006309 u8 op_mod[0x10];
6310
Matan Barakb4ff3a32016-02-09 14:57:42 +02006311 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006312};
6313
Amir Vadai9dc0b282016-05-13 12:55:39 +00006314struct mlx5_ifc_alloc_flow_counter_out_bits {
6315 u8 status[0x8];
6316 u8 reserved_at_8[0x18];
6317
6318 u8 syndrome[0x20];
6319
6320 u8 reserved_at_40[0x10];
6321 u8 flow_counter_id[0x10];
6322
6323 u8 reserved_at_60[0x20];
6324};
6325
6326struct mlx5_ifc_alloc_flow_counter_in_bits {
6327 u8 opcode[0x10];
6328 u8 reserved_at_10[0x10];
6329
6330 u8 reserved_at_20[0x10];
6331 u8 op_mod[0x10];
6332
6333 u8 reserved_at_40[0x40];
6334};
6335
Saeed Mahameede2816822015-05-28 22:28:40 +03006336struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
6337 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006338 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006339
6340 u8 syndrome[0x20];
6341
Matan Barakb4ff3a32016-02-09 14:57:42 +02006342 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006343};
6344
6345struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
6346 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006347 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006348
Matan Barakb4ff3a32016-02-09 14:57:42 +02006349 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006350 u8 op_mod[0x10];
6351
Matan Barakb4ff3a32016-02-09 14:57:42 +02006352 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006353
Matan Barakb4ff3a32016-02-09 14:57:42 +02006354 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006355 u8 vxlan_udp_port[0x10];
6356};
6357
6358struct mlx5_ifc_access_register_out_bits {
6359 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006360 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006361
6362 u8 syndrome[0x20];
6363
Matan Barakb4ff3a32016-02-09 14:57:42 +02006364 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006365
6366 u8 register_data[0][0x20];
6367};
6368
6369enum {
6370 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
6371 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
6372};
6373
6374struct mlx5_ifc_access_register_in_bits {
6375 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006376 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006377
Matan Barakb4ff3a32016-02-09 14:57:42 +02006378 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006379 u8 op_mod[0x10];
6380
Matan Barakb4ff3a32016-02-09 14:57:42 +02006381 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006382 u8 register_id[0x10];
6383
6384 u8 argument[0x20];
6385
6386 u8 register_data[0][0x20];
6387};
6388
6389struct mlx5_ifc_sltp_reg_bits {
6390 u8 status[0x4];
6391 u8 version[0x4];
6392 u8 local_port[0x8];
6393 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006394 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03006395 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006396 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006397
Matan Barakb4ff3a32016-02-09 14:57:42 +02006398 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006399
Matan Barakb4ff3a32016-02-09 14:57:42 +02006400 u8 reserved_at_40[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03006401 u8 polarity[0x1];
6402 u8 ob_tap0[0x8];
6403 u8 ob_tap1[0x8];
6404 u8 ob_tap2[0x8];
6405
Matan Barakb4ff3a32016-02-09 14:57:42 +02006406 u8 reserved_at_60[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03006407 u8 ob_preemp_mode[0x4];
6408 u8 ob_reg[0x8];
6409 u8 ob_bias[0x8];
6410
Matan Barakb4ff3a32016-02-09 14:57:42 +02006411 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006412};
6413
6414struct mlx5_ifc_slrg_reg_bits {
6415 u8 status[0x4];
6416 u8 version[0x4];
6417 u8 local_port[0x8];
6418 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006419 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03006420 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006421 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006422
6423 u8 time_to_link_up[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006424 u8 reserved_at_30[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03006425 u8 grade_lane_speed[0x4];
6426
6427 u8 grade_version[0x8];
6428 u8 grade[0x18];
6429
Matan Barakb4ff3a32016-02-09 14:57:42 +02006430 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006431 u8 height_grade_type[0x4];
6432 u8 height_grade[0x18];
6433
6434 u8 height_dz[0x10];
6435 u8 height_dv[0x10];
6436
Matan Barakb4ff3a32016-02-09 14:57:42 +02006437 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006438 u8 height_sigma[0x10];
6439
Matan Barakb4ff3a32016-02-09 14:57:42 +02006440 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006441
Matan Barakb4ff3a32016-02-09 14:57:42 +02006442 u8 reserved_at_e0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006443 u8 phase_grade_type[0x4];
6444 u8 phase_grade[0x18];
6445
Matan Barakb4ff3a32016-02-09 14:57:42 +02006446 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006447 u8 phase_eo_pos[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006448 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006449 u8 phase_eo_neg[0x8];
6450
6451 u8 ffe_set_tested[0x10];
6452 u8 test_errors_per_lane[0x10];
6453};
6454
6455struct mlx5_ifc_pvlc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006456 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006457 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006458 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006459
Matan Barakb4ff3a32016-02-09 14:57:42 +02006460 u8 reserved_at_20[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006461 u8 vl_hw_cap[0x4];
6462
Matan Barakb4ff3a32016-02-09 14:57:42 +02006463 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006464 u8 vl_admin[0x4];
6465
Matan Barakb4ff3a32016-02-09 14:57:42 +02006466 u8 reserved_at_60[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006467 u8 vl_operational[0x4];
6468};
6469
6470struct mlx5_ifc_pude_reg_bits {
6471 u8 swid[0x8];
6472 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006473 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006474 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006475 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006476 u8 oper_status[0x4];
6477
Matan Barakb4ff3a32016-02-09 14:57:42 +02006478 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006479};
6480
6481struct mlx5_ifc_ptys_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006482 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006483 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006484 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03006485 u8 proto_mask[0x3];
6486
Matan Barakb4ff3a32016-02-09 14:57:42 +02006487 u8 reserved_at_20[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006488
6489 u8 eth_proto_capability[0x20];
6490
6491 u8 ib_link_width_capability[0x10];
6492 u8 ib_proto_capability[0x10];
6493
Matan Barakb4ff3a32016-02-09 14:57:42 +02006494 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006495
6496 u8 eth_proto_admin[0x20];
6497
6498 u8 ib_link_width_admin[0x10];
6499 u8 ib_proto_admin[0x10];
6500
Matan Barakb4ff3a32016-02-09 14:57:42 +02006501 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006502
6503 u8 eth_proto_oper[0x20];
6504
6505 u8 ib_link_width_oper[0x10];
6506 u8 ib_proto_oper[0x10];
6507
Matan Barakb4ff3a32016-02-09 14:57:42 +02006508 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006509
6510 u8 eth_proto_lp_advertise[0x20];
6511
Matan Barakb4ff3a32016-02-09 14:57:42 +02006512 u8 reserved_at_1a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006513};
6514
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006515struct mlx5_ifc_mlcr_reg_bits {
6516 u8 reserved_at_0[0x8];
6517 u8 local_port[0x8];
6518 u8 reserved_at_10[0x20];
6519
6520 u8 beacon_duration[0x10];
6521 u8 reserved_at_40[0x10];
6522
6523 u8 beacon_remain[0x10];
6524};
6525
Saeed Mahameede2816822015-05-28 22:28:40 +03006526struct mlx5_ifc_ptas_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006527 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006528
6529 u8 algorithm_options[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006530 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006531 u8 repetitions_mode[0x4];
6532 u8 num_of_repetitions[0x8];
6533
6534 u8 grade_version[0x8];
6535 u8 height_grade_type[0x4];
6536 u8 phase_grade_type[0x4];
6537 u8 height_grade_weight[0x8];
6538 u8 phase_grade_weight[0x8];
6539
6540 u8 gisim_measure_bits[0x10];
6541 u8 adaptive_tap_measure_bits[0x10];
6542
6543 u8 ber_bath_high_error_threshold[0x10];
6544 u8 ber_bath_mid_error_threshold[0x10];
6545
6546 u8 ber_bath_low_error_threshold[0x10];
6547 u8 one_ratio_high_threshold[0x10];
6548
6549 u8 one_ratio_high_mid_threshold[0x10];
6550 u8 one_ratio_low_mid_threshold[0x10];
6551
6552 u8 one_ratio_low_threshold[0x10];
6553 u8 ndeo_error_threshold[0x10];
6554
6555 u8 mixer_offset_step_size[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006556 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006557 u8 mix90_phase_for_voltage_bath[0x8];
6558
6559 u8 mixer_offset_start[0x10];
6560 u8 mixer_offset_end[0x10];
6561
Matan Barakb4ff3a32016-02-09 14:57:42 +02006562 u8 reserved_at_140[0x15];
Saeed Mahameede2816822015-05-28 22:28:40 +03006563 u8 ber_test_time[0xb];
6564};
6565
6566struct mlx5_ifc_pspa_reg_bits {
6567 u8 swid[0x8];
6568 u8 local_port[0x8];
6569 u8 sub_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006570 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006571
Matan Barakb4ff3a32016-02-09 14:57:42 +02006572 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006573};
6574
6575struct mlx5_ifc_pqdr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006576 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006577 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006578 u8 reserved_at_10[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03006579 u8 prio[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006580 u8 reserved_at_18[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03006581 u8 mode[0x2];
6582
Matan Barakb4ff3a32016-02-09 14:57:42 +02006583 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006584
Matan Barakb4ff3a32016-02-09 14:57:42 +02006585 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006586 u8 min_threshold[0x10];
6587
Matan Barakb4ff3a32016-02-09 14:57:42 +02006588 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006589 u8 max_threshold[0x10];
6590
Matan Barakb4ff3a32016-02-09 14:57:42 +02006591 u8 reserved_at_80[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006592 u8 mark_probability_denominator[0x10];
6593
Matan Barakb4ff3a32016-02-09 14:57:42 +02006594 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006595};
6596
6597struct mlx5_ifc_ppsc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006598 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006599 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006600 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006601
Matan Barakb4ff3a32016-02-09 14:57:42 +02006602 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006603
Matan Barakb4ff3a32016-02-09 14:57:42 +02006604 u8 reserved_at_80[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006605 u8 wrps_admin[0x4];
6606
Matan Barakb4ff3a32016-02-09 14:57:42 +02006607 u8 reserved_at_a0[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006608 u8 wrps_status[0x4];
6609
Matan Barakb4ff3a32016-02-09 14:57:42 +02006610 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006611 u8 up_threshold[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006612 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006613 u8 down_threshold[0x8];
6614
Matan Barakb4ff3a32016-02-09 14:57:42 +02006615 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006616
Matan Barakb4ff3a32016-02-09 14:57:42 +02006617 u8 reserved_at_100[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006618 u8 srps_admin[0x4];
6619
Matan Barakb4ff3a32016-02-09 14:57:42 +02006620 u8 reserved_at_120[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006621 u8 srps_status[0x4];
6622
Matan Barakb4ff3a32016-02-09 14:57:42 +02006623 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006624};
6625
6626struct mlx5_ifc_pplr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006627 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006628 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006629 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006630
Matan Barakb4ff3a32016-02-09 14:57:42 +02006631 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006632 u8 lb_cap[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006633 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006634 u8 lb_en[0x8];
6635};
6636
6637struct mlx5_ifc_pplm_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006638 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006639 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006640 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006641
Matan Barakb4ff3a32016-02-09 14:57:42 +02006642 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006643
6644 u8 port_profile_mode[0x8];
6645 u8 static_port_profile[0x8];
6646 u8 active_port_profile[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006647 u8 reserved_at_58[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006648
6649 u8 retransmission_active[0x8];
6650 u8 fec_mode_active[0x18];
6651
Matan Barakb4ff3a32016-02-09 14:57:42 +02006652 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006653};
6654
6655struct mlx5_ifc_ppcnt_reg_bits {
6656 u8 swid[0x8];
6657 u8 local_port[0x8];
6658 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006659 u8 reserved_at_12[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006660 u8 grp[0x6];
6661
6662 u8 clr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006663 u8 reserved_at_21[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006664 u8 prio_tc[0x3];
6665
6666 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
6667};
6668
6669struct mlx5_ifc_ppad_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006670 u8 reserved_at_0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03006671 u8 single_mac[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006672 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006673 u8 local_port[0x8];
6674 u8 mac_47_32[0x10];
6675
6676 u8 mac_31_0[0x20];
6677
Matan Barakb4ff3a32016-02-09 14:57:42 +02006678 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006679};
6680
6681struct mlx5_ifc_pmtu_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006682 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006683 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006684 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006685
6686 u8 max_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006687 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006688
6689 u8 admin_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006690 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006691
6692 u8 oper_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006693 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006694};
6695
6696struct mlx5_ifc_pmpr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006697 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006698 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006699 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006700
Matan Barakb4ff3a32016-02-09 14:57:42 +02006701 u8 reserved_at_20[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006702 u8 attenuation_5g[0x8];
6703
Matan Barakb4ff3a32016-02-09 14:57:42 +02006704 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006705 u8 attenuation_7g[0x8];
6706
Matan Barakb4ff3a32016-02-09 14:57:42 +02006707 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006708 u8 attenuation_12g[0x8];
6709};
6710
6711struct mlx5_ifc_pmpe_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006712 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006713 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006714 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03006715 u8 module_status[0x4];
6716
Matan Barakb4ff3a32016-02-09 14:57:42 +02006717 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006718};
6719
6720struct mlx5_ifc_pmpc_reg_bits {
6721 u8 module_state_updated[32][0x8];
6722};
6723
6724struct mlx5_ifc_pmlpn_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006725 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006726 u8 mlpn_status[0x4];
6727 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006728 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006729
6730 u8 e[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006731 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03006732};
6733
6734struct mlx5_ifc_pmlp_reg_bits {
6735 u8 rxtx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006736 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03006737 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006738 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006739 u8 width[0x8];
6740
6741 u8 lane0_module_mapping[0x20];
6742
6743 u8 lane1_module_mapping[0x20];
6744
6745 u8 lane2_module_mapping[0x20];
6746
6747 u8 lane3_module_mapping[0x20];
6748
Matan Barakb4ff3a32016-02-09 14:57:42 +02006749 u8 reserved_at_a0[0x160];
Saeed Mahameede2816822015-05-28 22:28:40 +03006750};
6751
6752struct mlx5_ifc_pmaos_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006753 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006754 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006755 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006756 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006757 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006758 u8 oper_status[0x4];
6759
6760 u8 ase[0x1];
6761 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006762 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006763 u8 e[0x2];
6764
Matan Barakb4ff3a32016-02-09 14:57:42 +02006765 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006766};
6767
6768struct mlx5_ifc_plpc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006769 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006770 u8 profile_id[0xc];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006771 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006772 u8 proto_mask[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006773 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006774
Matan Barakb4ff3a32016-02-09 14:57:42 +02006775 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006776 u8 lane_speed[0x10];
6777
Matan Barakb4ff3a32016-02-09 14:57:42 +02006778 u8 reserved_at_40[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03006779 u8 lpbf[0x1];
6780 u8 fec_mode_policy[0x8];
6781
6782 u8 retransmission_capability[0x8];
6783 u8 fec_mode_capability[0x18];
6784
6785 u8 retransmission_support_admin[0x8];
6786 u8 fec_mode_support_admin[0x18];
6787
6788 u8 retransmission_request_admin[0x8];
6789 u8 fec_mode_request_admin[0x18];
6790
Matan Barakb4ff3a32016-02-09 14:57:42 +02006791 u8 reserved_at_c0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006792};
6793
6794struct mlx5_ifc_plib_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006795 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006796 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006797 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006798 u8 ib_port[0x8];
6799
Matan Barakb4ff3a32016-02-09 14:57:42 +02006800 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006801};
6802
6803struct mlx5_ifc_plbf_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006804 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006805 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006806 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03006807 u8 lbf_mode[0x3];
6808
Matan Barakb4ff3a32016-02-09 14:57:42 +02006809 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006810};
6811
6812struct mlx5_ifc_pipg_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006813 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006814 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006815 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006816
6817 u8 dic[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006818 u8 reserved_at_21[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +03006819 u8 ipg[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006820 u8 reserved_at_3e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03006821};
6822
6823struct mlx5_ifc_pifr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006824 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006825 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006826 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006827
Matan Barakb4ff3a32016-02-09 14:57:42 +02006828 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006829
6830 u8 port_filter[8][0x20];
6831
6832 u8 port_filter_update_en[8][0x20];
6833};
6834
6835struct mlx5_ifc_pfcc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006836 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006837 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006838 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006839
6840 u8 ppan[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006841 u8 reserved_at_24[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006842 u8 prio_mask_tx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006843 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006844 u8 prio_mask_rx[0x8];
6845
6846 u8 pptx[0x1];
6847 u8 aptx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006848 u8 reserved_at_42[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03006849 u8 pfctx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006850 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006851
6852 u8 pprx[0x1];
6853 u8 aprx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006854 u8 reserved_at_62[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03006855 u8 pfcrx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006856 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006857
Matan Barakb4ff3a32016-02-09 14:57:42 +02006858 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006859};
6860
6861struct mlx5_ifc_pelc_reg_bits {
6862 u8 op[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006863 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006864 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006865 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006866
6867 u8 op_admin[0x8];
6868 u8 op_capability[0x8];
6869 u8 op_request[0x8];
6870 u8 op_active[0x8];
6871
6872 u8 admin[0x40];
6873
6874 u8 capability[0x40];
6875
6876 u8 request[0x40];
6877
6878 u8 active[0x40];
6879
Matan Barakb4ff3a32016-02-09 14:57:42 +02006880 u8 reserved_at_140[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006881};
6882
6883struct mlx5_ifc_peir_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006884 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006885 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006886 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006887
Matan Barakb4ff3a32016-02-09 14:57:42 +02006888 u8 reserved_at_20[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03006889 u8 error_count[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006890 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006891
Matan Barakb4ff3a32016-02-09 14:57:42 +02006892 u8 reserved_at_40[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03006893 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006894 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006895 u8 error_type[0x8];
6896};
6897
6898struct mlx5_ifc_pcap_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006899 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006900 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006901 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006902
6903 u8 port_capability_mask[4][0x20];
6904};
6905
6906struct mlx5_ifc_paos_reg_bits {
6907 u8 swid[0x8];
6908 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006909 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006910 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006911 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006912 u8 oper_status[0x4];
6913
6914 u8 ase[0x1];
6915 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006916 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03006917 u8 e[0x2];
6918
Matan Barakb4ff3a32016-02-09 14:57:42 +02006919 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006920};
6921
6922struct mlx5_ifc_pamp_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006923 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006924 u8 opamp_group[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006925 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03006926 u8 opamp_group_type[0x4];
6927
6928 u8 start_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006929 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006930 u8 num_of_indices[0xc];
6931
6932 u8 index_data[18][0x10];
6933};
6934
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006935struct mlx5_ifc_pcmr_reg_bits {
6936 u8 reserved_at_0[0x8];
6937 u8 local_port[0x8];
6938 u8 reserved_at_10[0x2e];
6939 u8 fcs_cap[0x1];
6940 u8 reserved_at_3f[0x1f];
6941 u8 fcs_chk[0x1];
6942 u8 reserved_at_5f[0x1];
6943};
6944
Saeed Mahameede2816822015-05-28 22:28:40 +03006945struct mlx5_ifc_lane_2_module_mapping_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006946 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03006947 u8 rx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006948 u8 reserved_at_8[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03006949 u8 tx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006950 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006951 u8 module[0x8];
6952};
6953
6954struct mlx5_ifc_bufferx_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006955 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03006956 u8 lossy[0x1];
6957 u8 epsb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006958 u8 reserved_at_8[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03006959 u8 size[0xc];
6960
6961 u8 xoff_threshold[0x10];
6962 u8 xon_threshold[0x10];
6963};
6964
6965struct mlx5_ifc_set_node_in_bits {
6966 u8 node_description[64][0x8];
6967};
6968
6969struct mlx5_ifc_register_power_settings_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006970 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006971 u8 power_settings_level[0x8];
6972
Matan Barakb4ff3a32016-02-09 14:57:42 +02006973 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006974};
6975
6976struct mlx5_ifc_register_host_endianness_bits {
6977 u8 he[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006978 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03006979
Matan Barakb4ff3a32016-02-09 14:57:42 +02006980 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006981};
6982
6983struct mlx5_ifc_umr_pointer_desc_argument_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02006984 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006985
6986 u8 mkey[0x20];
6987
6988 u8 addressh_63_32[0x20];
6989
6990 u8 addressl_31_0[0x20];
6991};
6992
6993struct mlx5_ifc_ud_adrs_vector_bits {
6994 u8 dc_key[0x40];
6995
6996 u8 ext[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006997 u8 reserved_at_41[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03006998 u8 destination_qp_dct[0x18];
6999
7000 u8 static_rate[0x4];
7001 u8 sl_eth_prio[0x4];
7002 u8 fl[0x1];
7003 u8 mlid[0x7];
7004 u8 rlid_udp_sport[0x10];
7005
Matan Barakb4ff3a32016-02-09 14:57:42 +02007006 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007007
7008 u8 rmac_47_16[0x20];
7009
7010 u8 rmac_15_0[0x10];
7011 u8 tclass[0x8];
7012 u8 hop_limit[0x8];
7013
Matan Barakb4ff3a32016-02-09 14:57:42 +02007014 u8 reserved_at_e0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03007015 u8 grh[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007016 u8 reserved_at_e2[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007017 u8 src_addr_index[0x8];
7018 u8 flow_label[0x14];
7019
7020 u8 rgid_rip[16][0x8];
7021};
7022
7023struct mlx5_ifc_pages_req_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007024 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007025 u8 function_id[0x10];
7026
7027 u8 num_pages[0x20];
7028
Matan Barakb4ff3a32016-02-09 14:57:42 +02007029 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007030};
7031
7032struct mlx5_ifc_eqe_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007033 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007034 u8 event_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007035 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007036 u8 event_sub_type[0x8];
7037
Matan Barakb4ff3a32016-02-09 14:57:42 +02007038 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007039
7040 union mlx5_ifc_event_auto_bits event_data;
7041
Matan Barakb4ff3a32016-02-09 14:57:42 +02007042 u8 reserved_at_1e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007043 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007044 u8 reserved_at_1f8[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007045 u8 owner[0x1];
7046};
7047
7048enum {
7049 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
7050};
7051
7052struct mlx5_ifc_cmd_queue_entry_bits {
7053 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007054 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007055
7056 u8 input_length[0x20];
7057
7058 u8 input_mailbox_pointer_63_32[0x20];
7059
7060 u8 input_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007061 u8 reserved_at_77[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03007062
7063 u8 command_input_inline_data[16][0x8];
7064
7065 u8 command_output_inline_data[16][0x8];
7066
7067 u8 output_mailbox_pointer_63_32[0x20];
7068
7069 u8 output_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007070 u8 reserved_at_1b7[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03007071
7072 u8 output_length[0x20];
7073
7074 u8 token[0x8];
7075 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007076 u8 reserved_at_1f0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007077 u8 status[0x7];
7078 u8 ownership[0x1];
7079};
7080
7081struct mlx5_ifc_cmd_out_bits {
7082 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007083 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007084
7085 u8 syndrome[0x20];
7086
7087 u8 command_output[0x20];
7088};
7089
7090struct mlx5_ifc_cmd_in_bits {
7091 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007092 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007093
Matan Barakb4ff3a32016-02-09 14:57:42 +02007094 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007095 u8 op_mod[0x10];
7096
7097 u8 command[0][0x20];
7098};
7099
7100struct mlx5_ifc_cmd_if_box_bits {
7101 u8 mailbox_data[512][0x8];
7102
Matan Barakb4ff3a32016-02-09 14:57:42 +02007103 u8 reserved_at_1000[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03007104
7105 u8 next_pointer_63_32[0x20];
7106
7107 u8 next_pointer_31_10[0x16];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007108 u8 reserved_at_11b6[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +03007109
7110 u8 block_number[0x20];
7111
Matan Barakb4ff3a32016-02-09 14:57:42 +02007112 u8 reserved_at_11e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007113 u8 token[0x8];
7114 u8 ctrl_signature[0x8];
7115 u8 signature[0x8];
7116};
7117
7118struct mlx5_ifc_mtt_bits {
7119 u8 ptag_63_32[0x20];
7120
7121 u8 ptag_31_8[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007122 u8 reserved_at_38[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007123 u8 wr_en[0x1];
7124 u8 rd_en[0x1];
7125};
7126
Tariq Toukan928cfe82016-02-22 18:17:29 +02007127struct mlx5_ifc_query_wol_rol_out_bits {
7128 u8 status[0x8];
7129 u8 reserved_at_8[0x18];
7130
7131 u8 syndrome[0x20];
7132
7133 u8 reserved_at_40[0x10];
7134 u8 rol_mode[0x8];
7135 u8 wol_mode[0x8];
7136
7137 u8 reserved_at_60[0x20];
7138};
7139
7140struct mlx5_ifc_query_wol_rol_in_bits {
7141 u8 opcode[0x10];
7142 u8 reserved_at_10[0x10];
7143
7144 u8 reserved_at_20[0x10];
7145 u8 op_mod[0x10];
7146
7147 u8 reserved_at_40[0x40];
7148};
7149
7150struct mlx5_ifc_set_wol_rol_out_bits {
7151 u8 status[0x8];
7152 u8 reserved_at_8[0x18];
7153
7154 u8 syndrome[0x20];
7155
7156 u8 reserved_at_40[0x40];
7157};
7158
7159struct mlx5_ifc_set_wol_rol_in_bits {
7160 u8 opcode[0x10];
7161 u8 reserved_at_10[0x10];
7162
7163 u8 reserved_at_20[0x10];
7164 u8 op_mod[0x10];
7165
7166 u8 rol_mode_valid[0x1];
7167 u8 wol_mode_valid[0x1];
7168 u8 reserved_at_42[0xe];
7169 u8 rol_mode[0x8];
7170 u8 wol_mode[0x8];
7171
7172 u8 reserved_at_60[0x20];
7173};
7174
Saeed Mahameede2816822015-05-28 22:28:40 +03007175enum {
7176 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
7177 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
7178 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
7179};
7180
7181enum {
7182 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
7183 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
7184 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
7185};
7186
7187enum {
7188 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
7189 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
7190 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
7191 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
7192 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
7193 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
7194 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
7195 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
7196 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
7197 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
7198 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
7199};
7200
7201struct mlx5_ifc_initial_seg_bits {
7202 u8 fw_rev_minor[0x10];
7203 u8 fw_rev_major[0x10];
7204
7205 u8 cmd_interface_rev[0x10];
7206 u8 fw_rev_subminor[0x10];
7207
Matan Barakb4ff3a32016-02-09 14:57:42 +02007208 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007209
7210 u8 cmdq_phy_addr_63_32[0x20];
7211
7212 u8 cmdq_phy_addr_31_12[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007213 u8 reserved_at_b4[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007214 u8 nic_interface[0x2];
7215 u8 log_cmdq_size[0x4];
7216 u8 log_cmdq_stride[0x4];
7217
7218 u8 command_doorbell_vector[0x20];
7219
Matan Barakb4ff3a32016-02-09 14:57:42 +02007220 u8 reserved_at_e0[0xf00];
Saeed Mahameede2816822015-05-28 22:28:40 +03007221
7222 u8 initializing[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007223 u8 reserved_at_fe1[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007224 u8 nic_interface_supported[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007225 u8 reserved_at_fe8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007226
7227 struct mlx5_ifc_health_buffer_bits health_buffer;
7228
7229 u8 no_dram_nic_offset[0x20];
7230
Matan Barakb4ff3a32016-02-09 14:57:42 +02007231 u8 reserved_at_1220[0x6e40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007232
Matan Barakb4ff3a32016-02-09 14:57:42 +02007233 u8 reserved_at_8060[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007234 u8 clear_int[0x1];
7235
7236 u8 health_syndrome[0x8];
7237 u8 health_counter[0x18];
7238
Matan Barakb4ff3a32016-02-09 14:57:42 +02007239 u8 reserved_at_80a0[0x17fc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007240};
7241
7242union mlx5_ifc_ports_control_registers_document_bits {
7243 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
7244 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
7245 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
7246 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
7247 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
7248 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
7249 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
7250 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
7251 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
7252 struct mlx5_ifc_pamp_reg_bits pamp_reg;
7253 struct mlx5_ifc_paos_reg_bits paos_reg;
7254 struct mlx5_ifc_pcap_reg_bits pcap_reg;
7255 struct mlx5_ifc_peir_reg_bits peir_reg;
7256 struct mlx5_ifc_pelc_reg_bits pelc_reg;
7257 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02007258 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03007259 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
7260 struct mlx5_ifc_pifr_reg_bits pifr_reg;
7261 struct mlx5_ifc_pipg_reg_bits pipg_reg;
7262 struct mlx5_ifc_plbf_reg_bits plbf_reg;
7263 struct mlx5_ifc_plib_reg_bits plib_reg;
7264 struct mlx5_ifc_plpc_reg_bits plpc_reg;
7265 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
7266 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
7267 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
7268 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
7269 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
7270 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
7271 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
7272 struct mlx5_ifc_ppad_reg_bits ppad_reg;
7273 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
7274 struct mlx5_ifc_pplm_reg_bits pplm_reg;
7275 struct mlx5_ifc_pplr_reg_bits pplr_reg;
7276 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
7277 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
7278 struct mlx5_ifc_pspa_reg_bits pspa_reg;
7279 struct mlx5_ifc_ptas_reg_bits ptas_reg;
7280 struct mlx5_ifc_ptys_reg_bits ptys_reg;
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007281 struct mlx5_ifc_mlcr_reg_bits mlcr_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03007282 struct mlx5_ifc_pude_reg_bits pude_reg;
7283 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
7284 struct mlx5_ifc_slrg_reg_bits slrg_reg;
7285 struct mlx5_ifc_sltp_reg_bits sltp_reg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02007286 u8 reserved_at_0[0x60e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007287};
7288
7289union mlx5_ifc_debug_enhancements_document_bits {
7290 struct mlx5_ifc_health_buffer_bits health_buffer;
Matan Barakb4ff3a32016-02-09 14:57:42 +02007291 u8 reserved_at_0[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +03007292};
7293
7294union mlx5_ifc_uplink_pci_interface_document_bits {
7295 struct mlx5_ifc_initial_seg_bits initial_seg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02007296 u8 reserved_at_0[0x20060];
Eli Cohenb7755162014-10-02 12:19:44 +03007297};
7298
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007299struct mlx5_ifc_set_flow_table_root_out_bits {
7300 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007301 u8 reserved_at_8[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007302
7303 u8 syndrome[0x20];
7304
Matan Barakb4ff3a32016-02-09 14:57:42 +02007305 u8 reserved_at_40[0x40];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007306};
7307
7308struct mlx5_ifc_set_flow_table_root_in_bits {
7309 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007310 u8 reserved_at_10[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007311
Matan Barakb4ff3a32016-02-09 14:57:42 +02007312 u8 reserved_at_20[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007313 u8 op_mod[0x10];
7314
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007315 u8 other_vport[0x1];
7316 u8 reserved_at_41[0xf];
7317 u8 vport_number[0x10];
7318
7319 u8 reserved_at_60[0x20];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007320
7321 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007322 u8 reserved_at_88[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007323
Matan Barakb4ff3a32016-02-09 14:57:42 +02007324 u8 reserved_at_a0[0x8];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007325 u8 table_id[0x18];
7326
Matan Barakb4ff3a32016-02-09 14:57:42 +02007327 u8 reserved_at_c0[0x140];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007328};
7329
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007330enum {
7331 MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = 0x1,
7332};
7333
7334struct mlx5_ifc_modify_flow_table_out_bits {
7335 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007336 u8 reserved_at_8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007337
7338 u8 syndrome[0x20];
7339
Matan Barakb4ff3a32016-02-09 14:57:42 +02007340 u8 reserved_at_40[0x40];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007341};
7342
7343struct mlx5_ifc_modify_flow_table_in_bits {
7344 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007345 u8 reserved_at_10[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007346
Matan Barakb4ff3a32016-02-09 14:57:42 +02007347 u8 reserved_at_20[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007348 u8 op_mod[0x10];
7349
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007350 u8 other_vport[0x1];
7351 u8 reserved_at_41[0xf];
7352 u8 vport_number[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007353
Matan Barakb4ff3a32016-02-09 14:57:42 +02007354 u8 reserved_at_60[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007355 u8 modify_field_select[0x10];
7356
7357 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007358 u8 reserved_at_88[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007359
Matan Barakb4ff3a32016-02-09 14:57:42 +02007360 u8 reserved_at_a0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007361 u8 table_id[0x18];
7362
Matan Barakb4ff3a32016-02-09 14:57:42 +02007363 u8 reserved_at_c0[0x4];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007364 u8 table_miss_mode[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007365 u8 reserved_at_c8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007366
Matan Barakb4ff3a32016-02-09 14:57:42 +02007367 u8 reserved_at_e0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007368 u8 table_miss_id[0x18];
7369
Matan Barakb4ff3a32016-02-09 14:57:42 +02007370 u8 reserved_at_100[0x100];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007371};
7372
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02007373struct mlx5_ifc_ets_tcn_config_reg_bits {
7374 u8 g[0x1];
7375 u8 b[0x1];
7376 u8 r[0x1];
7377 u8 reserved_at_3[0x9];
7378 u8 group[0x4];
7379 u8 reserved_at_10[0x9];
7380 u8 bw_allocation[0x7];
7381
7382 u8 reserved_at_20[0xc];
7383 u8 max_bw_units[0x4];
7384 u8 reserved_at_30[0x8];
7385 u8 max_bw_value[0x8];
7386};
7387
7388struct mlx5_ifc_ets_global_config_reg_bits {
7389 u8 reserved_at_0[0x2];
7390 u8 r[0x1];
7391 u8 reserved_at_3[0x1d];
7392
7393 u8 reserved_at_20[0xc];
7394 u8 max_bw_units[0x4];
7395 u8 reserved_at_30[0x8];
7396 u8 max_bw_value[0x8];
7397};
7398
7399struct mlx5_ifc_qetc_reg_bits {
7400 u8 reserved_at_0[0x8];
7401 u8 port_number[0x8];
7402 u8 reserved_at_10[0x30];
7403
7404 struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8];
7405 struct mlx5_ifc_ets_global_config_reg_bits global_configuration;
7406};
7407
7408struct mlx5_ifc_qtct_reg_bits {
7409 u8 reserved_at_0[0x8];
7410 u8 port_number[0x8];
7411 u8 reserved_at_10[0xd];
7412 u8 prio[0x3];
7413
7414 u8 reserved_at_20[0x1d];
7415 u8 tclass[0x3];
7416};
7417
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007418struct mlx5_ifc_mcia_reg_bits {
7419 u8 l[0x1];
7420 u8 reserved_at_1[0x7];
7421 u8 module[0x8];
7422 u8 reserved_at_10[0x8];
7423 u8 status[0x8];
7424
7425 u8 i2c_device_address[0x8];
7426 u8 page_number[0x8];
7427 u8 device_address[0x10];
7428
7429 u8 reserved_at_40[0x10];
7430 u8 size[0x10];
7431
7432 u8 reserved_at_60[0x20];
7433
7434 u8 dword_0[0x20];
7435 u8 dword_1[0x20];
7436 u8 dword_2[0x20];
7437 u8 dword_3[0x20];
7438 u8 dword_4[0x20];
7439 u8 dword_5[0x20];
7440 u8 dword_6[0x20];
7441 u8 dword_7[0x20];
7442 u8 dword_8[0x20];
7443 u8 dword_9[0x20];
7444 u8 dword_10[0x20];
7445 u8 dword_11[0x20];
7446};
7447
Eli Cohend29b7962014-10-02 12:19:43 +03007448#endif /* MLX5_IFC_H */