blob: 688a549e74f11594865fe01a4c8da8a2b1206039 [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
Ilan Tayarie29341f2017-03-13 20:05:45 +020035#include "mlx5_ifc_fpga.h"
36
Eli Cohend29b7962014-10-02 12:19:43 +030037enum {
Saeed Mahameede2816822015-05-28 22:28:40 +030038 MLX5_EVENT_TYPE_CODING_COMPLETION_EVENTS = 0x0,
39 MLX5_EVENT_TYPE_CODING_PATH_MIGRATED_SUCCEEDED = 0x1,
40 MLX5_EVENT_TYPE_CODING_COMMUNICATION_ESTABLISHED = 0x2,
41 MLX5_EVENT_TYPE_CODING_SEND_QUEUE_DRAINED = 0x3,
42 MLX5_EVENT_TYPE_CODING_LAST_WQE_REACHED = 0x13,
43 MLX5_EVENT_TYPE_CODING_SRQ_LIMIT = 0x14,
44 MLX5_EVENT_TYPE_CODING_DCT_ALL_CONNECTIONS_CLOSED = 0x1c,
45 MLX5_EVENT_TYPE_CODING_DCT_ACCESS_KEY_VIOLATION = 0x1d,
46 MLX5_EVENT_TYPE_CODING_CQ_ERROR = 0x4,
47 MLX5_EVENT_TYPE_CODING_LOCAL_WQ_CATASTROPHIC_ERROR = 0x5,
48 MLX5_EVENT_TYPE_CODING_PATH_MIGRATION_FAILED = 0x7,
49 MLX5_EVENT_TYPE_CODING_PAGE_FAULT_EVENT = 0xc,
50 MLX5_EVENT_TYPE_CODING_INVALID_REQUEST_LOCAL_WQ_ERROR = 0x10,
51 MLX5_EVENT_TYPE_CODING_LOCAL_ACCESS_VIOLATION_WQ_ERROR = 0x11,
52 MLX5_EVENT_TYPE_CODING_LOCAL_SRQ_CATASTROPHIC_ERROR = 0x12,
53 MLX5_EVENT_TYPE_CODING_INTERNAL_ERROR = 0x8,
54 MLX5_EVENT_TYPE_CODING_PORT_STATE_CHANGE = 0x9,
55 MLX5_EVENT_TYPE_CODING_GPIO_EVENT = 0x15,
56 MLX5_EVENT_TYPE_CODING_REMOTE_CONFIGURATION_PROTOCOL_EVENT = 0x19,
57 MLX5_EVENT_TYPE_CODING_DOORBELL_BLUEFLAME_CONGESTION_EVENT = 0x1a,
58 MLX5_EVENT_TYPE_CODING_STALL_VL_EVENT = 0x1b,
59 MLX5_EVENT_TYPE_CODING_DROPPED_PACKET_LOGGED_EVENT = 0x1f,
60 MLX5_EVENT_TYPE_CODING_COMMAND_INTERFACE_COMPLETION = 0xa,
Ilan Tayarie29341f2017-03-13 20:05:45 +020061 MLX5_EVENT_TYPE_CODING_PAGE_REQUEST = 0xb,
62 MLX5_EVENT_TYPE_CODING_FPGA_ERROR = 0x20,
Ilan Tayari1f0cf892018-05-30 10:59:50 -070063 MLX5_EVENT_TYPE_CODING_FPGA_QP_ERROR = 0x21
Saeed Mahameede2816822015-05-28 22:28:40 +030064};
65
66enum {
67 MLX5_MODIFY_TIR_BITMASK_LRO = 0x0,
68 MLX5_MODIFY_TIR_BITMASK_INDIRECT_TABLE = 0x1,
69 MLX5_MODIFY_TIR_BITMASK_HASH = 0x2,
70 MLX5_MODIFY_TIR_BITMASK_TUNNELED_OFFLOAD_EN = 0x3
71};
72
73enum {
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +020074 MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE = 0x0,
75 MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3,
76};
77
78enum {
Yishai Hadas38b7ca92018-03-08 14:36:27 +020079 MLX5_GENERAL_OBJ_TYPES_CAP_UCTX = (1ULL << 4),
80 MLX5_GENERAL_OBJ_TYPES_CAP_UMEM = (1ULL << 5),
81};
82
83enum {
84 MLX5_OBJ_TYPE_UCTX = 0x0004,
Yishai Hadasaeae9452018-06-17 13:00:04 +030085 MLX5_OBJ_TYPE_UMEM = 0x0005,
Yishai Hadas38b7ca92018-03-08 14:36:27 +020086};
87
88enum {
Eli Cohend29b7962014-10-02 12:19:43 +030089 MLX5_CMD_OP_QUERY_HCA_CAP = 0x100,
90 MLX5_CMD_OP_QUERY_ADAPTER = 0x101,
91 MLX5_CMD_OP_INIT_HCA = 0x102,
92 MLX5_CMD_OP_TEARDOWN_HCA = 0x103,
93 MLX5_CMD_OP_ENABLE_HCA = 0x104,
94 MLX5_CMD_OP_DISABLE_HCA = 0x105,
95 MLX5_CMD_OP_QUERY_PAGES = 0x107,
96 MLX5_CMD_OP_MANAGE_PAGES = 0x108,
97 MLX5_CMD_OP_SET_HCA_CAP = 0x109,
Saeed Mahameede2816822015-05-28 22:28:40 +030098 MLX5_CMD_OP_QUERY_ISSI = 0x10a,
99 MLX5_CMD_OP_SET_ISSI = 0x10b,
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +0200100 MLX5_CMD_OP_SET_DRIVER_VERSION = 0x10d,
Eli Cohend29b7962014-10-02 12:19:43 +0300101 MLX5_CMD_OP_CREATE_MKEY = 0x200,
102 MLX5_CMD_OP_QUERY_MKEY = 0x201,
103 MLX5_CMD_OP_DESTROY_MKEY = 0x202,
104 MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS = 0x203,
105 MLX5_CMD_OP_PAGE_FAULT_RESUME = 0x204,
Ariel Levkovich24da0012018-04-05 18:53:27 +0300106 MLX5_CMD_OP_ALLOC_MEMIC = 0x205,
107 MLX5_CMD_OP_DEALLOC_MEMIC = 0x206,
Eli Cohend29b7962014-10-02 12:19:43 +0300108 MLX5_CMD_OP_CREATE_EQ = 0x301,
109 MLX5_CMD_OP_DESTROY_EQ = 0x302,
110 MLX5_CMD_OP_QUERY_EQ = 0x303,
111 MLX5_CMD_OP_GEN_EQE = 0x304,
112 MLX5_CMD_OP_CREATE_CQ = 0x400,
113 MLX5_CMD_OP_DESTROY_CQ = 0x401,
114 MLX5_CMD_OP_QUERY_CQ = 0x402,
115 MLX5_CMD_OP_MODIFY_CQ = 0x403,
116 MLX5_CMD_OP_CREATE_QP = 0x500,
117 MLX5_CMD_OP_DESTROY_QP = 0x501,
118 MLX5_CMD_OP_RST2INIT_QP = 0x502,
119 MLX5_CMD_OP_INIT2RTR_QP = 0x503,
120 MLX5_CMD_OP_RTR2RTS_QP = 0x504,
121 MLX5_CMD_OP_RTS2RTS_QP = 0x505,
122 MLX5_CMD_OP_SQERR2RTS_QP = 0x506,
123 MLX5_CMD_OP_2ERR_QP = 0x507,
124 MLX5_CMD_OP_2RST_QP = 0x50a,
125 MLX5_CMD_OP_QUERY_QP = 0x50b,
Saeed Mahameede2816822015-05-28 22:28:40 +0300126 MLX5_CMD_OP_SQD_RTS_QP = 0x50c,
Eli Cohend29b7962014-10-02 12:19:43 +0300127 MLX5_CMD_OP_INIT2INIT_QP = 0x50e,
128 MLX5_CMD_OP_CREATE_PSV = 0x600,
129 MLX5_CMD_OP_DESTROY_PSV = 0x601,
130 MLX5_CMD_OP_CREATE_SRQ = 0x700,
131 MLX5_CMD_OP_DESTROY_SRQ = 0x701,
132 MLX5_CMD_OP_QUERY_SRQ = 0x702,
133 MLX5_CMD_OP_ARM_RQ = 0x703,
Saeed Mahameede2816822015-05-28 22:28:40 +0300134 MLX5_CMD_OP_CREATE_XRC_SRQ = 0x705,
135 MLX5_CMD_OP_DESTROY_XRC_SRQ = 0x706,
136 MLX5_CMD_OP_QUERY_XRC_SRQ = 0x707,
137 MLX5_CMD_OP_ARM_XRC_SRQ = 0x708,
Eli Cohend29b7962014-10-02 12:19:43 +0300138 MLX5_CMD_OP_CREATE_DCT = 0x710,
139 MLX5_CMD_OP_DESTROY_DCT = 0x711,
140 MLX5_CMD_OP_DRAIN_DCT = 0x712,
141 MLX5_CMD_OP_QUERY_DCT = 0x713,
142 MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION = 0x714,
Saeed Mahameed74862162016-06-09 15:11:34 +0300143 MLX5_CMD_OP_CREATE_XRQ = 0x717,
144 MLX5_CMD_OP_DESTROY_XRQ = 0x718,
145 MLX5_CMD_OP_QUERY_XRQ = 0x719,
146 MLX5_CMD_OP_ARM_XRQ = 0x71a,
Eli Cohend29b7962014-10-02 12:19:43 +0300147 MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750,
148 MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751,
149 MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752,
150 MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT = 0x753,
151 MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT = 0x754,
152 MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT = 0x755,
Saeed Mahameede2816822015-05-28 22:28:40 +0300153 MLX5_CMD_OP_QUERY_ROCE_ADDRESS = 0x760,
Eli Cohend29b7962014-10-02 12:19:43 +0300154 MLX5_CMD_OP_SET_ROCE_ADDRESS = 0x761,
Saeed Mahameede2816822015-05-28 22:28:40 +0300155 MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT = 0x762,
156 MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT = 0x763,
157 MLX5_CMD_OP_QUERY_HCA_VPORT_GID = 0x764,
158 MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY = 0x765,
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +0200159 MLX5_CMD_OP_QUERY_VNIC_ENV = 0x76f,
Eli Cohend29b7962014-10-02 12:19:43 +0300160 MLX5_CMD_OP_QUERY_VPORT_COUNTER = 0x770,
161 MLX5_CMD_OP_ALLOC_Q_COUNTER = 0x771,
162 MLX5_CMD_OP_DEALLOC_Q_COUNTER = 0x772,
163 MLX5_CMD_OP_QUERY_Q_COUNTER = 0x773,
Eyal Davidovichfd4572b2018-12-10 13:15:12 -0800164 MLX5_CMD_OP_SET_MONITOR_COUNTER = 0x774,
165 MLX5_CMD_OP_ARM_MONITOR_COUNTER = 0x775,
Eran Ben Elisha37e92a92017-11-13 10:11:27 +0200166 MLX5_CMD_OP_SET_PP_RATE_LIMIT = 0x780,
Saeed Mahameed74862162016-06-09 15:11:34 +0300167 MLX5_CMD_OP_QUERY_RATE_LIMIT = 0x781,
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300168 MLX5_CMD_OP_CREATE_SCHEDULING_ELEMENT = 0x782,
169 MLX5_CMD_OP_DESTROY_SCHEDULING_ELEMENT = 0x783,
170 MLX5_CMD_OP_QUERY_SCHEDULING_ELEMENT = 0x784,
171 MLX5_CMD_OP_MODIFY_SCHEDULING_ELEMENT = 0x785,
172 MLX5_CMD_OP_CREATE_QOS_PARA_VPORT = 0x786,
173 MLX5_CMD_OP_DESTROY_QOS_PARA_VPORT = 0x787,
Eli Cohend29b7962014-10-02 12:19:43 +0300174 MLX5_CMD_OP_ALLOC_PD = 0x800,
175 MLX5_CMD_OP_DEALLOC_PD = 0x801,
176 MLX5_CMD_OP_ALLOC_UAR = 0x802,
177 MLX5_CMD_OP_DEALLOC_UAR = 0x803,
178 MLX5_CMD_OP_CONFIG_INT_MODERATION = 0x804,
179 MLX5_CMD_OP_ACCESS_REG = 0x805,
180 MLX5_CMD_OP_ATTACH_TO_MCG = 0x806,
Saeed Mahameed20bb5662016-07-17 02:01:45 +0300181 MLX5_CMD_OP_DETACH_FROM_MCG = 0x807,
Eli Cohend29b7962014-10-02 12:19:43 +0300182 MLX5_CMD_OP_GET_DROPPED_PACKET_LOG = 0x80a,
183 MLX5_CMD_OP_MAD_IFC = 0x50d,
184 MLX5_CMD_OP_QUERY_MAD_DEMUX = 0x80b,
185 MLX5_CMD_OP_SET_MAD_DEMUX = 0x80c,
186 MLX5_CMD_OP_NOP = 0x80d,
187 MLX5_CMD_OP_ALLOC_XRCD = 0x80e,
188 MLX5_CMD_OP_DEALLOC_XRCD = 0x80f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300189 MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN = 0x816,
190 MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN = 0x817,
191 MLX5_CMD_OP_QUERY_CONG_STATUS = 0x822,
192 MLX5_CMD_OP_MODIFY_CONG_STATUS = 0x823,
193 MLX5_CMD_OP_QUERY_CONG_PARAMS = 0x824,
194 MLX5_CMD_OP_MODIFY_CONG_PARAMS = 0x825,
195 MLX5_CMD_OP_QUERY_CONG_STATISTICS = 0x826,
196 MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT = 0x827,
197 MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT = 0x828,
198 MLX5_CMD_OP_SET_L2_TABLE_ENTRY = 0x829,
199 MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY = 0x82a,
200 MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY = 0x82b,
Tariq Toukan928cfe82016-02-22 18:17:29 +0200201 MLX5_CMD_OP_SET_WOL_ROL = 0x830,
202 MLX5_CMD_OP_QUERY_WOL_ROL = 0x831,
Aviv Heller84df61e2016-05-10 13:47:50 +0300203 MLX5_CMD_OP_CREATE_LAG = 0x840,
204 MLX5_CMD_OP_MODIFY_LAG = 0x841,
205 MLX5_CMD_OP_QUERY_LAG = 0x842,
206 MLX5_CMD_OP_DESTROY_LAG = 0x843,
207 MLX5_CMD_OP_CREATE_VPORT_LAG = 0x844,
208 MLX5_CMD_OP_DESTROY_VPORT_LAG = 0x845,
Eli Cohend29b7962014-10-02 12:19:43 +0300209 MLX5_CMD_OP_CREATE_TIR = 0x900,
210 MLX5_CMD_OP_MODIFY_TIR = 0x901,
211 MLX5_CMD_OP_DESTROY_TIR = 0x902,
212 MLX5_CMD_OP_QUERY_TIR = 0x903,
Eli Cohend29b7962014-10-02 12:19:43 +0300213 MLX5_CMD_OP_CREATE_SQ = 0x904,
214 MLX5_CMD_OP_MODIFY_SQ = 0x905,
215 MLX5_CMD_OP_DESTROY_SQ = 0x906,
216 MLX5_CMD_OP_QUERY_SQ = 0x907,
217 MLX5_CMD_OP_CREATE_RQ = 0x908,
218 MLX5_CMD_OP_MODIFY_RQ = 0x909,
Maor Gottliebc1e0bfc2017-05-30 10:29:11 +0300219 MLX5_CMD_OP_SET_DELAY_DROP_PARAMS = 0x910,
Eli Cohend29b7962014-10-02 12:19:43 +0300220 MLX5_CMD_OP_DESTROY_RQ = 0x90a,
221 MLX5_CMD_OP_QUERY_RQ = 0x90b,
222 MLX5_CMD_OP_CREATE_RMP = 0x90c,
223 MLX5_CMD_OP_MODIFY_RMP = 0x90d,
224 MLX5_CMD_OP_DESTROY_RMP = 0x90e,
225 MLX5_CMD_OP_QUERY_RMP = 0x90f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300226 MLX5_CMD_OP_CREATE_TIS = 0x912,
227 MLX5_CMD_OP_MODIFY_TIS = 0x913,
228 MLX5_CMD_OP_DESTROY_TIS = 0x914,
229 MLX5_CMD_OP_QUERY_TIS = 0x915,
230 MLX5_CMD_OP_CREATE_RQT = 0x916,
231 MLX5_CMD_OP_MODIFY_RQT = 0x917,
232 MLX5_CMD_OP_DESTROY_RQT = 0x918,
233 MLX5_CMD_OP_QUERY_RQT = 0x919,
Maor Gottlieb2cc43b42016-01-11 10:25:59 +0200234 MLX5_CMD_OP_SET_FLOW_TABLE_ROOT = 0x92f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300235 MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930,
236 MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931,
237 MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932,
238 MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933,
239 MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934,
240 MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935,
241 MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936,
242 MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937,
Maor Gottlieb34a40e62016-01-11 10:26:00 +0200243 MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938,
Amir Vadai9dc0b282016-05-13 12:55:39 +0000244 MLX5_CMD_OP_ALLOC_FLOW_COUNTER = 0x939,
245 MLX5_CMD_OP_DEALLOC_FLOW_COUNTER = 0x93a,
246 MLX5_CMD_OP_QUERY_FLOW_COUNTER = 0x93b,
Shahar Klein86d56a12016-06-10 00:07:30 +0300247 MLX5_CMD_OP_MODIFY_FLOW_TABLE = 0x93c,
Mark Bloch60786f02018-08-28 14:18:46 +0300248 MLX5_CMD_OP_ALLOC_PACKET_REFORMAT_CONTEXT = 0x93d,
249 MLX5_CMD_OP_DEALLOC_PACKET_REFORMAT_CONTEXT = 0x93e,
Or Gerlitz2a69cb92017-01-19 19:31:25 +0200250 MLX5_CMD_OP_ALLOC_MODIFY_HEADER_CONTEXT = 0x940,
251 MLX5_CMD_OP_DEALLOC_MODIFY_HEADER_CONTEXT = 0x941,
Yishai Hadase662e142018-06-17 13:00:02 +0300252 MLX5_CMD_OP_QUERY_MODIFY_HEADER_CONTEXT = 0x942,
Ilan Tayari60621182017-03-27 14:52:09 +0300253 MLX5_CMD_OP_FPGA_CREATE_QP = 0x960,
254 MLX5_CMD_OP_FPGA_MODIFY_QP = 0x961,
255 MLX5_CMD_OP_FPGA_QUERY_QP = 0x962,
256 MLX5_CMD_OP_FPGA_DESTROY_QP = 0x963,
257 MLX5_CMD_OP_FPGA_QUERY_QP_COUNTERS = 0x964,
Yishai Hadas38b7ca92018-03-08 14:36:27 +0200258 MLX5_CMD_OP_CREATE_GENERAL_OBJECT = 0xa00,
Yishai Hadase662e142018-06-17 13:00:02 +0300259 MLX5_CMD_OP_MODIFY_GENERAL_OBJECT = 0xa01,
260 MLX5_CMD_OP_QUERY_GENERAL_OBJECT = 0xa02,
Yishai Hadas38b7ca92018-03-08 14:36:27 +0200261 MLX5_CMD_OP_DESTROY_GENERAL_OBJECT = 0xa03,
Shahar Klein86d56a12016-06-10 00:07:30 +0300262 MLX5_CMD_OP_MAX
Saeed Mahameede2816822015-05-28 22:28:40 +0300263};
264
265struct mlx5_ifc_flow_table_fields_supported_bits {
266 u8 outer_dmac[0x1];
267 u8 outer_smac[0x1];
268 u8 outer_ether_type[0x1];
Ariel Levkovich19cc7522017-04-03 13:11:03 +0300269 u8 outer_ip_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300270 u8 outer_first_prio[0x1];
271 u8 outer_first_cfi[0x1];
272 u8 outer_first_vid[0x1];
Or Gerlitza8ade552017-06-07 17:49:56 +0300273 u8 outer_ipv4_ttl[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300274 u8 outer_second_prio[0x1];
275 u8 outer_second_cfi[0x1];
276 u8 outer_second_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200277 u8 reserved_at_b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300278 u8 outer_sip[0x1];
279 u8 outer_dip[0x1];
280 u8 outer_frag[0x1];
281 u8 outer_ip_protocol[0x1];
282 u8 outer_ip_ecn[0x1];
283 u8 outer_ip_dscp[0x1];
284 u8 outer_udp_sport[0x1];
285 u8 outer_udp_dport[0x1];
286 u8 outer_tcp_sport[0x1];
287 u8 outer_tcp_dport[0x1];
288 u8 outer_tcp_flags[0x1];
289 u8 outer_gre_protocol[0x1];
290 u8 outer_gre_key[0x1];
291 u8 outer_vxlan_vni[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200292 u8 reserved_at_1a[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +0300293 u8 source_eswitch_port[0x1];
294
295 u8 inner_dmac[0x1];
296 u8 inner_smac[0x1];
297 u8 inner_ether_type[0x1];
Ariel Levkovich19cc7522017-04-03 13:11:03 +0300298 u8 inner_ip_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300299 u8 inner_first_prio[0x1];
300 u8 inner_first_cfi[0x1];
301 u8 inner_first_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200302 u8 reserved_at_27[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300303 u8 inner_second_prio[0x1];
304 u8 inner_second_cfi[0x1];
305 u8 inner_second_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200306 u8 reserved_at_2b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300307 u8 inner_sip[0x1];
308 u8 inner_dip[0x1];
309 u8 inner_frag[0x1];
310 u8 inner_ip_protocol[0x1];
311 u8 inner_ip_ecn[0x1];
312 u8 inner_ip_dscp[0x1];
313 u8 inner_udp_sport[0x1];
314 u8 inner_udp_dport[0x1];
315 u8 inner_tcp_sport[0x1];
316 u8 inner_tcp_dport[0x1];
317 u8 inner_tcp_flags[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200318 u8 reserved_at_37[0x9];
Ariel Levkovich71c6e862018-05-13 14:33:34 +0300319
320 u8 reserved_at_40[0x5];
321 u8 outer_first_mpls_over_udp[0x4];
322 u8 outer_first_mpls_over_gre[0x4];
323 u8 inner_first_mpls[0x4];
324 u8 outer_first_mpls[0x4];
325 u8 reserved_at_55[0x2];
Boris Pismenny3346c482017-08-20 15:13:08 +0300326 u8 outer_esp_spi[0x1];
Ariel Levkovich71c6e862018-05-13 14:33:34 +0300327 u8 reserved_at_58[0x2];
Yishai Hadasa550ddf2017-08-17 15:52:33 +0300328 u8 bth_dst_qp[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300329
Yishai Hadasa550ddf2017-08-17 15:52:33 +0300330 u8 reserved_at_5b[0x25];
Saeed Mahameede2816822015-05-28 22:28:40 +0300331};
332
333struct mlx5_ifc_flow_table_prop_layout_bits {
334 u8 ft_support[0x1];
Amir Vadai9dc0b282016-05-13 12:55:39 +0000335 u8 reserved_at_1[0x1];
336 u8 flow_counter[0x1];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200337 u8 flow_modify_en[0x1];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +0200338 u8 modify_root[0x1];
Maor Gottlieb34a40e62016-01-11 10:26:00 +0200339 u8 identified_miss_table_mode[0x1];
340 u8 flow_table_modify[0x1];
Mark Bloch60786f02018-08-28 14:18:46 +0300341 u8 reformat[0x1];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300342 u8 decap[0x1];
Or Gerlitz0c068972018-01-28 20:14:20 +0200343 u8 reserved_at_9[0x1];
344 u8 pop_vlan[0x1];
345 u8 push_vlan[0x1];
Jianbo Liu8da6fe22018-07-16 18:35:32 -0700346 u8 reserved_at_c[0x1];
347 u8 pop_vlan_2[0x1];
348 u8 push_vlan_2[0x1];
Mark Blochbea4e1f2018-08-28 14:18:47 +0300349 u8 reformat_and_vlan_action[0x1];
350 u8 reserved_at_10[0x2];
351 u8 reformat_l3_tunnel_to_l2[0x1];
352 u8 reformat_l2_to_l3_tunnel[0x1];
353 u8 reformat_and_modify_action[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +0200354 u8 reserved_at_15[0xb];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200355 u8 reserved_at_20[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300356 u8 log_max_ft_size[0x6];
Or Gerlitz2a69cb92017-01-19 19:31:25 +0200357 u8 log_max_modify_header_context[0x8];
358 u8 max_modify_header_actions[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300359 u8 max_ft_level[0x8];
360
Matan Barakb4ff3a32016-02-09 14:57:42 +0200361 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300362
Matan Barakb4ff3a32016-02-09 14:57:42 +0200363 u8 reserved_at_60[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200364 u8 log_max_ft_num[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300365
Matan Barakb4ff3a32016-02-09 14:57:42 +0200366 u8 reserved_at_80[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200367 u8 log_max_destination[0x8];
368
Raed Salem16f1c5b2017-07-30 11:02:51 +0300369 u8 log_max_flow_counter[0x8];
370 u8 reserved_at_a8[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300371 u8 log_max_flow[0x8];
372
Matan Barakb4ff3a32016-02-09 14:57:42 +0200373 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300374
375 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support;
376
377 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support;
378};
379
380struct mlx5_ifc_odp_per_transport_service_cap_bits {
381 u8 send[0x1];
382 u8 receive[0x1];
383 u8 write[0x1];
384 u8 read[0x1];
Artemy Kovalyov17d2f882017-01-02 11:37:47 +0200385 u8 atomic[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300386 u8 srq_receive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200387 u8 reserved_at_6[0x1a];
Saeed Mahameede2816822015-05-28 22:28:40 +0300388};
389
390struct mlx5_ifc_fte_match_set_lyr_2_4_bits {
391 u8 smac_47_16[0x20];
392
393 u8 smac_15_0[0x10];
394 u8 ethertype[0x10];
395
396 u8 dmac_47_16[0x20];
397
398 u8 dmac_15_0[0x10];
399 u8 first_prio[0x3];
400 u8 first_cfi[0x1];
401 u8 first_vid[0xc];
402
403 u8 ip_protocol[0x8];
404 u8 ip_dscp[0x6];
405 u8 ip_ecn[0x2];
Mohamad Haj Yahia10543362016-10-09 16:25:43 +0300406 u8 cvlan_tag[0x1];
407 u8 svlan_tag[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300408 u8 frag[0x1];
Ariel Levkovich19cc7522017-04-03 13:11:03 +0300409 u8 ip_version[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300410 u8 tcp_flags[0x9];
411
412 u8 tcp_sport[0x10];
413 u8 tcp_dport[0x10];
414
Or Gerlitza8ade552017-06-07 17:49:56 +0300415 u8 reserved_at_c0[0x18];
416 u8 ttl_hoplimit[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300417
418 u8 udp_sport[0x10];
419 u8 udp_dport[0x10];
420
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200421 union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits src_ipv4_src_ipv6;
Saeed Mahameede2816822015-05-28 22:28:40 +0300422
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200423 union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits dst_ipv4_dst_ipv6;
Saeed Mahameede2816822015-05-28 22:28:40 +0300424};
425
Oz Shlomo5886a962018-12-10 13:15:13 -0800426struct mlx5_ifc_nvgre_key_bits {
427 u8 hi[0x18];
428 u8 lo[0x8];
429};
430
431union mlx5_ifc_gre_key_bits {
432 struct mlx5_ifc_nvgre_key_bits nvgre;
433 u8 key[0x20];
434};
435
Saeed Mahameede2816822015-05-28 22:28:40 +0300436struct mlx5_ifc_fte_match_set_misc_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +0300437 u8 reserved_at_0[0x8];
438 u8 source_sqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +0300439
Shahar Klein3e99df82018-03-18 09:02:06 +0200440 u8 source_eswitch_owner_vhca_id[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300441 u8 source_port[0x10];
442
443 u8 outer_second_prio[0x3];
444 u8 outer_second_cfi[0x1];
445 u8 outer_second_vid[0xc];
446 u8 inner_second_prio[0x3];
447 u8 inner_second_cfi[0x1];
448 u8 inner_second_vid[0xc];
449
Mohamad Haj Yahia10543362016-10-09 16:25:43 +0300450 u8 outer_second_cvlan_tag[0x1];
451 u8 inner_second_cvlan_tag[0x1];
452 u8 outer_second_svlan_tag[0x1];
453 u8 inner_second_svlan_tag[0x1];
454 u8 reserved_at_64[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300455 u8 gre_protocol[0x10];
456
Oz Shlomo5886a962018-12-10 13:15:13 -0800457 union mlx5_ifc_gre_key_bits gre_key;
Saeed Mahameede2816822015-05-28 22:28:40 +0300458
459 u8 vxlan_vni[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200460 u8 reserved_at_b8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300461
Matan Barakb4ff3a32016-02-09 14:57:42 +0200462 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300463
Matan Barakb4ff3a32016-02-09 14:57:42 +0200464 u8 reserved_at_e0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300465 u8 outer_ipv6_flow_label[0x14];
466
Matan Barakb4ff3a32016-02-09 14:57:42 +0200467 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300468 u8 inner_ipv6_flow_label[0x14];
469
Yishai Hadasa550ddf2017-08-17 15:52:33 +0300470 u8 reserved_at_120[0x28];
471 u8 bth_dst_qp[0x18];
Boris Pismenny3346c482017-08-20 15:13:08 +0300472 u8 reserved_at_160[0x20];
473 u8 outer_esp_spi[0x20];
474 u8 reserved_at_1a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +0300475};
476
Ariel Levkovich71c6e862018-05-13 14:33:34 +0300477struct mlx5_ifc_fte_match_mpls_bits {
478 u8 mpls_label[0x14];
479 u8 mpls_exp[0x3];
480 u8 mpls_s_bos[0x1];
481 u8 mpls_ttl[0x8];
482};
483
484struct mlx5_ifc_fte_match_set_misc2_bits {
485 struct mlx5_ifc_fte_match_mpls_bits outer_first_mpls;
486
487 struct mlx5_ifc_fte_match_mpls_bits inner_first_mpls;
488
489 struct mlx5_ifc_fte_match_mpls_bits outer_first_mpls_over_gre;
490
491 struct mlx5_ifc_fte_match_mpls_bits outer_first_mpls_over_udp;
492
493 u8 reserved_at_80[0x100];
494
495 u8 metadata_reg_a[0x20];
496
497 u8 reserved_at_1a0[0x60];
498};
499
Saeed Mahameede2816822015-05-28 22:28:40 +0300500struct mlx5_ifc_cmd_pas_bits {
501 u8 pa_h[0x20];
502
503 u8 pa_l[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200504 u8 reserved_at_34[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300505};
506
507struct mlx5_ifc_uint64_bits {
508 u8 hi[0x20];
509
510 u8 lo[0x20];
511};
512
513enum {
514 MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0,
515 MLX5_ADS_STAT_RATE_2_5GBPS = 0x7,
516 MLX5_ADS_STAT_RATE_10GBPS = 0x8,
517 MLX5_ADS_STAT_RATE_30GBPS = 0x9,
518 MLX5_ADS_STAT_RATE_5GBPS = 0xa,
519 MLX5_ADS_STAT_RATE_20GBPS = 0xb,
520 MLX5_ADS_STAT_RATE_40GBPS = 0xc,
521 MLX5_ADS_STAT_RATE_60GBPS = 0xd,
522 MLX5_ADS_STAT_RATE_80GBPS = 0xe,
523 MLX5_ADS_STAT_RATE_120GBPS = 0xf,
524};
525
526struct mlx5_ifc_ads_bits {
527 u8 fl[0x1];
528 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200529 u8 reserved_at_2[0xe];
Saeed Mahameede2816822015-05-28 22:28:40 +0300530 u8 pkey_index[0x10];
531
Matan Barakb4ff3a32016-02-09 14:57:42 +0200532 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300533 u8 grh[0x1];
534 u8 mlid[0x7];
535 u8 rlid[0x10];
536
537 u8 ack_timeout[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200538 u8 reserved_at_45[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300539 u8 src_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200540 u8 reserved_at_50[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300541 u8 stat_rate[0x4];
542 u8 hop_limit[0x8];
543
Matan Barakb4ff3a32016-02-09 14:57:42 +0200544 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300545 u8 tclass[0x8];
546 u8 flow_label[0x14];
547
548 u8 rgid_rip[16][0x8];
549
Matan Barakb4ff3a32016-02-09 14:57:42 +0200550 u8 reserved_at_100[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300551 u8 f_dscp[0x1];
552 u8 f_ecn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200553 u8 reserved_at_106[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300554 u8 f_eth_prio[0x1];
555 u8 ecn[0x2];
556 u8 dscp[0x6];
557 u8 udp_sport[0x10];
558
559 u8 dei_cfi[0x1];
560 u8 eth_prio[0x3];
561 u8 sl[0x4];
Daniel Jurgens32f69e42018-01-04 17:25:36 +0200562 u8 vhca_port_num[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300563 u8 rmac_47_32[0x10];
564
565 u8 rmac_31_0[0x20];
566};
567
568struct mlx5_ifc_flow_table_nic_cap_bits {
Maor Gottliebb3638e12016-03-07 18:51:46 +0200569 u8 nic_rx_multi_path_tirs[0x1];
Maor Gottliebcea824d2016-05-31 14:09:09 +0300570 u8 nic_rx_multi_path_tirs_fts[0x1];
571 u8 allow_sniffer_and_nic_rx_shared_tir[0x1];
Mark Blochbea4e1f2018-08-28 14:18:47 +0300572 u8 reserved_at_3[0x1d];
573 u8 encap_general_header[0x1];
574 u8 reserved_at_21[0xa];
575 u8 log_max_packet_reformat_context[0x5];
576 u8 reserved_at_30[0x6];
577 u8 max_encap_header_size[0xa];
578 u8 reserved_at_40[0x1c0];
Saeed Mahameede2816822015-05-28 22:28:40 +0300579
580 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;
581
Matan Barakb4ff3a32016-02-09 14:57:42 +0200582 u8 reserved_at_400[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300583
584 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;
585
586 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit;
587
Matan Barakb4ff3a32016-02-09 14:57:42 +0200588 u8 reserved_at_a00[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300589
590 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer;
591
Matan Barakb4ff3a32016-02-09 14:57:42 +0200592 u8 reserved_at_e00[0x7200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300593};
594
Saeed Mahameed495716b2015-12-01 18:03:19 +0200595struct mlx5_ifc_flow_table_eswitch_cap_bits {
Chris Mib4563002018-04-24 11:21:46 +0900596 u8 reserved_at_0[0x1c];
597 u8 fdb_multi_path_to_table[0x1];
Paul Blakeyb9aa0ba2018-05-31 11:50:23 +0300598 u8 reserved_at_1d[0x1];
599 u8 multi_fdb_encap[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +0200600 u8 reserved_at_1f[0x1e1];
Saeed Mahameed495716b2015-12-01 18:03:19 +0200601
602 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb;
603
604 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress;
605
606 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress;
607
Matan Barakb4ff3a32016-02-09 14:57:42 +0200608 u8 reserved_at_800[0x7800];
Saeed Mahameed495716b2015-12-01 18:03:19 +0200609};
610
Saeed Mahameedd6666752015-12-01 18:03:22 +0200611struct mlx5_ifc_e_switch_cap_bits {
612 u8 vport_svlan_strip[0x1];
613 u8 vport_cvlan_strip[0x1];
614 u8 vport_svlan_insert[0x1];
615 u8 vport_cvlan_insert_if_not_exist[0x1];
616 u8 vport_cvlan_insert_overwrite[0x1];
Roi Dayana6d04562017-12-05 10:38:58 +0200617 u8 reserved_at_5[0x18];
618 u8 merged_eswitch[0x1];
Noa Osherovich23898c72016-06-10 00:07:37 +0300619 u8 nic_vport_node_guid_modify[0x1];
620 u8 nic_vport_port_guid_modify[0x1];
Saeed Mahameedd6666752015-12-01 18:03:22 +0200621
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300622 u8 vxlan_encap_decap[0x1];
623 u8 nvgre_encap_decap[0x1];
624 u8 reserved_at_22[0x9];
Mark Bloch60786f02018-08-28 14:18:46 +0300625 u8 log_max_packet_reformat_context[0x5];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300626 u8 reserved_2b[0x6];
627 u8 max_encap_header_size[0xa];
628
629 u8 reserved_40[0x7c0];
630
Saeed Mahameedd6666752015-12-01 18:03:22 +0200631};
632
Saeed Mahameed74862162016-06-09 15:11:34 +0300633struct mlx5_ifc_qos_cap_bits {
634 u8 packet_pacing[0x1];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300635 u8 esw_scheduling[0x1];
Mohamad Haj Yahiac9497c92016-12-15 14:02:53 +0200636 u8 esw_bw_share[0x1];
637 u8 esw_rate_limit[0x1];
Bodong Wang05d3ac92018-03-19 15:10:29 +0200638 u8 reserved_at_4[0x1];
639 u8 packet_pacing_burst_bound[0x1];
640 u8 packet_pacing_typical_size[0x1];
641 u8 reserved_at_7[0x19];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300642
643 u8 reserved_at_20[0x20];
644
Saeed Mahameed74862162016-06-09 15:11:34 +0300645 u8 packet_pacing_max_rate[0x20];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300646
Saeed Mahameed74862162016-06-09 15:11:34 +0300647 u8 packet_pacing_min_rate[0x20];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300648
649 u8 reserved_at_80[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +0300650 u8 packet_pacing_rate_table_size[0x10];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300651
652 u8 esw_element_type[0x10];
653 u8 esw_tsar_type[0x10];
654
655 u8 reserved_at_c0[0x10];
656 u8 max_qos_para_vport[0x10];
657
658 u8 max_tsar_bw_share[0x20];
659
660 u8 reserved_at_100[0x700];
Saeed Mahameed74862162016-06-09 15:11:34 +0300661};
662
Inbar Karmy2fcb12d2017-08-17 16:39:47 +0300663struct mlx5_ifc_debug_cap_bits {
664 u8 reserved_at_0[0x20];
665
666 u8 reserved_at_20[0x2];
667 u8 stall_detect[0x1];
668 u8 reserved_at_23[0x1d];
669
670 u8 reserved_at_40[0x7c0];
671};
672
Saeed Mahameede2816822015-05-28 22:28:40 +0300673struct mlx5_ifc_per_protocol_networking_offload_caps_bits {
674 u8 csum_cap[0x1];
675 u8 vlan_cap[0x1];
676 u8 lro_cap[0x1];
677 u8 lro_psh_flag[0x1];
678 u8 lro_time_stamp[0x1];
Saeed Mahameed2b31f7a2016-11-28 18:04:50 +0200679 u8 reserved_at_5[0x2];
680 u8 wqe_vlan_insert[0x1];
Tariq Toukan66189962015-11-12 19:35:26 +0200681 u8 self_lb_en_modifiable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200682 u8 reserved_at_9[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300683 u8 max_lso_cap[0x5];
Leon Romanovskyc226dc22016-10-31 12:15:20 +0200684 u8 multi_pkt_send_wqe[0x2];
Hadar Hen Zioncff92d72016-07-24 16:12:40 +0300685 u8 wqe_inline_mode[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300686 u8 rss_ind_tbl_cap[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300687 u8 reg_umr_sq[0x1];
688 u8 scatter_fcs[0x1];
Bodong Wang050da902017-08-17 15:52:35 +0300689 u8 enhanced_multi_pkt_send_wqe[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300690 u8 tunnel_lso_const_out_ip_id[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200691 u8 reserved_at_1c[0x2];
Gal Pressman27299842017-08-13 13:34:42 +0300692 u8 tunnel_stateless_gre[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300693 u8 tunnel_stateless_vxlan[0x1];
694
Ilan Tayari547eede2017-04-18 16:04:28 +0300695 u8 swp[0x1];
696 u8 swp_csum[0x1];
697 u8 swp_lso[0x1];
Gal Pressman22a65aa2017-12-25 18:40:52 +0200698 u8 reserved_at_23[0xd];
699 u8 max_vxlan_udp_ports[0x8];
700 u8 reserved_at_38[0x6];
Maor Gottlieb4d350f12017-10-19 08:25:54 +0300701 u8 max_geneve_opt_len[0x1];
702 u8 tunnel_stateless_geneve_rx[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300703
Matan Barakb4ff3a32016-02-09 14:57:42 +0200704 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300705 u8 lro_min_mss_size[0x10];
706
Matan Barakb4ff3a32016-02-09 14:57:42 +0200707 u8 reserved_at_60[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +0300708
709 u8 lro_timer_supported_periods[4][0x20];
710
Matan Barakb4ff3a32016-02-09 14:57:42 +0200711 u8 reserved_at_200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +0300712};
713
714struct mlx5_ifc_roce_cap_bits {
715 u8 roce_apm[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200716 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +0300717
Matan Barakb4ff3a32016-02-09 14:57:42 +0200718 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +0300719
Matan Barakb4ff3a32016-02-09 14:57:42 +0200720 u8 reserved_at_80[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300721 u8 l3_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200722 u8 reserved_at_90[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300723 u8 roce_version[0x8];
724
Matan Barakb4ff3a32016-02-09 14:57:42 +0200725 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300726 u8 r_roce_dest_udp_port[0x10];
727
728 u8 r_roce_max_src_udp_port[0x10];
729 u8 r_roce_min_src_udp_port[0x10];
730
Matan Barakb4ff3a32016-02-09 14:57:42 +0200731 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300732 u8 roce_address_table_size[0x10];
733
Matan Barakb4ff3a32016-02-09 14:57:42 +0200734 u8 reserved_at_100[0x700];
Saeed Mahameede2816822015-05-28 22:28:40 +0300735};
736
Ariel Levkoviche72bd812018-04-05 18:53:26 +0300737struct mlx5_ifc_device_mem_cap_bits {
738 u8 memic[0x1];
739 u8 reserved_at_1[0x1f];
740
741 u8 reserved_at_20[0xb];
742 u8 log_min_memic_alloc_size[0x5];
743 u8 reserved_at_30[0x8];
744 u8 log_max_memic_addr_alignment[0x8];
745
746 u8 memic_bar_start_addr[0x40];
747
748 u8 memic_bar_size[0x20];
749
750 u8 max_memic_size[0x20];
751
752 u8 reserved_at_c0[0x740];
753};
754
Saeed Mahameede2816822015-05-28 22:28:40 +0300755enum {
756 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0,
757 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2,
758 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4,
759 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8,
760 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10,
761 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20,
762 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40,
763 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80,
764 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100,
765};
766
767enum {
768 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1,
769 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2,
770 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4,
771 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8,
772 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10,
773 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20,
774 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40,
775 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80,
776 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100,
777};
778
779struct mlx5_ifc_atomic_caps_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200780 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300781
Or Gerlitzbd108382017-05-28 15:24:17 +0300782 u8 atomic_req_8B_endianness_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200783 u8 reserved_at_42[0x4];
Or Gerlitzbd108382017-05-28 15:24:17 +0300784 u8 supported_atomic_req_8B_endianness_mode_1[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300785
Matan Barakb4ff3a32016-02-09 14:57:42 +0200786 u8 reserved_at_47[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +0300787
Matan Barakb4ff3a32016-02-09 14:57:42 +0200788 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300789
Matan Barakb4ff3a32016-02-09 14:57:42 +0200790 u8 reserved_at_80[0x10];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200791 u8 atomic_operations[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300792
Matan Barakb4ff3a32016-02-09 14:57:42 +0200793 u8 reserved_at_a0[0x10];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200794 u8 atomic_size_qp[0x10];
795
Matan Barakb4ff3a32016-02-09 14:57:42 +0200796 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300797 u8 atomic_size_dc[0x10];
798
Matan Barakb4ff3a32016-02-09 14:57:42 +0200799 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +0300800};
801
802struct mlx5_ifc_odp_cap_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200803 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300804
805 u8 sig[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200806 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +0300807
Matan Barakb4ff3a32016-02-09 14:57:42 +0200808 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300809
810 struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps;
811
812 struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps;
813
814 struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps;
815
Matan Barakb4ff3a32016-02-09 14:57:42 +0200816 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +0300817};
818
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200819struct mlx5_ifc_calc_op {
820 u8 reserved_at_0[0x10];
821 u8 reserved_at_10[0x9];
822 u8 op_swap_endianness[0x1];
823 u8 op_min[0x1];
824 u8 op_xor[0x1];
825 u8 op_or[0x1];
826 u8 op_and[0x1];
827 u8 op_max[0x1];
828 u8 op_add[0x1];
829};
830
831struct mlx5_ifc_vector_calc_cap_bits {
832 u8 calc_matrix[0x1];
833 u8 reserved_at_1[0x1f];
834 u8 reserved_at_20[0x8];
835 u8 max_vec_count[0x8];
836 u8 reserved_at_30[0xd];
837 u8 max_chunk_size[0x3];
838 struct mlx5_ifc_calc_op calc0;
839 struct mlx5_ifc_calc_op calc1;
840 struct mlx5_ifc_calc_op calc2;
841 struct mlx5_ifc_calc_op calc3;
842
Gal Pressmanc74d90c2018-11-07 20:31:37 +0200843 u8 reserved_at_c0[0x720];
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200844};
845
Saeed Mahameede2816822015-05-28 22:28:40 +0300846enum {
847 MLX5_WQ_TYPE_LINKED_LIST = 0x0,
848 MLX5_WQ_TYPE_CYCLIC = 0x1,
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300849 MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ = 0x2,
Noa Osherovichccc870872017-10-17 18:01:13 +0300850 MLX5_WQ_TYPE_CYCLIC_STRIDING_RQ = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +0300851};
852
853enum {
854 MLX5_WQ_END_PAD_MODE_NONE = 0x0,
855 MLX5_WQ_END_PAD_MODE_ALIGN = 0x1,
856};
857
858enum {
859 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0,
860 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1,
861 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2,
862 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3,
863 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4,
864};
865
866enum {
867 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0,
868 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1,
869 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2,
870 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3,
871 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4,
872 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5,
873};
874
875enum {
876 MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0,
877 MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1,
878};
879
880enum {
881 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0,
882 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1,
883 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3,
884};
885
886enum {
887 MLX5_CAP_PORT_TYPE_IB = 0x0,
888 MLX5_CAP_PORT_TYPE_ETH = 0x1,
Eli Cohend29b7962014-10-02 12:19:43 +0300889};
890
Max Gurtovoy1410a902017-05-28 10:53:10 +0300891enum {
892 MLX5_CAP_UMR_FENCE_STRONG = 0x0,
893 MLX5_CAP_UMR_FENCE_SMALL = 0x1,
894 MLX5_CAP_UMR_FENCE_NONE = 0x2,
895};
896
Yishai Hadas9d43faa2018-11-26 08:28:32 +0200897enum {
898 MLX5_UCTX_CAP_RAW_TX = 1UL << 0,
899};
900
Eli Cohenb7755162014-10-02 12:19:44 +0300901struct mlx5_ifc_cmd_hca_cap_bits {
Daniel Jurgens32f69e42018-01-04 17:25:36 +0200902 u8 reserved_at_0[0x30];
903 u8 vhca_id[0x10];
904
905 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +0300906
907 u8 log_max_srq_sz[0x8];
908 u8 log_max_qp_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200909 u8 reserved_at_90[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300910 u8 log_max_qp[0x5];
911
Matan Barakb4ff3a32016-02-09 14:57:42 +0200912 u8 reserved_at_a0[0xb];
Saeed Mahameede2816822015-05-28 22:28:40 +0300913 u8 log_max_srq[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200914 u8 reserved_at_b0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300915
Matan Barakb4ff3a32016-02-09 14:57:42 +0200916 u8 reserved_at_c0[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300917 u8 log_max_cq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200918 u8 reserved_at_d0[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300919 u8 log_max_cq[0x5];
920
921 u8 log_max_eq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200922 u8 reserved_at_e8[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300923 u8 log_max_mkey[0x6];
Leon Romanovskyb183ee22018-06-19 08:47:23 +0300924 u8 reserved_at_f0[0x8];
925 u8 dump_fill_mkey[0x1];
Feras Daoudfcd29ad2018-08-09 09:55:21 +0300926 u8 reserved_at_f9[0x2];
927 u8 fast_teardown[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300928 u8 log_max_eq[0x4];
929
930 u8 max_indirection[0x8];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +0200931 u8 fixed_buffer_size[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300932 u8 log_max_mrw_sz[0x7];
Majd Dibbiny8812c242017-02-09 14:20:12 +0200933 u8 force_teardown[0x1];
934 u8 reserved_at_111[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300935 u8 log_max_bsf_list_size[0x6];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +0200936 u8 umr_extended_translation_offset[0x1];
937 u8 null_mkey[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300938 u8 log_max_klm_list_size[0x6];
939
Matan Barakb4ff3a32016-02-09 14:57:42 +0200940 u8 reserved_at_120[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300941 u8 log_max_ra_req_dc[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200942 u8 reserved_at_130[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300943 u8 log_max_ra_res_dc[0x6];
944
Matan Barakb4ff3a32016-02-09 14:57:42 +0200945 u8 reserved_at_140[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300946 u8 log_max_ra_req_qp[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200947 u8 reserved_at_150[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300948 u8 log_max_ra_res_qp[0x6];
949
Daniel Jurgensf32f5bd2015-11-19 17:12:26 +0200950 u8 end_pad[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300951 u8 cc_query_allowed[0x1];
952 u8 cc_modify_allowed[0x1];
Daniel Jurgensf32f5bd2015-11-19 17:12:26 +0200953 u8 start_pad[0x1];
954 u8 cache_line_128byte[0x1];
Huy Nguyenc02762e2017-07-18 16:03:17 -0500955 u8 reserved_at_165[0xa];
956 u8 qcam_reg[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300957 u8 gid_table_size[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300958
Saeed Mahameede2816822015-05-28 22:28:40 +0300959 u8 out_of_seq_cnt[0x1];
960 u8 vport_counters[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +0300961 u8 retransmission_q_counters[0x1];
Inbar Karmy2fcb12d2017-08-17 16:39:47 +0300962 u8 debug[0x1];
Alex Vesker83b502a2016-08-04 17:32:02 +0300963 u8 modify_rq_counter_set_id[0x1];
Maor Gottliebc1e0bfc2017-05-30 10:29:11 +0300964 u8 rq_delay_drop[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300965 u8 max_qp_cnt[0xa];
966 u8 pkey_table_size[0x10];
967
Saeed Mahameede2816822015-05-28 22:28:40 +0300968 u8 vport_group_manager[0x1];
969 u8 vhca_group_manager[0x1];
970 u8 ib_virt[0x1];
971 u8 eth_virt[0x1];
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +0200972 u8 vnic_env_queue_counters[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300973 u8 ets[0x1];
974 u8 nic_flow_table[0x1];
Or Gerlitz0efc8562018-05-31 11:16:18 +0300975 u8 eswitch_manager[0x1];
Ariel Levkoviche72bd812018-04-05 18:53:26 +0300976 u8 device_memory[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +0200977 u8 mcam_reg[0x1];
978 u8 pcam_reg[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300979 u8 local_ca_ack_delay[0x5];
Huy Nguyen4ce3bf22016-11-17 13:45:56 +0200980 u8 port_module_event[0x1];
Parav Pandit58dcb602017-06-19 07:19:37 +0300981 u8 enhanced_error_q_counters[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300982 u8 ports_check[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +0200983 u8 reserved_at_1b3[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300984 u8 disable_link_up[0x1];
985 u8 beacon_led[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300986 u8 port_type[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300987 u8 num_ports[0x8];
988
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +0300989 u8 reserved_at_1c0[0x1];
990 u8 pps[0x1];
991 u8 pps_modify[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300992 u8 log_max_msg[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300993 u8 reserved_at_1c8[0x4];
Saeed Mahameed4f3961e2016-02-22 18:17:25 +0200994 u8 max_tc[0x4];
Ilan Tayari1865ea9a2018-05-30 10:59:49 -0700995 u8 temp_warn_event[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +0300996 u8 dcbx[0x1];
Maor Gottlieb246ac982017-05-30 10:29:12 +0300997 u8 general_notification_event[0x1];
998 u8 reserved_at_1d3[0x2];
Ilan Tayarie29341f2017-03-13 20:05:45 +0200999 u8 fpga[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +02001000 u8 rol_s[0x1];
1001 u8 rol_g[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001002 u8 reserved_at_1d8[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +02001003 u8 wol_s[0x1];
1004 u8 wol_g[0x1];
1005 u8 wol_a[0x1];
1006 u8 wol_b[0x1];
1007 u8 wol_m[0x1];
1008 u8 wol_u[0x1];
1009 u8 wol_p[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001010
1011 u8 stat_rate_support[0x10];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001012 u8 reserved_at_1f0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001013 u8 cqe_version[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +03001014
Saeed Mahameede2816822015-05-28 22:28:40 +03001015 u8 compact_address_vector[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001016 u8 striding_rq[0x1];
Erez Shitrit500a3d02017-04-13 06:36:51 +03001017 u8 reserved_at_202[0x1];
1018 u8 ipoib_enhanced_offloads[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02001019 u8 ipoib_basic_offloads[0x1];
Majd Dibbinyc8d75a92018-03-22 15:34:04 +02001020 u8 reserved_at_205[0x1];
1021 u8 repeated_block_disabled[0x1];
1022 u8 umr_modify_entity_size_disabled[0x1];
1023 u8 umr_modify_atomic_disabled[0x1];
1024 u8 umr_indirect_mkey_disabled[0x1];
Max Gurtovoy1410a902017-05-28 10:53:10 +03001025 u8 umr_fence[0x2];
Yonatan Cohen94a04d12018-10-09 12:05:12 +03001026 u8 dc_req_scat_data_cqe[0x1];
1027 u8 reserved_at_20d[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001028 u8 drain_sigerr[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001029 u8 cmdif_checksum[0x2];
1030 u8 sigerr_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001031 u8 reserved_at_213[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001032 u8 wq_signature[0x1];
1033 u8 sctr_data_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001034 u8 reserved_at_216[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001035 u8 sho[0x1];
1036 u8 tph[0x1];
1037 u8 rf[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001038 u8 dct[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03001039 u8 qos[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001040 u8 eth_net_offloads[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001041 u8 roce[0x1];
1042 u8 atomic[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001043 u8 reserved_at_21f[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001044
1045 u8 cq_oi[0x1];
1046 u8 cq_resize[0x1];
1047 u8 cq_moderation[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001048 u8 reserved_at_223[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001049 u8 cq_eq_remap[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001050 u8 pg[0x1];
1051 u8 block_lb_mc[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001052 u8 reserved_at_229[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001053 u8 scqe_break_moderation[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001054 u8 cq_period_start_from_cqe[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001055 u8 cd[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001056 u8 reserved_at_22d[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001057 u8 apm[0x1];
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02001058 u8 vector_calc[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001059 u8 umr_ptr_rlky[0x1];
Matan Barakd2370e02016-02-29 18:05:30 +02001060 u8 imaicl[0x1];
Danit Goldberg3fd3c802018-11-30 13:22:04 +02001061 u8 qp_packet_based[0x1];
1062 u8 reserved_at_233[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001063 u8 qkv[0x1];
1064 u8 pkv[0x1];
Haggai Eranb11a4f92016-02-29 15:45:03 +02001065 u8 set_deth_sqpn[0x1];
1066 u8 reserved_at_239[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001067 u8 xrc[0x1];
1068 u8 ud[0x1];
1069 u8 uc[0x1];
1070 u8 rc[0x1];
1071
Eli Cohena6d51b62017-01-03 23:55:23 +02001072 u8 uar_4k[0x1];
1073 u8 reserved_at_241[0x9];
Eli Cohenb7755162014-10-02 12:19:44 +03001074 u8 uar_sz[0x6];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001075 u8 reserved_at_250[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001076 u8 log_pg_sz[0x8];
1077
1078 u8 bf[0x1];
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +02001079 u8 driver_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001080 u8 pad_tx_eth_packet[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001081 u8 reserved_at_263[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001082 u8 log_bf_reg_size[0x5];
Aviv Heller84df61e2016-05-10 13:47:50 +03001083
1084 u8 reserved_at_270[0xb];
1085 u8 lag_master[0x1];
1086 u8 num_lag_ports[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +03001087
Tariq Toukane1c9c622016-04-11 23:10:21 +03001088 u8 reserved_at_280[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001089 u8 max_wqe_sz_sq[0x10];
1090
Tariq Toukane1c9c622016-04-11 23:10:21 +03001091 u8 reserved_at_2a0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001092 u8 max_wqe_sz_rq[0x10];
1093
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001094 u8 max_flow_counter_31_16[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001095 u8 max_wqe_sz_sq_dc[0x10];
1096
Tariq Toukane1c9c622016-04-11 23:10:21 +03001097 u8 reserved_at_2e0[0x7];
Eli Cohenb7755162014-10-02 12:19:44 +03001098 u8 max_qp_mcg[0x19];
1099
Tariq Toukane1c9c622016-04-11 23:10:21 +03001100 u8 reserved_at_300[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03001101 u8 log_max_mcg[0x8];
1102
Tariq Toukane1c9c622016-04-11 23:10:21 +03001103 u8 reserved_at_320[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001104 u8 log_max_transport_domain[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001105 u8 reserved_at_328[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001106 u8 log_max_pd[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001107 u8 reserved_at_330[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +03001108 u8 log_max_xrcd[0x5];
1109
Moshe Shemesh5c298142017-12-26 16:46:29 +02001110 u8 nic_receive_steering_discard[0x1];
Moshe Shemeshaaabd072018-01-14 00:56:25 +02001111 u8 receive_discard_vport_down[0x1];
1112 u8 transmit_discard_vport_down[0x1];
1113 u8 reserved_at_343[0x5];
Amir Vadaia351a1b02016-07-14 10:32:38 +03001114 u8 log_max_flow_counter_bulk[0x8];
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001115 u8 max_flow_counter_15_0[0x10];
Amir Vadaia351a1b02016-07-14 10:32:38 +03001116
Eli Cohenb7755162014-10-02 12:19:44 +03001117
Tariq Toukane1c9c622016-04-11 23:10:21 +03001118 u8 reserved_at_360[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001119 u8 log_max_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001120 u8 reserved_at_368[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001121 u8 log_max_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001122 u8 reserved_at_370[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001123 u8 log_max_tir[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001124 u8 reserved_at_378[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001125 u8 log_max_tis[0x5];
1126
Saeed Mahameede2816822015-05-28 22:28:40 +03001127 u8 basic_cyclic_rcv_wqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001128 u8 reserved_at_381[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001129 u8 log_max_rmp[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001130 u8 reserved_at_388[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001131 u8 log_max_rqt[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001132 u8 reserved_at_390[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001133 u8 log_max_rqt_size[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001134 u8 reserved_at_398[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001135 u8 log_max_tis_per_sq[0x5];
1136
Tariq Toukan619a8f2a2018-02-07 14:41:25 +02001137 u8 ext_stride_num_range[0x1];
1138 u8 reserved_at_3a1[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001139 u8 log_max_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001140 u8 reserved_at_3a8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001141 u8 log_min_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001142 u8 reserved_at_3b0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001143 u8 log_max_stride_sz_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001144 u8 reserved_at_3b8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001145 u8 log_min_stride_sz_sq[0x5];
Eli Cohenb7755162014-10-02 12:19:44 +03001146
Or Gerlitz40817cd2017-06-25 12:38:45 +03001147 u8 hairpin[0x1];
1148 u8 reserved_at_3c1[0x2];
1149 u8 log_max_hairpin_queues[0x5];
1150 u8 reserved_at_3c8[0x3];
1151 u8 log_max_hairpin_wq_data_sz[0x5];
Or Gerlitz4d533e02018-01-04 12:26:21 +02001152 u8 reserved_at_3d0[0x3];
1153 u8 log_max_hairpin_num_packets[0x5];
1154 u8 reserved_at_3d8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001155 u8 log_max_wq_sz[0x5];
1156
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001157 u8 nic_vport_change_event[0x1];
Eran Ben Elisha8978cc92018-01-09 11:41:10 +02001158 u8 disable_local_lb_uc[0x1];
1159 u8 disable_local_lb_mc[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001160 u8 log_min_hairpin_wq_data_sz[0x5];
1161 u8 reserved_at_3e8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001162 u8 log_max_vlan_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001163 u8 reserved_at_3f0[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001164 u8 log_max_current_mc_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001165 u8 reserved_at_3f8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001166 u8 log_max_current_uc_list[0x5];
1167
Yishai Hadas38b7ca92018-03-08 14:36:27 +02001168 u8 general_obj_types[0x40];
1169
Denis Drozdov342ac842018-08-08 16:23:48 -07001170 u8 reserved_at_440[0x20];
1171
1172 u8 reserved_at_460[0x10];
1173 u8 max_num_eqs[0x10];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001174
Tariq Toukane1c9c622016-04-11 23:10:21 +03001175 u8 reserved_at_480[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001176 u8 log_max_l2_table[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001177 u8 reserved_at_488[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001178 u8 log_uar_page_sz[0x10];
1179
Tariq Toukane1c9c622016-04-11 23:10:21 +03001180 u8 reserved_at_4a0[0x20];
Linus Torvalds048ccca2016-01-23 18:45:06 -08001181 u8 device_frequency_mhz[0x20];
Eran Ben Elishab0844442015-12-29 14:58:30 +02001182 u8 device_frequency_khz[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001183
Eli Cohena6d51b62017-01-03 23:55:23 +02001184 u8 reserved_at_500[0x20];
1185 u8 num_of_uars_per_page[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001186
Ariel Levkoviche818e252018-05-13 14:33:35 +03001187 u8 flex_parser_protocols[0x20];
1188 u8 reserved_at_560[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001189
Yonatan Cohenab741b22018-05-27 13:42:32 +03001190 u8 reserved_at_580[0x3c];
1191 u8 mini_cqe_resp_stride_index[0x1];
Guy Levi0ff8e792017-10-19 08:25:51 +03001192 u8 cqe_128_always[0x1];
1193 u8 cqe_compression_128[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001194 u8 cqe_compression[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001195
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001196 u8 cqe_compression_timeout[0x10];
1197 u8 cqe_compression_max_num[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001198
Saeed Mahameed74862162016-06-09 15:11:34 +03001199 u8 reserved_at_5e0[0x10];
1200 u8 tag_matching[0x1];
1201 u8 rndv_offload_rc[0x1];
1202 u8 rndv_offload_dc[0x1];
1203 u8 log_tag_matching_list_sz[0x5];
Max Gurtovoy7b135582017-01-02 11:37:38 +02001204 u8 reserved_at_5f8[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03001205 u8 log_max_xrq[0x5];
1206
Daniel Jurgens32f69e42018-01-04 17:25:36 +02001207 u8 affiliate_nic_vport_criteria[0x8];
1208 u8 native_port_num[0x8];
1209 u8 num_vhca_ports[0x8];
1210 u8 reserved_at_618[0x6];
1211 u8 sw_owner_id[0x1];
Yishai Hadas9d43faa2018-11-26 08:28:32 +02001212 u8 reserved_at_61f[0x1];
1213
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08001214 u8 max_num_of_monitor_counters[0x10];
1215 u8 num_ppcnt_monitor_counters[0x10];
1216
1217 u8 reserved_at_640[0x10];
1218 u8 num_q_monitor_counters[0x10];
1219
1220 u8 reserved_at_660[0x40];
Yishai Hadas9d43faa2018-11-26 08:28:32 +02001221
1222 u8 uctx_cap[0x20];
1223
1224 u8 reserved_at_6c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03001225};
1226
Saeed Mahameed81848732015-12-01 18:03:20 +02001227enum mlx5_flow_destination_type {
1228 MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0,
1229 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1,
1230 MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2,
Amir Vadaibd5251db2016-05-13 12:55:40 +00001231
Aviad Yehezkel5f418372018-02-18 13:17:17 +02001232 MLX5_FLOW_DESTINATION_TYPE_PORT = 0x99,
Amir Vadaibd5251db2016-05-13 12:55:40 +00001233 MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100,
Yishai Hadas664000b2018-06-19 15:23:36 +03001234 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM = 0x101,
Saeed Mahameede2816822015-05-28 22:28:40 +03001235};
1236
1237struct mlx5_ifc_dest_format_struct_bits {
1238 u8 destination_type[0x8];
1239 u8 destination_id[0x18];
Shahar Kleinb17f7fc2018-03-22 12:32:12 +02001240 u8 destination_eswitch_owner_vhca_id_valid[0x1];
1241 u8 reserved_at_21[0xf];
1242 u8 destination_eswitch_owner_vhca_id[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001243};
1244
Amir Vadai9dc0b282016-05-13 12:55:39 +00001245struct mlx5_ifc_flow_counter_list_bits {
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001246 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00001247
1248 u8 reserved_at_20[0x20];
1249};
1250
1251union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits {
1252 struct mlx5_ifc_dest_format_struct_bits dest_format_struct;
1253 struct mlx5_ifc_flow_counter_list_bits flow_counter_list;
1254 u8 reserved_at_0[0x40];
1255};
1256
Saeed Mahameede2816822015-05-28 22:28:40 +03001257struct mlx5_ifc_fte_match_param_bits {
1258 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
1259
1260 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
1261
1262 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
1263
Ariel Levkovich71c6e862018-05-13 14:33:34 +03001264 struct mlx5_ifc_fte_match_set_misc2_bits misc_parameters_2;
1265
1266 u8 reserved_at_800[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03001267};
1268
1269enum {
1270 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
1271 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
1272 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
1273 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
1274 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
1275};
1276
1277struct mlx5_ifc_rx_hash_field_select_bits {
1278 u8 l3_prot_type[0x1];
1279 u8 l4_prot_type[0x1];
1280 u8 selected_fields[0x1e];
1281};
1282
1283enum {
1284 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
1285 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
1286};
1287
1288enum {
1289 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
1290 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
1291};
1292
1293struct mlx5_ifc_wq_bits {
1294 u8 wq_type[0x4];
1295 u8 wq_signature[0x1];
1296 u8 end_padding_mode[0x2];
1297 u8 cd_slave[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001298 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001299
1300 u8 hds_skip_first_sge[0x1];
1301 u8 log2_hds_buf_size[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001302 u8 reserved_at_24[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03001303 u8 page_offset[0x5];
1304 u8 lwm[0x10];
1305
Matan Barakb4ff3a32016-02-09 14:57:42 +02001306 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001307 u8 pd[0x18];
1308
Matan Barakb4ff3a32016-02-09 14:57:42 +02001309 u8 reserved_at_60[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001310 u8 uar_page[0x18];
1311
1312 u8 dbr_addr[0x40];
1313
1314 u8 hw_counter[0x20];
1315
1316 u8 sw_counter[0x20];
1317
Matan Barakb4ff3a32016-02-09 14:57:42 +02001318 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001319 u8 log_wq_stride[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001320 u8 reserved_at_110[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001321 u8 log_wq_pg_sz[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001322 u8 reserved_at_118[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001323 u8 log_wq_sz[0x5];
1324
Leon Romanovskybd371972018-09-20 21:35:26 +03001325 u8 dbr_umem_valid[0x1];
1326 u8 wq_umem_valid[0x1];
1327 u8 reserved_at_122[0x1];
Or Gerlitz4d533e02018-01-04 12:26:21 +02001328 u8 log_hairpin_num_packets[0x5];
1329 u8 reserved_at_128[0x3];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001330 u8 log_hairpin_data_sz[0x5];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001331
Tariq Toukan619a8f2a2018-02-07 14:41:25 +02001332 u8 reserved_at_130[0x4];
1333 u8 log_wqe_num_of_strides[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001334 u8 two_byte_shift_en[0x1];
1335 u8 reserved_at_139[0x4];
1336 u8 log_wqe_stride_size[0x3];
1337
1338 u8 reserved_at_140[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001339
1340 struct mlx5_ifc_cmd_pas_bits pas[0];
1341};
1342
1343struct mlx5_ifc_rq_num_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001344 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001345 u8 rq_num[0x18];
1346};
1347
1348struct mlx5_ifc_mac_address_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001349 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001350 u8 mac_addr_47_32[0x10];
1351
1352 u8 mac_addr_31_0[0x20];
1353};
1354
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001355struct mlx5_ifc_vlan_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001356 u8 reserved_at_0[0x14];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001357 u8 vlan[0x0c];
1358
Matan Barakb4ff3a32016-02-09 14:57:42 +02001359 u8 reserved_at_20[0x20];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001360};
1361
Saeed Mahameede2816822015-05-28 22:28:40 +03001362struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001363 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001364
1365 u8 min_time_between_cnps[0x20];
1366
Matan Barakb4ff3a32016-02-09 14:57:42 +02001367 u8 reserved_at_c0[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03001368 u8 cnp_dscp[0x6];
Parav Pandit4a2da0b2017-05-30 10:05:15 +03001369 u8 reserved_at_d8[0x4];
1370 u8 cnp_prio_mode[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001371 u8 cnp_802p_prio[0x3];
1372
Matan Barakb4ff3a32016-02-09 14:57:42 +02001373 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +03001374};
1375
1376struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001377 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001378
Matan Barakb4ff3a32016-02-09 14:57:42 +02001379 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001380 u8 clamp_tgt_rate[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001381 u8 reserved_at_65[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001382 u8 clamp_tgt_rate_after_time_inc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001383 u8 reserved_at_69[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03001384
Matan Barakb4ff3a32016-02-09 14:57:42 +02001385 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001386
1387 u8 rpg_time_reset[0x20];
1388
1389 u8 rpg_byte_reset[0x20];
1390
1391 u8 rpg_threshold[0x20];
1392
1393 u8 rpg_max_rate[0x20];
1394
1395 u8 rpg_ai_rate[0x20];
1396
1397 u8 rpg_hai_rate[0x20];
1398
1399 u8 rpg_gd[0x20];
1400
1401 u8 rpg_min_dec_fac[0x20];
1402
1403 u8 rpg_min_rate[0x20];
1404
Matan Barakb4ff3a32016-02-09 14:57:42 +02001405 u8 reserved_at_1c0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001406
1407 u8 rate_to_set_on_first_cnp[0x20];
1408
1409 u8 dce_tcp_g[0x20];
1410
1411 u8 dce_tcp_rtt[0x20];
1412
1413 u8 rate_reduce_monitor_period[0x20];
1414
Matan Barakb4ff3a32016-02-09 14:57:42 +02001415 u8 reserved_at_320[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001416
1417 u8 initial_alpha_value[0x20];
1418
Matan Barakb4ff3a32016-02-09 14:57:42 +02001419 u8 reserved_at_360[0x4a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001420};
1421
1422struct mlx5_ifc_cong_control_802_1qau_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001423 u8 reserved_at_0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001424
1425 u8 rppp_max_rps[0x20];
1426
1427 u8 rpg_time_reset[0x20];
1428
1429 u8 rpg_byte_reset[0x20];
1430
1431 u8 rpg_threshold[0x20];
1432
1433 u8 rpg_max_rate[0x20];
1434
1435 u8 rpg_ai_rate[0x20];
1436
1437 u8 rpg_hai_rate[0x20];
1438
1439 u8 rpg_gd[0x20];
1440
1441 u8 rpg_min_dec_fac[0x20];
1442
1443 u8 rpg_min_rate[0x20];
1444
Matan Barakb4ff3a32016-02-09 14:57:42 +02001445 u8 reserved_at_1c0[0x640];
Saeed Mahameede2816822015-05-28 22:28:40 +03001446};
1447
1448enum {
1449 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1450 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1451 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1452};
1453
1454struct mlx5_ifc_resize_field_select_bits {
1455 u8 resize_field_select[0x20];
1456};
1457
1458enum {
1459 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1460 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1461 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1462 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1463};
1464
1465struct mlx5_ifc_modify_field_select_bits {
1466 u8 modify_field_select[0x20];
1467};
1468
1469struct mlx5_ifc_field_select_r_roce_np_bits {
1470 u8 field_select_r_roce_np[0x20];
1471};
1472
1473struct mlx5_ifc_field_select_r_roce_rp_bits {
1474 u8 field_select_r_roce_rp[0x20];
1475};
1476
1477enum {
1478 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1479 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1480 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1481 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1482 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1483 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1484 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1485 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1486 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1487 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1488};
1489
1490struct mlx5_ifc_field_select_802_1qau_rp_bits {
1491 u8 field_select_8021qaurp[0x20];
1492};
1493
1494struct mlx5_ifc_phys_layer_cntrs_bits {
1495 u8 time_since_last_clear_high[0x20];
1496
1497 u8 time_since_last_clear_low[0x20];
1498
1499 u8 symbol_errors_high[0x20];
1500
1501 u8 symbol_errors_low[0x20];
1502
1503 u8 sync_headers_errors_high[0x20];
1504
1505 u8 sync_headers_errors_low[0x20];
1506
1507 u8 edpl_bip_errors_lane0_high[0x20];
1508
1509 u8 edpl_bip_errors_lane0_low[0x20];
1510
1511 u8 edpl_bip_errors_lane1_high[0x20];
1512
1513 u8 edpl_bip_errors_lane1_low[0x20];
1514
1515 u8 edpl_bip_errors_lane2_high[0x20];
1516
1517 u8 edpl_bip_errors_lane2_low[0x20];
1518
1519 u8 edpl_bip_errors_lane3_high[0x20];
1520
1521 u8 edpl_bip_errors_lane3_low[0x20];
1522
1523 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1524
1525 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1526
1527 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1528
1529 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1530
1531 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1532
1533 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1534
1535 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1536
1537 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1538
1539 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1540
1541 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1542
1543 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1544
1545 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1546
1547 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1548
1549 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1550
1551 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1552
1553 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1554
1555 u8 rs_fec_corrected_blocks_high[0x20];
1556
1557 u8 rs_fec_corrected_blocks_low[0x20];
1558
1559 u8 rs_fec_uncorrectable_blocks_high[0x20];
1560
1561 u8 rs_fec_uncorrectable_blocks_low[0x20];
1562
1563 u8 rs_fec_no_errors_blocks_high[0x20];
1564
1565 u8 rs_fec_no_errors_blocks_low[0x20];
1566
1567 u8 rs_fec_single_error_blocks_high[0x20];
1568
1569 u8 rs_fec_single_error_blocks_low[0x20];
1570
1571 u8 rs_fec_corrected_symbols_total_high[0x20];
1572
1573 u8 rs_fec_corrected_symbols_total_low[0x20];
1574
1575 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1576
1577 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1578
1579 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1580
1581 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1582
1583 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1584
1585 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1586
1587 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1588
1589 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1590
1591 u8 link_down_events[0x20];
1592
1593 u8 successful_recovery_events[0x20];
1594
Matan Barakb4ff3a32016-02-09 14:57:42 +02001595 u8 reserved_at_640[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03001596};
1597
Gal Pressmand8dc0502016-09-27 17:04:51 +03001598struct mlx5_ifc_phys_layer_statistical_cntrs_bits {
1599 u8 time_since_last_clear_high[0x20];
1600
1601 u8 time_since_last_clear_low[0x20];
1602
1603 u8 phy_received_bits_high[0x20];
1604
1605 u8 phy_received_bits_low[0x20];
1606
1607 u8 phy_symbol_errors_high[0x20];
1608
1609 u8 phy_symbol_errors_low[0x20];
1610
1611 u8 phy_corrected_bits_high[0x20];
1612
1613 u8 phy_corrected_bits_low[0x20];
1614
1615 u8 phy_corrected_bits_lane0_high[0x20];
1616
1617 u8 phy_corrected_bits_lane0_low[0x20];
1618
1619 u8 phy_corrected_bits_lane1_high[0x20];
1620
1621 u8 phy_corrected_bits_lane1_low[0x20];
1622
1623 u8 phy_corrected_bits_lane2_high[0x20];
1624
1625 u8 phy_corrected_bits_lane2_low[0x20];
1626
1627 u8 phy_corrected_bits_lane3_high[0x20];
1628
1629 u8 phy_corrected_bits_lane3_low[0x20];
1630
1631 u8 reserved_at_200[0x5c0];
1632};
1633
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001634struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits {
1635 u8 symbol_error_counter[0x10];
1636
1637 u8 link_error_recovery_counter[0x8];
1638
1639 u8 link_downed_counter[0x8];
1640
1641 u8 port_rcv_errors[0x10];
1642
1643 u8 port_rcv_remote_physical_errors[0x10];
1644
1645 u8 port_rcv_switch_relay_errors[0x10];
1646
1647 u8 port_xmit_discards[0x10];
1648
1649 u8 port_xmit_constraint_errors[0x8];
1650
1651 u8 port_rcv_constraint_errors[0x8];
1652
1653 u8 reserved_at_70[0x8];
1654
1655 u8 link_overrun_errors[0x8];
1656
1657 u8 reserved_at_80[0x10];
1658
1659 u8 vl_15_dropped[0x10];
1660
Tim Wright133bea02017-05-01 17:30:08 +01001661 u8 reserved_at_a0[0x80];
1662
1663 u8 port_xmit_wait[0x20];
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001664};
1665
Saeed Mahameede2816822015-05-28 22:28:40 +03001666struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1667 u8 transmit_queue_high[0x20];
1668
1669 u8 transmit_queue_low[0x20];
1670
Matan Barakb4ff3a32016-02-09 14:57:42 +02001671 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001672};
1673
1674struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1675 u8 rx_octets_high[0x20];
1676
1677 u8 rx_octets_low[0x20];
1678
Matan Barakb4ff3a32016-02-09 14:57:42 +02001679 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001680
1681 u8 rx_frames_high[0x20];
1682
1683 u8 rx_frames_low[0x20];
1684
1685 u8 tx_octets_high[0x20];
1686
1687 u8 tx_octets_low[0x20];
1688
Matan Barakb4ff3a32016-02-09 14:57:42 +02001689 u8 reserved_at_180[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001690
1691 u8 tx_frames_high[0x20];
1692
1693 u8 tx_frames_low[0x20];
1694
1695 u8 rx_pause_high[0x20];
1696
1697 u8 rx_pause_low[0x20];
1698
1699 u8 rx_pause_duration_high[0x20];
1700
1701 u8 rx_pause_duration_low[0x20];
1702
1703 u8 tx_pause_high[0x20];
1704
1705 u8 tx_pause_low[0x20];
1706
1707 u8 tx_pause_duration_high[0x20];
1708
1709 u8 tx_pause_duration_low[0x20];
1710
1711 u8 rx_pause_transition_high[0x20];
1712
1713 u8 rx_pause_transition_low[0x20];
1714
Inbar Karmy2fcb12d2017-08-17 16:39:47 +03001715 u8 reserved_at_3c0[0x40];
1716
1717 u8 device_stall_minor_watermark_cnt_high[0x20];
1718
1719 u8 device_stall_minor_watermark_cnt_low[0x20];
1720
1721 u8 device_stall_critical_watermark_cnt_high[0x20];
1722
1723 u8 device_stall_critical_watermark_cnt_low[0x20];
1724
1725 u8 reserved_at_480[0x340];
Saeed Mahameede2816822015-05-28 22:28:40 +03001726};
1727
1728struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1729 u8 port_transmit_wait_high[0x20];
1730
1731 u8 port_transmit_wait_low[0x20];
1732
Gal Pressman2dba0792017-06-18 14:56:45 +03001733 u8 reserved_at_40[0x100];
1734
1735 u8 rx_buffer_almost_full_high[0x20];
1736
1737 u8 rx_buffer_almost_full_low[0x20];
1738
1739 u8 rx_buffer_full_high[0x20];
1740
1741 u8 rx_buffer_full_low[0x20];
1742
Talat Batheesh0af51072018-05-17 11:14:18 +03001743 u8 rx_icrc_encapsulated_high[0x20];
1744
1745 u8 rx_icrc_encapsulated_low[0x20];
1746
1747 u8 reserved_at_200[0x5c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001748};
1749
1750struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1751 u8 dot3stats_alignment_errors_high[0x20];
1752
1753 u8 dot3stats_alignment_errors_low[0x20];
1754
1755 u8 dot3stats_fcs_errors_high[0x20];
1756
1757 u8 dot3stats_fcs_errors_low[0x20];
1758
1759 u8 dot3stats_single_collision_frames_high[0x20];
1760
1761 u8 dot3stats_single_collision_frames_low[0x20];
1762
1763 u8 dot3stats_multiple_collision_frames_high[0x20];
1764
1765 u8 dot3stats_multiple_collision_frames_low[0x20];
1766
1767 u8 dot3stats_sqe_test_errors_high[0x20];
1768
1769 u8 dot3stats_sqe_test_errors_low[0x20];
1770
1771 u8 dot3stats_deferred_transmissions_high[0x20];
1772
1773 u8 dot3stats_deferred_transmissions_low[0x20];
1774
1775 u8 dot3stats_late_collisions_high[0x20];
1776
1777 u8 dot3stats_late_collisions_low[0x20];
1778
1779 u8 dot3stats_excessive_collisions_high[0x20];
1780
1781 u8 dot3stats_excessive_collisions_low[0x20];
1782
1783 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1784
1785 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1786
1787 u8 dot3stats_carrier_sense_errors_high[0x20];
1788
1789 u8 dot3stats_carrier_sense_errors_low[0x20];
1790
1791 u8 dot3stats_frame_too_longs_high[0x20];
1792
1793 u8 dot3stats_frame_too_longs_low[0x20];
1794
1795 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1796
1797 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1798
1799 u8 dot3stats_symbol_errors_high[0x20];
1800
1801 u8 dot3stats_symbol_errors_low[0x20];
1802
1803 u8 dot3control_in_unknown_opcodes_high[0x20];
1804
1805 u8 dot3control_in_unknown_opcodes_low[0x20];
1806
1807 u8 dot3in_pause_frames_high[0x20];
1808
1809 u8 dot3in_pause_frames_low[0x20];
1810
1811 u8 dot3out_pause_frames_high[0x20];
1812
1813 u8 dot3out_pause_frames_low[0x20];
1814
Matan Barakb4ff3a32016-02-09 14:57:42 +02001815 u8 reserved_at_400[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001816};
1817
1818struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1819 u8 ether_stats_drop_events_high[0x20];
1820
1821 u8 ether_stats_drop_events_low[0x20];
1822
1823 u8 ether_stats_octets_high[0x20];
1824
1825 u8 ether_stats_octets_low[0x20];
1826
1827 u8 ether_stats_pkts_high[0x20];
1828
1829 u8 ether_stats_pkts_low[0x20];
1830
1831 u8 ether_stats_broadcast_pkts_high[0x20];
1832
1833 u8 ether_stats_broadcast_pkts_low[0x20];
1834
1835 u8 ether_stats_multicast_pkts_high[0x20];
1836
1837 u8 ether_stats_multicast_pkts_low[0x20];
1838
1839 u8 ether_stats_crc_align_errors_high[0x20];
1840
1841 u8 ether_stats_crc_align_errors_low[0x20];
1842
1843 u8 ether_stats_undersize_pkts_high[0x20];
1844
1845 u8 ether_stats_undersize_pkts_low[0x20];
1846
1847 u8 ether_stats_oversize_pkts_high[0x20];
1848
1849 u8 ether_stats_oversize_pkts_low[0x20];
1850
1851 u8 ether_stats_fragments_high[0x20];
1852
1853 u8 ether_stats_fragments_low[0x20];
1854
1855 u8 ether_stats_jabbers_high[0x20];
1856
1857 u8 ether_stats_jabbers_low[0x20];
1858
1859 u8 ether_stats_collisions_high[0x20];
1860
1861 u8 ether_stats_collisions_low[0x20];
1862
1863 u8 ether_stats_pkts64octets_high[0x20];
1864
1865 u8 ether_stats_pkts64octets_low[0x20];
1866
1867 u8 ether_stats_pkts65to127octets_high[0x20];
1868
1869 u8 ether_stats_pkts65to127octets_low[0x20];
1870
1871 u8 ether_stats_pkts128to255octets_high[0x20];
1872
1873 u8 ether_stats_pkts128to255octets_low[0x20];
1874
1875 u8 ether_stats_pkts256to511octets_high[0x20];
1876
1877 u8 ether_stats_pkts256to511octets_low[0x20];
1878
1879 u8 ether_stats_pkts512to1023octets_high[0x20];
1880
1881 u8 ether_stats_pkts512to1023octets_low[0x20];
1882
1883 u8 ether_stats_pkts1024to1518octets_high[0x20];
1884
1885 u8 ether_stats_pkts1024to1518octets_low[0x20];
1886
1887 u8 ether_stats_pkts1519to2047octets_high[0x20];
1888
1889 u8 ether_stats_pkts1519to2047octets_low[0x20];
1890
1891 u8 ether_stats_pkts2048to4095octets_high[0x20];
1892
1893 u8 ether_stats_pkts2048to4095octets_low[0x20];
1894
1895 u8 ether_stats_pkts4096to8191octets_high[0x20];
1896
1897 u8 ether_stats_pkts4096to8191octets_low[0x20];
1898
1899 u8 ether_stats_pkts8192to10239octets_high[0x20];
1900
1901 u8 ether_stats_pkts8192to10239octets_low[0x20];
1902
Matan Barakb4ff3a32016-02-09 14:57:42 +02001903 u8 reserved_at_540[0x280];
Saeed Mahameede2816822015-05-28 22:28:40 +03001904};
1905
1906struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1907 u8 if_in_octets_high[0x20];
1908
1909 u8 if_in_octets_low[0x20];
1910
1911 u8 if_in_ucast_pkts_high[0x20];
1912
1913 u8 if_in_ucast_pkts_low[0x20];
1914
1915 u8 if_in_discards_high[0x20];
1916
1917 u8 if_in_discards_low[0x20];
1918
1919 u8 if_in_errors_high[0x20];
1920
1921 u8 if_in_errors_low[0x20];
1922
1923 u8 if_in_unknown_protos_high[0x20];
1924
1925 u8 if_in_unknown_protos_low[0x20];
1926
1927 u8 if_out_octets_high[0x20];
1928
1929 u8 if_out_octets_low[0x20];
1930
1931 u8 if_out_ucast_pkts_high[0x20];
1932
1933 u8 if_out_ucast_pkts_low[0x20];
1934
1935 u8 if_out_discards_high[0x20];
1936
1937 u8 if_out_discards_low[0x20];
1938
1939 u8 if_out_errors_high[0x20];
1940
1941 u8 if_out_errors_low[0x20];
1942
1943 u8 if_in_multicast_pkts_high[0x20];
1944
1945 u8 if_in_multicast_pkts_low[0x20];
1946
1947 u8 if_in_broadcast_pkts_high[0x20];
1948
1949 u8 if_in_broadcast_pkts_low[0x20];
1950
1951 u8 if_out_multicast_pkts_high[0x20];
1952
1953 u8 if_out_multicast_pkts_low[0x20];
1954
1955 u8 if_out_broadcast_pkts_high[0x20];
1956
1957 u8 if_out_broadcast_pkts_low[0x20];
1958
Matan Barakb4ff3a32016-02-09 14:57:42 +02001959 u8 reserved_at_340[0x480];
Saeed Mahameede2816822015-05-28 22:28:40 +03001960};
1961
1962struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
1963 u8 a_frames_transmitted_ok_high[0x20];
1964
1965 u8 a_frames_transmitted_ok_low[0x20];
1966
1967 u8 a_frames_received_ok_high[0x20];
1968
1969 u8 a_frames_received_ok_low[0x20];
1970
1971 u8 a_frame_check_sequence_errors_high[0x20];
1972
1973 u8 a_frame_check_sequence_errors_low[0x20];
1974
1975 u8 a_alignment_errors_high[0x20];
1976
1977 u8 a_alignment_errors_low[0x20];
1978
1979 u8 a_octets_transmitted_ok_high[0x20];
1980
1981 u8 a_octets_transmitted_ok_low[0x20];
1982
1983 u8 a_octets_received_ok_high[0x20];
1984
1985 u8 a_octets_received_ok_low[0x20];
1986
1987 u8 a_multicast_frames_xmitted_ok_high[0x20];
1988
1989 u8 a_multicast_frames_xmitted_ok_low[0x20];
1990
1991 u8 a_broadcast_frames_xmitted_ok_high[0x20];
1992
1993 u8 a_broadcast_frames_xmitted_ok_low[0x20];
1994
1995 u8 a_multicast_frames_received_ok_high[0x20];
1996
1997 u8 a_multicast_frames_received_ok_low[0x20];
1998
1999 u8 a_broadcast_frames_received_ok_high[0x20];
2000
2001 u8 a_broadcast_frames_received_ok_low[0x20];
2002
2003 u8 a_in_range_length_errors_high[0x20];
2004
2005 u8 a_in_range_length_errors_low[0x20];
2006
2007 u8 a_out_of_range_length_field_high[0x20];
2008
2009 u8 a_out_of_range_length_field_low[0x20];
2010
2011 u8 a_frame_too_long_errors_high[0x20];
2012
2013 u8 a_frame_too_long_errors_low[0x20];
2014
2015 u8 a_symbol_error_during_carrier_high[0x20];
2016
2017 u8 a_symbol_error_during_carrier_low[0x20];
2018
2019 u8 a_mac_control_frames_transmitted_high[0x20];
2020
2021 u8 a_mac_control_frames_transmitted_low[0x20];
2022
2023 u8 a_mac_control_frames_received_high[0x20];
2024
2025 u8 a_mac_control_frames_received_low[0x20];
2026
2027 u8 a_unsupported_opcodes_received_high[0x20];
2028
2029 u8 a_unsupported_opcodes_received_low[0x20];
2030
2031 u8 a_pause_mac_ctrl_frames_received_high[0x20];
2032
2033 u8 a_pause_mac_ctrl_frames_received_low[0x20];
2034
2035 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
2036
2037 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
2038
Matan Barakb4ff3a32016-02-09 14:57:42 +02002039 u8 reserved_at_4c0[0x300];
Saeed Mahameede2816822015-05-28 22:28:40 +03002040};
2041
Gal Pressman8ed1a632016-11-17 13:46:01 +02002042struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits {
2043 u8 life_time_counter_high[0x20];
2044
2045 u8 life_time_counter_low[0x20];
2046
2047 u8 rx_errors[0x20];
2048
2049 u8 tx_errors[0x20];
2050
2051 u8 l0_to_recovery_eieos[0x20];
2052
2053 u8 l0_to_recovery_ts[0x20];
2054
2055 u8 l0_to_recovery_framing[0x20];
2056
2057 u8 l0_to_recovery_retrain[0x20];
2058
2059 u8 crc_error_dllp[0x20];
2060
2061 u8 crc_error_tlp[0x20];
2062
Eran Ben Elishaefae7f72017-05-12 02:47:02 +03002063 u8 tx_overflow_buffer_pkt_high[0x20];
2064
2065 u8 tx_overflow_buffer_pkt_low[0x20];
Gal Pressman5405fa22017-06-15 18:29:23 +03002066
2067 u8 outbound_stalled_reads[0x20];
2068
2069 u8 outbound_stalled_writes[0x20];
2070
2071 u8 outbound_stalled_reads_events[0x20];
2072
2073 u8 outbound_stalled_writes_events[0x20];
2074
2075 u8 reserved_at_200[0x5c0];
Gal Pressman8ed1a632016-11-17 13:46:01 +02002076};
2077
Saeed Mahameede2816822015-05-28 22:28:40 +03002078struct mlx5_ifc_cmd_inter_comp_event_bits {
2079 u8 command_completion_vector[0x20];
2080
Matan Barakb4ff3a32016-02-09 14:57:42 +02002081 u8 reserved_at_20[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002082};
2083
2084struct mlx5_ifc_stall_vl_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002085 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002086 u8 port_num[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002087 u8 reserved_at_19[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002088 u8 vl[0x4];
2089
Matan Barakb4ff3a32016-02-09 14:57:42 +02002090 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002091};
2092
2093struct mlx5_ifc_db_bf_congestion_event_bits {
2094 u8 event_subtype[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002095 u8 reserved_at_8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002096 u8 congestion_level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002097 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002098
Matan Barakb4ff3a32016-02-09 14:57:42 +02002099 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002100};
2101
2102struct mlx5_ifc_gpio_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002103 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002104
2105 u8 gpio_event_hi[0x20];
2106
2107 u8 gpio_event_lo[0x20];
2108
Matan Barakb4ff3a32016-02-09 14:57:42 +02002109 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002110};
2111
2112struct mlx5_ifc_port_state_change_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002113 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002114
2115 u8 port_num[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002116 u8 reserved_at_44[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002117
Matan Barakb4ff3a32016-02-09 14:57:42 +02002118 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002119};
2120
2121struct mlx5_ifc_dropped_packet_logged_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002122 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002123};
2124
2125enum {
2126 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
2127 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
2128};
2129
2130struct mlx5_ifc_cq_error_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002131 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002132 u8 cqn[0x18];
2133
Matan Barakb4ff3a32016-02-09 14:57:42 +02002134 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002135
Matan Barakb4ff3a32016-02-09 14:57:42 +02002136 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002137 u8 syndrome[0x8];
2138
Matan Barakb4ff3a32016-02-09 14:57:42 +02002139 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002140};
2141
2142struct mlx5_ifc_rdma_page_fault_event_bits {
2143 u8 bytes_committed[0x20];
2144
2145 u8 r_key[0x20];
2146
Matan Barakb4ff3a32016-02-09 14:57:42 +02002147 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002148 u8 packet_len[0x10];
2149
2150 u8 rdma_op_len[0x20];
2151
2152 u8 rdma_va[0x40];
2153
Matan Barakb4ff3a32016-02-09 14:57:42 +02002154 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002155 u8 rdma[0x1];
2156 u8 write[0x1];
2157 u8 requestor[0x1];
2158 u8 qp_number[0x18];
2159};
2160
2161struct mlx5_ifc_wqe_associated_page_fault_event_bits {
2162 u8 bytes_committed[0x20];
2163
Matan Barakb4ff3a32016-02-09 14:57:42 +02002164 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002165 u8 wqe_index[0x10];
2166
Matan Barakb4ff3a32016-02-09 14:57:42 +02002167 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002168 u8 len[0x10];
2169
Matan Barakb4ff3a32016-02-09 14:57:42 +02002170 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002171
Matan Barakb4ff3a32016-02-09 14:57:42 +02002172 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002173 u8 rdma[0x1];
2174 u8 write_read[0x1];
2175 u8 requestor[0x1];
2176 u8 qpn[0x18];
2177};
2178
2179struct mlx5_ifc_qp_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002180 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002181
2182 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002183 u8 reserved_at_a8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002184
Matan Barakb4ff3a32016-02-09 14:57:42 +02002185 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002186 u8 qpn_rqn_sqn[0x18];
2187};
2188
2189struct mlx5_ifc_dct_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002190 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002191
Matan Barakb4ff3a32016-02-09 14:57:42 +02002192 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002193 u8 dct_number[0x18];
2194};
2195
2196struct mlx5_ifc_comp_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002197 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002198
Matan Barakb4ff3a32016-02-09 14:57:42 +02002199 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002200 u8 cq_number[0x18];
2201};
2202
2203enum {
2204 MLX5_QPC_STATE_RST = 0x0,
2205 MLX5_QPC_STATE_INIT = 0x1,
2206 MLX5_QPC_STATE_RTR = 0x2,
2207 MLX5_QPC_STATE_RTS = 0x3,
2208 MLX5_QPC_STATE_SQER = 0x4,
2209 MLX5_QPC_STATE_ERR = 0x6,
2210 MLX5_QPC_STATE_SQD = 0x7,
2211 MLX5_QPC_STATE_SUSPENDED = 0x9,
2212};
2213
2214enum {
2215 MLX5_QPC_ST_RC = 0x0,
2216 MLX5_QPC_ST_UC = 0x1,
2217 MLX5_QPC_ST_UD = 0x2,
2218 MLX5_QPC_ST_XRC = 0x3,
2219 MLX5_QPC_ST_DCI = 0x5,
2220 MLX5_QPC_ST_QP0 = 0x7,
2221 MLX5_QPC_ST_QP1 = 0x8,
2222 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
2223 MLX5_QPC_ST_REG_UMR = 0xc,
2224};
2225
2226enum {
2227 MLX5_QPC_PM_STATE_ARMED = 0x0,
2228 MLX5_QPC_PM_STATE_REARM = 0x1,
2229 MLX5_QPC_PM_STATE_RESERVED = 0x2,
2230 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
2231};
2232
2233enum {
Artemy Kovalyov6e446362017-08-15 11:59:02 +03002234 MLX5_QPC_OFFLOAD_TYPE_RNDV = 0x1,
2235};
2236
2237enum {
Saeed Mahameede2816822015-05-28 22:28:40 +03002238 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
2239 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
2240};
2241
2242enum {
2243 MLX5_QPC_MTU_256_BYTES = 0x1,
2244 MLX5_QPC_MTU_512_BYTES = 0x2,
2245 MLX5_QPC_MTU_1K_BYTES = 0x3,
2246 MLX5_QPC_MTU_2K_BYTES = 0x4,
2247 MLX5_QPC_MTU_4K_BYTES = 0x5,
2248 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
2249};
2250
2251enum {
2252 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
2253 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
2254 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
2255 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
2256 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
2257 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
2258 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
2259 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
2260};
2261
2262enum {
2263 MLX5_QPC_CS_REQ_DISABLE = 0x0,
2264 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
2265 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
2266};
2267
2268enum {
2269 MLX5_QPC_CS_RES_DISABLE = 0x0,
2270 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
2271 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
2272};
2273
2274struct mlx5_ifc_qpc_bits {
2275 u8 state[0x4];
Aviv Heller84df61e2016-05-10 13:47:50 +03002276 u8 lag_tx_port_affinity[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002277 u8 st[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002278 u8 reserved_at_10[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002279 u8 pm_state[0x2];
Danit Goldberg3fd3c802018-11-30 13:22:04 +02002280 u8 reserved_at_15[0x1];
2281 u8 req_e2e_credit_mode[0x2];
Artemy Kovalyov6e446362017-08-15 11:59:02 +03002282 u8 offload_type[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002283 u8 end_padding_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002284 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002285
2286 u8 wq_signature[0x1];
2287 u8 block_lb_mc[0x1];
2288 u8 atomic_like_write_en[0x1];
2289 u8 latency_sensitive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002290 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002291 u8 drain_sigerr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002292 u8 reserved_at_26[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002293 u8 pd[0x18];
2294
2295 u8 mtu[0x3];
2296 u8 log_msg_max[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002297 u8 reserved_at_48[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002298 u8 log_rq_size[0x4];
2299 u8 log_rq_stride[0x3];
2300 u8 no_sq[0x1];
2301 u8 log_sq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002302 u8 reserved_at_55[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002303 u8 rlky[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02002304 u8 ulp_stateless_offload_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002305
2306 u8 counter_set_id[0x8];
2307 u8 uar_page[0x18];
2308
Matan Barakb4ff3a32016-02-09 14:57:42 +02002309 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002310 u8 user_index[0x18];
2311
Matan Barakb4ff3a32016-02-09 14:57:42 +02002312 u8 reserved_at_a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002313 u8 log_page_size[0x5];
2314 u8 remote_qpn[0x18];
2315
2316 struct mlx5_ifc_ads_bits primary_address_path;
2317
2318 struct mlx5_ifc_ads_bits secondary_address_path;
2319
2320 u8 log_ack_req_freq[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002321 u8 reserved_at_384[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002322 u8 log_sra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002323 u8 reserved_at_38b[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002324 u8 retry_count[0x3];
2325 u8 rnr_retry[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002326 u8 reserved_at_393[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002327 u8 fre[0x1];
2328 u8 cur_rnr_retry[0x3];
2329 u8 cur_retry_count[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002330 u8 reserved_at_39b[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002331
Matan Barakb4ff3a32016-02-09 14:57:42 +02002332 u8 reserved_at_3a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002333
Matan Barakb4ff3a32016-02-09 14:57:42 +02002334 u8 reserved_at_3c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002335 u8 next_send_psn[0x18];
2336
Matan Barakb4ff3a32016-02-09 14:57:42 +02002337 u8 reserved_at_3e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002338 u8 cqn_snd[0x18];
2339
Saeed Mahameed09a7d9e2016-07-19 01:17:59 +03002340 u8 reserved_at_400[0x8];
2341 u8 deth_sqpn[0x18];
2342
2343 u8 reserved_at_420[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002344
Matan Barakb4ff3a32016-02-09 14:57:42 +02002345 u8 reserved_at_440[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002346 u8 last_acked_psn[0x18];
2347
Matan Barakb4ff3a32016-02-09 14:57:42 +02002348 u8 reserved_at_460[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002349 u8 ssn[0x18];
2350
Matan Barakb4ff3a32016-02-09 14:57:42 +02002351 u8 reserved_at_480[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002352 u8 log_rra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002353 u8 reserved_at_48b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002354 u8 atomic_mode[0x4];
2355 u8 rre[0x1];
2356 u8 rwe[0x1];
2357 u8 rae[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002358 u8 reserved_at_493[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002359 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002360 u8 reserved_at_49a[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002361 u8 cd_slave_receive[0x1];
2362 u8 cd_slave_send[0x1];
2363 u8 cd_master[0x1];
2364
Matan Barakb4ff3a32016-02-09 14:57:42 +02002365 u8 reserved_at_4a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002366 u8 min_rnr_nak[0x5];
2367 u8 next_rcv_psn[0x18];
2368
Matan Barakb4ff3a32016-02-09 14:57:42 +02002369 u8 reserved_at_4c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002370 u8 xrcd[0x18];
2371
Matan Barakb4ff3a32016-02-09 14:57:42 +02002372 u8 reserved_at_4e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002373 u8 cqn_rcv[0x18];
2374
2375 u8 dbr_addr[0x40];
2376
2377 u8 q_key[0x20];
2378
Matan Barakb4ff3a32016-02-09 14:57:42 +02002379 u8 reserved_at_560[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002380 u8 rq_type[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03002381 u8 srqn_rmpn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002382
Matan Barakb4ff3a32016-02-09 14:57:42 +02002383 u8 reserved_at_580[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002384 u8 rmsn[0x18];
2385
2386 u8 hw_sq_wqebb_counter[0x10];
2387 u8 sw_sq_wqebb_counter[0x10];
2388
2389 u8 hw_rq_counter[0x20];
2390
2391 u8 sw_rq_counter[0x20];
2392
Matan Barakb4ff3a32016-02-09 14:57:42 +02002393 u8 reserved_at_600[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002394
Matan Barakb4ff3a32016-02-09 14:57:42 +02002395 u8 reserved_at_620[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03002396 u8 cgs[0x1];
2397 u8 cs_req[0x8];
2398 u8 cs_res[0x8];
2399
2400 u8 dc_access_key[0x40];
2401
Leon Romanovskybd371972018-09-20 21:35:26 +03002402 u8 reserved_at_680[0x3];
2403 u8 dbr_umem_valid[0x1];
2404
2405 u8 reserved_at_684[0xbc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002406};
2407
2408struct mlx5_ifc_roce_addr_layout_bits {
2409 u8 source_l3_address[16][0x8];
2410
Matan Barakb4ff3a32016-02-09 14:57:42 +02002411 u8 reserved_at_80[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002412 u8 vlan_valid[0x1];
2413 u8 vlan_id[0xc];
2414 u8 source_mac_47_32[0x10];
2415
2416 u8 source_mac_31_0[0x20];
2417
Matan Barakb4ff3a32016-02-09 14:57:42 +02002418 u8 reserved_at_c0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002419 u8 roce_l3_type[0x4];
2420 u8 roce_version[0x8];
2421
Matan Barakb4ff3a32016-02-09 14:57:42 +02002422 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002423};
2424
2425union mlx5_ifc_hca_cap_union_bits {
2426 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
2427 struct mlx5_ifc_odp_cap_bits odp_cap;
2428 struct mlx5_ifc_atomic_caps_bits atomic_caps;
2429 struct mlx5_ifc_roce_cap_bits roce_cap;
2430 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
2431 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
Saeed Mahameed495716b2015-12-01 18:03:19 +02002432 struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap;
Saeed Mahameedd6666752015-12-01 18:03:22 +02002433 struct mlx5_ifc_e_switch_cap_bits e_switch_cap;
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02002434 struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap;
Saeed Mahameed74862162016-06-09 15:11:34 +03002435 struct mlx5_ifc_qos_cap_bits qos_cap;
Ilan Tayarie29341f2017-03-13 20:05:45 +02002436 struct mlx5_ifc_fpga_cap_bits fpga_cap;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002437 u8 reserved_at_0[0x8000];
Saeed Mahameede2816822015-05-28 22:28:40 +03002438};
2439
2440enum {
2441 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
2442 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
2443 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
Amir Vadai9dc0b282016-05-13 12:55:39 +00002444 MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8,
Mark Bloch60786f02018-08-28 14:18:46 +03002445 MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT = 0x10,
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002446 MLX5_FLOW_CONTEXT_ACTION_DECAP = 0x20,
Or Gerlitz2a69cb92017-01-19 19:31:25 +02002447 MLX5_FLOW_CONTEXT_ACTION_MOD_HDR = 0x40,
Or Gerlitz0c068972018-01-28 20:14:20 +02002448 MLX5_FLOW_CONTEXT_ACTION_VLAN_POP = 0x80,
2449 MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH = 0x100,
Jianbo Liu8da6fe22018-07-16 18:35:32 -07002450 MLX5_FLOW_CONTEXT_ACTION_VLAN_POP_2 = 0x400,
2451 MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH_2 = 0x800,
Or Gerlitz0c068972018-01-28 20:14:20 +02002452};
2453
2454struct mlx5_ifc_vlan_bits {
2455 u8 ethtype[0x10];
2456 u8 prio[0x3];
2457 u8 cfi[0x1];
2458 u8 vid[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002459};
2460
2461struct mlx5_ifc_flow_context_bits {
Or Gerlitz0c068972018-01-28 20:14:20 +02002462 struct mlx5_ifc_vlan_bits push_vlan;
Saeed Mahameede2816822015-05-28 22:28:40 +03002463
2464 u8 group_id[0x20];
2465
Matan Barakb4ff3a32016-02-09 14:57:42 +02002466 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002467 u8 flow_tag[0x18];
2468
Matan Barakb4ff3a32016-02-09 14:57:42 +02002469 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002470 u8 action[0x10];
2471
Matan Barakb4ff3a32016-02-09 14:57:42 +02002472 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002473 u8 destination_list_size[0x18];
2474
Amir Vadai9dc0b282016-05-13 12:55:39 +00002475 u8 reserved_at_a0[0x8];
2476 u8 flow_counter_list_size[0x18];
2477
Mark Bloch60786f02018-08-28 14:18:46 +03002478 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002479
Or Gerlitz2a69cb92017-01-19 19:31:25 +02002480 u8 modify_header_id[0x20];
2481
Jianbo Liu8da6fe22018-07-16 18:35:32 -07002482 struct mlx5_ifc_vlan_bits push_vlan_2;
2483
2484 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002485
2486 struct mlx5_ifc_fte_match_param_bits match_value;
2487
Matan Barakb4ff3a32016-02-09 14:57:42 +02002488 u8 reserved_at_1200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03002489
Amir Vadai9dc0b282016-05-13 12:55:39 +00002490 union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits destination[0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002491};
2492
2493enum {
2494 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
2495 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
2496};
2497
2498struct mlx5_ifc_xrc_srqc_bits {
2499 u8 state[0x4];
2500 u8 log_xrc_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002501 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002502
2503 u8 wq_signature[0x1];
2504 u8 cont_srq[0x1];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02002505 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002506 u8 rlky[0x1];
2507 u8 basic_cyclic_rcv_wqe[0x1];
2508 u8 log_rq_stride[0x3];
2509 u8 xrcd[0x18];
2510
2511 u8 page_offset[0x6];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02002512 u8 reserved_at_46[0x1];
2513 u8 dbr_umem_valid[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002514 u8 cqn[0x18];
2515
Matan Barakb4ff3a32016-02-09 14:57:42 +02002516 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002517
2518 u8 user_index_equal_xrc_srqn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002519 u8 reserved_at_81[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002520 u8 log_page_size[0x6];
2521 u8 user_index[0x18];
2522
Matan Barakb4ff3a32016-02-09 14:57:42 +02002523 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002524
Matan Barakb4ff3a32016-02-09 14:57:42 +02002525 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002526 u8 pd[0x18];
2527
2528 u8 lwm[0x10];
2529 u8 wqe_cnt[0x10];
2530
Matan Barakb4ff3a32016-02-09 14:57:42 +02002531 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002532
2533 u8 db_record_addr_h[0x20];
2534
2535 u8 db_record_addr_l[0x1e];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002536 u8 reserved_at_17e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002537
Matan Barakb4ff3a32016-02-09 14:57:42 +02002538 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002539};
2540
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +02002541struct mlx5_ifc_vnic_diagnostic_statistics_bits {
2542 u8 counter_error_queues[0x20];
2543
2544 u8 total_error_queues[0x20];
2545
2546 u8 send_queue_priority_update_flow[0x20];
2547
2548 u8 reserved_at_60[0x20];
2549
2550 u8 nic_receive_steering_discard[0x40];
2551
2552 u8 receive_discard_vport_down[0x40];
2553
2554 u8 transmit_discard_vport_down[0x40];
2555
2556 u8 reserved_at_140[0xec0];
2557};
2558
Saeed Mahameede2816822015-05-28 22:28:40 +03002559struct mlx5_ifc_traffic_counter_bits {
2560 u8 packets[0x40];
2561
2562 u8 octets[0x40];
2563};
2564
2565struct mlx5_ifc_tisc_bits {
Aviv Heller84df61e2016-05-10 13:47:50 +03002566 u8 strict_lag_tx_port_affinity[0x1];
2567 u8 reserved_at_1[0x3];
2568 u8 lag_tx_port_affinity[0x04];
2569
2570 u8 reserved_at_8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002571 u8 prio[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002572 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002573
Matan Barakb4ff3a32016-02-09 14:57:42 +02002574 u8 reserved_at_20[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03002575
Matan Barakb4ff3a32016-02-09 14:57:42 +02002576 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002577 u8 transport_domain[0x18];
2578
Erez Shitrit500a3d02017-04-13 06:36:51 +03002579 u8 reserved_at_140[0x8];
2580 u8 underlay_qpn[0x18];
2581 u8 reserved_at_160[0x3a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002582};
2583
2584enum {
2585 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
2586 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
2587};
2588
2589enum {
2590 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
2591 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
2592};
2593
2594enum {
Saeed Mahameed2be69672015-07-23 23:35:56 +03002595 MLX5_RX_HASH_FN_NONE = 0x0,
2596 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
2597 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002598};
2599
2600enum {
Mark Bloch5d773ff2018-09-17 13:30:46 +03002601 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST = 0x1,
2602 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002603};
2604
2605struct mlx5_ifc_tirc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002606 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002607
2608 u8 disp_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002609 u8 reserved_at_24[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002610
Matan Barakb4ff3a32016-02-09 14:57:42 +02002611 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002612
Matan Barakb4ff3a32016-02-09 14:57:42 +02002613 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002614 u8 lro_timeout_period_usecs[0x10];
2615 u8 lro_enable_mask[0x4];
2616 u8 lro_max_ip_payload_size[0x8];
2617
Matan Barakb4ff3a32016-02-09 14:57:42 +02002618 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002619
Matan Barakb4ff3a32016-02-09 14:57:42 +02002620 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002621 u8 inline_rqn[0x18];
2622
2623 u8 rx_hash_symmetric[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002624 u8 reserved_at_101[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002625 u8 tunneled_offload_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002626 u8 reserved_at_103[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002627 u8 indirect_table[0x18];
2628
2629 u8 rx_hash_fn[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002630 u8 reserved_at_124[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002631 u8 self_lb_block[0x2];
2632 u8 transport_domain[0x18];
2633
2634 u8 rx_hash_toeplitz_key[10][0x20];
2635
2636 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
2637
2638 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
2639
Matan Barakb4ff3a32016-02-09 14:57:42 +02002640 u8 reserved_at_2c0[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002641};
2642
2643enum {
2644 MLX5_SRQC_STATE_GOOD = 0x0,
2645 MLX5_SRQC_STATE_ERROR = 0x1,
2646};
2647
2648struct mlx5_ifc_srqc_bits {
2649 u8 state[0x4];
2650 u8 log_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002651 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002652
2653 u8 wq_signature[0x1];
2654 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002655 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002656 u8 rlky[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002657 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002658 u8 log_rq_stride[0x3];
2659 u8 xrcd[0x18];
2660
2661 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002662 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002663 u8 cqn[0x18];
2664
Matan Barakb4ff3a32016-02-09 14:57:42 +02002665 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002666
Matan Barakb4ff3a32016-02-09 14:57:42 +02002667 u8 reserved_at_80[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002668 u8 log_page_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002669 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002670
Matan Barakb4ff3a32016-02-09 14:57:42 +02002671 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002672
Matan Barakb4ff3a32016-02-09 14:57:42 +02002673 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002674 u8 pd[0x18];
2675
2676 u8 lwm[0x10];
2677 u8 wqe_cnt[0x10];
2678
Matan Barakb4ff3a32016-02-09 14:57:42 +02002679 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002680
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03002681 u8 dbr_addr[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002682
Matan Barakb4ff3a32016-02-09 14:57:42 +02002683 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002684};
2685
2686enum {
2687 MLX5_SQC_STATE_RST = 0x0,
2688 MLX5_SQC_STATE_RDY = 0x1,
2689 MLX5_SQC_STATE_ERR = 0x3,
2690};
2691
2692struct mlx5_ifc_sqc_bits {
2693 u8 rlky[0x1];
2694 u8 cd_master[0x1];
2695 u8 fre[0x1];
2696 u8 flush_in_error_en[0x1];
Bodong Wang795b6092017-08-17 15:52:34 +03002697 u8 allow_multi_pkt_send_wqe[0x1];
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002698 u8 min_wqe_inline_mode[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002699 u8 state[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002700 u8 reg_umr[0x1];
Ilan Tayari547eede2017-04-18 16:04:28 +03002701 u8 allow_swp[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03002702 u8 hairpin[0x1];
2703 u8 reserved_at_f[0x11];
Saeed Mahameede2816822015-05-28 22:28:40 +03002704
Matan Barakb4ff3a32016-02-09 14:57:42 +02002705 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002706 u8 user_index[0x18];
2707
Matan Barakb4ff3a32016-02-09 14:57:42 +02002708 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002709 u8 cqn[0x18];
2710
Or Gerlitz40817cd2017-06-25 12:38:45 +03002711 u8 reserved_at_60[0x8];
2712 u8 hairpin_peer_rq[0x18];
2713
2714 u8 reserved_at_80[0x10];
2715 u8 hairpin_peer_vhca[0x10];
2716
2717 u8 reserved_at_a0[0x50];
Saeed Mahameede2816822015-05-28 22:28:40 +03002718
Saeed Mahameed74862162016-06-09 15:11:34 +03002719 u8 packet_pacing_rate_limit_index[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002720 u8 tis_lst_sz[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002721 u8 reserved_at_110[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002722
Matan Barakb4ff3a32016-02-09 14:57:42 +02002723 u8 reserved_at_120[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002724
Matan Barakb4ff3a32016-02-09 14:57:42 +02002725 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002726 u8 tis_num_0[0x18];
2727
2728 struct mlx5_ifc_wq_bits wq;
2729};
2730
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03002731enum {
2732 SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR = 0x0,
2733 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT = 0x1,
2734 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT_TC = 0x2,
2735 SCHEDULING_CONTEXT_ELEMENT_TYPE_PARA_VPORT_TC = 0x3,
2736};
2737
2738struct mlx5_ifc_scheduling_context_bits {
2739 u8 element_type[0x8];
2740 u8 reserved_at_8[0x18];
2741
2742 u8 element_attributes[0x20];
2743
2744 u8 parent_element_id[0x20];
2745
2746 u8 reserved_at_60[0x40];
2747
2748 u8 bw_share[0x20];
2749
2750 u8 max_average_bw[0x20];
2751
2752 u8 reserved_at_e0[0x120];
2753};
2754
Saeed Mahameede2816822015-05-28 22:28:40 +03002755struct mlx5_ifc_rqtc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002756 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002757
Matan Barakb4ff3a32016-02-09 14:57:42 +02002758 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002759 u8 rqt_max_size[0x10];
2760
Matan Barakb4ff3a32016-02-09 14:57:42 +02002761 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002762 u8 rqt_actual_size[0x10];
2763
Matan Barakb4ff3a32016-02-09 14:57:42 +02002764 u8 reserved_at_e0[0x6a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002765
2766 struct mlx5_ifc_rq_num_bits rq_num[0];
2767};
2768
2769enum {
2770 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2771 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2772};
2773
2774enum {
2775 MLX5_RQC_STATE_RST = 0x0,
2776 MLX5_RQC_STATE_RDY = 0x1,
2777 MLX5_RQC_STATE_ERR = 0x3,
2778};
2779
2780struct mlx5_ifc_rqc_bits {
2781 u8 rlky[0x1];
Maor Gottlieb03404e82017-05-30 10:29:13 +03002782 u8 delay_drop_en[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002783 u8 scatter_fcs[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002784 u8 vsd[0x1];
2785 u8 mem_rq_type[0x4];
2786 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002787 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002788 u8 flush_in_error_en[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03002789 u8 hairpin[0x1];
2790 u8 reserved_at_f[0x11];
Saeed Mahameede2816822015-05-28 22:28:40 +03002791
Matan Barakb4ff3a32016-02-09 14:57:42 +02002792 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002793 u8 user_index[0x18];
2794
Matan Barakb4ff3a32016-02-09 14:57:42 +02002795 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002796 u8 cqn[0x18];
2797
2798 u8 counter_set_id[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002799 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002800
Matan Barakb4ff3a32016-02-09 14:57:42 +02002801 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002802 u8 rmpn[0x18];
2803
Or Gerlitz40817cd2017-06-25 12:38:45 +03002804 u8 reserved_at_a0[0x8];
2805 u8 hairpin_peer_sq[0x18];
2806
2807 u8 reserved_at_c0[0x10];
2808 u8 hairpin_peer_vhca[0x10];
2809
2810 u8 reserved_at_e0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002811
2812 struct mlx5_ifc_wq_bits wq;
2813};
2814
2815enum {
2816 MLX5_RMPC_STATE_RDY = 0x1,
2817 MLX5_RMPC_STATE_ERR = 0x3,
2818};
2819
2820struct mlx5_ifc_rmpc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002821 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002822 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002823 u8 reserved_at_c[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002824
2825 u8 basic_cyclic_rcv_wqe[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002826 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03002827
Matan Barakb4ff3a32016-02-09 14:57:42 +02002828 u8 reserved_at_40[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03002829
2830 struct mlx5_ifc_wq_bits wq;
2831};
2832
Saeed Mahameede2816822015-05-28 22:28:40 +03002833struct mlx5_ifc_nic_vport_context_bits {
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002834 u8 reserved_at_0[0x5];
2835 u8 min_wqe_inline_mode[0x3];
Huy Nguyenbded7472017-05-30 09:42:53 +03002836 u8 reserved_at_8[0x15];
2837 u8 disable_mc_local_lb[0x1];
2838 u8 disable_uc_local_lb[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002839 u8 roce_en[0x1];
2840
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002841 u8 arm_change_event[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002842 u8 reserved_at_21[0x1a];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002843 u8 event_on_mtu[0x1];
2844 u8 event_on_promisc_change[0x1];
2845 u8 event_on_vlan_change[0x1];
2846 u8 event_on_mc_address_change[0x1];
2847 u8 event_on_uc_address_change[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002848
Daniel Jurgens32f69e42018-01-04 17:25:36 +02002849 u8 reserved_at_40[0xc];
2850
2851 u8 affiliation_criteria[0x4];
2852 u8 affiliated_vhca_id[0x10];
2853
2854 u8 reserved_at_60[0xd0];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002855
2856 u8 mtu[0x10];
2857
Achiad Shochat9efa7522015-12-23 18:47:20 +02002858 u8 system_image_guid[0x40];
2859 u8 port_guid[0x40];
2860 u8 node_guid[0x40];
2861
Matan Barakb4ff3a32016-02-09 14:57:42 +02002862 u8 reserved_at_200[0x140];
Achiad Shochat9efa7522015-12-23 18:47:20 +02002863 u8 qkey_violation_counter[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002864 u8 reserved_at_350[0x430];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002865
2866 u8 promisc_uc[0x1];
2867 u8 promisc_mc[0x1];
2868 u8 promisc_all[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002869 u8 reserved_at_783[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002870 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002871 u8 reserved_at_788[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002872 u8 allowed_list_size[0xc];
2873
2874 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2875
Matan Barakb4ff3a32016-02-09 14:57:42 +02002876 u8 reserved_at_7e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002877
2878 u8 current_uc_mac_address[0][0x40];
2879};
2880
2881enum {
2882 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2883 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2884 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02002885 MLX5_MKC_ACCESS_MODE_KSM = 0x3,
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002886 MLX5_MKC_ACCESS_MODE_MEMIC = 0x5,
Saeed Mahameede2816822015-05-28 22:28:40 +03002887};
2888
2889struct mlx5_ifc_mkc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002890 u8 reserved_at_0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002891 u8 free[0x1];
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002892 u8 reserved_at_2[0x1];
2893 u8 access_mode_4_2[0x3];
2894 u8 reserved_at_6[0x7];
2895 u8 relaxed_ordering_write[0x1];
2896 u8 reserved_at_e[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002897 u8 small_fence_on_rdma_read_response[0x1];
2898 u8 umr_en[0x1];
2899 u8 a[0x1];
2900 u8 rw[0x1];
2901 u8 rr[0x1];
2902 u8 lw[0x1];
2903 u8 lr[0x1];
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002904 u8 access_mode_1_0[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002905 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002906
2907 u8 qpn[0x18];
2908 u8 mkey_7_0[0x8];
2909
Matan Barakb4ff3a32016-02-09 14:57:42 +02002910 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002911
2912 u8 length64[0x1];
2913 u8 bsf_en[0x1];
2914 u8 sync_umr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002915 u8 reserved_at_63[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002916 u8 expected_sigerr_count[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002917 u8 reserved_at_66[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002918 u8 en_rinval[0x1];
2919 u8 pd[0x18];
2920
2921 u8 start_addr[0x40];
2922
2923 u8 len[0x40];
2924
2925 u8 bsf_octword_size[0x20];
2926
Matan Barakb4ff3a32016-02-09 14:57:42 +02002927 u8 reserved_at_120[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002928
2929 u8 translations_octword_size[0x20];
2930
Matan Barakb4ff3a32016-02-09 14:57:42 +02002931 u8 reserved_at_1c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +03002932 u8 log_page_size[0x5];
2933
Matan Barakb4ff3a32016-02-09 14:57:42 +02002934 u8 reserved_at_1e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002935};
2936
2937struct mlx5_ifc_pkey_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002938 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002939 u8 pkey[0x10];
2940};
2941
2942struct mlx5_ifc_array128_auto_bits {
2943 u8 array128_auto[16][0x8];
2944};
2945
2946struct mlx5_ifc_hca_vport_context_bits {
2947 u8 field_select[0x20];
2948
Matan Barakb4ff3a32016-02-09 14:57:42 +02002949 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002950
2951 u8 sm_virt_aware[0x1];
2952 u8 has_smi[0x1];
2953 u8 has_raw[0x1];
2954 u8 grh_required[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002955 u8 reserved_at_104[0xc];
Majd Dibbiny707c4602015-06-04 19:30:41 +03002956 u8 port_physical_state[0x4];
2957 u8 vport_state_policy[0x4];
2958 u8 port_state[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002959 u8 vport_state[0x4];
2960
Matan Barakb4ff3a32016-02-09 14:57:42 +02002961 u8 reserved_at_120[0x20];
Majd Dibbiny707c4602015-06-04 19:30:41 +03002962
2963 u8 system_image_guid[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002964
2965 u8 port_guid[0x40];
2966
2967 u8 node_guid[0x40];
2968
2969 u8 cap_mask1[0x20];
2970
2971 u8 cap_mask1_field_select[0x20];
2972
2973 u8 cap_mask2[0x20];
2974
2975 u8 cap_mask2_field_select[0x20];
2976
Matan Barakb4ff3a32016-02-09 14:57:42 +02002977 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002978
2979 u8 lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002980 u8 reserved_at_310[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002981 u8 init_type_reply[0x4];
2982 u8 lmc[0x3];
2983 u8 subnet_timeout[0x5];
2984
2985 u8 sm_lid[0x10];
2986 u8 sm_sl[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002987 u8 reserved_at_334[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002988
2989 u8 qkey_violation_counter[0x10];
2990 u8 pkey_violation_counter[0x10];
2991
Matan Barakb4ff3a32016-02-09 14:57:42 +02002992 u8 reserved_at_360[0xca0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002993};
2994
Saeed Mahameedd6666752015-12-01 18:03:22 +02002995struct mlx5_ifc_esw_vport_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002996 u8 reserved_at_0[0x3];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002997 u8 vport_svlan_strip[0x1];
2998 u8 vport_cvlan_strip[0x1];
2999 u8 vport_svlan_insert[0x1];
3000 u8 vport_cvlan_insert[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003001 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003002
Matan Barakb4ff3a32016-02-09 14:57:42 +02003003 u8 reserved_at_20[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003004
3005 u8 svlan_cfi[0x1];
3006 u8 svlan_pcp[0x3];
3007 u8 svlan_id[0xc];
3008 u8 cvlan_cfi[0x1];
3009 u8 cvlan_pcp[0x3];
3010 u8 cvlan_id[0xc];
3011
Matan Barakb4ff3a32016-02-09 14:57:42 +02003012 u8 reserved_at_60[0x7a0];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003013};
3014
Saeed Mahameede2816822015-05-28 22:28:40 +03003015enum {
3016 MLX5_EQC_STATUS_OK = 0x0,
3017 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
3018};
3019
3020enum {
3021 MLX5_EQC_ST_ARMED = 0x9,
3022 MLX5_EQC_ST_FIRED = 0xa,
3023};
3024
3025struct mlx5_ifc_eqc_bits {
3026 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003027 u8 reserved_at_4[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03003028 u8 ec[0x1];
3029 u8 oi[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003030 u8 reserved_at_f[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003031 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003032 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003033
Matan Barakb4ff3a32016-02-09 14:57:42 +02003034 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003035
Matan Barakb4ff3a32016-02-09 14:57:42 +02003036 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003037 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003038 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003039
Matan Barakb4ff3a32016-02-09 14:57:42 +02003040 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003041 u8 log_eq_size[0x5];
3042 u8 uar_page[0x18];
3043
Matan Barakb4ff3a32016-02-09 14:57:42 +02003044 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003045
Matan Barakb4ff3a32016-02-09 14:57:42 +02003046 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003047 u8 intr[0x8];
3048
Matan Barakb4ff3a32016-02-09 14:57:42 +02003049 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003050 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003051 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003052
Matan Barakb4ff3a32016-02-09 14:57:42 +02003053 u8 reserved_at_e0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003054
Matan Barakb4ff3a32016-02-09 14:57:42 +02003055 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003056 u8 consumer_counter[0x18];
3057
Matan Barakb4ff3a32016-02-09 14:57:42 +02003058 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003059 u8 producer_counter[0x18];
3060
Matan Barakb4ff3a32016-02-09 14:57:42 +02003061 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003062};
3063
3064enum {
3065 MLX5_DCTC_STATE_ACTIVE = 0x0,
3066 MLX5_DCTC_STATE_DRAINING = 0x1,
3067 MLX5_DCTC_STATE_DRAINED = 0x2,
3068};
3069
3070enum {
3071 MLX5_DCTC_CS_RES_DISABLE = 0x0,
3072 MLX5_DCTC_CS_RES_NA = 0x1,
3073 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
3074};
3075
3076enum {
3077 MLX5_DCTC_MTU_256_BYTES = 0x1,
3078 MLX5_DCTC_MTU_512_BYTES = 0x2,
3079 MLX5_DCTC_MTU_1K_BYTES = 0x3,
3080 MLX5_DCTC_MTU_2K_BYTES = 0x4,
3081 MLX5_DCTC_MTU_4K_BYTES = 0x5,
3082};
3083
3084struct mlx5_ifc_dctc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003085 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003086 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003087 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003088
Matan Barakb4ff3a32016-02-09 14:57:42 +02003089 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003090 u8 user_index[0x18];
3091
Matan Barakb4ff3a32016-02-09 14:57:42 +02003092 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003093 u8 cqn[0x18];
3094
3095 u8 counter_set_id[0x8];
3096 u8 atomic_mode[0x4];
3097 u8 rre[0x1];
3098 u8 rwe[0x1];
3099 u8 rae[0x1];
3100 u8 atomic_like_write_en[0x1];
3101 u8 latency_sensitive[0x1];
3102 u8 rlky[0x1];
3103 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003104 u8 reserved_at_73[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03003105
Matan Barakb4ff3a32016-02-09 14:57:42 +02003106 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003107 u8 cs_res[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003108 u8 reserved_at_90[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003109 u8 min_rnr_nak[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003110 u8 reserved_at_98[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003111
Matan Barakb4ff3a32016-02-09 14:57:42 +02003112 u8 reserved_at_a0[0x8];
Saeed Mahameed74862162016-06-09 15:11:34 +03003113 u8 srqn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003114
Matan Barakb4ff3a32016-02-09 14:57:42 +02003115 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003116 u8 pd[0x18];
3117
3118 u8 tclass[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003119 u8 reserved_at_e8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003120 u8 flow_label[0x14];
3121
3122 u8 dc_access_key[0x40];
3123
Matan Barakb4ff3a32016-02-09 14:57:42 +02003124 u8 reserved_at_140[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003125 u8 mtu[0x3];
3126 u8 port[0x8];
3127 u8 pkey_index[0x10];
3128
Matan Barakb4ff3a32016-02-09 14:57:42 +02003129 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003130 u8 my_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003131 u8 reserved_at_170[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003132 u8 hop_limit[0x8];
3133
3134 u8 dc_access_key_violation_count[0x20];
3135
Matan Barakb4ff3a32016-02-09 14:57:42 +02003136 u8 reserved_at_1a0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003137 u8 dei_cfi[0x1];
3138 u8 eth_prio[0x3];
3139 u8 ecn[0x2];
3140 u8 dscp[0x6];
3141
Matan Barakb4ff3a32016-02-09 14:57:42 +02003142 u8 reserved_at_1c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003143};
3144
3145enum {
3146 MLX5_CQC_STATUS_OK = 0x0,
3147 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
3148 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
3149};
3150
3151enum {
3152 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
3153 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
3154};
3155
3156enum {
3157 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
3158 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
3159 MLX5_CQC_ST_FIRED = 0xa,
3160};
3161
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003162enum {
3163 MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0,
3164 MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1,
Saeed Mahameed74862162016-06-09 15:11:34 +03003165 MLX5_CQ_PERIOD_NUM_MODES
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003166};
3167
Saeed Mahameede2816822015-05-28 22:28:40 +03003168struct mlx5_ifc_cqc_bits {
3169 u8 status[0x4];
Leon Romanovskybd371972018-09-20 21:35:26 +03003170 u8 reserved_at_4[0x2];
3171 u8 dbr_umem_valid[0x1];
3172 u8 reserved_at_7[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003173 u8 cqe_sz[0x3];
3174 u8 cc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003175 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003176 u8 scqe_break_moderation_en[0x1];
3177 u8 oi[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003178 u8 cq_period_mode[0x2];
3179 u8 cqe_comp_en[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003180 u8 mini_cqe_res_format[0x2];
3181 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003182 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003183
Matan Barakb4ff3a32016-02-09 14:57:42 +02003184 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003185
Matan Barakb4ff3a32016-02-09 14:57:42 +02003186 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003187 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003188 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003189
Matan Barakb4ff3a32016-02-09 14:57:42 +02003190 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003191 u8 log_cq_size[0x5];
3192 u8 uar_page[0x18];
3193
Matan Barakb4ff3a32016-02-09 14:57:42 +02003194 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003195 u8 cq_period[0xc];
3196 u8 cq_max_count[0x10];
3197
Matan Barakb4ff3a32016-02-09 14:57:42 +02003198 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003199 u8 c_eqn[0x8];
3200
Matan Barakb4ff3a32016-02-09 14:57:42 +02003201 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003202 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003203 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003204
Matan Barakb4ff3a32016-02-09 14:57:42 +02003205 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003206
Matan Barakb4ff3a32016-02-09 14:57:42 +02003207 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003208 u8 last_notified_index[0x18];
3209
Matan Barakb4ff3a32016-02-09 14:57:42 +02003210 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003211 u8 last_solicit_index[0x18];
3212
Matan Barakb4ff3a32016-02-09 14:57:42 +02003213 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003214 u8 consumer_counter[0x18];
3215
Matan Barakb4ff3a32016-02-09 14:57:42 +02003216 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003217 u8 producer_counter[0x18];
3218
Matan Barakb4ff3a32016-02-09 14:57:42 +02003219 u8 reserved_at_180[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003220
3221 u8 dbr_addr[0x40];
3222};
3223
3224union mlx5_ifc_cong_control_roce_ecn_auto_bits {
3225 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
3226 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
3227 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003228 u8 reserved_at_0[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03003229};
3230
3231struct mlx5_ifc_query_adapter_param_block_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003232 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003233
Matan Barakb4ff3a32016-02-09 14:57:42 +02003234 u8 reserved_at_c0[0x8];
Majd Dibbiny211e6c82015-06-04 19:30:42 +03003235 u8 ieee_vendor_id[0x18];
3236
Matan Barakb4ff3a32016-02-09 14:57:42 +02003237 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003238 u8 vsd_vendor_id[0x10];
3239
3240 u8 vsd[208][0x8];
3241
3242 u8 vsd_contd_psid[16][0x8];
3243};
3244
Saeed Mahameed74862162016-06-09 15:11:34 +03003245enum {
3246 MLX5_XRQC_STATE_GOOD = 0x0,
3247 MLX5_XRQC_STATE_ERROR = 0x1,
3248};
3249
3250enum {
3251 MLX5_XRQC_TOPOLOGY_NO_SPECIAL_TOPOLOGY = 0x0,
3252 MLX5_XRQC_TOPOLOGY_TAG_MATCHING = 0x1,
3253};
3254
3255enum {
3256 MLX5_XRQC_OFFLOAD_RNDV = 0x1,
3257};
3258
3259struct mlx5_ifc_tag_matching_topology_context_bits {
3260 u8 log_matching_list_sz[0x4];
3261 u8 reserved_at_4[0xc];
3262 u8 append_next_index[0x10];
3263
3264 u8 sw_phase_cnt[0x10];
3265 u8 hw_phase_cnt[0x10];
3266
3267 u8 reserved_at_40[0x40];
3268};
3269
3270struct mlx5_ifc_xrqc_bits {
3271 u8 state[0x4];
3272 u8 rlkey[0x1];
3273 u8 reserved_at_5[0xf];
3274 u8 topology[0x4];
3275 u8 reserved_at_18[0x4];
3276 u8 offload[0x4];
3277
3278 u8 reserved_at_20[0x8];
3279 u8 user_index[0x18];
3280
3281 u8 reserved_at_40[0x8];
3282 u8 cqn[0x18];
3283
3284 u8 reserved_at_60[0xa0];
3285
3286 struct mlx5_ifc_tag_matching_topology_context_bits tag_matching_topology_context;
3287
Artemy Kovalyov6e446362017-08-15 11:59:02 +03003288 u8 reserved_at_180[0x280];
Saeed Mahameed74862162016-06-09 15:11:34 +03003289
3290 struct mlx5_ifc_wq_bits wq;
3291};
3292
Saeed Mahameede2816822015-05-28 22:28:40 +03003293union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
3294 struct mlx5_ifc_modify_field_select_bits modify_field_select;
3295 struct mlx5_ifc_resize_field_select_bits resize_field_select;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003296 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003297};
3298
3299union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
3300 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
3301 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
3302 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003303 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003304};
3305
3306union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
3307 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
3308 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
3309 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
3310 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
3311 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
3312 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
3313 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02003314 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03003315 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
Gal Pressmand8dc0502016-09-27 17:04:51 +03003316 struct mlx5_ifc_phys_layer_statistical_cntrs_bits phys_layer_statistical_cntrs;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003317 u8 reserved_at_0[0x7c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003318};
3319
Gal Pressman8ed1a632016-11-17 13:46:01 +02003320union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits {
3321 struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits pcie_perf_cntrs_grp_data_layout;
3322 u8 reserved_at_0[0x7c0];
3323};
3324
Saeed Mahameede2816822015-05-28 22:28:40 +03003325union mlx5_ifc_event_auto_bits {
3326 struct mlx5_ifc_comp_event_bits comp_event;
3327 struct mlx5_ifc_dct_events_bits dct_events;
3328 struct mlx5_ifc_qp_events_bits qp_events;
3329 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
3330 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
3331 struct mlx5_ifc_cq_error_bits cq_error;
3332 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
3333 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
3334 struct mlx5_ifc_gpio_event_bits gpio_event;
3335 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
3336 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
3337 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003338 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003339};
3340
3341struct mlx5_ifc_health_buffer_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003342 u8 reserved_at_0[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03003343
3344 u8 assert_existptr[0x20];
3345
3346 u8 assert_callra[0x20];
3347
Matan Barakb4ff3a32016-02-09 14:57:42 +02003348 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003349
3350 u8 fw_version[0x20];
3351
3352 u8 hw_id[0x20];
3353
Matan Barakb4ff3a32016-02-09 14:57:42 +02003354 u8 reserved_at_1c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003355
3356 u8 irisc_index[0x8];
3357 u8 synd[0x8];
3358 u8 ext_synd[0x10];
3359};
3360
3361struct mlx5_ifc_register_loopback_control_bits {
3362 u8 no_lb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003363 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03003364 u8 port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003365 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003366
Matan Barakb4ff3a32016-02-09 14:57:42 +02003367 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003368};
3369
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03003370struct mlx5_ifc_vport_tc_element_bits {
3371 u8 traffic_class[0x4];
3372 u8 reserved_at_4[0xc];
3373 u8 vport_number[0x10];
3374};
3375
3376struct mlx5_ifc_vport_element_bits {
3377 u8 reserved_at_0[0x10];
3378 u8 vport_number[0x10];
3379};
3380
3381enum {
3382 TSAR_ELEMENT_TSAR_TYPE_DWRR = 0x0,
3383 TSAR_ELEMENT_TSAR_TYPE_ROUND_ROBIN = 0x1,
3384 TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2,
3385};
3386
3387struct mlx5_ifc_tsar_element_bits {
3388 u8 reserved_at_0[0x8];
3389 u8 tsar_type[0x8];
3390 u8 reserved_at_10[0x10];
3391};
3392
Majd Dibbiny8812c242017-02-09 14:20:12 +02003393enum {
3394 MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_SUCCESS = 0x0,
3395 MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_FAIL = 0x1,
3396};
3397
Saeed Mahameede2816822015-05-28 22:28:40 +03003398struct mlx5_ifc_teardown_hca_out_bits {
3399 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003400 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003401
3402 u8 syndrome[0x20];
3403
Majd Dibbiny8812c242017-02-09 14:20:12 +02003404 u8 reserved_at_40[0x3f];
3405
Feras Daoudfcd29ad2018-08-09 09:55:21 +03003406 u8 state[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003407};
3408
3409enum {
3410 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
Majd Dibbiny8812c242017-02-09 14:20:12 +02003411 MLX5_TEARDOWN_HCA_IN_PROFILE_FORCE_CLOSE = 0x1,
Feras Daoudfcd29ad2018-08-09 09:55:21 +03003412 MLX5_TEARDOWN_HCA_IN_PROFILE_PREPARE_FAST_TEARDOWN = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03003413};
3414
3415struct mlx5_ifc_teardown_hca_in_bits {
3416 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003417 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003418
Matan Barakb4ff3a32016-02-09 14:57:42 +02003419 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003420 u8 op_mod[0x10];
3421
Matan Barakb4ff3a32016-02-09 14:57:42 +02003422 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003423 u8 profile[0x10];
3424
Matan Barakb4ff3a32016-02-09 14:57:42 +02003425 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003426};
3427
3428struct mlx5_ifc_sqerr2rts_qp_out_bits {
3429 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003430 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003431
3432 u8 syndrome[0x20];
3433
Matan Barakb4ff3a32016-02-09 14:57:42 +02003434 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003435};
3436
3437struct mlx5_ifc_sqerr2rts_qp_in_bits {
3438 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003439 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003440
Matan Barakb4ff3a32016-02-09 14:57:42 +02003441 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003442 u8 op_mod[0x10];
3443
Matan Barakb4ff3a32016-02-09 14:57:42 +02003444 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003445 u8 qpn[0x18];
3446
Matan Barakb4ff3a32016-02-09 14:57:42 +02003447 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003448
3449 u8 opt_param_mask[0x20];
3450
Matan Barakb4ff3a32016-02-09 14:57:42 +02003451 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003452
3453 struct mlx5_ifc_qpc_bits qpc;
3454
Matan Barakb4ff3a32016-02-09 14:57:42 +02003455 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003456};
3457
3458struct mlx5_ifc_sqd2rts_qp_out_bits {
3459 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003460 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003461
3462 u8 syndrome[0x20];
3463
Matan Barakb4ff3a32016-02-09 14:57:42 +02003464 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003465};
3466
3467struct mlx5_ifc_sqd2rts_qp_in_bits {
3468 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003469 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003470
Matan Barakb4ff3a32016-02-09 14:57:42 +02003471 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003472 u8 op_mod[0x10];
3473
Matan Barakb4ff3a32016-02-09 14:57:42 +02003474 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003475 u8 qpn[0x18];
3476
Matan Barakb4ff3a32016-02-09 14:57:42 +02003477 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003478
3479 u8 opt_param_mask[0x20];
3480
Matan Barakb4ff3a32016-02-09 14:57:42 +02003481 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003482
3483 struct mlx5_ifc_qpc_bits qpc;
3484
Matan Barakb4ff3a32016-02-09 14:57:42 +02003485 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003486};
3487
3488struct mlx5_ifc_set_roce_address_out_bits {
3489 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003490 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003491
3492 u8 syndrome[0x20];
3493
Matan Barakb4ff3a32016-02-09 14:57:42 +02003494 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003495};
3496
3497struct mlx5_ifc_set_roce_address_in_bits {
3498 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003499 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003500
Matan Barakb4ff3a32016-02-09 14:57:42 +02003501 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003502 u8 op_mod[0x10];
3503
3504 u8 roce_address_index[0x10];
Daniel Jurgens32f69e42018-01-04 17:25:36 +02003505 u8 reserved_at_50[0xc];
3506 u8 vhca_port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003507
Matan Barakb4ff3a32016-02-09 14:57:42 +02003508 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003509
3510 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3511};
3512
3513struct mlx5_ifc_set_mad_demux_out_bits {
3514 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003515 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003516
3517 u8 syndrome[0x20];
3518
Matan Barakb4ff3a32016-02-09 14:57:42 +02003519 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003520};
3521
3522enum {
3523 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
3524 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
3525};
3526
3527struct mlx5_ifc_set_mad_demux_in_bits {
3528 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003529 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003530
Matan Barakb4ff3a32016-02-09 14:57:42 +02003531 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003532 u8 op_mod[0x10];
3533
Matan Barakb4ff3a32016-02-09 14:57:42 +02003534 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003535
Matan Barakb4ff3a32016-02-09 14:57:42 +02003536 u8 reserved_at_60[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003537 u8 demux_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003538 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003539};
3540
3541struct mlx5_ifc_set_l2_table_entry_out_bits {
3542 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003543 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003544
3545 u8 syndrome[0x20];
3546
Matan Barakb4ff3a32016-02-09 14:57:42 +02003547 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003548};
3549
3550struct mlx5_ifc_set_l2_table_entry_in_bits {
3551 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003552 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003553
Matan Barakb4ff3a32016-02-09 14:57:42 +02003554 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003555 u8 op_mod[0x10];
3556
Matan Barakb4ff3a32016-02-09 14:57:42 +02003557 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003558
Matan Barakb4ff3a32016-02-09 14:57:42 +02003559 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003560 u8 table_index[0x18];
3561
Matan Barakb4ff3a32016-02-09 14:57:42 +02003562 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003563
Matan Barakb4ff3a32016-02-09 14:57:42 +02003564 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03003565 u8 vlan_valid[0x1];
3566 u8 vlan[0xc];
3567
3568 struct mlx5_ifc_mac_address_layout_bits mac_address;
3569
Matan Barakb4ff3a32016-02-09 14:57:42 +02003570 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003571};
3572
3573struct mlx5_ifc_set_issi_out_bits {
3574 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003575 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003576
3577 u8 syndrome[0x20];
3578
Matan Barakb4ff3a32016-02-09 14:57:42 +02003579 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003580};
3581
3582struct mlx5_ifc_set_issi_in_bits {
3583 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003584 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003585
Matan Barakb4ff3a32016-02-09 14:57:42 +02003586 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003587 u8 op_mod[0x10];
3588
Matan Barakb4ff3a32016-02-09 14:57:42 +02003589 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003590 u8 current_issi[0x10];
3591
Matan Barakb4ff3a32016-02-09 14:57:42 +02003592 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003593};
3594
3595struct mlx5_ifc_set_hca_cap_out_bits {
3596 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003597 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003598
3599 u8 syndrome[0x20];
3600
Matan Barakb4ff3a32016-02-09 14:57:42 +02003601 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003602};
3603
3604struct mlx5_ifc_set_hca_cap_in_bits {
3605 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003606 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003607
Matan Barakb4ff3a32016-02-09 14:57:42 +02003608 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003609 u8 op_mod[0x10];
3610
Matan Barakb4ff3a32016-02-09 14:57:42 +02003611 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003612
Saeed Mahameede2816822015-05-28 22:28:40 +03003613 union mlx5_ifc_hca_cap_union_bits capability;
3614};
3615
Maor Gottlieb26a81452015-12-10 17:12:39 +02003616enum {
3617 MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0,
3618 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1,
3619 MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2,
3620 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3
3621};
3622
Saeed Mahameede2816822015-05-28 22:28:40 +03003623struct mlx5_ifc_set_fte_out_bits {
3624 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003625 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003626
3627 u8 syndrome[0x20];
3628
Matan Barakb4ff3a32016-02-09 14:57:42 +02003629 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003630};
3631
3632struct mlx5_ifc_set_fte_in_bits {
3633 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003634 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003635
Matan Barakb4ff3a32016-02-09 14:57:42 +02003636 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003637 u8 op_mod[0x10];
3638
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003639 u8 other_vport[0x1];
3640 u8 reserved_at_41[0xf];
3641 u8 vport_number[0x10];
3642
3643 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003644
3645 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003646 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003647
Matan Barakb4ff3a32016-02-09 14:57:42 +02003648 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003649 u8 table_id[0x18];
3650
Matan Barakb4ff3a32016-02-09 14:57:42 +02003651 u8 reserved_at_c0[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +02003652 u8 modify_enable_mask[0x8];
3653
Matan Barakb4ff3a32016-02-09 14:57:42 +02003654 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003655
3656 u8 flow_index[0x20];
3657
Matan Barakb4ff3a32016-02-09 14:57:42 +02003658 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003659
3660 struct mlx5_ifc_flow_context_bits flow_context;
3661};
3662
3663struct mlx5_ifc_rts2rts_qp_out_bits {
3664 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003665 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003666
3667 u8 syndrome[0x20];
3668
Matan Barakb4ff3a32016-02-09 14:57:42 +02003669 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003670};
3671
3672struct mlx5_ifc_rts2rts_qp_in_bits {
3673 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003674 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003675
Matan Barakb4ff3a32016-02-09 14:57:42 +02003676 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003677 u8 op_mod[0x10];
3678
Matan Barakb4ff3a32016-02-09 14:57:42 +02003679 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003680 u8 qpn[0x18];
3681
Matan Barakb4ff3a32016-02-09 14:57:42 +02003682 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003683
3684 u8 opt_param_mask[0x20];
3685
Matan Barakb4ff3a32016-02-09 14:57:42 +02003686 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003687
3688 struct mlx5_ifc_qpc_bits qpc;
3689
Matan Barakb4ff3a32016-02-09 14:57:42 +02003690 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003691};
3692
3693struct mlx5_ifc_rtr2rts_qp_out_bits {
3694 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003695 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003696
3697 u8 syndrome[0x20];
3698
Matan Barakb4ff3a32016-02-09 14:57:42 +02003699 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003700};
3701
3702struct mlx5_ifc_rtr2rts_qp_in_bits {
3703 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003704 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003705
Matan Barakb4ff3a32016-02-09 14:57:42 +02003706 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003707 u8 op_mod[0x10];
3708
Matan Barakb4ff3a32016-02-09 14:57:42 +02003709 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003710 u8 qpn[0x18];
3711
Matan Barakb4ff3a32016-02-09 14:57:42 +02003712 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003713
3714 u8 opt_param_mask[0x20];
3715
Matan Barakb4ff3a32016-02-09 14:57:42 +02003716 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003717
3718 struct mlx5_ifc_qpc_bits qpc;
3719
Matan Barakb4ff3a32016-02-09 14:57:42 +02003720 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003721};
3722
3723struct mlx5_ifc_rst2init_qp_out_bits {
3724 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003725 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003726
3727 u8 syndrome[0x20];
3728
Matan Barakb4ff3a32016-02-09 14:57:42 +02003729 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003730};
3731
3732struct mlx5_ifc_rst2init_qp_in_bits {
3733 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003734 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003735
Matan Barakb4ff3a32016-02-09 14:57:42 +02003736 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003737 u8 op_mod[0x10];
3738
Matan Barakb4ff3a32016-02-09 14:57:42 +02003739 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003740 u8 qpn[0x18];
3741
Matan Barakb4ff3a32016-02-09 14:57:42 +02003742 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003743
3744 u8 opt_param_mask[0x20];
3745
Matan Barakb4ff3a32016-02-09 14:57:42 +02003746 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003747
3748 struct mlx5_ifc_qpc_bits qpc;
3749
Matan Barakb4ff3a32016-02-09 14:57:42 +02003750 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003751};
3752
Saeed Mahameed74862162016-06-09 15:11:34 +03003753struct mlx5_ifc_query_xrq_out_bits {
3754 u8 status[0x8];
3755 u8 reserved_at_8[0x18];
3756
3757 u8 syndrome[0x20];
3758
3759 u8 reserved_at_40[0x40];
3760
3761 struct mlx5_ifc_xrqc_bits xrq_context;
3762};
3763
3764struct mlx5_ifc_query_xrq_in_bits {
3765 u8 opcode[0x10];
3766 u8 reserved_at_10[0x10];
3767
3768 u8 reserved_at_20[0x10];
3769 u8 op_mod[0x10];
3770
3771 u8 reserved_at_40[0x8];
3772 u8 xrqn[0x18];
3773
3774 u8 reserved_at_60[0x20];
3775};
3776
Saeed Mahameede2816822015-05-28 22:28:40 +03003777struct mlx5_ifc_query_xrc_srq_out_bits {
3778 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003779 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003780
3781 u8 syndrome[0x20];
3782
Matan Barakb4ff3a32016-02-09 14:57:42 +02003783 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003784
3785 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
3786
Matan Barakb4ff3a32016-02-09 14:57:42 +02003787 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003788
3789 u8 pas[0][0x40];
3790};
3791
3792struct mlx5_ifc_query_xrc_srq_in_bits {
3793 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003794 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003795
Matan Barakb4ff3a32016-02-09 14:57:42 +02003796 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003797 u8 op_mod[0x10];
3798
Matan Barakb4ff3a32016-02-09 14:57:42 +02003799 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003800 u8 xrc_srqn[0x18];
3801
Matan Barakb4ff3a32016-02-09 14:57:42 +02003802 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003803};
3804
3805enum {
3806 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
3807 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
3808};
3809
3810struct mlx5_ifc_query_vport_state_out_bits {
3811 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003812 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003813
3814 u8 syndrome[0x20];
3815
Matan Barakb4ff3a32016-02-09 14:57:42 +02003816 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003817
Matan Barakb4ff3a32016-02-09 14:57:42 +02003818 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003819 u8 admin_state[0x4];
3820 u8 state[0x4];
3821};
3822
3823enum {
Eran Ben Elishacc9c82a2018-08-08 16:23:49 -07003824 MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT = 0x0,
3825 MLX5_VPORT_STATE_OP_MOD_ESW_VPORT = 0x1,
Saeed Mahameede2816822015-05-28 22:28:40 +03003826};
3827
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08003828struct mlx5_ifc_arm_monitor_counter_in_bits {
3829 u8 opcode[0x10];
3830 u8 uid[0x10];
3831
3832 u8 reserved_at_20[0x10];
3833 u8 op_mod[0x10];
3834
3835 u8 reserved_at_40[0x20];
3836
3837 u8 reserved_at_60[0x20];
3838};
3839
3840struct mlx5_ifc_arm_monitor_counter_out_bits {
3841 u8 status[0x8];
3842 u8 reserved_at_8[0x18];
3843
3844 u8 syndrome[0x20];
3845
3846 u8 reserved_at_40[0x40];
3847};
3848
3849enum {
3850 MLX5_QUERY_MONITOR_CNT_TYPE_PPCNT = 0x0,
3851 MLX5_QUERY_MONITOR_CNT_TYPE_Q_COUNTER = 0x1,
3852};
3853
3854enum mlx5_monitor_counter_ppcnt {
3855 MLX5_QUERY_MONITOR_PPCNT_IN_RANGE_LENGTH_ERRORS = 0X0,
3856 MLX5_QUERY_MONITOR_PPCNT_OUT_OF_RANGE_LENGTH_FIELD = 0X1,
3857 MLX5_QUERY_MONITOR_PPCNT_FRAME_TOO_LONG_ERRORS = 0X2,
3858 MLX5_QUERY_MONITOR_PPCNT_FRAME_CHECK_SEQUENCE_ERRORS = 0X3,
3859 MLX5_QUERY_MONITOR_PPCNT_ALIGNMENT_ERRORS = 0X4,
3860 MLX5_QUERY_MONITOR_PPCNT_IF_OUT_DISCARDS = 0X5,
3861};
3862
3863enum {
3864 MLX5_QUERY_MONITOR_Q_COUNTER_RX_OUT_OF_BUFFER = 0X4,
3865};
3866
3867struct mlx5_ifc_monitor_counter_output_bits {
3868 u8 reserved_at_0[0x4];
3869 u8 type[0x4];
3870 u8 reserved_at_8[0x8];
3871 u8 counter[0x10];
3872
3873 u8 counter_group_id[0x20];
3874};
3875
3876#define MLX5_CMD_SET_MONITOR_NUM_PPCNT_COUNTER_SET1 (6)
3877#define MLX5_CMD_SET_MONITOR_NUM_Q_COUNTERS_SET1 (1)
3878#define MLX5_CMD_SET_MONITOR_NUM_COUNTER (MLX5_CMD_SET_MONITOR_NUM_PPCNT_COUNTER_SET1 +\
3879 MLX5_CMD_SET_MONITOR_NUM_Q_COUNTERS_SET1)
3880
3881struct mlx5_ifc_set_monitor_counter_in_bits {
3882 u8 opcode[0x10];
3883 u8 uid[0x10];
3884
3885 u8 reserved_at_20[0x10];
3886 u8 op_mod[0x10];
3887
3888 u8 reserved_at_40[0x10];
3889 u8 num_of_counters[0x10];
3890
3891 u8 reserved_at_60[0x20];
3892
3893 struct mlx5_ifc_monitor_counter_output_bits monitor_counter[MLX5_CMD_SET_MONITOR_NUM_COUNTER];
3894};
3895
3896struct mlx5_ifc_set_monitor_counter_out_bits {
3897 u8 status[0x8];
3898 u8 reserved_at_8[0x18];
3899
3900 u8 syndrome[0x20];
3901
3902 u8 reserved_at_40[0x40];
3903};
3904
Saeed Mahameede2816822015-05-28 22:28:40 +03003905struct mlx5_ifc_query_vport_state_in_bits {
3906 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003907 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003908
Matan Barakb4ff3a32016-02-09 14:57:42 +02003909 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003910 u8 op_mod[0x10];
3911
3912 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003913 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003914 u8 vport_number[0x10];
3915
Matan Barakb4ff3a32016-02-09 14:57:42 +02003916 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003917};
3918
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +02003919struct mlx5_ifc_query_vnic_env_out_bits {
3920 u8 status[0x8];
3921 u8 reserved_at_8[0x18];
3922
3923 u8 syndrome[0x20];
3924
3925 u8 reserved_at_40[0x40];
3926
3927 struct mlx5_ifc_vnic_diagnostic_statistics_bits vport_env;
3928};
3929
3930enum {
3931 MLX5_QUERY_VNIC_ENV_IN_OP_MOD_VPORT_DIAG_STATISTICS = 0x0,
3932};
3933
3934struct mlx5_ifc_query_vnic_env_in_bits {
3935 u8 opcode[0x10];
3936 u8 reserved_at_10[0x10];
3937
3938 u8 reserved_at_20[0x10];
3939 u8 op_mod[0x10];
3940
3941 u8 other_vport[0x1];
3942 u8 reserved_at_41[0xf];
3943 u8 vport_number[0x10];
3944
3945 u8 reserved_at_60[0x20];
3946};
3947
Saeed Mahameede2816822015-05-28 22:28:40 +03003948struct mlx5_ifc_query_vport_counter_out_bits {
3949 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003950 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003951
3952 u8 syndrome[0x20];
3953
Matan Barakb4ff3a32016-02-09 14:57:42 +02003954 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003955
3956 struct mlx5_ifc_traffic_counter_bits received_errors;
3957
3958 struct mlx5_ifc_traffic_counter_bits transmit_errors;
3959
3960 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
3961
3962 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
3963
3964 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
3965
3966 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
3967
3968 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
3969
3970 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
3971
3972 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
3973
3974 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
3975
3976 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
3977
3978 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
3979
Matan Barakb4ff3a32016-02-09 14:57:42 +02003980 u8 reserved_at_680[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +03003981};
3982
3983enum {
3984 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
3985};
3986
3987struct mlx5_ifc_query_vport_counter_in_bits {
3988 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003989 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003990
Matan Barakb4ff3a32016-02-09 14:57:42 +02003991 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003992 u8 op_mod[0x10];
3993
3994 u8 other_vport[0x1];
Meny Yossefib54ba272016-02-18 18:14:59 +02003995 u8 reserved_at_41[0xb];
3996 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003997 u8 vport_number[0x10];
3998
Matan Barakb4ff3a32016-02-09 14:57:42 +02003999 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004000
4001 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004002 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004003
Matan Barakb4ff3a32016-02-09 14:57:42 +02004004 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004005};
4006
4007struct mlx5_ifc_query_tis_out_bits {
4008 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004009 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004010
4011 u8 syndrome[0x20];
4012
Matan Barakb4ff3a32016-02-09 14:57:42 +02004013 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004014
4015 struct mlx5_ifc_tisc_bits tis_context;
4016};
4017
4018struct mlx5_ifc_query_tis_in_bits {
4019 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004020 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004021
Matan Barakb4ff3a32016-02-09 14:57:42 +02004022 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004023 u8 op_mod[0x10];
4024
Matan Barakb4ff3a32016-02-09 14:57:42 +02004025 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004026 u8 tisn[0x18];
4027
Matan Barakb4ff3a32016-02-09 14:57:42 +02004028 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004029};
4030
4031struct mlx5_ifc_query_tir_out_bits {
4032 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004033 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004034
4035 u8 syndrome[0x20];
4036
Matan Barakb4ff3a32016-02-09 14:57:42 +02004037 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004038
4039 struct mlx5_ifc_tirc_bits tir_context;
4040};
4041
4042struct mlx5_ifc_query_tir_in_bits {
4043 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004044 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004045
Matan Barakb4ff3a32016-02-09 14:57:42 +02004046 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004047 u8 op_mod[0x10];
4048
Matan Barakb4ff3a32016-02-09 14:57:42 +02004049 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004050 u8 tirn[0x18];
4051
Matan Barakb4ff3a32016-02-09 14:57:42 +02004052 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004053};
4054
4055struct mlx5_ifc_query_srq_out_bits {
4056 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004057 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004058
4059 u8 syndrome[0x20];
4060
Matan Barakb4ff3a32016-02-09 14:57:42 +02004061 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004062
4063 struct mlx5_ifc_srqc_bits srq_context_entry;
4064
Matan Barakb4ff3a32016-02-09 14:57:42 +02004065 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004066
4067 u8 pas[0][0x40];
4068};
4069
4070struct mlx5_ifc_query_srq_in_bits {
4071 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004072 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004073
Matan Barakb4ff3a32016-02-09 14:57:42 +02004074 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004075 u8 op_mod[0x10];
4076
Matan Barakb4ff3a32016-02-09 14:57:42 +02004077 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004078 u8 srqn[0x18];
4079
Matan Barakb4ff3a32016-02-09 14:57:42 +02004080 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004081};
4082
4083struct mlx5_ifc_query_sq_out_bits {
4084 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004085 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004086
4087 u8 syndrome[0x20];
4088
Matan Barakb4ff3a32016-02-09 14:57:42 +02004089 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004090
4091 struct mlx5_ifc_sqc_bits sq_context;
4092};
4093
4094struct mlx5_ifc_query_sq_in_bits {
4095 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004096 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004097
Matan Barakb4ff3a32016-02-09 14:57:42 +02004098 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004099 u8 op_mod[0x10];
4100
Matan Barakb4ff3a32016-02-09 14:57:42 +02004101 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004102 u8 sqn[0x18];
4103
Matan Barakb4ff3a32016-02-09 14:57:42 +02004104 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004105};
4106
4107struct mlx5_ifc_query_special_contexts_out_bits {
4108 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004109 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004110
4111 u8 syndrome[0x20];
4112
Saeed Mahameedec22eb52016-07-16 06:28:36 +03004113 u8 dump_fill_mkey[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004114
4115 u8 resd_lkey[0x20];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02004116
4117 u8 null_mkey[0x20];
4118
4119 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004120};
4121
4122struct mlx5_ifc_query_special_contexts_in_bits {
4123 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004124 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004125
Matan Barakb4ff3a32016-02-09 14:57:42 +02004126 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004127 u8 op_mod[0x10];
4128
Matan Barakb4ff3a32016-02-09 14:57:42 +02004129 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004130};
4131
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03004132struct mlx5_ifc_query_scheduling_element_out_bits {
4133 u8 opcode[0x10];
4134 u8 reserved_at_10[0x10];
4135
4136 u8 reserved_at_20[0x10];
4137 u8 op_mod[0x10];
4138
4139 u8 reserved_at_40[0xc0];
4140
4141 struct mlx5_ifc_scheduling_context_bits scheduling_context;
4142
4143 u8 reserved_at_300[0x100];
4144};
4145
4146enum {
4147 SCHEDULING_HIERARCHY_E_SWITCH = 0x2,
4148};
4149
4150struct mlx5_ifc_query_scheduling_element_in_bits {
4151 u8 opcode[0x10];
4152 u8 reserved_at_10[0x10];
4153
4154 u8 reserved_at_20[0x10];
4155 u8 op_mod[0x10];
4156
4157 u8 scheduling_hierarchy[0x8];
4158 u8 reserved_at_48[0x18];
4159
4160 u8 scheduling_element_id[0x20];
4161
4162 u8 reserved_at_80[0x180];
4163};
4164
Saeed Mahameede2816822015-05-28 22:28:40 +03004165struct mlx5_ifc_query_rqt_out_bits {
4166 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004167 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004168
4169 u8 syndrome[0x20];
4170
Matan Barakb4ff3a32016-02-09 14:57:42 +02004171 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004172
4173 struct mlx5_ifc_rqtc_bits rqt_context;
4174};
4175
4176struct mlx5_ifc_query_rqt_in_bits {
4177 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004178 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004179
Matan Barakb4ff3a32016-02-09 14:57:42 +02004180 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004181 u8 op_mod[0x10];
4182
Matan Barakb4ff3a32016-02-09 14:57:42 +02004183 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004184 u8 rqtn[0x18];
4185
Matan Barakb4ff3a32016-02-09 14:57:42 +02004186 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004187};
4188
4189struct mlx5_ifc_query_rq_out_bits {
4190 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004191 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004192
4193 u8 syndrome[0x20];
4194
Matan Barakb4ff3a32016-02-09 14:57:42 +02004195 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004196
4197 struct mlx5_ifc_rqc_bits rq_context;
4198};
4199
4200struct mlx5_ifc_query_rq_in_bits {
4201 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004202 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004203
Matan Barakb4ff3a32016-02-09 14:57:42 +02004204 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004205 u8 op_mod[0x10];
4206
Matan Barakb4ff3a32016-02-09 14:57:42 +02004207 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004208 u8 rqn[0x18];
4209
Matan Barakb4ff3a32016-02-09 14:57:42 +02004210 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004211};
4212
4213struct mlx5_ifc_query_roce_address_out_bits {
4214 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004215 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004216
4217 u8 syndrome[0x20];
4218
Matan Barakb4ff3a32016-02-09 14:57:42 +02004219 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004220
4221 struct mlx5_ifc_roce_addr_layout_bits roce_address;
4222};
4223
4224struct mlx5_ifc_query_roce_address_in_bits {
4225 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004226 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004227
Matan Barakb4ff3a32016-02-09 14:57:42 +02004228 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004229 u8 op_mod[0x10];
4230
4231 u8 roce_address_index[0x10];
Daniel Jurgens32f69e42018-01-04 17:25:36 +02004232 u8 reserved_at_50[0xc];
4233 u8 vhca_port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004234
Matan Barakb4ff3a32016-02-09 14:57:42 +02004235 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004236};
4237
4238struct mlx5_ifc_query_rmp_out_bits {
4239 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004240 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004241
4242 u8 syndrome[0x20];
4243
Matan Barakb4ff3a32016-02-09 14:57:42 +02004244 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004245
4246 struct mlx5_ifc_rmpc_bits rmp_context;
4247};
4248
4249struct mlx5_ifc_query_rmp_in_bits {
4250 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004251 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004252
Matan Barakb4ff3a32016-02-09 14:57:42 +02004253 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004254 u8 op_mod[0x10];
4255
Matan Barakb4ff3a32016-02-09 14:57:42 +02004256 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004257 u8 rmpn[0x18];
4258
Matan Barakb4ff3a32016-02-09 14:57:42 +02004259 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004260};
4261
4262struct mlx5_ifc_query_qp_out_bits {
4263 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004264 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004265
4266 u8 syndrome[0x20];
4267
Matan Barakb4ff3a32016-02-09 14:57:42 +02004268 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004269
4270 u8 opt_param_mask[0x20];
4271
Matan Barakb4ff3a32016-02-09 14:57:42 +02004272 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004273
4274 struct mlx5_ifc_qpc_bits qpc;
4275
Matan Barakb4ff3a32016-02-09 14:57:42 +02004276 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004277
4278 u8 pas[0][0x40];
4279};
4280
4281struct mlx5_ifc_query_qp_in_bits {
4282 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004283 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004284
Matan Barakb4ff3a32016-02-09 14:57:42 +02004285 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004286 u8 op_mod[0x10];
4287
Matan Barakb4ff3a32016-02-09 14:57:42 +02004288 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004289 u8 qpn[0x18];
4290
Matan Barakb4ff3a32016-02-09 14:57:42 +02004291 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004292};
4293
4294struct mlx5_ifc_query_q_counter_out_bits {
4295 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004296 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004297
4298 u8 syndrome[0x20];
4299
Matan Barakb4ff3a32016-02-09 14:57:42 +02004300 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004301
4302 u8 rx_write_requests[0x20];
4303
Matan Barakb4ff3a32016-02-09 14:57:42 +02004304 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004305
4306 u8 rx_read_requests[0x20];
4307
Matan Barakb4ff3a32016-02-09 14:57:42 +02004308 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004309
4310 u8 rx_atomic_requests[0x20];
4311
Matan Barakb4ff3a32016-02-09 14:57:42 +02004312 u8 reserved_at_120[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004313
4314 u8 rx_dct_connect[0x20];
4315
Matan Barakb4ff3a32016-02-09 14:57:42 +02004316 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004317
4318 u8 out_of_buffer[0x20];
4319
Matan Barakb4ff3a32016-02-09 14:57:42 +02004320 u8 reserved_at_1a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004321
4322 u8 out_of_sequence[0x20];
4323
Saeed Mahameed74862162016-06-09 15:11:34 +03004324 u8 reserved_at_1e0[0x20];
4325
4326 u8 duplicate_request[0x20];
4327
4328 u8 reserved_at_220[0x20];
4329
4330 u8 rnr_nak_retry_err[0x20];
4331
4332 u8 reserved_at_260[0x20];
4333
4334 u8 packet_seq_err[0x20];
4335
4336 u8 reserved_at_2a0[0x20];
4337
4338 u8 implied_nak_seq_err[0x20];
4339
4340 u8 reserved_at_2e0[0x20];
4341
4342 u8 local_ack_timeout_err[0x20];
4343
Parav Pandit58dcb602017-06-19 07:19:37 +03004344 u8 reserved_at_320[0xa0];
4345
4346 u8 resp_local_length_error[0x20];
4347
4348 u8 req_local_length_error[0x20];
4349
4350 u8 resp_local_qp_error[0x20];
4351
4352 u8 local_operation_error[0x20];
4353
4354 u8 resp_local_protection[0x20];
4355
4356 u8 req_local_protection[0x20];
4357
4358 u8 resp_cqe_error[0x20];
4359
4360 u8 req_cqe_error[0x20];
4361
4362 u8 req_mw_binding[0x20];
4363
4364 u8 req_bad_response[0x20];
4365
4366 u8 req_remote_invalid_request[0x20];
4367
4368 u8 resp_remote_invalid_request[0x20];
4369
4370 u8 req_remote_access_errors[0x20];
4371
4372 u8 resp_remote_access_errors[0x20];
4373
4374 u8 req_remote_operation_errors[0x20];
4375
4376 u8 req_transport_retries_exceeded[0x20];
4377
4378 u8 cq_overflow[0x20];
4379
4380 u8 resp_cqe_flush_error[0x20];
4381
4382 u8 req_cqe_flush_error[0x20];
4383
4384 u8 reserved_at_620[0x1e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004385};
4386
4387struct mlx5_ifc_query_q_counter_in_bits {
4388 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004389 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004390
Matan Barakb4ff3a32016-02-09 14:57:42 +02004391 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004392 u8 op_mod[0x10];
4393
Matan Barakb4ff3a32016-02-09 14:57:42 +02004394 u8 reserved_at_40[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004395
4396 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004397 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004398
Matan Barakb4ff3a32016-02-09 14:57:42 +02004399 u8 reserved_at_e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004400 u8 counter_set_id[0x8];
4401};
4402
4403struct mlx5_ifc_query_pages_out_bits {
4404 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004405 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004406
4407 u8 syndrome[0x20];
4408
Matan Barakb4ff3a32016-02-09 14:57:42 +02004409 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004410 u8 function_id[0x10];
4411
4412 u8 num_pages[0x20];
4413};
4414
4415enum {
4416 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
4417 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
4418 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
4419};
4420
4421struct mlx5_ifc_query_pages_in_bits {
4422 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004423 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004424
Matan Barakb4ff3a32016-02-09 14:57:42 +02004425 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004426 u8 op_mod[0x10];
4427
Matan Barakb4ff3a32016-02-09 14:57:42 +02004428 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004429 u8 function_id[0x10];
4430
Matan Barakb4ff3a32016-02-09 14:57:42 +02004431 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004432};
4433
4434struct mlx5_ifc_query_nic_vport_context_out_bits {
4435 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004436 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004437
4438 u8 syndrome[0x20];
4439
Matan Barakb4ff3a32016-02-09 14:57:42 +02004440 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004441
4442 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
4443};
4444
4445struct mlx5_ifc_query_nic_vport_context_in_bits {
4446 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004447 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004448
Matan Barakb4ff3a32016-02-09 14:57:42 +02004449 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004450 u8 op_mod[0x10];
4451
4452 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004453 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004454 u8 vport_number[0x10];
4455
Matan Barakb4ff3a32016-02-09 14:57:42 +02004456 u8 reserved_at_60[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03004457 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004458 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004459};
4460
4461struct mlx5_ifc_query_mkey_out_bits {
4462 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004463 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004464
4465 u8 syndrome[0x20];
4466
Matan Barakb4ff3a32016-02-09 14:57:42 +02004467 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004468
4469 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
4470
Matan Barakb4ff3a32016-02-09 14:57:42 +02004471 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004472
4473 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
4474
4475 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
4476};
4477
4478struct mlx5_ifc_query_mkey_in_bits {
4479 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004480 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004481
Matan Barakb4ff3a32016-02-09 14:57:42 +02004482 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004483 u8 op_mod[0x10];
4484
Matan Barakb4ff3a32016-02-09 14:57:42 +02004485 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004486 u8 mkey_index[0x18];
4487
4488 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004489 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004490};
4491
4492struct mlx5_ifc_query_mad_demux_out_bits {
4493 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004494 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004495
4496 u8 syndrome[0x20];
4497
Matan Barakb4ff3a32016-02-09 14:57:42 +02004498 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004499
4500 u8 mad_dumux_parameters_block[0x20];
4501};
4502
4503struct mlx5_ifc_query_mad_demux_in_bits {
4504 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004505 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004506
Matan Barakb4ff3a32016-02-09 14:57:42 +02004507 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004508 u8 op_mod[0x10];
4509
Matan Barakb4ff3a32016-02-09 14:57:42 +02004510 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004511};
4512
4513struct mlx5_ifc_query_l2_table_entry_out_bits {
4514 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004515 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004516
4517 u8 syndrome[0x20];
4518
Matan Barakb4ff3a32016-02-09 14:57:42 +02004519 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004520
Matan Barakb4ff3a32016-02-09 14:57:42 +02004521 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03004522 u8 vlan_valid[0x1];
4523 u8 vlan[0xc];
4524
4525 struct mlx5_ifc_mac_address_layout_bits mac_address;
4526
Matan Barakb4ff3a32016-02-09 14:57:42 +02004527 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004528};
4529
4530struct mlx5_ifc_query_l2_table_entry_in_bits {
4531 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004532 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004533
Matan Barakb4ff3a32016-02-09 14:57:42 +02004534 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004535 u8 op_mod[0x10];
4536
Matan Barakb4ff3a32016-02-09 14:57:42 +02004537 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004538
Matan Barakb4ff3a32016-02-09 14:57:42 +02004539 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004540 u8 table_index[0x18];
4541
Matan Barakb4ff3a32016-02-09 14:57:42 +02004542 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004543};
4544
4545struct mlx5_ifc_query_issi_out_bits {
4546 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004547 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004548
4549 u8 syndrome[0x20];
4550
Matan Barakb4ff3a32016-02-09 14:57:42 +02004551 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004552 u8 current_issi[0x10];
4553
Matan Barakb4ff3a32016-02-09 14:57:42 +02004554 u8 reserved_at_60[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004555
Matan Barakb4ff3a32016-02-09 14:57:42 +02004556 u8 reserved_at_100[76][0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004557 u8 supported_issi_dw0[0x20];
4558};
4559
4560struct mlx5_ifc_query_issi_in_bits {
4561 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004562 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004563
Matan Barakb4ff3a32016-02-09 14:57:42 +02004564 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004565 u8 op_mod[0x10];
4566
Matan Barakb4ff3a32016-02-09 14:57:42 +02004567 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004568};
4569
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +02004570struct mlx5_ifc_set_driver_version_out_bits {
4571 u8 status[0x8];
4572 u8 reserved_0[0x18];
4573
4574 u8 syndrome[0x20];
4575 u8 reserved_1[0x40];
4576};
4577
4578struct mlx5_ifc_set_driver_version_in_bits {
4579 u8 opcode[0x10];
4580 u8 reserved_0[0x10];
4581
4582 u8 reserved_1[0x10];
4583 u8 op_mod[0x10];
4584
4585 u8 reserved_2[0x40];
4586 u8 driver_version[64][0x8];
4587};
4588
Saeed Mahameede2816822015-05-28 22:28:40 +03004589struct mlx5_ifc_query_hca_vport_pkey_out_bits {
4590 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004591 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004592
4593 u8 syndrome[0x20];
4594
Matan Barakb4ff3a32016-02-09 14:57:42 +02004595 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004596
4597 struct mlx5_ifc_pkey_bits pkey[0];
4598};
4599
4600struct mlx5_ifc_query_hca_vport_pkey_in_bits {
4601 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004602 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004603
Matan Barakb4ff3a32016-02-09 14:57:42 +02004604 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004605 u8 op_mod[0x10];
4606
4607 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004608 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004609 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004610 u8 vport_number[0x10];
4611
Matan Barakb4ff3a32016-02-09 14:57:42 +02004612 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004613 u8 pkey_index[0x10];
4614};
4615
Eli Coheneff901d2016-03-11 22:58:42 +02004616enum {
4617 MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0,
4618 MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1,
4619 MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2,
4620};
4621
Saeed Mahameede2816822015-05-28 22:28:40 +03004622struct mlx5_ifc_query_hca_vport_gid_out_bits {
4623 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004624 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004625
4626 u8 syndrome[0x20];
4627
Matan Barakb4ff3a32016-02-09 14:57:42 +02004628 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004629
4630 u8 gids_num[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004631 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004632
4633 struct mlx5_ifc_array128_auto_bits gid[0];
4634};
4635
4636struct mlx5_ifc_query_hca_vport_gid_in_bits {
4637 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004638 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004639
Matan Barakb4ff3a32016-02-09 14:57:42 +02004640 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004641 u8 op_mod[0x10];
4642
4643 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004644 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004645 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004646 u8 vport_number[0x10];
4647
Matan Barakb4ff3a32016-02-09 14:57:42 +02004648 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004649 u8 gid_index[0x10];
4650};
4651
4652struct mlx5_ifc_query_hca_vport_context_out_bits {
4653 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004654 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004655
4656 u8 syndrome[0x20];
4657
Matan Barakb4ff3a32016-02-09 14:57:42 +02004658 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004659
4660 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4661};
4662
4663struct mlx5_ifc_query_hca_vport_context_in_bits {
4664 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004665 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004666
Matan Barakb4ff3a32016-02-09 14:57:42 +02004667 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004668 u8 op_mod[0x10];
4669
4670 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004671 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004672 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004673 u8 vport_number[0x10];
4674
Matan Barakb4ff3a32016-02-09 14:57:42 +02004675 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004676};
4677
4678struct mlx5_ifc_query_hca_cap_out_bits {
4679 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004680 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004681
4682 u8 syndrome[0x20];
4683
Matan Barakb4ff3a32016-02-09 14:57:42 +02004684 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004685
4686 union mlx5_ifc_hca_cap_union_bits capability;
Eli Cohenb7755162014-10-02 12:19:44 +03004687};
4688
4689struct mlx5_ifc_query_hca_cap_in_bits {
4690 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004691 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004692
Matan Barakb4ff3a32016-02-09 14:57:42 +02004693 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004694 u8 op_mod[0x10];
4695
Matan Barakb4ff3a32016-02-09 14:57:42 +02004696 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03004697};
4698
Saeed Mahameede2816822015-05-28 22:28:40 +03004699struct mlx5_ifc_query_flow_table_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004700 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004701 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004702
4703 u8 syndrome[0x20];
4704
Matan Barakb4ff3a32016-02-09 14:57:42 +02004705 u8 reserved_at_40[0x80];
Eli Cohenb7755162014-10-02 12:19:44 +03004706
Matan Barakb4ff3a32016-02-09 14:57:42 +02004707 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004708 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004709 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004710 u8 log_size[0x8];
4711
Matan Barakb4ff3a32016-02-09 14:57:42 +02004712 u8 reserved_at_e0[0x120];
Eli Cohenb7755162014-10-02 12:19:44 +03004713};
4714
Saeed Mahameede2816822015-05-28 22:28:40 +03004715struct mlx5_ifc_query_flow_table_in_bits {
4716 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004717 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004718
Matan Barakb4ff3a32016-02-09 14:57:42 +02004719 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004720 u8 op_mod[0x10];
4721
Matan Barakb4ff3a32016-02-09 14:57:42 +02004722 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004723
4724 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004725 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004726
Matan Barakb4ff3a32016-02-09 14:57:42 +02004727 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004728 u8 table_id[0x18];
4729
Matan Barakb4ff3a32016-02-09 14:57:42 +02004730 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004731};
4732
4733struct mlx5_ifc_query_fte_out_bits {
4734 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004735 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004736
4737 u8 syndrome[0x20];
4738
Matan Barakb4ff3a32016-02-09 14:57:42 +02004739 u8 reserved_at_40[0x1c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004740
4741 struct mlx5_ifc_flow_context_bits flow_context;
4742};
4743
4744struct mlx5_ifc_query_fte_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[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004752
4753 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004754 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004755
Matan Barakb4ff3a32016-02-09 14:57:42 +02004756 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004757 u8 table_id[0x18];
4758
Matan Barakb4ff3a32016-02-09 14:57:42 +02004759 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004760
4761 u8 flow_index[0x20];
4762
Matan Barakb4ff3a32016-02-09 14:57:42 +02004763 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004764};
4765
4766enum {
4767 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
4768 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
4769 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
Ariel Levkovich71c6e862018-05-13 14:33:34 +03004770 MLX5_QUERY_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS_2 = 0X3,
Saeed Mahameede2816822015-05-28 22:28:40 +03004771};
4772
4773struct mlx5_ifc_query_flow_group_out_bits {
4774 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004775 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004776
4777 u8 syndrome[0x20];
4778
Matan Barakb4ff3a32016-02-09 14:57:42 +02004779 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004780
4781 u8 start_flow_index[0x20];
4782
Matan Barakb4ff3a32016-02-09 14:57:42 +02004783 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004784
4785 u8 end_flow_index[0x20];
4786
Matan Barakb4ff3a32016-02-09 14:57:42 +02004787 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004788
Matan Barakb4ff3a32016-02-09 14:57:42 +02004789 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004790 u8 match_criteria_enable[0x8];
4791
4792 struct mlx5_ifc_fte_match_param_bits match_criteria;
4793
Matan Barakb4ff3a32016-02-09 14:57:42 +02004794 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03004795};
4796
4797struct mlx5_ifc_query_flow_group_in_bits {
4798 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004799 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004800
Matan Barakb4ff3a32016-02-09 14:57:42 +02004801 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004802 u8 op_mod[0x10];
4803
Matan Barakb4ff3a32016-02-09 14:57:42 +02004804 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004805
4806 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004807 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004808
Matan Barakb4ff3a32016-02-09 14:57:42 +02004809 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004810 u8 table_id[0x18];
4811
4812 u8 group_id[0x20];
4813
Matan Barakb4ff3a32016-02-09 14:57:42 +02004814 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03004815};
4816
Amir Vadai9dc0b282016-05-13 12:55:39 +00004817struct mlx5_ifc_query_flow_counter_out_bits {
4818 u8 status[0x8];
4819 u8 reserved_at_8[0x18];
4820
4821 u8 syndrome[0x20];
4822
4823 u8 reserved_at_40[0x40];
4824
4825 struct mlx5_ifc_traffic_counter_bits flow_statistics[0];
4826};
4827
4828struct mlx5_ifc_query_flow_counter_in_bits {
4829 u8 opcode[0x10];
4830 u8 reserved_at_10[0x10];
4831
4832 u8 reserved_at_20[0x10];
4833 u8 op_mod[0x10];
4834
4835 u8 reserved_at_40[0x80];
4836
4837 u8 clear[0x1];
4838 u8 reserved_at_c1[0xf];
4839 u8 num_of_counters[0x10];
4840
Rabie Louloua8ffcc72017-07-09 13:39:30 +03004841 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00004842};
4843
Saeed Mahameedd6666752015-12-01 18:03:22 +02004844struct mlx5_ifc_query_esw_vport_context_out_bits {
4845 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004846 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004847
4848 u8 syndrome[0x20];
4849
Matan Barakb4ff3a32016-02-09 14:57:42 +02004850 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004851
4852 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4853};
4854
4855struct mlx5_ifc_query_esw_vport_context_in_bits {
4856 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004857 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004858
Matan Barakb4ff3a32016-02-09 14:57:42 +02004859 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004860 u8 op_mod[0x10];
4861
4862 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004863 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004864 u8 vport_number[0x10];
4865
Matan Barakb4ff3a32016-02-09 14:57:42 +02004866 u8 reserved_at_60[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004867};
4868
4869struct mlx5_ifc_modify_esw_vport_context_out_bits {
4870 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004871 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004872
4873 u8 syndrome[0x20];
4874
Matan Barakb4ff3a32016-02-09 14:57:42 +02004875 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004876};
4877
4878struct mlx5_ifc_esw_vport_context_fields_select_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004879 u8 reserved_at_0[0x1c];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004880 u8 vport_cvlan_insert[0x1];
4881 u8 vport_svlan_insert[0x1];
4882 u8 vport_cvlan_strip[0x1];
4883 u8 vport_svlan_strip[0x1];
4884};
4885
4886struct mlx5_ifc_modify_esw_vport_context_in_bits {
4887 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004888 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004889
Matan Barakb4ff3a32016-02-09 14:57:42 +02004890 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004891 u8 op_mod[0x10];
4892
4893 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004894 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004895 u8 vport_number[0x10];
4896
4897 struct mlx5_ifc_esw_vport_context_fields_select_bits field_select;
4898
4899 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4900};
4901
Saeed Mahameede2816822015-05-28 22:28:40 +03004902struct mlx5_ifc_query_eq_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004903 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004904 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004905
4906 u8 syndrome[0x20];
4907
Matan Barakb4ff3a32016-02-09 14:57:42 +02004908 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004909
4910 struct mlx5_ifc_eqc_bits eq_context_entry;
4911
Matan Barakb4ff3a32016-02-09 14:57:42 +02004912 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004913
4914 u8 event_bitmask[0x40];
4915
Matan Barakb4ff3a32016-02-09 14:57:42 +02004916 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03004917
4918 u8 pas[0][0x40];
4919};
4920
4921struct mlx5_ifc_query_eq_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[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004929 u8 eq_number[0x8];
4930
Matan Barakb4ff3a32016-02-09 14:57:42 +02004931 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004932};
4933
Mark Bloch60786f02018-08-28 14:18:46 +03004934struct mlx5_ifc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004935 u8 reserved_at_0[0x5];
Mark Bloch60786f02018-08-28 14:18:46 +03004936 u8 reformat_type[0x3];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004937 u8 reserved_at_8[0xe];
Mark Bloch60786f02018-08-28 14:18:46 +03004938 u8 reformat_data_size[0xa];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004939
4940 u8 reserved_at_20[0x10];
Mark Bloch60786f02018-08-28 14:18:46 +03004941 u8 reformat_data[2][0x8];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004942
Mark Bloch60786f02018-08-28 14:18:46 +03004943 u8 more_reformat_data[0][0x8];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004944};
4945
Mark Bloch60786f02018-08-28 14:18:46 +03004946struct mlx5_ifc_query_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004947 u8 status[0x8];
4948 u8 reserved_at_8[0x18];
4949
4950 u8 syndrome[0x20];
4951
4952 u8 reserved_at_40[0xa0];
4953
Mark Bloch60786f02018-08-28 14:18:46 +03004954 struct mlx5_ifc_packet_reformat_context_in_bits packet_reformat_context[0];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004955};
4956
Mark Bloch60786f02018-08-28 14:18:46 +03004957struct mlx5_ifc_query_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004958 u8 opcode[0x10];
4959 u8 reserved_at_10[0x10];
4960
4961 u8 reserved_at_20[0x10];
4962 u8 op_mod[0x10];
4963
Mark Bloch60786f02018-08-28 14:18:46 +03004964 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004965
4966 u8 reserved_at_60[0xa0];
4967};
4968
Mark Bloch60786f02018-08-28 14:18:46 +03004969struct mlx5_ifc_alloc_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004970 u8 status[0x8];
4971 u8 reserved_at_8[0x18];
4972
4973 u8 syndrome[0x20];
4974
Mark Bloch60786f02018-08-28 14:18:46 +03004975 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004976
4977 u8 reserved_at_60[0x20];
4978};
4979
Mark Bloche0e7a382018-08-28 14:18:45 +03004980enum {
Mark Bloch60786f02018-08-28 14:18:46 +03004981 MLX5_REFORMAT_TYPE_L2_TO_VXLAN = 0x0,
4982 MLX5_REFORMAT_TYPE_L2_TO_NVGRE = 0x1,
Mark Blochbea4e1f2018-08-28 14:18:47 +03004983 MLX5_REFORMAT_TYPE_L2_TO_L2_TUNNEL = 0x2,
4984 MLX5_REFORMAT_TYPE_L3_TUNNEL_TO_L2 = 0x3,
4985 MLX5_REFORMAT_TYPE_L2_TO_L3_TUNNEL = 0x4,
Mark Bloche0e7a382018-08-28 14:18:45 +03004986};
4987
Mark Bloch60786f02018-08-28 14:18:46 +03004988struct mlx5_ifc_alloc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004989 u8 opcode[0x10];
4990 u8 reserved_at_10[0x10];
4991
4992 u8 reserved_at_20[0x10];
4993 u8 op_mod[0x10];
4994
4995 u8 reserved_at_40[0xa0];
4996
Mark Bloch60786f02018-08-28 14:18:46 +03004997 struct mlx5_ifc_packet_reformat_context_in_bits packet_reformat_context;
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004998};
4999
Mark Bloch60786f02018-08-28 14:18:46 +03005000struct mlx5_ifc_dealloc_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005001 u8 status[0x8];
5002 u8 reserved_at_8[0x18];
5003
5004 u8 syndrome[0x20];
5005
5006 u8 reserved_at_40[0x40];
5007};
5008
Mark Bloch60786f02018-08-28 14:18:46 +03005009struct mlx5_ifc_dealloc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005010 u8 opcode[0x10];
5011 u8 reserved_at_10[0x10];
5012
5013 u8 reserved_20[0x10];
5014 u8 op_mod[0x10];
5015
Mark Bloch60786f02018-08-28 14:18:46 +03005016 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005017
5018 u8 reserved_60[0x20];
5019};
5020
Or Gerlitz2a69cb92017-01-19 19:31:25 +02005021struct mlx5_ifc_set_action_in_bits {
5022 u8 action_type[0x4];
5023 u8 field[0xc];
5024 u8 reserved_at_10[0x3];
5025 u8 offset[0x5];
5026 u8 reserved_at_18[0x3];
5027 u8 length[0x5];
5028
5029 u8 data[0x20];
5030};
5031
5032struct mlx5_ifc_add_action_in_bits {
5033 u8 action_type[0x4];
5034 u8 field[0xc];
5035 u8 reserved_at_10[0x10];
5036
5037 u8 data[0x20];
5038};
5039
5040union mlx5_ifc_set_action_in_add_action_in_auto_bits {
5041 struct mlx5_ifc_set_action_in_bits set_action_in;
5042 struct mlx5_ifc_add_action_in_bits add_action_in;
5043 u8 reserved_at_0[0x40];
5044};
5045
5046enum {
5047 MLX5_ACTION_TYPE_SET = 0x1,
5048 MLX5_ACTION_TYPE_ADD = 0x2,
5049};
5050
5051enum {
5052 MLX5_ACTION_IN_FIELD_OUT_SMAC_47_16 = 0x1,
5053 MLX5_ACTION_IN_FIELD_OUT_SMAC_15_0 = 0x2,
5054 MLX5_ACTION_IN_FIELD_OUT_ETHERTYPE = 0x3,
5055 MLX5_ACTION_IN_FIELD_OUT_DMAC_47_16 = 0x4,
5056 MLX5_ACTION_IN_FIELD_OUT_DMAC_15_0 = 0x5,
5057 MLX5_ACTION_IN_FIELD_OUT_IP_DSCP = 0x6,
5058 MLX5_ACTION_IN_FIELD_OUT_TCP_FLAGS = 0x7,
5059 MLX5_ACTION_IN_FIELD_OUT_TCP_SPORT = 0x8,
5060 MLX5_ACTION_IN_FIELD_OUT_TCP_DPORT = 0x9,
5061 MLX5_ACTION_IN_FIELD_OUT_IP_TTL = 0xa,
5062 MLX5_ACTION_IN_FIELD_OUT_UDP_SPORT = 0xb,
5063 MLX5_ACTION_IN_FIELD_OUT_UDP_DPORT = 0xc,
5064 MLX5_ACTION_IN_FIELD_OUT_SIPV6_127_96 = 0xd,
5065 MLX5_ACTION_IN_FIELD_OUT_SIPV6_95_64 = 0xe,
5066 MLX5_ACTION_IN_FIELD_OUT_SIPV6_63_32 = 0xf,
5067 MLX5_ACTION_IN_FIELD_OUT_SIPV6_31_0 = 0x10,
5068 MLX5_ACTION_IN_FIELD_OUT_DIPV6_127_96 = 0x11,
5069 MLX5_ACTION_IN_FIELD_OUT_DIPV6_95_64 = 0x12,
5070 MLX5_ACTION_IN_FIELD_OUT_DIPV6_63_32 = 0x13,
5071 MLX5_ACTION_IN_FIELD_OUT_DIPV6_31_0 = 0x14,
5072 MLX5_ACTION_IN_FIELD_OUT_SIPV4 = 0x15,
5073 MLX5_ACTION_IN_FIELD_OUT_DIPV4 = 0x16,
Or Gerlitz0c0316f2017-06-13 11:09:57 +03005074 MLX5_ACTION_IN_FIELD_OUT_IPV6_HOPLIMIT = 0x47,
Or Gerlitz2a69cb92017-01-19 19:31:25 +02005075};
5076
5077struct mlx5_ifc_alloc_modify_header_context_out_bits {
5078 u8 status[0x8];
5079 u8 reserved_at_8[0x18];
5080
5081 u8 syndrome[0x20];
5082
5083 u8 modify_header_id[0x20];
5084
5085 u8 reserved_at_60[0x20];
5086};
5087
5088struct mlx5_ifc_alloc_modify_header_context_in_bits {
5089 u8 opcode[0x10];
5090 u8 reserved_at_10[0x10];
5091
5092 u8 reserved_at_20[0x10];
5093 u8 op_mod[0x10];
5094
5095 u8 reserved_at_40[0x20];
5096
5097 u8 table_type[0x8];
5098 u8 reserved_at_68[0x10];
5099 u8 num_of_actions[0x8];
5100
5101 union mlx5_ifc_set_action_in_add_action_in_auto_bits actions[0];
5102};
5103
5104struct mlx5_ifc_dealloc_modify_header_context_out_bits {
5105 u8 status[0x8];
5106 u8 reserved_at_8[0x18];
5107
5108 u8 syndrome[0x20];
5109
5110 u8 reserved_at_40[0x40];
5111};
5112
5113struct mlx5_ifc_dealloc_modify_header_context_in_bits {
5114 u8 opcode[0x10];
5115 u8 reserved_at_10[0x10];
5116
5117 u8 reserved_at_20[0x10];
5118 u8 op_mod[0x10];
5119
5120 u8 modify_header_id[0x20];
5121
5122 u8 reserved_at_60[0x20];
5123};
5124
Saeed Mahameede2816822015-05-28 22:28:40 +03005125struct mlx5_ifc_query_dct_out_bits {
5126 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005127 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005128
5129 u8 syndrome[0x20];
5130
Matan Barakb4ff3a32016-02-09 14:57:42 +02005131 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005132
5133 struct mlx5_ifc_dctc_bits dct_context_entry;
5134
Matan Barakb4ff3a32016-02-09 14:57:42 +02005135 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03005136};
5137
5138struct mlx5_ifc_query_dct_in_bits {
5139 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005140 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005141
Matan Barakb4ff3a32016-02-09 14:57:42 +02005142 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005143 u8 op_mod[0x10];
5144
Matan Barakb4ff3a32016-02-09 14:57:42 +02005145 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005146 u8 dctn[0x18];
5147
Matan Barakb4ff3a32016-02-09 14:57:42 +02005148 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005149};
5150
5151struct mlx5_ifc_query_cq_out_bits {
5152 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005153 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005154
5155 u8 syndrome[0x20];
5156
Matan Barakb4ff3a32016-02-09 14:57:42 +02005157 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005158
5159 struct mlx5_ifc_cqc_bits cq_context;
5160
Matan Barakb4ff3a32016-02-09 14:57:42 +02005161 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03005162
5163 u8 pas[0][0x40];
5164};
5165
5166struct mlx5_ifc_query_cq_in_bits {
5167 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005168 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005169
Matan Barakb4ff3a32016-02-09 14:57:42 +02005170 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005171 u8 op_mod[0x10];
5172
Matan Barakb4ff3a32016-02-09 14:57:42 +02005173 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005174 u8 cqn[0x18];
5175
Matan Barakb4ff3a32016-02-09 14:57:42 +02005176 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005177};
5178
5179struct mlx5_ifc_query_cong_status_out_bits {
5180 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005181 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005182
5183 u8 syndrome[0x20];
5184
Matan Barakb4ff3a32016-02-09 14:57:42 +02005185 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005186
5187 u8 enable[0x1];
5188 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005189 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03005190};
5191
5192struct mlx5_ifc_query_cong_status_in_bits {
5193 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005194 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005195
Matan Barakb4ff3a32016-02-09 14:57:42 +02005196 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005197 u8 op_mod[0x10];
5198
Matan Barakb4ff3a32016-02-09 14:57:42 +02005199 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005200 u8 priority[0x4];
5201 u8 cong_protocol[0x4];
5202
Matan Barakb4ff3a32016-02-09 14:57:42 +02005203 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005204};
5205
5206struct mlx5_ifc_query_cong_statistics_out_bits {
5207 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005208 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005209
5210 u8 syndrome[0x20];
5211
Matan Barakb4ff3a32016-02-09 14:57:42 +02005212 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005213
Parav Pandite1f24a72017-04-16 07:29:29 +03005214 u8 rp_cur_flows[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005215
5216 u8 sum_flows[0x20];
5217
Parav Pandite1f24a72017-04-16 07:29:29 +03005218 u8 rp_cnp_ignored_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005219
Parav Pandite1f24a72017-04-16 07:29:29 +03005220 u8 rp_cnp_ignored_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005221
Parav Pandite1f24a72017-04-16 07:29:29 +03005222 u8 rp_cnp_handled_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005223
Parav Pandite1f24a72017-04-16 07:29:29 +03005224 u8 rp_cnp_handled_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005225
Matan Barakb4ff3a32016-02-09 14:57:42 +02005226 u8 reserved_at_140[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03005227
5228 u8 time_stamp_high[0x20];
5229
5230 u8 time_stamp_low[0x20];
5231
5232 u8 accumulators_period[0x20];
5233
Parav Pandite1f24a72017-04-16 07:29:29 +03005234 u8 np_ecn_marked_roce_packets_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005235
Parav Pandite1f24a72017-04-16 07:29:29 +03005236 u8 np_ecn_marked_roce_packets_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005237
Parav Pandite1f24a72017-04-16 07:29:29 +03005238 u8 np_cnp_sent_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005239
Parav Pandite1f24a72017-04-16 07:29:29 +03005240 u8 np_cnp_sent_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005241
Matan Barakb4ff3a32016-02-09 14:57:42 +02005242 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03005243};
5244
5245struct mlx5_ifc_query_cong_statistics_in_bits {
5246 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005247 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005248
Matan Barakb4ff3a32016-02-09 14:57:42 +02005249 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005250 u8 op_mod[0x10];
5251
5252 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005253 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03005254
Matan Barakb4ff3a32016-02-09 14:57:42 +02005255 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005256};
5257
5258struct mlx5_ifc_query_cong_params_out_bits {
5259 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005260 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005261
5262 u8 syndrome[0x20];
5263
Matan Barakb4ff3a32016-02-09 14:57:42 +02005264 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005265
5266 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
5267};
5268
5269struct mlx5_ifc_query_cong_params_in_bits {
5270 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005271 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005272
Matan Barakb4ff3a32016-02-09 14:57:42 +02005273 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005274 u8 op_mod[0x10];
5275
Matan Barakb4ff3a32016-02-09 14:57:42 +02005276 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03005277 u8 cong_protocol[0x4];
5278
Matan Barakb4ff3a32016-02-09 14:57:42 +02005279 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005280};
5281
5282struct mlx5_ifc_query_adapter_out_bits {
5283 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005284 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005285
5286 u8 syndrome[0x20];
5287
Matan Barakb4ff3a32016-02-09 14:57:42 +02005288 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005289
5290 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
5291};
5292
5293struct mlx5_ifc_query_adapter_in_bits {
5294 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005295 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005296
Matan Barakb4ff3a32016-02-09 14:57:42 +02005297 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005298 u8 op_mod[0x10];
5299
Matan Barakb4ff3a32016-02-09 14:57:42 +02005300 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005301};
5302
5303struct mlx5_ifc_qp_2rst_out_bits {
5304 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005305 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005306
5307 u8 syndrome[0x20];
5308
Matan Barakb4ff3a32016-02-09 14:57:42 +02005309 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005310};
5311
5312struct mlx5_ifc_qp_2rst_in_bits {
5313 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005314 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005315
Matan Barakb4ff3a32016-02-09 14:57:42 +02005316 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005317 u8 op_mod[0x10];
5318
Matan Barakb4ff3a32016-02-09 14:57:42 +02005319 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005320 u8 qpn[0x18];
5321
Matan Barakb4ff3a32016-02-09 14:57:42 +02005322 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005323};
5324
5325struct mlx5_ifc_qp_2err_out_bits {
5326 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005327 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005328
5329 u8 syndrome[0x20];
5330
Matan Barakb4ff3a32016-02-09 14:57:42 +02005331 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005332};
5333
5334struct mlx5_ifc_qp_2err_in_bits {
5335 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005336 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005337
Matan Barakb4ff3a32016-02-09 14:57:42 +02005338 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005339 u8 op_mod[0x10];
5340
Matan Barakb4ff3a32016-02-09 14:57:42 +02005341 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005342 u8 qpn[0x18];
5343
Matan Barakb4ff3a32016-02-09 14:57:42 +02005344 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005345};
5346
5347struct mlx5_ifc_page_fault_resume_out_bits {
5348 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005349 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005350
5351 u8 syndrome[0x20];
5352
Matan Barakb4ff3a32016-02-09 14:57:42 +02005353 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005354};
5355
5356struct mlx5_ifc_page_fault_resume_in_bits {
5357 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005358 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005359
Matan Barakb4ff3a32016-02-09 14:57:42 +02005360 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005361 u8 op_mod[0x10];
5362
5363 u8 error[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005364 u8 reserved_at_41[0x4];
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02005365 u8 page_fault_type[0x3];
5366 u8 wq_number[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005367
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02005368 u8 reserved_at_60[0x8];
5369 u8 token[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005370};
5371
5372struct mlx5_ifc_nop_out_bits {
5373 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005374 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005375
5376 u8 syndrome[0x20];
5377
Matan Barakb4ff3a32016-02-09 14:57:42 +02005378 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005379};
5380
5381struct mlx5_ifc_nop_in_bits {
5382 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005383 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005384
Matan Barakb4ff3a32016-02-09 14:57:42 +02005385 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005386 u8 op_mod[0x10];
5387
Matan Barakb4ff3a32016-02-09 14:57:42 +02005388 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005389};
5390
5391struct mlx5_ifc_modify_vport_state_out_bits {
5392 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005393 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005394
5395 u8 syndrome[0x20];
5396
Matan Barakb4ff3a32016-02-09 14:57:42 +02005397 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005398};
5399
5400struct mlx5_ifc_modify_vport_state_in_bits {
5401 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005402 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005403
Matan Barakb4ff3a32016-02-09 14:57:42 +02005404 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005405 u8 op_mod[0x10];
5406
5407 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005408 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005409 u8 vport_number[0x10];
5410
Matan Barakb4ff3a32016-02-09 14:57:42 +02005411 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005412 u8 admin_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005413 u8 reserved_at_7c[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005414};
5415
5416struct mlx5_ifc_modify_tis_out_bits {
5417 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005418 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005419
5420 u8 syndrome[0x20];
5421
Matan Barakb4ff3a32016-02-09 14:57:42 +02005422 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005423};
5424
majd@mellanox.com75850d02016-01-14 19:13:06 +02005425struct mlx5_ifc_modify_tis_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005426 u8 reserved_at_0[0x20];
majd@mellanox.com75850d02016-01-14 19:13:06 +02005427
Aviv Heller84df61e2016-05-10 13:47:50 +03005428 u8 reserved_at_20[0x1d];
5429 u8 lag_tx_port_affinity[0x1];
5430 u8 strict_lag_tx_port_affinity[0x1];
majd@mellanox.com75850d02016-01-14 19:13:06 +02005431 u8 prio[0x1];
5432};
5433
Saeed Mahameede2816822015-05-28 22:28:40 +03005434struct mlx5_ifc_modify_tis_in_bits {
5435 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005436 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005437
Matan Barakb4ff3a32016-02-09 14:57:42 +02005438 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005439 u8 op_mod[0x10];
5440
Matan Barakb4ff3a32016-02-09 14:57:42 +02005441 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005442 u8 tisn[0x18];
5443
Matan Barakb4ff3a32016-02-09 14:57:42 +02005444 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005445
majd@mellanox.com75850d02016-01-14 19:13:06 +02005446 struct mlx5_ifc_modify_tis_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005447
Matan Barakb4ff3a32016-02-09 14:57:42 +02005448 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005449
5450 struct mlx5_ifc_tisc_bits ctx;
5451};
5452
Achiad Shochatd9eea402015-08-04 14:05:42 +03005453struct mlx5_ifc_modify_tir_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005454 u8 reserved_at_0[0x20];
Achiad Shochatd9eea402015-08-04 14:05:42 +03005455
Matan Barakb4ff3a32016-02-09 14:57:42 +02005456 u8 reserved_at_20[0x1b];
Tariq Toukan66189962015-11-12 19:35:26 +02005457 u8 self_lb_en[0x1];
Tariq Toukanbdfc0282016-02-29 21:17:12 +02005458 u8 reserved_at_3c[0x1];
5459 u8 hash[0x1];
5460 u8 reserved_at_3e[0x1];
Achiad Shochatd9eea402015-08-04 14:05:42 +03005461 u8 lro[0x1];
5462};
5463
Saeed Mahameede2816822015-05-28 22:28:40 +03005464struct mlx5_ifc_modify_tir_out_bits {
5465 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005466 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005467
5468 u8 syndrome[0x20];
5469
Matan Barakb4ff3a32016-02-09 14:57:42 +02005470 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005471};
5472
5473struct mlx5_ifc_modify_tir_in_bits {
5474 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005475 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005476
Matan Barakb4ff3a32016-02-09 14:57:42 +02005477 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005478 u8 op_mod[0x10];
5479
Matan Barakb4ff3a32016-02-09 14:57:42 +02005480 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005481 u8 tirn[0x18];
5482
Matan Barakb4ff3a32016-02-09 14:57:42 +02005483 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005484
Achiad Shochatd9eea402015-08-04 14:05:42 +03005485 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005486
Matan Barakb4ff3a32016-02-09 14:57:42 +02005487 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005488
5489 struct mlx5_ifc_tirc_bits ctx;
5490};
5491
5492struct mlx5_ifc_modify_sq_out_bits {
5493 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005494 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005495
5496 u8 syndrome[0x20];
5497
Matan Barakb4ff3a32016-02-09 14:57:42 +02005498 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005499};
5500
5501struct mlx5_ifc_modify_sq_in_bits {
5502 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03005503 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005504
Matan Barakb4ff3a32016-02-09 14:57:42 +02005505 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005506 u8 op_mod[0x10];
5507
5508 u8 sq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005509 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005510 u8 sqn[0x18];
5511
Matan Barakb4ff3a32016-02-09 14:57:42 +02005512 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005513
5514 u8 modify_bitmask[0x40];
5515
Matan Barakb4ff3a32016-02-09 14:57:42 +02005516 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005517
5518 struct mlx5_ifc_sqc_bits ctx;
5519};
5520
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03005521struct mlx5_ifc_modify_scheduling_element_out_bits {
5522 u8 status[0x8];
5523 u8 reserved_at_8[0x18];
5524
5525 u8 syndrome[0x20];
5526
5527 u8 reserved_at_40[0x1c0];
5528};
5529
5530enum {
5531 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE = 0x1,
5532 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW = 0x2,
5533};
5534
5535struct mlx5_ifc_modify_scheduling_element_in_bits {
5536 u8 opcode[0x10];
5537 u8 reserved_at_10[0x10];
5538
5539 u8 reserved_at_20[0x10];
5540 u8 op_mod[0x10];
5541
5542 u8 scheduling_hierarchy[0x8];
5543 u8 reserved_at_48[0x18];
5544
5545 u8 scheduling_element_id[0x20];
5546
5547 u8 reserved_at_80[0x20];
5548
5549 u8 modify_bitmask[0x20];
5550
5551 u8 reserved_at_c0[0x40];
5552
5553 struct mlx5_ifc_scheduling_context_bits scheduling_context;
5554
5555 u8 reserved_at_300[0x100];
5556};
5557
Saeed Mahameede2816822015-05-28 22:28:40 +03005558struct mlx5_ifc_modify_rqt_out_bits {
5559 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005560 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005561
5562 u8 syndrome[0x20];
5563
Matan Barakb4ff3a32016-02-09 14:57:42 +02005564 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005565};
5566
Achiad Shochat5c503682015-08-04 14:05:43 +03005567struct mlx5_ifc_rqt_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005568 u8 reserved_at_0[0x20];
Achiad Shochat5c503682015-08-04 14:05:43 +03005569
Matan Barakb4ff3a32016-02-09 14:57:42 +02005570 u8 reserved_at_20[0x1f];
Achiad Shochat5c503682015-08-04 14:05:43 +03005571 u8 rqn_list[0x1];
5572};
5573
Saeed Mahameede2816822015-05-28 22:28:40 +03005574struct mlx5_ifc_modify_rqt_in_bits {
5575 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005576 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005577
Matan Barakb4ff3a32016-02-09 14:57:42 +02005578 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005579 u8 op_mod[0x10];
5580
Matan Barakb4ff3a32016-02-09 14:57:42 +02005581 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005582 u8 rqtn[0x18];
5583
Matan Barakb4ff3a32016-02-09 14:57:42 +02005584 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005585
Achiad Shochat5c503682015-08-04 14:05:43 +03005586 struct mlx5_ifc_rqt_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005587
Matan Barakb4ff3a32016-02-09 14:57:42 +02005588 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005589
5590 struct mlx5_ifc_rqtc_bits ctx;
5591};
5592
5593struct mlx5_ifc_modify_rq_out_bits {
5594 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005595 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005596
5597 u8 syndrome[0x20];
5598
Matan Barakb4ff3a32016-02-09 14:57:42 +02005599 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005600};
5601
Alex Vesker83b502a2016-08-04 17:32:02 +03005602enum {
5603 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_VSD = 1ULL << 1,
Guy Ergas102722f2017-02-20 16:18:17 +02005604 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_SCATTER_FCS = 1ULL << 2,
Majd Dibbiny23a69642017-01-18 15:25:10 +02005605 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID = 1ULL << 3,
Alex Vesker83b502a2016-08-04 17:32:02 +03005606};
5607
Saeed Mahameede2816822015-05-28 22:28:40 +03005608struct mlx5_ifc_modify_rq_in_bits {
5609 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03005610 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005611
Matan Barakb4ff3a32016-02-09 14:57:42 +02005612 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005613 u8 op_mod[0x10];
5614
5615 u8 rq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005616 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005617 u8 rqn[0x18];
5618
Matan Barakb4ff3a32016-02-09 14:57:42 +02005619 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005620
5621 u8 modify_bitmask[0x40];
5622
Matan Barakb4ff3a32016-02-09 14:57:42 +02005623 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005624
5625 struct mlx5_ifc_rqc_bits ctx;
5626};
5627
5628struct mlx5_ifc_modify_rmp_out_bits {
5629 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005630 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005631
5632 u8 syndrome[0x20];
5633
Matan Barakb4ff3a32016-02-09 14:57:42 +02005634 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005635};
5636
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005637struct mlx5_ifc_rmp_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005638 u8 reserved_at_0[0x20];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005639
Matan Barakb4ff3a32016-02-09 14:57:42 +02005640 u8 reserved_at_20[0x1f];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005641 u8 lwm[0x1];
5642};
5643
Saeed Mahameede2816822015-05-28 22:28:40 +03005644struct mlx5_ifc_modify_rmp_in_bits {
5645 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03005646 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005647
Matan Barakb4ff3a32016-02-09 14:57:42 +02005648 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005649 u8 op_mod[0x10];
5650
5651 u8 rmp_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005652 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005653 u8 rmpn[0x18];
5654
Matan Barakb4ff3a32016-02-09 14:57:42 +02005655 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005656
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005657 struct mlx5_ifc_rmp_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005658
Matan Barakb4ff3a32016-02-09 14:57:42 +02005659 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005660
5661 struct mlx5_ifc_rmpc_bits ctx;
5662};
5663
5664struct mlx5_ifc_modify_nic_vport_context_out_bits {
5665 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005666 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005667
5668 u8 syndrome[0x20];
5669
Matan Barakb4ff3a32016-02-09 14:57:42 +02005670 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005671};
5672
5673struct mlx5_ifc_modify_nic_vport_field_select_bits {
Daniel Jurgens32f69e42018-01-04 17:25:36 +02005674 u8 reserved_at_0[0x12];
5675 u8 affiliation[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +02005676 u8 reserved_at_13[0x1];
Huy Nguyenbded7472017-05-30 09:42:53 +03005677 u8 disable_uc_local_lb[0x1];
5678 u8 disable_mc_local_lb[0x1];
Noa Osherovich23898c72016-06-10 00:07:37 +03005679 u8 node_guid[0x1];
5680 u8 port_guid[0x1];
Hadar Hen Zion9def7122016-08-03 17:27:30 +03005681 u8 min_inline[0x1];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02005682 u8 mtu[0x1];
5683 u8 change_event[0x1];
5684 u8 promisc[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005685 u8 permanent_address[0x1];
5686 u8 addresses_list[0x1];
5687 u8 roce_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005688 u8 reserved_at_1f[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005689};
5690
5691struct mlx5_ifc_modify_nic_vport_context_in_bits {
5692 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005693 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005694
Matan Barakb4ff3a32016-02-09 14:57:42 +02005695 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005696 u8 op_mod[0x10];
5697
5698 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005699 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005700 u8 vport_number[0x10];
5701
5702 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
5703
Matan Barakb4ff3a32016-02-09 14:57:42 +02005704 u8 reserved_at_80[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03005705
5706 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
5707};
5708
5709struct mlx5_ifc_modify_hca_vport_context_out_bits {
5710 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005711 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005712
5713 u8 syndrome[0x20];
5714
Matan Barakb4ff3a32016-02-09 14:57:42 +02005715 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005716};
5717
5718struct mlx5_ifc_modify_hca_vport_context_in_bits {
5719 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005720 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005721
Matan Barakb4ff3a32016-02-09 14:57:42 +02005722 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005723 u8 op_mod[0x10];
5724
5725 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005726 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03005727 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005728 u8 vport_number[0x10];
5729
Matan Barakb4ff3a32016-02-09 14:57:42 +02005730 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005731
5732 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
5733};
5734
5735struct mlx5_ifc_modify_cq_out_bits {
5736 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005737 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005738
5739 u8 syndrome[0x20];
5740
Matan Barakb4ff3a32016-02-09 14:57:42 +02005741 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005742};
5743
5744enum {
5745 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
5746 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
5747};
5748
5749struct mlx5_ifc_modify_cq_in_bits {
5750 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03005751 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005752
Matan Barakb4ff3a32016-02-09 14:57:42 +02005753 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005754 u8 op_mod[0x10];
5755
Matan Barakb4ff3a32016-02-09 14:57:42 +02005756 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005757 u8 cqn[0x18];
5758
5759 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
5760
5761 struct mlx5_ifc_cqc_bits cq_context;
5762
Leon Romanovskybd371972018-09-20 21:35:26 +03005763 u8 reserved_at_280[0x40];
5764
5765 u8 cq_umem_valid[0x1];
5766 u8 reserved_at_2c1[0x5bf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005767
5768 u8 pas[0][0x40];
5769};
5770
5771struct mlx5_ifc_modify_cong_status_out_bits {
5772 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005773 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005774
5775 u8 syndrome[0x20];
5776
Matan Barakb4ff3a32016-02-09 14:57:42 +02005777 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005778};
5779
5780struct mlx5_ifc_modify_cong_status_in_bits {
5781 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005782 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005783
Matan Barakb4ff3a32016-02-09 14:57:42 +02005784 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005785 u8 op_mod[0x10];
5786
Matan Barakb4ff3a32016-02-09 14:57:42 +02005787 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005788 u8 priority[0x4];
5789 u8 cong_protocol[0x4];
5790
5791 u8 enable[0x1];
5792 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005793 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03005794};
5795
5796struct mlx5_ifc_modify_cong_params_out_bits {
5797 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005798 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005799
5800 u8 syndrome[0x20];
5801
Matan Barakb4ff3a32016-02-09 14:57:42 +02005802 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005803};
5804
5805struct mlx5_ifc_modify_cong_params_in_bits {
5806 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005807 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005808
Matan Barakb4ff3a32016-02-09 14:57:42 +02005809 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005810 u8 op_mod[0x10];
5811
Matan Barakb4ff3a32016-02-09 14:57:42 +02005812 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03005813 u8 cong_protocol[0x4];
5814
5815 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
5816
Matan Barakb4ff3a32016-02-09 14:57:42 +02005817 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005818
5819 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
5820};
5821
5822struct mlx5_ifc_manage_pages_out_bits {
5823 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005824 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005825
5826 u8 syndrome[0x20];
5827
5828 u8 output_num_entries[0x20];
5829
Matan Barakb4ff3a32016-02-09 14:57:42 +02005830 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005831
5832 u8 pas[0][0x40];
5833};
5834
5835enum {
5836 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
5837 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
5838 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
5839};
5840
5841struct mlx5_ifc_manage_pages_in_bits {
5842 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005843 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005844
Matan Barakb4ff3a32016-02-09 14:57:42 +02005845 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005846 u8 op_mod[0x10];
5847
Matan Barakb4ff3a32016-02-09 14:57:42 +02005848 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005849 u8 function_id[0x10];
5850
5851 u8 input_num_entries[0x20];
5852
5853 u8 pas[0][0x40];
5854};
5855
5856struct mlx5_ifc_mad_ifc_out_bits {
5857 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005858 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005859
5860 u8 syndrome[0x20];
5861
Matan Barakb4ff3a32016-02-09 14:57:42 +02005862 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005863
5864 u8 response_mad_packet[256][0x8];
5865};
5866
5867struct mlx5_ifc_mad_ifc_in_bits {
5868 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005869 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005870
Matan Barakb4ff3a32016-02-09 14:57:42 +02005871 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005872 u8 op_mod[0x10];
5873
5874 u8 remote_lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005875 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005876 u8 port[0x8];
5877
Matan Barakb4ff3a32016-02-09 14:57:42 +02005878 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005879
5880 u8 mad[256][0x8];
5881};
5882
5883struct mlx5_ifc_init_hca_out_bits {
5884 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005885 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005886
5887 u8 syndrome[0x20];
5888
Matan Barakb4ff3a32016-02-09 14:57:42 +02005889 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005890};
5891
5892struct mlx5_ifc_init_hca_in_bits {
5893 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005894 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005895
Matan Barakb4ff3a32016-02-09 14:57:42 +02005896 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005897 u8 op_mod[0x10];
5898
Matan Barakb4ff3a32016-02-09 14:57:42 +02005899 u8 reserved_at_40[0x40];
Daniel Jurgens8737f812018-01-04 17:25:32 +02005900 u8 sw_owner_id[4][0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005901};
5902
5903struct mlx5_ifc_init2rtr_qp_out_bits {
5904 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005905 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005906
5907 u8 syndrome[0x20];
5908
Matan Barakb4ff3a32016-02-09 14:57:42 +02005909 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005910};
5911
5912struct mlx5_ifc_init2rtr_qp_in_bits {
5913 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005914 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005915
Matan Barakb4ff3a32016-02-09 14:57:42 +02005916 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005917 u8 op_mod[0x10];
5918
Matan Barakb4ff3a32016-02-09 14:57:42 +02005919 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005920 u8 qpn[0x18];
5921
Matan Barakb4ff3a32016-02-09 14:57:42 +02005922 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005923
5924 u8 opt_param_mask[0x20];
5925
Matan Barakb4ff3a32016-02-09 14:57:42 +02005926 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005927
5928 struct mlx5_ifc_qpc_bits qpc;
5929
Matan Barakb4ff3a32016-02-09 14:57:42 +02005930 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005931};
5932
5933struct mlx5_ifc_init2init_qp_out_bits {
5934 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005935 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005936
5937 u8 syndrome[0x20];
5938
Matan Barakb4ff3a32016-02-09 14:57:42 +02005939 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005940};
5941
5942struct mlx5_ifc_init2init_qp_in_bits {
5943 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005944 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005945
Matan Barakb4ff3a32016-02-09 14:57:42 +02005946 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005947 u8 op_mod[0x10];
5948
Matan Barakb4ff3a32016-02-09 14:57:42 +02005949 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005950 u8 qpn[0x18];
5951
Matan Barakb4ff3a32016-02-09 14:57:42 +02005952 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005953
5954 u8 opt_param_mask[0x20];
5955
Matan Barakb4ff3a32016-02-09 14:57:42 +02005956 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005957
5958 struct mlx5_ifc_qpc_bits qpc;
5959
Matan Barakb4ff3a32016-02-09 14:57:42 +02005960 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005961};
5962
5963struct mlx5_ifc_get_dropped_packet_log_out_bits {
5964 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005965 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005966
5967 u8 syndrome[0x20];
5968
Matan Barakb4ff3a32016-02-09 14:57:42 +02005969 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005970
5971 u8 packet_headers_log[128][0x8];
5972
5973 u8 packet_syndrome[64][0x8];
5974};
5975
5976struct mlx5_ifc_get_dropped_packet_log_in_bits {
5977 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005978 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005979
Matan Barakb4ff3a32016-02-09 14:57:42 +02005980 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005981 u8 op_mod[0x10];
5982
Matan Barakb4ff3a32016-02-09 14:57:42 +02005983 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005984};
5985
5986struct mlx5_ifc_gen_eqe_in_bits {
5987 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005988 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005989
Matan Barakb4ff3a32016-02-09 14:57:42 +02005990 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005991 u8 op_mod[0x10];
5992
Matan Barakb4ff3a32016-02-09 14:57:42 +02005993 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005994 u8 eq_number[0x8];
5995
Matan Barakb4ff3a32016-02-09 14:57:42 +02005996 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005997
5998 u8 eqe[64][0x8];
5999};
6000
6001struct mlx5_ifc_gen_eq_out_bits {
6002 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006003 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006004
6005 u8 syndrome[0x20];
6006
Matan Barakb4ff3a32016-02-09 14:57:42 +02006007 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006008};
6009
6010struct mlx5_ifc_enable_hca_out_bits {
6011 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006012 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006013
6014 u8 syndrome[0x20];
6015
Matan Barakb4ff3a32016-02-09 14:57:42 +02006016 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006017};
6018
6019struct mlx5_ifc_enable_hca_in_bits {
6020 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006021 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006022
Matan Barakb4ff3a32016-02-09 14:57:42 +02006023 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006024 u8 op_mod[0x10];
6025
Matan Barakb4ff3a32016-02-09 14:57:42 +02006026 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006027 u8 function_id[0x10];
6028
Matan Barakb4ff3a32016-02-09 14:57:42 +02006029 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006030};
6031
6032struct mlx5_ifc_drain_dct_out_bits {
6033 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006034 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006035
6036 u8 syndrome[0x20];
6037
Matan Barakb4ff3a32016-02-09 14:57:42 +02006038 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006039};
6040
6041struct mlx5_ifc_drain_dct_in_bits {
6042 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03006043 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006044
Matan Barakb4ff3a32016-02-09 14:57:42 +02006045 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006046 u8 op_mod[0x10];
6047
Matan Barakb4ff3a32016-02-09 14:57:42 +02006048 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006049 u8 dctn[0x18];
6050
Matan Barakb4ff3a32016-02-09 14:57:42 +02006051 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006052};
6053
6054struct mlx5_ifc_disable_hca_out_bits {
6055 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006056 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006057
6058 u8 syndrome[0x20];
6059
Matan Barakb4ff3a32016-02-09 14:57:42 +02006060 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006061};
6062
6063struct mlx5_ifc_disable_hca_in_bits {
6064 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006065 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006066
Matan Barakb4ff3a32016-02-09 14:57:42 +02006067 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006068 u8 op_mod[0x10];
6069
Matan Barakb4ff3a32016-02-09 14:57:42 +02006070 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006071 u8 function_id[0x10];
6072
Matan Barakb4ff3a32016-02-09 14:57:42 +02006073 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006074};
6075
6076struct mlx5_ifc_detach_from_mcg_out_bits {
6077 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006078 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006079
6080 u8 syndrome[0x20];
6081
Matan Barakb4ff3a32016-02-09 14:57:42 +02006082 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006083};
6084
6085struct mlx5_ifc_detach_from_mcg_in_bits {
6086 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006087 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006088
Matan Barakb4ff3a32016-02-09 14:57:42 +02006089 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006090 u8 op_mod[0x10];
6091
Matan Barakb4ff3a32016-02-09 14:57:42 +02006092 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006093 u8 qpn[0x18];
6094
Matan Barakb4ff3a32016-02-09 14:57:42 +02006095 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006096
6097 u8 multicast_gid[16][0x8];
6098};
6099
Saeed Mahameed74862162016-06-09 15:11:34 +03006100struct mlx5_ifc_destroy_xrq_out_bits {
6101 u8 status[0x8];
6102 u8 reserved_at_8[0x18];
6103
6104 u8 syndrome[0x20];
6105
6106 u8 reserved_at_40[0x40];
6107};
6108
6109struct mlx5_ifc_destroy_xrq_in_bits {
6110 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006111 u8 uid[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +03006112
6113 u8 reserved_at_20[0x10];
6114 u8 op_mod[0x10];
6115
6116 u8 reserved_at_40[0x8];
6117 u8 xrqn[0x18];
6118
6119 u8 reserved_at_60[0x20];
6120};
6121
Saeed Mahameede2816822015-05-28 22:28:40 +03006122struct mlx5_ifc_destroy_xrc_srq_out_bits {
6123 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006124 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006125
6126 u8 syndrome[0x20];
6127
Matan Barakb4ff3a32016-02-09 14:57:42 +02006128 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006129};
6130
6131struct mlx5_ifc_destroy_xrc_srq_in_bits {
6132 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006133 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006134
Matan Barakb4ff3a32016-02-09 14:57:42 +02006135 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006136 u8 op_mod[0x10];
6137
Matan Barakb4ff3a32016-02-09 14:57:42 +02006138 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006139 u8 xrc_srqn[0x18];
6140
Matan Barakb4ff3a32016-02-09 14:57:42 +02006141 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006142};
6143
6144struct mlx5_ifc_destroy_tis_out_bits {
6145 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006146 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006147
6148 u8 syndrome[0x20];
6149
Matan Barakb4ff3a32016-02-09 14:57:42 +02006150 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006151};
6152
6153struct mlx5_ifc_destroy_tis_in_bits {
6154 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006155 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006156
Matan Barakb4ff3a32016-02-09 14:57:42 +02006157 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006158 u8 op_mod[0x10];
6159
Matan Barakb4ff3a32016-02-09 14:57:42 +02006160 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006161 u8 tisn[0x18];
6162
Matan Barakb4ff3a32016-02-09 14:57:42 +02006163 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006164};
6165
6166struct mlx5_ifc_destroy_tir_out_bits {
6167 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006168 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006169
6170 u8 syndrome[0x20];
6171
Matan Barakb4ff3a32016-02-09 14:57:42 +02006172 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006173};
6174
6175struct mlx5_ifc_destroy_tir_in_bits {
6176 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006177 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006178
Matan Barakb4ff3a32016-02-09 14:57:42 +02006179 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006180 u8 op_mod[0x10];
6181
Matan Barakb4ff3a32016-02-09 14:57:42 +02006182 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006183 u8 tirn[0x18];
6184
Matan Barakb4ff3a32016-02-09 14:57:42 +02006185 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006186};
6187
6188struct mlx5_ifc_destroy_srq_out_bits {
6189 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006190 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006191
6192 u8 syndrome[0x20];
6193
Matan Barakb4ff3a32016-02-09 14:57:42 +02006194 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006195};
6196
6197struct mlx5_ifc_destroy_srq_in_bits {
6198 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006199 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006200
Matan Barakb4ff3a32016-02-09 14:57:42 +02006201 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006202 u8 op_mod[0x10];
6203
Matan Barakb4ff3a32016-02-09 14:57:42 +02006204 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006205 u8 srqn[0x18];
6206
Matan Barakb4ff3a32016-02-09 14:57:42 +02006207 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006208};
6209
6210struct mlx5_ifc_destroy_sq_out_bits {
6211 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006212 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006213
6214 u8 syndrome[0x20];
6215
Matan Barakb4ff3a32016-02-09 14:57:42 +02006216 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006217};
6218
6219struct mlx5_ifc_destroy_sq_in_bits {
6220 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03006221 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006222
Matan Barakb4ff3a32016-02-09 14:57:42 +02006223 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006224 u8 op_mod[0x10];
6225
Matan Barakb4ff3a32016-02-09 14:57:42 +02006226 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006227 u8 sqn[0x18];
6228
Matan Barakb4ff3a32016-02-09 14:57:42 +02006229 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006230};
6231
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03006232struct mlx5_ifc_destroy_scheduling_element_out_bits {
6233 u8 status[0x8];
6234 u8 reserved_at_8[0x18];
6235
6236 u8 syndrome[0x20];
6237
6238 u8 reserved_at_40[0x1c0];
6239};
6240
6241struct mlx5_ifc_destroy_scheduling_element_in_bits {
6242 u8 opcode[0x10];
6243 u8 reserved_at_10[0x10];
6244
6245 u8 reserved_at_20[0x10];
6246 u8 op_mod[0x10];
6247
6248 u8 scheduling_hierarchy[0x8];
6249 u8 reserved_at_48[0x18];
6250
6251 u8 scheduling_element_id[0x20];
6252
6253 u8 reserved_at_80[0x180];
6254};
6255
Saeed Mahameede2816822015-05-28 22:28:40 +03006256struct mlx5_ifc_destroy_rqt_out_bits {
6257 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006258 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006259
6260 u8 syndrome[0x20];
6261
Matan Barakb4ff3a32016-02-09 14:57:42 +02006262 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006263};
6264
6265struct mlx5_ifc_destroy_rqt_in_bits {
6266 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006267 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006268
Matan Barakb4ff3a32016-02-09 14:57:42 +02006269 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006270 u8 op_mod[0x10];
6271
Matan Barakb4ff3a32016-02-09 14:57:42 +02006272 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006273 u8 rqtn[0x18];
6274
Matan Barakb4ff3a32016-02-09 14:57:42 +02006275 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006276};
6277
6278struct mlx5_ifc_destroy_rq_out_bits {
6279 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006280 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006281
6282 u8 syndrome[0x20];
6283
Matan Barakb4ff3a32016-02-09 14:57:42 +02006284 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006285};
6286
6287struct mlx5_ifc_destroy_rq_in_bits {
6288 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03006289 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006290
Matan Barakb4ff3a32016-02-09 14:57:42 +02006291 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006292 u8 op_mod[0x10];
6293
Matan Barakb4ff3a32016-02-09 14:57:42 +02006294 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006295 u8 rqn[0x18];
6296
Matan Barakb4ff3a32016-02-09 14:57:42 +02006297 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006298};
6299
Maor Gottliebc1e0bfc2017-05-30 10:29:11 +03006300struct mlx5_ifc_set_delay_drop_params_in_bits {
6301 u8 opcode[0x10];
6302 u8 reserved_at_10[0x10];
6303
6304 u8 reserved_at_20[0x10];
6305 u8 op_mod[0x10];
6306
6307 u8 reserved_at_40[0x20];
6308
6309 u8 reserved_at_60[0x10];
6310 u8 delay_drop_timeout[0x10];
6311};
6312
6313struct mlx5_ifc_set_delay_drop_params_out_bits {
6314 u8 status[0x8];
6315 u8 reserved_at_8[0x18];
6316
6317 u8 syndrome[0x20];
6318
6319 u8 reserved_at_40[0x40];
6320};
6321
Saeed Mahameede2816822015-05-28 22:28:40 +03006322struct mlx5_ifc_destroy_rmp_out_bits {
6323 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006324 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006325
6326 u8 syndrome[0x20];
6327
Matan Barakb4ff3a32016-02-09 14:57:42 +02006328 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006329};
6330
6331struct mlx5_ifc_destroy_rmp_in_bits {
6332 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006333 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006334
Matan Barakb4ff3a32016-02-09 14:57:42 +02006335 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006336 u8 op_mod[0x10];
6337
Matan Barakb4ff3a32016-02-09 14:57:42 +02006338 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006339 u8 rmpn[0x18];
6340
Matan Barakb4ff3a32016-02-09 14:57:42 +02006341 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006342};
6343
6344struct mlx5_ifc_destroy_qp_out_bits {
6345 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006346 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006347
6348 u8 syndrome[0x20];
6349
Matan Barakb4ff3a32016-02-09 14:57:42 +02006350 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006351};
6352
6353struct mlx5_ifc_destroy_qp_in_bits {
6354 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03006355 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006356
Matan Barakb4ff3a32016-02-09 14:57:42 +02006357 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006358 u8 op_mod[0x10];
6359
Matan Barakb4ff3a32016-02-09 14:57:42 +02006360 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006361 u8 qpn[0x18];
6362
Matan Barakb4ff3a32016-02-09 14:57:42 +02006363 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006364};
6365
6366struct mlx5_ifc_destroy_psv_out_bits {
6367 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006368 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006369
6370 u8 syndrome[0x20];
6371
Matan Barakb4ff3a32016-02-09 14:57:42 +02006372 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006373};
6374
6375struct mlx5_ifc_destroy_psv_in_bits {
6376 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006377 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006378
Matan Barakb4ff3a32016-02-09 14:57:42 +02006379 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006380 u8 op_mod[0x10];
6381
Matan Barakb4ff3a32016-02-09 14:57:42 +02006382 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006383 u8 psvn[0x18];
6384
Matan Barakb4ff3a32016-02-09 14:57:42 +02006385 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006386};
6387
6388struct mlx5_ifc_destroy_mkey_out_bits {
6389 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006390 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006391
6392 u8 syndrome[0x20];
6393
Matan Barakb4ff3a32016-02-09 14:57:42 +02006394 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006395};
6396
6397struct mlx5_ifc_destroy_mkey_in_bits {
6398 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006399 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006400
Matan Barakb4ff3a32016-02-09 14:57:42 +02006401 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006402 u8 op_mod[0x10];
6403
Matan Barakb4ff3a32016-02-09 14:57:42 +02006404 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006405 u8 mkey_index[0x18];
6406
Matan Barakb4ff3a32016-02-09 14:57:42 +02006407 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006408};
6409
6410struct mlx5_ifc_destroy_flow_table_out_bits {
6411 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006412 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006413
6414 u8 syndrome[0x20];
6415
Matan Barakb4ff3a32016-02-09 14:57:42 +02006416 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006417};
6418
6419struct mlx5_ifc_destroy_flow_table_in_bits {
6420 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006421 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006422
Matan Barakb4ff3a32016-02-09 14:57:42 +02006423 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006424 u8 op_mod[0x10];
6425
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006426 u8 other_vport[0x1];
6427 u8 reserved_at_41[0xf];
6428 u8 vport_number[0x10];
6429
6430 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006431
6432 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006433 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006434
Matan Barakb4ff3a32016-02-09 14:57:42 +02006435 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006436 u8 table_id[0x18];
6437
Matan Barakb4ff3a32016-02-09 14:57:42 +02006438 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03006439};
6440
6441struct mlx5_ifc_destroy_flow_group_out_bits {
6442 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006443 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006444
6445 u8 syndrome[0x20];
6446
Matan Barakb4ff3a32016-02-09 14:57:42 +02006447 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006448};
6449
6450struct mlx5_ifc_destroy_flow_group_in_bits {
6451 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006452 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006453
Matan Barakb4ff3a32016-02-09 14:57:42 +02006454 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006455 u8 op_mod[0x10];
6456
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006457 u8 other_vport[0x1];
6458 u8 reserved_at_41[0xf];
6459 u8 vport_number[0x10];
6460
6461 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006462
6463 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006464 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006465
Matan Barakb4ff3a32016-02-09 14:57:42 +02006466 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006467 u8 table_id[0x18];
6468
6469 u8 group_id[0x20];
6470
Matan Barakb4ff3a32016-02-09 14:57:42 +02006471 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03006472};
6473
6474struct mlx5_ifc_destroy_eq_out_bits {
6475 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006476 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006477
6478 u8 syndrome[0x20];
6479
Matan Barakb4ff3a32016-02-09 14:57:42 +02006480 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006481};
6482
6483struct mlx5_ifc_destroy_eq_in_bits {
6484 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006485 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006486
Matan Barakb4ff3a32016-02-09 14:57:42 +02006487 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006488 u8 op_mod[0x10];
6489
Matan Barakb4ff3a32016-02-09 14:57:42 +02006490 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006491 u8 eq_number[0x8];
6492
Matan Barakb4ff3a32016-02-09 14:57:42 +02006493 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006494};
6495
6496struct mlx5_ifc_destroy_dct_out_bits {
6497 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006498 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006499
6500 u8 syndrome[0x20];
6501
Matan Barakb4ff3a32016-02-09 14:57:42 +02006502 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006503};
6504
6505struct mlx5_ifc_destroy_dct_in_bits {
6506 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03006507 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006508
Matan Barakb4ff3a32016-02-09 14:57:42 +02006509 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006510 u8 op_mod[0x10];
6511
Matan Barakb4ff3a32016-02-09 14:57:42 +02006512 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006513 u8 dctn[0x18];
6514
Matan Barakb4ff3a32016-02-09 14:57:42 +02006515 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006516};
6517
6518struct mlx5_ifc_destroy_cq_out_bits {
6519 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006520 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006521
6522 u8 syndrome[0x20];
6523
Matan Barakb4ff3a32016-02-09 14:57:42 +02006524 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006525};
6526
6527struct mlx5_ifc_destroy_cq_in_bits {
6528 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03006529 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006530
Matan Barakb4ff3a32016-02-09 14:57:42 +02006531 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006532 u8 op_mod[0x10];
6533
Matan Barakb4ff3a32016-02-09 14:57:42 +02006534 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006535 u8 cqn[0x18];
6536
Matan Barakb4ff3a32016-02-09 14:57:42 +02006537 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006538};
6539
6540struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
6541 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006542 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006543
6544 u8 syndrome[0x20];
6545
Matan Barakb4ff3a32016-02-09 14:57:42 +02006546 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006547};
6548
6549struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
6550 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006551 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006552
Matan Barakb4ff3a32016-02-09 14:57:42 +02006553 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006554 u8 op_mod[0x10];
6555
Matan Barakb4ff3a32016-02-09 14:57:42 +02006556 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006557
Matan Barakb4ff3a32016-02-09 14:57:42 +02006558 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006559 u8 vxlan_udp_port[0x10];
6560};
6561
6562struct mlx5_ifc_delete_l2_table_entry_out_bits {
6563 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006564 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006565
6566 u8 syndrome[0x20];
6567
Matan Barakb4ff3a32016-02-09 14:57:42 +02006568 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006569};
6570
6571struct mlx5_ifc_delete_l2_table_entry_in_bits {
6572 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006573 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006574
Matan Barakb4ff3a32016-02-09 14:57:42 +02006575 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006576 u8 op_mod[0x10];
6577
Matan Barakb4ff3a32016-02-09 14:57:42 +02006578 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006579
Matan Barakb4ff3a32016-02-09 14:57:42 +02006580 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006581 u8 table_index[0x18];
6582
Matan Barakb4ff3a32016-02-09 14:57:42 +02006583 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03006584};
6585
6586struct mlx5_ifc_delete_fte_out_bits {
6587 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006588 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006589
6590 u8 syndrome[0x20];
6591
Matan Barakb4ff3a32016-02-09 14:57:42 +02006592 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006593};
6594
6595struct mlx5_ifc_delete_fte_in_bits {
6596 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006597 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006598
Matan Barakb4ff3a32016-02-09 14:57:42 +02006599 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006600 u8 op_mod[0x10];
6601
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006602 u8 other_vport[0x1];
6603 u8 reserved_at_41[0xf];
6604 u8 vport_number[0x10];
6605
6606 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006607
6608 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006609 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006610
Matan Barakb4ff3a32016-02-09 14:57:42 +02006611 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006612 u8 table_id[0x18];
6613
Matan Barakb4ff3a32016-02-09 14:57:42 +02006614 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006615
6616 u8 flow_index[0x20];
6617
Matan Barakb4ff3a32016-02-09 14:57:42 +02006618 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006619};
6620
6621struct mlx5_ifc_dealloc_xrcd_out_bits {
6622 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006623 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006624
6625 u8 syndrome[0x20];
6626
Matan Barakb4ff3a32016-02-09 14:57:42 +02006627 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006628};
6629
6630struct mlx5_ifc_dealloc_xrcd_in_bits {
6631 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006632 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006633
Matan Barakb4ff3a32016-02-09 14:57:42 +02006634 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006635 u8 op_mod[0x10];
6636
Matan Barakb4ff3a32016-02-09 14:57:42 +02006637 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006638 u8 xrcd[0x18];
6639
Matan Barakb4ff3a32016-02-09 14:57:42 +02006640 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006641};
6642
6643struct mlx5_ifc_dealloc_uar_out_bits {
6644 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006645 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006646
6647 u8 syndrome[0x20];
6648
Matan Barakb4ff3a32016-02-09 14:57:42 +02006649 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006650};
6651
6652struct mlx5_ifc_dealloc_uar_in_bits {
6653 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006654 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006655
Matan Barakb4ff3a32016-02-09 14:57:42 +02006656 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006657 u8 op_mod[0x10];
6658
Matan Barakb4ff3a32016-02-09 14:57:42 +02006659 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006660 u8 uar[0x18];
6661
Matan Barakb4ff3a32016-02-09 14:57:42 +02006662 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006663};
6664
6665struct mlx5_ifc_dealloc_transport_domain_out_bits {
6666 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006667 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006668
6669 u8 syndrome[0x20];
6670
Matan Barakb4ff3a32016-02-09 14:57:42 +02006671 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006672};
6673
6674struct mlx5_ifc_dealloc_transport_domain_in_bits {
6675 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006676 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006677
Matan Barakb4ff3a32016-02-09 14:57:42 +02006678 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006679 u8 op_mod[0x10];
6680
Matan Barakb4ff3a32016-02-09 14:57:42 +02006681 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006682 u8 transport_domain[0x18];
6683
Matan Barakb4ff3a32016-02-09 14:57:42 +02006684 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006685};
6686
6687struct mlx5_ifc_dealloc_q_counter_out_bits {
6688 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006689 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006690
6691 u8 syndrome[0x20];
6692
Matan Barakb4ff3a32016-02-09 14:57:42 +02006693 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006694};
6695
6696struct mlx5_ifc_dealloc_q_counter_in_bits {
6697 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006698 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006699
Matan Barakb4ff3a32016-02-09 14:57:42 +02006700 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006701 u8 op_mod[0x10];
6702
Matan Barakb4ff3a32016-02-09 14:57:42 +02006703 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006704 u8 counter_set_id[0x8];
6705
Matan Barakb4ff3a32016-02-09 14:57:42 +02006706 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006707};
6708
6709struct mlx5_ifc_dealloc_pd_out_bits {
6710 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006711 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006712
6713 u8 syndrome[0x20];
6714
Matan Barakb4ff3a32016-02-09 14:57:42 +02006715 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006716};
6717
6718struct mlx5_ifc_dealloc_pd_in_bits {
6719 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006720 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006721
Matan Barakb4ff3a32016-02-09 14:57:42 +02006722 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006723 u8 op_mod[0x10];
6724
Matan Barakb4ff3a32016-02-09 14:57:42 +02006725 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006726 u8 pd[0x18];
6727
Matan Barakb4ff3a32016-02-09 14:57:42 +02006728 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006729};
6730
Amir Vadai9dc0b282016-05-13 12:55:39 +00006731struct mlx5_ifc_dealloc_flow_counter_out_bits {
6732 u8 status[0x8];
6733 u8 reserved_at_8[0x18];
6734
6735 u8 syndrome[0x20];
6736
6737 u8 reserved_at_40[0x40];
6738};
6739
6740struct mlx5_ifc_dealloc_flow_counter_in_bits {
6741 u8 opcode[0x10];
6742 u8 reserved_at_10[0x10];
6743
6744 u8 reserved_at_20[0x10];
6745 u8 op_mod[0x10];
6746
Rabie Louloua8ffcc72017-07-09 13:39:30 +03006747 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00006748
6749 u8 reserved_at_60[0x20];
6750};
6751
Saeed Mahameed74862162016-06-09 15:11:34 +03006752struct mlx5_ifc_create_xrq_out_bits {
6753 u8 status[0x8];
6754 u8 reserved_at_8[0x18];
6755
6756 u8 syndrome[0x20];
6757
6758 u8 reserved_at_40[0x8];
6759 u8 xrqn[0x18];
6760
6761 u8 reserved_at_60[0x20];
6762};
6763
6764struct mlx5_ifc_create_xrq_in_bits {
6765 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006766 u8 uid[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +03006767
6768 u8 reserved_at_20[0x10];
6769 u8 op_mod[0x10];
6770
6771 u8 reserved_at_40[0x40];
6772
6773 struct mlx5_ifc_xrqc_bits xrq_context;
6774};
6775
Saeed Mahameede2816822015-05-28 22:28:40 +03006776struct mlx5_ifc_create_xrc_srq_out_bits {
6777 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006778 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006779
6780 u8 syndrome[0x20];
6781
Matan Barakb4ff3a32016-02-09 14:57:42 +02006782 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006783 u8 xrc_srqn[0x18];
6784
Matan Barakb4ff3a32016-02-09 14:57:42 +02006785 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006786};
6787
6788struct mlx5_ifc_create_xrc_srq_in_bits {
6789 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006790 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006791
Matan Barakb4ff3a32016-02-09 14:57:42 +02006792 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006793 u8 op_mod[0x10];
6794
Matan Barakb4ff3a32016-02-09 14:57:42 +02006795 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006796
6797 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
6798
Yishai Hadas99b77fe2018-10-31 12:20:28 +02006799 u8 reserved_at_280[0x60];
6800
Leon Romanovskybd371972018-09-20 21:35:26 +03006801 u8 xrc_srq_umem_valid[0x1];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02006802 u8 reserved_at_2e1[0x1f];
6803
6804 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03006805
6806 u8 pas[0][0x40];
6807};
6808
6809struct mlx5_ifc_create_tis_out_bits {
6810 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006811 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006812
6813 u8 syndrome[0x20];
6814
Matan Barakb4ff3a32016-02-09 14:57:42 +02006815 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006816 u8 tisn[0x18];
6817
Matan Barakb4ff3a32016-02-09 14:57:42 +02006818 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006819};
6820
6821struct mlx5_ifc_create_tis_in_bits {
6822 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006823 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006824
Matan Barakb4ff3a32016-02-09 14:57:42 +02006825 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006826 u8 op_mod[0x10];
6827
Matan Barakb4ff3a32016-02-09 14:57:42 +02006828 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006829
6830 struct mlx5_ifc_tisc_bits ctx;
6831};
6832
6833struct mlx5_ifc_create_tir_out_bits {
6834 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006835 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006836
6837 u8 syndrome[0x20];
6838
Matan Barakb4ff3a32016-02-09 14:57:42 +02006839 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006840 u8 tirn[0x18];
6841
Matan Barakb4ff3a32016-02-09 14:57:42 +02006842 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006843};
6844
6845struct mlx5_ifc_create_tir_in_bits {
6846 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006847 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006848
Matan Barakb4ff3a32016-02-09 14:57:42 +02006849 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006850 u8 op_mod[0x10];
6851
Matan Barakb4ff3a32016-02-09 14:57:42 +02006852 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006853
6854 struct mlx5_ifc_tirc_bits ctx;
6855};
6856
6857struct mlx5_ifc_create_srq_out_bits {
6858 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006859 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006860
6861 u8 syndrome[0x20];
6862
Matan Barakb4ff3a32016-02-09 14:57:42 +02006863 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006864 u8 srqn[0x18];
6865
Matan Barakb4ff3a32016-02-09 14:57:42 +02006866 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006867};
6868
6869struct mlx5_ifc_create_srq_in_bits {
6870 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006871 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006872
Matan Barakb4ff3a32016-02-09 14:57:42 +02006873 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006874 u8 op_mod[0x10];
6875
Matan Barakb4ff3a32016-02-09 14:57:42 +02006876 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006877
6878 struct mlx5_ifc_srqc_bits srq_context_entry;
6879
Matan Barakb4ff3a32016-02-09 14:57:42 +02006880 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006881
6882 u8 pas[0][0x40];
6883};
6884
6885struct mlx5_ifc_create_sq_out_bits {
6886 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006887 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006888
6889 u8 syndrome[0x20];
6890
Matan Barakb4ff3a32016-02-09 14:57:42 +02006891 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006892 u8 sqn[0x18];
6893
Matan Barakb4ff3a32016-02-09 14:57:42 +02006894 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006895};
6896
6897struct mlx5_ifc_create_sq_in_bits {
6898 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03006899 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006900
Matan Barakb4ff3a32016-02-09 14:57:42 +02006901 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006902 u8 op_mod[0x10];
6903
Matan Barakb4ff3a32016-02-09 14:57:42 +02006904 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006905
6906 struct mlx5_ifc_sqc_bits ctx;
6907};
6908
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03006909struct mlx5_ifc_create_scheduling_element_out_bits {
6910 u8 status[0x8];
6911 u8 reserved_at_8[0x18];
6912
6913 u8 syndrome[0x20];
6914
6915 u8 reserved_at_40[0x40];
6916
6917 u8 scheduling_element_id[0x20];
6918
6919 u8 reserved_at_a0[0x160];
6920};
6921
6922struct mlx5_ifc_create_scheduling_element_in_bits {
6923 u8 opcode[0x10];
6924 u8 reserved_at_10[0x10];
6925
6926 u8 reserved_at_20[0x10];
6927 u8 op_mod[0x10];
6928
6929 u8 scheduling_hierarchy[0x8];
6930 u8 reserved_at_48[0x18];
6931
6932 u8 reserved_at_60[0xa0];
6933
6934 struct mlx5_ifc_scheduling_context_bits scheduling_context;
6935
6936 u8 reserved_at_300[0x100];
6937};
6938
Saeed Mahameede2816822015-05-28 22:28:40 +03006939struct mlx5_ifc_create_rqt_out_bits {
6940 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006941 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006942
6943 u8 syndrome[0x20];
6944
Matan Barakb4ff3a32016-02-09 14:57:42 +02006945 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006946 u8 rqtn[0x18];
6947
Matan Barakb4ff3a32016-02-09 14:57:42 +02006948 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006949};
6950
6951struct mlx5_ifc_create_rqt_in_bits {
6952 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006953 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006954
Matan Barakb4ff3a32016-02-09 14:57:42 +02006955 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006956 u8 op_mod[0x10];
6957
Matan Barakb4ff3a32016-02-09 14:57:42 +02006958 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006959
6960 struct mlx5_ifc_rqtc_bits rqt_context;
6961};
6962
6963struct mlx5_ifc_create_rq_out_bits {
6964 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006965 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006966
6967 u8 syndrome[0x20];
6968
Matan Barakb4ff3a32016-02-09 14:57:42 +02006969 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006970 u8 rqn[0x18];
6971
Matan Barakb4ff3a32016-02-09 14:57:42 +02006972 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006973};
6974
6975struct mlx5_ifc_create_rq_in_bits {
6976 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03006977 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006978
Matan Barakb4ff3a32016-02-09 14:57:42 +02006979 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006980 u8 op_mod[0x10];
6981
Matan Barakb4ff3a32016-02-09 14:57:42 +02006982 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006983
6984 struct mlx5_ifc_rqc_bits ctx;
6985};
6986
6987struct mlx5_ifc_create_rmp_out_bits {
6988 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006989 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006990
6991 u8 syndrome[0x20];
6992
Matan Barakb4ff3a32016-02-09 14:57:42 +02006993 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006994 u8 rmpn[0x18];
6995
Matan Barakb4ff3a32016-02-09 14:57:42 +02006996 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006997};
6998
6999struct mlx5_ifc_create_rmp_in_bits {
7000 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007001 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007002
Matan Barakb4ff3a32016-02-09 14:57:42 +02007003 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007004 u8 op_mod[0x10];
7005
Matan Barakb4ff3a32016-02-09 14:57:42 +02007006 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007007
7008 struct mlx5_ifc_rmpc_bits ctx;
7009};
7010
7011struct mlx5_ifc_create_qp_out_bits {
7012 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007013 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007014
7015 u8 syndrome[0x20];
7016
Matan Barakb4ff3a32016-02-09 14:57:42 +02007017 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007018 u8 qpn[0x18];
7019
Matan Barakb4ff3a32016-02-09 14:57:42 +02007020 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007021};
7022
7023struct mlx5_ifc_create_qp_in_bits {
7024 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03007025 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007026
Matan Barakb4ff3a32016-02-09 14:57:42 +02007027 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007028 u8 op_mod[0x10];
7029
Matan Barakb4ff3a32016-02-09 14:57:42 +02007030 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007031
7032 u8 opt_param_mask[0x20];
7033
Matan Barakb4ff3a32016-02-09 14:57:42 +02007034 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007035
7036 struct mlx5_ifc_qpc_bits qpc;
7037
Leon Romanovskybd371972018-09-20 21:35:26 +03007038 u8 reserved_at_800[0x60];
7039
7040 u8 wq_umem_valid[0x1];
7041 u8 reserved_at_861[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007042
7043 u8 pas[0][0x40];
7044};
7045
7046struct mlx5_ifc_create_psv_out_bits {
7047 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007048 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007049
7050 u8 syndrome[0x20];
7051
Matan Barakb4ff3a32016-02-09 14:57:42 +02007052 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007053
Matan Barakb4ff3a32016-02-09 14:57:42 +02007054 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007055 u8 psv0_index[0x18];
7056
Matan Barakb4ff3a32016-02-09 14:57:42 +02007057 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007058 u8 psv1_index[0x18];
7059
Matan Barakb4ff3a32016-02-09 14:57:42 +02007060 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007061 u8 psv2_index[0x18];
7062
Matan Barakb4ff3a32016-02-09 14:57:42 +02007063 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007064 u8 psv3_index[0x18];
7065};
7066
7067struct mlx5_ifc_create_psv_in_bits {
7068 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007069 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007070
Matan Barakb4ff3a32016-02-09 14:57:42 +02007071 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007072 u8 op_mod[0x10];
7073
7074 u8 num_psv[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007075 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007076 u8 pd[0x18];
7077
Matan Barakb4ff3a32016-02-09 14:57:42 +02007078 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007079};
7080
7081struct mlx5_ifc_create_mkey_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
Matan Barakb4ff3a32016-02-09 14:57:42 +02007087 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007088 u8 mkey_index[0x18];
7089
Matan Barakb4ff3a32016-02-09 14:57:42 +02007090 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007091};
7092
7093struct mlx5_ifc_create_mkey_in_bits {
7094 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007095 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007096
Matan Barakb4ff3a32016-02-09 14:57:42 +02007097 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007098 u8 op_mod[0x10];
7099
Matan Barakb4ff3a32016-02-09 14:57:42 +02007100 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007101
7102 u8 pg_access[0x1];
Leon Romanovskybd371972018-09-20 21:35:26 +03007103 u8 mkey_umem_valid[0x1];
7104 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03007105
7106 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
7107
Matan Barakb4ff3a32016-02-09 14:57:42 +02007108 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007109
7110 u8 translations_octword_actual_size[0x20];
7111
Matan Barakb4ff3a32016-02-09 14:57:42 +02007112 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03007113
7114 u8 klm_pas_mtt[0][0x20];
7115};
7116
7117struct mlx5_ifc_create_flow_table_out_bits {
7118 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007119 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007120
7121 u8 syndrome[0x20];
7122
Matan Barakb4ff3a32016-02-09 14:57:42 +02007123 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007124 u8 table_id[0x18];
7125
Matan Barakb4ff3a32016-02-09 14:57:42 +02007126 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007127};
7128
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007129struct mlx5_ifc_flow_table_context_bits {
Mark Bloch60786f02018-08-28 14:18:46 +03007130 u8 reformat_en[0x1];
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007131 u8 decap_en[0x1];
7132 u8 reserved_at_2[0x2];
7133 u8 table_miss_action[0x4];
7134 u8 level[0x8];
7135 u8 reserved_at_10[0x8];
7136 u8 log_size[0x8];
7137
7138 u8 reserved_at_20[0x8];
7139 u8 table_miss_id[0x18];
7140
7141 u8 reserved_at_40[0x8];
7142 u8 lag_master_next_table_id[0x18];
7143
7144 u8 reserved_at_60[0xe0];
7145};
7146
Saeed Mahameede2816822015-05-28 22:28:40 +03007147struct mlx5_ifc_create_flow_table_in_bits {
7148 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007149 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007150
Matan Barakb4ff3a32016-02-09 14:57:42 +02007151 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007152 u8 op_mod[0x10];
7153
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007154 u8 other_vport[0x1];
7155 u8 reserved_at_41[0xf];
7156 u8 vport_number[0x10];
7157
7158 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007159
7160 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007161 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007162
Matan Barakb4ff3a32016-02-09 14:57:42 +02007163 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007164
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007165 struct mlx5_ifc_flow_table_context_bits flow_table_context;
Saeed Mahameede2816822015-05-28 22:28:40 +03007166};
7167
7168struct mlx5_ifc_create_flow_group_out_bits {
7169 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007170 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007171
7172 u8 syndrome[0x20];
7173
Matan Barakb4ff3a32016-02-09 14:57:42 +02007174 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007175 u8 group_id[0x18];
7176
Matan Barakb4ff3a32016-02-09 14:57:42 +02007177 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007178};
7179
7180enum {
Ariel Levkovich71c6e862018-05-13 14:33:34 +03007181 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
7182 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
7183 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
7184 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS_2 = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +03007185};
7186
7187struct mlx5_ifc_create_flow_group_in_bits {
7188 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007189 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007190
Matan Barakb4ff3a32016-02-09 14:57:42 +02007191 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007192 u8 op_mod[0x10];
7193
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007194 u8 other_vport[0x1];
7195 u8 reserved_at_41[0xf];
7196 u8 vport_number[0x10];
7197
7198 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007199
7200 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007201 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007202
Matan Barakb4ff3a32016-02-09 14:57:42 +02007203 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007204 u8 table_id[0x18];
7205
Shahar Klein3e99df82018-03-18 09:02:06 +02007206 u8 source_eswitch_owner_vhca_id_valid[0x1];
7207
7208 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007209
7210 u8 start_flow_index[0x20];
7211
Matan Barakb4ff3a32016-02-09 14:57:42 +02007212 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007213
7214 u8 end_flow_index[0x20];
7215
Matan Barakb4ff3a32016-02-09 14:57:42 +02007216 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007217
Matan Barakb4ff3a32016-02-09 14:57:42 +02007218 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007219 u8 match_criteria_enable[0x8];
7220
7221 struct mlx5_ifc_fte_match_param_bits match_criteria;
7222
Matan Barakb4ff3a32016-02-09 14:57:42 +02007223 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03007224};
7225
7226struct mlx5_ifc_create_eq_out_bits {
7227 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007228 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007229
7230 u8 syndrome[0x20];
7231
Matan Barakb4ff3a32016-02-09 14:57:42 +02007232 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007233 u8 eq_number[0x8];
7234
Matan Barakb4ff3a32016-02-09 14:57:42 +02007235 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007236};
7237
7238struct mlx5_ifc_create_eq_in_bits {
7239 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007240 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007241
Matan Barakb4ff3a32016-02-09 14:57:42 +02007242 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007243 u8 op_mod[0x10];
7244
Matan Barakb4ff3a32016-02-09 14:57:42 +02007245 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007246
7247 struct mlx5_ifc_eqc_bits eq_context_entry;
7248
Matan Barakb4ff3a32016-02-09 14:57:42 +02007249 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007250
7251 u8 event_bitmask[0x40];
7252
Matan Barakb4ff3a32016-02-09 14:57:42 +02007253 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03007254
7255 u8 pas[0][0x40];
7256};
7257
7258struct mlx5_ifc_create_dct_out_bits {
7259 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007260 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007261
7262 u8 syndrome[0x20];
7263
Matan Barakb4ff3a32016-02-09 14:57:42 +02007264 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007265 u8 dctn[0x18];
7266
Matan Barakb4ff3a32016-02-09 14:57:42 +02007267 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007268};
7269
7270struct mlx5_ifc_create_dct_in_bits {
7271 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03007272 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007273
Matan Barakb4ff3a32016-02-09 14:57:42 +02007274 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007275 u8 op_mod[0x10];
7276
Matan Barakb4ff3a32016-02-09 14:57:42 +02007277 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007278
7279 struct mlx5_ifc_dctc_bits dct_context_entry;
7280
Matan Barakb4ff3a32016-02-09 14:57:42 +02007281 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03007282};
7283
7284struct mlx5_ifc_create_cq_out_bits {
7285 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007286 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007287
7288 u8 syndrome[0x20];
7289
Matan Barakb4ff3a32016-02-09 14:57:42 +02007290 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007291 u8 cqn[0x18];
7292
Matan Barakb4ff3a32016-02-09 14:57:42 +02007293 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007294};
7295
7296struct mlx5_ifc_create_cq_in_bits {
7297 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03007298 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007299
Matan Barakb4ff3a32016-02-09 14:57:42 +02007300 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007301 u8 op_mod[0x10];
7302
Matan Barakb4ff3a32016-02-09 14:57:42 +02007303 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007304
7305 struct mlx5_ifc_cqc_bits cq_context;
7306
Leon Romanovskybd371972018-09-20 21:35:26 +03007307 u8 reserved_at_280[0x60];
7308
7309 u8 cq_umem_valid[0x1];
7310 u8 reserved_at_2e1[0x59f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007311
7312 u8 pas[0][0x40];
7313};
7314
7315struct mlx5_ifc_config_int_moderation_out_bits {
7316 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007317 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007318
7319 u8 syndrome[0x20];
7320
Matan Barakb4ff3a32016-02-09 14:57:42 +02007321 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007322 u8 min_delay[0xc];
7323 u8 int_vector[0x10];
7324
Matan Barakb4ff3a32016-02-09 14:57:42 +02007325 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007326};
7327
7328enum {
7329 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
7330 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
7331};
7332
7333struct mlx5_ifc_config_int_moderation_in_bits {
7334 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007335 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007336
Matan Barakb4ff3a32016-02-09 14:57:42 +02007337 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007338 u8 op_mod[0x10];
7339
Matan Barakb4ff3a32016-02-09 14:57:42 +02007340 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007341 u8 min_delay[0xc];
7342 u8 int_vector[0x10];
7343
Matan Barakb4ff3a32016-02-09 14:57:42 +02007344 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007345};
7346
7347struct mlx5_ifc_attach_to_mcg_out_bits {
7348 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007349 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007350
7351 u8 syndrome[0x20];
7352
Matan Barakb4ff3a32016-02-09 14:57:42 +02007353 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007354};
7355
7356struct mlx5_ifc_attach_to_mcg_in_bits {
7357 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007358 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007359
Matan Barakb4ff3a32016-02-09 14:57:42 +02007360 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007361 u8 op_mod[0x10];
7362
Matan Barakb4ff3a32016-02-09 14:57:42 +02007363 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007364 u8 qpn[0x18];
7365
Matan Barakb4ff3a32016-02-09 14:57:42 +02007366 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007367
7368 u8 multicast_gid[16][0x8];
7369};
7370
Saeed Mahameed74862162016-06-09 15:11:34 +03007371struct mlx5_ifc_arm_xrq_out_bits {
7372 u8 status[0x8];
7373 u8 reserved_at_8[0x18];
7374
7375 u8 syndrome[0x20];
7376
7377 u8 reserved_at_40[0x40];
7378};
7379
7380struct mlx5_ifc_arm_xrq_in_bits {
7381 u8 opcode[0x10];
7382 u8 reserved_at_10[0x10];
7383
7384 u8 reserved_at_20[0x10];
7385 u8 op_mod[0x10];
7386
7387 u8 reserved_at_40[0x8];
7388 u8 xrqn[0x18];
7389
7390 u8 reserved_at_60[0x10];
7391 u8 lwm[0x10];
7392};
7393
Saeed Mahameede2816822015-05-28 22:28:40 +03007394struct mlx5_ifc_arm_xrc_srq_out_bits {
7395 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007396 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007397
7398 u8 syndrome[0x20];
7399
Matan Barakb4ff3a32016-02-09 14:57:42 +02007400 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007401};
7402
7403enum {
7404 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
7405};
7406
7407struct mlx5_ifc_arm_xrc_srq_in_bits {
7408 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007409 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007410
Matan Barakb4ff3a32016-02-09 14:57:42 +02007411 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007412 u8 op_mod[0x10];
7413
Matan Barakb4ff3a32016-02-09 14:57:42 +02007414 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007415 u8 xrc_srqn[0x18];
7416
Matan Barakb4ff3a32016-02-09 14:57:42 +02007417 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007418 u8 lwm[0x10];
7419};
7420
7421struct mlx5_ifc_arm_rq_out_bits {
7422 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007423 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007424
7425 u8 syndrome[0x20];
7426
Matan Barakb4ff3a32016-02-09 14:57:42 +02007427 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007428};
7429
7430enum {
Saeed Mahameed74862162016-06-09 15:11:34 +03007431 MLX5_ARM_RQ_IN_OP_MOD_SRQ = 0x1,
7432 MLX5_ARM_RQ_IN_OP_MOD_XRQ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03007433};
7434
7435struct mlx5_ifc_arm_rq_in_bits {
7436 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007437 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007438
Matan Barakb4ff3a32016-02-09 14:57:42 +02007439 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007440 u8 op_mod[0x10];
7441
Matan Barakb4ff3a32016-02-09 14:57:42 +02007442 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007443 u8 srq_number[0x18];
7444
Matan Barakb4ff3a32016-02-09 14:57:42 +02007445 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007446 u8 lwm[0x10];
7447};
7448
7449struct mlx5_ifc_arm_dct_out_bits {
7450 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007451 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007452
7453 u8 syndrome[0x20];
7454
Matan Barakb4ff3a32016-02-09 14:57:42 +02007455 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007456};
7457
7458struct mlx5_ifc_arm_dct_in_bits {
7459 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007460 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007461
Matan Barakb4ff3a32016-02-09 14:57:42 +02007462 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007463 u8 op_mod[0x10];
7464
Matan Barakb4ff3a32016-02-09 14:57:42 +02007465 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007466 u8 dct_number[0x18];
7467
Matan Barakb4ff3a32016-02-09 14:57:42 +02007468 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007469};
7470
7471struct mlx5_ifc_alloc_xrcd_out_bits {
7472 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007473 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007474
7475 u8 syndrome[0x20];
7476
Matan Barakb4ff3a32016-02-09 14:57:42 +02007477 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007478 u8 xrcd[0x18];
7479
Matan Barakb4ff3a32016-02-09 14:57:42 +02007480 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007481};
7482
7483struct mlx5_ifc_alloc_xrcd_in_bits {
7484 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007485 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007486
Matan Barakb4ff3a32016-02-09 14:57:42 +02007487 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007488 u8 op_mod[0x10];
7489
Matan Barakb4ff3a32016-02-09 14:57:42 +02007490 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007491};
7492
7493struct mlx5_ifc_alloc_uar_out_bits {
7494 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007495 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007496
7497 u8 syndrome[0x20];
7498
Matan Barakb4ff3a32016-02-09 14:57:42 +02007499 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007500 u8 uar[0x18];
7501
Matan Barakb4ff3a32016-02-09 14:57:42 +02007502 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007503};
7504
7505struct mlx5_ifc_alloc_uar_in_bits {
7506 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007507 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007508
Matan Barakb4ff3a32016-02-09 14:57:42 +02007509 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007510 u8 op_mod[0x10];
7511
Matan Barakb4ff3a32016-02-09 14:57:42 +02007512 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007513};
7514
7515struct mlx5_ifc_alloc_transport_domain_out_bits {
7516 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007517 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007518
7519 u8 syndrome[0x20];
7520
Matan Barakb4ff3a32016-02-09 14:57:42 +02007521 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007522 u8 transport_domain[0x18];
7523
Matan Barakb4ff3a32016-02-09 14:57:42 +02007524 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007525};
7526
7527struct mlx5_ifc_alloc_transport_domain_in_bits {
7528 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007529 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007530
Matan Barakb4ff3a32016-02-09 14:57:42 +02007531 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007532 u8 op_mod[0x10];
7533
Matan Barakb4ff3a32016-02-09 14:57:42 +02007534 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007535};
7536
7537struct mlx5_ifc_alloc_q_counter_out_bits {
7538 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007539 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007540
7541 u8 syndrome[0x20];
7542
Matan Barakb4ff3a32016-02-09 14:57:42 +02007543 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007544 u8 counter_set_id[0x8];
7545
Matan Barakb4ff3a32016-02-09 14:57:42 +02007546 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007547};
7548
7549struct mlx5_ifc_alloc_q_counter_in_bits {
7550 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007551 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007552
Matan Barakb4ff3a32016-02-09 14:57:42 +02007553 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007554 u8 op_mod[0x10];
7555
Matan Barakb4ff3a32016-02-09 14:57:42 +02007556 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007557};
7558
7559struct mlx5_ifc_alloc_pd_out_bits {
7560 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007561 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007562
7563 u8 syndrome[0x20];
7564
Matan Barakb4ff3a32016-02-09 14:57:42 +02007565 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007566 u8 pd[0x18];
7567
Matan Barakb4ff3a32016-02-09 14:57:42 +02007568 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007569};
7570
7571struct mlx5_ifc_alloc_pd_in_bits {
7572 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007573 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007574
Matan Barakb4ff3a32016-02-09 14:57:42 +02007575 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007576 u8 op_mod[0x10];
7577
Matan Barakb4ff3a32016-02-09 14:57:42 +02007578 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007579};
7580
Amir Vadai9dc0b282016-05-13 12:55:39 +00007581struct mlx5_ifc_alloc_flow_counter_out_bits {
7582 u8 status[0x8];
7583 u8 reserved_at_8[0x18];
7584
7585 u8 syndrome[0x20];
7586
Rabie Louloua8ffcc72017-07-09 13:39:30 +03007587 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00007588
7589 u8 reserved_at_60[0x20];
7590};
7591
7592struct mlx5_ifc_alloc_flow_counter_in_bits {
7593 u8 opcode[0x10];
7594 u8 reserved_at_10[0x10];
7595
7596 u8 reserved_at_20[0x10];
7597 u8 op_mod[0x10];
7598
7599 u8 reserved_at_40[0x40];
7600};
7601
Saeed Mahameede2816822015-05-28 22:28:40 +03007602struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
7603 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007604 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007605
7606 u8 syndrome[0x20];
7607
Matan Barakb4ff3a32016-02-09 14:57:42 +02007608 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007609};
7610
7611struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
7612 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007613 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007614
Matan Barakb4ff3a32016-02-09 14:57:42 +02007615 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007616 u8 op_mod[0x10];
7617
Matan Barakb4ff3a32016-02-09 14:57:42 +02007618 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007619
Matan Barakb4ff3a32016-02-09 14:57:42 +02007620 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007621 u8 vxlan_udp_port[0x10];
7622};
7623
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007624struct mlx5_ifc_set_pp_rate_limit_out_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +03007625 u8 status[0x8];
7626 u8 reserved_at_8[0x18];
7627
7628 u8 syndrome[0x20];
7629
7630 u8 reserved_at_40[0x40];
7631};
7632
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007633struct mlx5_ifc_set_pp_rate_limit_in_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +03007634 u8 opcode[0x10];
7635 u8 reserved_at_10[0x10];
7636
7637 u8 reserved_at_20[0x10];
7638 u8 op_mod[0x10];
7639
7640 u8 reserved_at_40[0x10];
7641 u8 rate_limit_index[0x10];
7642
7643 u8 reserved_at_60[0x20];
7644
7645 u8 rate_limit[0x20];
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007646
Bodong Wang05d3ac92018-03-19 15:10:29 +02007647 u8 burst_upper_bound[0x20];
7648
7649 u8 reserved_at_c0[0x10];
7650 u8 typical_packet_size[0x10];
7651
7652 u8 reserved_at_e0[0x120];
Saeed Mahameed74862162016-06-09 15:11:34 +03007653};
7654
Saeed Mahameede2816822015-05-28 22:28:40 +03007655struct mlx5_ifc_access_register_out_bits {
7656 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007657 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007658
7659 u8 syndrome[0x20];
7660
Matan Barakb4ff3a32016-02-09 14:57:42 +02007661 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007662
7663 u8 register_data[0][0x20];
7664};
7665
7666enum {
7667 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
7668 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
7669};
7670
7671struct mlx5_ifc_access_register_in_bits {
7672 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007673 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007674
Matan Barakb4ff3a32016-02-09 14:57:42 +02007675 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007676 u8 op_mod[0x10];
7677
Matan Barakb4ff3a32016-02-09 14:57:42 +02007678 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007679 u8 register_id[0x10];
7680
7681 u8 argument[0x20];
7682
7683 u8 register_data[0][0x20];
7684};
7685
7686struct mlx5_ifc_sltp_reg_bits {
7687 u8 status[0x4];
7688 u8 version[0x4];
7689 u8 local_port[0x8];
7690 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007691 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007692 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007693 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007694
Matan Barakb4ff3a32016-02-09 14:57:42 +02007695 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007696
Matan Barakb4ff3a32016-02-09 14:57:42 +02007697 u8 reserved_at_40[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007698 u8 polarity[0x1];
7699 u8 ob_tap0[0x8];
7700 u8 ob_tap1[0x8];
7701 u8 ob_tap2[0x8];
7702
Matan Barakb4ff3a32016-02-09 14:57:42 +02007703 u8 reserved_at_60[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007704 u8 ob_preemp_mode[0x4];
7705 u8 ob_reg[0x8];
7706 u8 ob_bias[0x8];
7707
Matan Barakb4ff3a32016-02-09 14:57:42 +02007708 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007709};
7710
7711struct mlx5_ifc_slrg_reg_bits {
7712 u8 status[0x4];
7713 u8 version[0x4];
7714 u8 local_port[0x8];
7715 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007716 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007717 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007718 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007719
7720 u8 time_to_link_up[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007721 u8 reserved_at_30[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007722 u8 grade_lane_speed[0x4];
7723
7724 u8 grade_version[0x8];
7725 u8 grade[0x18];
7726
Matan Barakb4ff3a32016-02-09 14:57:42 +02007727 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007728 u8 height_grade_type[0x4];
7729 u8 height_grade[0x18];
7730
7731 u8 height_dz[0x10];
7732 u8 height_dv[0x10];
7733
Matan Barakb4ff3a32016-02-09 14:57:42 +02007734 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007735 u8 height_sigma[0x10];
7736
Matan Barakb4ff3a32016-02-09 14:57:42 +02007737 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007738
Matan Barakb4ff3a32016-02-09 14:57:42 +02007739 u8 reserved_at_e0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007740 u8 phase_grade_type[0x4];
7741 u8 phase_grade[0x18];
7742
Matan Barakb4ff3a32016-02-09 14:57:42 +02007743 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007744 u8 phase_eo_pos[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007745 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007746 u8 phase_eo_neg[0x8];
7747
7748 u8 ffe_set_tested[0x10];
7749 u8 test_errors_per_lane[0x10];
7750};
7751
7752struct mlx5_ifc_pvlc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007753 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007754 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007755 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007756
Matan Barakb4ff3a32016-02-09 14:57:42 +02007757 u8 reserved_at_20[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007758 u8 vl_hw_cap[0x4];
7759
Matan Barakb4ff3a32016-02-09 14:57:42 +02007760 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007761 u8 vl_admin[0x4];
7762
Matan Barakb4ff3a32016-02-09 14:57:42 +02007763 u8 reserved_at_60[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007764 u8 vl_operational[0x4];
7765};
7766
7767struct mlx5_ifc_pude_reg_bits {
7768 u8 swid[0x8];
7769 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007770 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007771 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007772 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007773 u8 oper_status[0x4];
7774
Matan Barakb4ff3a32016-02-09 14:57:42 +02007775 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007776};
7777
7778struct mlx5_ifc_ptys_reg_bits {
Bodong Wange7e31ca2016-09-07 19:07:58 +03007779 u8 reserved_at_0[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03007780 u8 an_disable_admin[0x1];
Bodong Wange7e31ca2016-09-07 19:07:58 +03007781 u8 an_disable_cap[0x1];
7782 u8 reserved_at_3[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007783 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007784 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03007785 u8 proto_mask[0x3];
7786
Saeed Mahameed74862162016-06-09 15:11:34 +03007787 u8 an_status[0x4];
7788 u8 reserved_at_24[0x3c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007789
7790 u8 eth_proto_capability[0x20];
7791
7792 u8 ib_link_width_capability[0x10];
7793 u8 ib_proto_capability[0x10];
7794
Matan Barakb4ff3a32016-02-09 14:57:42 +02007795 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007796
7797 u8 eth_proto_admin[0x20];
7798
7799 u8 ib_link_width_admin[0x10];
7800 u8 ib_proto_admin[0x10];
7801
Matan Barakb4ff3a32016-02-09 14:57:42 +02007802 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007803
7804 u8 eth_proto_oper[0x20];
7805
7806 u8 ib_link_width_oper[0x10];
7807 u8 ib_proto_oper[0x10];
7808
Eran Ben Elisha5b4793f2017-02-13 14:00:59 +02007809 u8 reserved_at_160[0x1c];
7810 u8 connector_type[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007811
7812 u8 eth_proto_lp_advertise[0x20];
7813
Matan Barakb4ff3a32016-02-09 14:57:42 +02007814 u8 reserved_at_1a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007815};
7816
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007817struct mlx5_ifc_mlcr_reg_bits {
7818 u8 reserved_at_0[0x8];
7819 u8 local_port[0x8];
7820 u8 reserved_at_10[0x20];
7821
7822 u8 beacon_duration[0x10];
7823 u8 reserved_at_40[0x10];
7824
7825 u8 beacon_remain[0x10];
7826};
7827
Saeed Mahameede2816822015-05-28 22:28:40 +03007828struct mlx5_ifc_ptas_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007829 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007830
7831 u8 algorithm_options[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007832 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007833 u8 repetitions_mode[0x4];
7834 u8 num_of_repetitions[0x8];
7835
7836 u8 grade_version[0x8];
7837 u8 height_grade_type[0x4];
7838 u8 phase_grade_type[0x4];
7839 u8 height_grade_weight[0x8];
7840 u8 phase_grade_weight[0x8];
7841
7842 u8 gisim_measure_bits[0x10];
7843 u8 adaptive_tap_measure_bits[0x10];
7844
7845 u8 ber_bath_high_error_threshold[0x10];
7846 u8 ber_bath_mid_error_threshold[0x10];
7847
7848 u8 ber_bath_low_error_threshold[0x10];
7849 u8 one_ratio_high_threshold[0x10];
7850
7851 u8 one_ratio_high_mid_threshold[0x10];
7852 u8 one_ratio_low_mid_threshold[0x10];
7853
7854 u8 one_ratio_low_threshold[0x10];
7855 u8 ndeo_error_threshold[0x10];
7856
7857 u8 mixer_offset_step_size[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007858 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007859 u8 mix90_phase_for_voltage_bath[0x8];
7860
7861 u8 mixer_offset_start[0x10];
7862 u8 mixer_offset_end[0x10];
7863
Matan Barakb4ff3a32016-02-09 14:57:42 +02007864 u8 reserved_at_140[0x15];
Saeed Mahameede2816822015-05-28 22:28:40 +03007865 u8 ber_test_time[0xb];
7866};
7867
7868struct mlx5_ifc_pspa_reg_bits {
7869 u8 swid[0x8];
7870 u8 local_port[0x8];
7871 u8 sub_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007872 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007873
Matan Barakb4ff3a32016-02-09 14:57:42 +02007874 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007875};
7876
7877struct mlx5_ifc_pqdr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007878 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007879 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007880 u8 reserved_at_10[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007881 u8 prio[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007882 u8 reserved_at_18[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007883 u8 mode[0x2];
7884
Matan Barakb4ff3a32016-02-09 14:57:42 +02007885 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007886
Matan Barakb4ff3a32016-02-09 14:57:42 +02007887 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007888 u8 min_threshold[0x10];
7889
Matan Barakb4ff3a32016-02-09 14:57:42 +02007890 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007891 u8 max_threshold[0x10];
7892
Matan Barakb4ff3a32016-02-09 14:57:42 +02007893 u8 reserved_at_80[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007894 u8 mark_probability_denominator[0x10];
7895
Matan Barakb4ff3a32016-02-09 14:57:42 +02007896 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007897};
7898
7899struct mlx5_ifc_ppsc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007900 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007901 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007902 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007903
Matan Barakb4ff3a32016-02-09 14:57:42 +02007904 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007905
Matan Barakb4ff3a32016-02-09 14:57:42 +02007906 u8 reserved_at_80[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007907 u8 wrps_admin[0x4];
7908
Matan Barakb4ff3a32016-02-09 14:57:42 +02007909 u8 reserved_at_a0[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007910 u8 wrps_status[0x4];
7911
Matan Barakb4ff3a32016-02-09 14:57:42 +02007912 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007913 u8 up_threshold[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007914 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007915 u8 down_threshold[0x8];
7916
Matan Barakb4ff3a32016-02-09 14:57:42 +02007917 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007918
Matan Barakb4ff3a32016-02-09 14:57:42 +02007919 u8 reserved_at_100[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007920 u8 srps_admin[0x4];
7921
Matan Barakb4ff3a32016-02-09 14:57:42 +02007922 u8 reserved_at_120[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007923 u8 srps_status[0x4];
7924
Matan Barakb4ff3a32016-02-09 14:57:42 +02007925 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007926};
7927
7928struct mlx5_ifc_pplr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007929 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007930 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007931 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007932
Matan Barakb4ff3a32016-02-09 14:57:42 +02007933 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007934 u8 lb_cap[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007935 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007936 u8 lb_en[0x8];
7937};
7938
7939struct mlx5_ifc_pplm_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007940 u8 reserved_at_0[0x8];
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03007941 u8 local_port[0x8];
7942 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007943
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03007944 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007945
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03007946 u8 port_profile_mode[0x8];
7947 u8 static_port_profile[0x8];
7948 u8 active_port_profile[0x8];
7949 u8 reserved_at_58[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007950
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03007951 u8 retransmission_active[0x8];
7952 u8 fec_mode_active[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007953
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03007954 u8 rs_fec_correction_bypass_cap[0x4];
7955 u8 reserved_at_84[0x8];
7956 u8 fec_override_cap_56g[0x4];
7957 u8 fec_override_cap_100g[0x4];
7958 u8 fec_override_cap_50g[0x4];
7959 u8 fec_override_cap_25g[0x4];
7960 u8 fec_override_cap_10g_40g[0x4];
7961
7962 u8 rs_fec_correction_bypass_admin[0x4];
7963 u8 reserved_at_a4[0x8];
7964 u8 fec_override_admin_56g[0x4];
7965 u8 fec_override_admin_100g[0x4];
7966 u8 fec_override_admin_50g[0x4];
7967 u8 fec_override_admin_25g[0x4];
7968 u8 fec_override_admin_10g_40g[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007969};
7970
7971struct mlx5_ifc_ppcnt_reg_bits {
7972 u8 swid[0x8];
7973 u8 local_port[0x8];
7974 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007975 u8 reserved_at_12[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007976 u8 grp[0x6];
7977
7978 u8 clr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007979 u8 reserved_at_21[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007980 u8 prio_tc[0x3];
7981
7982 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
7983};
7984
Gal Pressman8ed1a632016-11-17 13:46:01 +02007985struct mlx5_ifc_mpcnt_reg_bits {
7986 u8 reserved_at_0[0x8];
7987 u8 pcie_index[0x8];
7988 u8 reserved_at_10[0xa];
7989 u8 grp[0x6];
7990
7991 u8 clr[0x1];
7992 u8 reserved_at_21[0x1f];
7993
7994 union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits counter_set;
7995};
7996
Saeed Mahameede2816822015-05-28 22:28:40 +03007997struct mlx5_ifc_ppad_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007998 u8 reserved_at_0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03007999 u8 single_mac[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008000 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008001 u8 local_port[0x8];
8002 u8 mac_47_32[0x10];
8003
8004 u8 mac_31_0[0x20];
8005
Matan Barakb4ff3a32016-02-09 14:57:42 +02008006 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008007};
8008
8009struct mlx5_ifc_pmtu_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008010 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008011 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008012 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008013
8014 u8 max_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008015 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008016
8017 u8 admin_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008018 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008019
8020 u8 oper_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008021 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008022};
8023
8024struct mlx5_ifc_pmpr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008025 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008026 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008027 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008028
Matan Barakb4ff3a32016-02-09 14:57:42 +02008029 u8 reserved_at_20[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008030 u8 attenuation_5g[0x8];
8031
Matan Barakb4ff3a32016-02-09 14:57:42 +02008032 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008033 u8 attenuation_7g[0x8];
8034
Matan Barakb4ff3a32016-02-09 14:57:42 +02008035 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008036 u8 attenuation_12g[0x8];
8037};
8038
8039struct mlx5_ifc_pmpe_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008040 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008041 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008042 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008043 u8 module_status[0x4];
8044
Matan Barakb4ff3a32016-02-09 14:57:42 +02008045 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008046};
8047
8048struct mlx5_ifc_pmpc_reg_bits {
8049 u8 module_state_updated[32][0x8];
8050};
8051
8052struct mlx5_ifc_pmlpn_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008053 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008054 u8 mlpn_status[0x4];
8055 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008056 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008057
8058 u8 e[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008059 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008060};
8061
8062struct mlx5_ifc_pmlp_reg_bits {
8063 u8 rxtx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008064 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008065 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008066 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008067 u8 width[0x8];
8068
8069 u8 lane0_module_mapping[0x20];
8070
8071 u8 lane1_module_mapping[0x20];
8072
8073 u8 lane2_module_mapping[0x20];
8074
8075 u8 lane3_module_mapping[0x20];
8076
Matan Barakb4ff3a32016-02-09 14:57:42 +02008077 u8 reserved_at_a0[0x160];
Saeed Mahameede2816822015-05-28 22:28:40 +03008078};
8079
8080struct mlx5_ifc_pmaos_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008081 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008082 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008083 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008084 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008085 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008086 u8 oper_status[0x4];
8087
8088 u8 ase[0x1];
8089 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008090 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03008091 u8 e[0x2];
8092
Matan Barakb4ff3a32016-02-09 14:57:42 +02008093 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008094};
8095
8096struct mlx5_ifc_plpc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008097 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008098 u8 profile_id[0xc];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008099 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008100 u8 proto_mask[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008101 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008102
Matan Barakb4ff3a32016-02-09 14:57:42 +02008103 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008104 u8 lane_speed[0x10];
8105
Matan Barakb4ff3a32016-02-09 14:57:42 +02008106 u8 reserved_at_40[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03008107 u8 lpbf[0x1];
8108 u8 fec_mode_policy[0x8];
8109
8110 u8 retransmission_capability[0x8];
8111 u8 fec_mode_capability[0x18];
8112
8113 u8 retransmission_support_admin[0x8];
8114 u8 fec_mode_support_admin[0x18];
8115
8116 u8 retransmission_request_admin[0x8];
8117 u8 fec_mode_request_admin[0x18];
8118
Matan Barakb4ff3a32016-02-09 14:57:42 +02008119 u8 reserved_at_c0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03008120};
8121
8122struct mlx5_ifc_plib_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008123 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008124 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008125 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008126 u8 ib_port[0x8];
8127
Matan Barakb4ff3a32016-02-09 14:57:42 +02008128 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008129};
8130
8131struct mlx5_ifc_plbf_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008132 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008133 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008134 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03008135 u8 lbf_mode[0x3];
8136
Matan Barakb4ff3a32016-02-09 14:57:42 +02008137 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008138};
8139
8140struct mlx5_ifc_pipg_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008141 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008142 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008143 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008144
8145 u8 dic[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008146 u8 reserved_at_21[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +03008147 u8 ipg[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008148 u8 reserved_at_3e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008149};
8150
8151struct mlx5_ifc_pifr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008152 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008153 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008154 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008155
Matan Barakb4ff3a32016-02-09 14:57:42 +02008156 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008157
8158 u8 port_filter[8][0x20];
8159
8160 u8 port_filter_update_en[8][0x20];
8161};
8162
8163struct mlx5_ifc_pfcc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008164 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008165 u8 local_port[0x8];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008166 u8 reserved_at_10[0xb];
8167 u8 ppan_mask_n[0x1];
8168 u8 minor_stall_mask[0x1];
8169 u8 critical_stall_mask[0x1];
8170 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008171
8172 u8 ppan[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008173 u8 reserved_at_24[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008174 u8 prio_mask_tx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008175 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008176 u8 prio_mask_rx[0x8];
8177
8178 u8 pptx[0x1];
8179 u8 aptx[0x1];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008180 u8 pptx_mask_n[0x1];
8181 u8 reserved_at_43[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03008182 u8 pfctx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008183 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008184
8185 u8 pprx[0x1];
8186 u8 aprx[0x1];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008187 u8 pprx_mask_n[0x1];
8188 u8 reserved_at_63[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03008189 u8 pfcrx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008190 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008191
Inbar Karmy2afa6092017-11-20 18:06:20 +02008192 u8 device_stall_minor_watermark[0x10];
8193 u8 device_stall_critical_watermark[0x10];
8194
8195 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008196};
8197
8198struct mlx5_ifc_pelc_reg_bits {
8199 u8 op[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008200 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008201 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008202 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008203
8204 u8 op_admin[0x8];
8205 u8 op_capability[0x8];
8206 u8 op_request[0x8];
8207 u8 op_active[0x8];
8208
8209 u8 admin[0x40];
8210
8211 u8 capability[0x40];
8212
8213 u8 request[0x40];
8214
8215 u8 active[0x40];
8216
Matan Barakb4ff3a32016-02-09 14:57:42 +02008217 u8 reserved_at_140[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03008218};
8219
8220struct mlx5_ifc_peir_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008221 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008222 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008223 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008224
Matan Barakb4ff3a32016-02-09 14:57:42 +02008225 u8 reserved_at_20[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008226 u8 error_count[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008227 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008228
Matan Barakb4ff3a32016-02-09 14:57:42 +02008229 u8 reserved_at_40[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008230 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008231 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008232 u8 error_type[0x8];
8233};
8234
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008235struct mlx5_ifc_mpegc_reg_bits {
8236 u8 reserved_at_0[0x30];
8237 u8 field_select[0x10];
8238
8239 u8 tx_overflow_sense[0x1];
8240 u8 mark_cqe[0x1];
8241 u8 mark_cnp[0x1];
8242 u8 reserved_at_43[0x1b];
8243 u8 tx_lossy_overflow_oper[0x2];
8244
8245 u8 reserved_at_60[0x100];
8246};
8247
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008248struct mlx5_ifc_pcam_enhanced_features_bits {
Talat Batheesh0af51072018-05-17 11:14:18 +03008249 u8 reserved_at_0[0x6d];
8250 u8 rx_icrc_encapsulated_counter[0x1];
8251 u8 reserved_at_6e[0x8];
Inbar Karmy2fcb12d2017-08-17 16:39:47 +03008252 u8 pfcc_mask[0x1];
Shay Agroskin67daf112018-09-30 09:58:08 +03008253 u8 reserved_at_77[0x3];
8254 u8 per_lane_error_counters[0x1];
Gal Pressman2dba0792017-06-18 14:56:45 +03008255 u8 rx_buffer_fullness_counters[0x1];
Eran Ben Elisha5b4793f2017-02-13 14:00:59 +02008256 u8 ptys_connector_type[0x1];
8257 u8 reserved_at_7d[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008258 u8 ppcnt_discard_group[0x1];
8259 u8 ppcnt_statistical_group[0x1];
8260};
8261
Huy Nguyendf5f1362018-02-28 14:16:47 -06008262struct mlx5_ifc_pcam_regs_5000_to_507f_bits {
8263 u8 port_access_reg_cap_mask_127_to_96[0x20];
8264 u8 port_access_reg_cap_mask_95_to_64[0x20];
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008265
8266 u8 port_access_reg_cap_mask_63_to_36[0x1c];
8267 u8 pplm[0x1];
8268 u8 port_access_reg_cap_mask_34_to_32[0x3];
Huy Nguyendf5f1362018-02-28 14:16:47 -06008269
8270 u8 port_access_reg_cap_mask_31_to_13[0x13];
8271 u8 pbmc[0x1];
8272 u8 pptb[0x1];
8273 u8 port_access_reg_cap_mask_10_to_0[0xb];
8274};
8275
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008276struct mlx5_ifc_pcam_reg_bits {
8277 u8 reserved_at_0[0x8];
8278 u8 feature_group[0x8];
8279 u8 reserved_at_10[0x8];
8280 u8 access_reg_group[0x8];
8281
8282 u8 reserved_at_20[0x20];
8283
8284 union {
Huy Nguyendf5f1362018-02-28 14:16:47 -06008285 struct mlx5_ifc_pcam_regs_5000_to_507f_bits regs_5000_to_507f;
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008286 u8 reserved_at_0[0x80];
8287 } port_access_reg_cap_mask;
8288
8289 u8 reserved_at_c0[0x80];
8290
8291 union {
8292 struct mlx5_ifc_pcam_enhanced_features_bits enhanced_features;
8293 u8 reserved_at_0[0x80];
8294 } feature_cap_mask;
8295
8296 u8 reserved_at_1c0[0xc0];
8297};
8298
8299struct mlx5_ifc_mcam_enhanced_features_bits {
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008300 u8 reserved_at_0[0x74];
8301 u8 mark_tx_action_cnp[0x1];
8302 u8 mark_tx_action_cqe[0x1];
8303 u8 dynamic_tx_overflow[0x1];
8304 u8 reserved_at_77[0x4];
Gal Pressman5405fa22017-06-15 18:29:23 +03008305 u8 pcie_outbound_stalled[0x1];
Eran Ben Elishaefae7f72017-05-12 02:47:02 +03008306 u8 tx_overflow_buffer_pkt[0x1];
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008307 u8 mtpps_enh_out_per_adj[0x1];
8308 u8 mtpps_fs[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008309 u8 pcie_performance_group[0x1];
8310};
8311
Or Gerlitz0ab87742017-06-11 15:25:38 +03008312struct mlx5_ifc_mcam_access_reg_bits {
8313 u8 reserved_at_0[0x1c];
8314 u8 mcda[0x1];
8315 u8 mcc[0x1];
8316 u8 mcqi[0x1];
8317 u8 reserved_at_1f[0x1];
8318
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008319 u8 regs_95_to_87[0x9];
8320 u8 mpegc[0x1];
8321 u8 regs_85_to_68[0x12];
Feras Daoudeff8ea82018-07-16 18:35:30 -07008322 u8 tracer_registers[0x4];
8323
Or Gerlitz0ab87742017-06-11 15:25:38 +03008324 u8 regs_63_to_32[0x20];
8325 u8 regs_31_to_0[0x20];
8326};
8327
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008328struct mlx5_ifc_mcam_reg_bits {
8329 u8 reserved_at_0[0x8];
8330 u8 feature_group[0x8];
8331 u8 reserved_at_10[0x8];
8332 u8 access_reg_group[0x8];
8333
8334 u8 reserved_at_20[0x20];
8335
8336 union {
Or Gerlitz0ab87742017-06-11 15:25:38 +03008337 struct mlx5_ifc_mcam_access_reg_bits access_regs;
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008338 u8 reserved_at_0[0x80];
8339 } mng_access_reg_cap_mask;
8340
8341 u8 reserved_at_c0[0x80];
8342
8343 union {
8344 struct mlx5_ifc_mcam_enhanced_features_bits enhanced_features;
8345 u8 reserved_at_0[0x80];
8346 } mng_feature_cap_mask;
8347
8348 u8 reserved_at_1c0[0x80];
8349};
8350
Huy Nguyenc02762e2017-07-18 16:03:17 -05008351struct mlx5_ifc_qcam_access_reg_cap_mask {
8352 u8 qcam_access_reg_cap_mask_127_to_20[0x6C];
8353 u8 qpdpm[0x1];
8354 u8 qcam_access_reg_cap_mask_18_to_4[0x0F];
8355 u8 qdpm[0x1];
8356 u8 qpts[0x1];
8357 u8 qcap[0x1];
8358 u8 qcam_access_reg_cap_mask_0[0x1];
8359};
8360
8361struct mlx5_ifc_qcam_qos_feature_cap_mask {
8362 u8 qcam_qos_feature_cap_mask_127_to_1[0x7F];
8363 u8 qpts_trust_both[0x1];
8364};
8365
8366struct mlx5_ifc_qcam_reg_bits {
8367 u8 reserved_at_0[0x8];
8368 u8 feature_group[0x8];
8369 u8 reserved_at_10[0x8];
8370 u8 access_reg_group[0x8];
8371 u8 reserved_at_20[0x20];
8372
8373 union {
8374 struct mlx5_ifc_qcam_access_reg_cap_mask reg_cap;
8375 u8 reserved_at_0[0x80];
8376 } qos_access_reg_cap_mask;
8377
8378 u8 reserved_at_c0[0x80];
8379
8380 union {
8381 struct mlx5_ifc_qcam_qos_feature_cap_mask feature_cap;
8382 u8 reserved_at_0[0x80];
8383 } qos_feature_cap_mask;
8384
8385 u8 reserved_at_1c0[0x80];
8386};
8387
Saeed Mahameede2816822015-05-28 22:28:40 +03008388struct mlx5_ifc_pcap_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008389 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008390 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008391 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008392
8393 u8 port_capability_mask[4][0x20];
8394};
8395
8396struct mlx5_ifc_paos_reg_bits {
8397 u8 swid[0x8];
8398 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008399 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008400 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008401 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008402 u8 oper_status[0x4];
8403
8404 u8 ase[0x1];
8405 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008406 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03008407 u8 e[0x2];
8408
Matan Barakb4ff3a32016-02-09 14:57:42 +02008409 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008410};
8411
8412struct mlx5_ifc_pamp_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008413 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008414 u8 opamp_group[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008415 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008416 u8 opamp_group_type[0x4];
8417
8418 u8 start_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008419 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008420 u8 num_of_indices[0xc];
8421
8422 u8 index_data[18][0x10];
8423};
8424
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008425struct mlx5_ifc_pcmr_reg_bits {
8426 u8 reserved_at_0[0x8];
8427 u8 local_port[0x8];
8428 u8 reserved_at_10[0x2e];
8429 u8 fcs_cap[0x1];
8430 u8 reserved_at_3f[0x1f];
8431 u8 fcs_chk[0x1];
8432 u8 reserved_at_5f[0x1];
8433};
8434
Saeed Mahameede2816822015-05-28 22:28:40 +03008435struct mlx5_ifc_lane_2_module_mapping_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008436 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008437 u8 rx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008438 u8 reserved_at_8[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008439 u8 tx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008440 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008441 u8 module[0x8];
8442};
8443
8444struct mlx5_ifc_bufferx_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008445 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008446 u8 lossy[0x1];
8447 u8 epsb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008448 u8 reserved_at_8[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008449 u8 size[0xc];
8450
8451 u8 xoff_threshold[0x10];
8452 u8 xon_threshold[0x10];
8453};
8454
8455struct mlx5_ifc_set_node_in_bits {
8456 u8 node_description[64][0x8];
8457};
8458
8459struct mlx5_ifc_register_power_settings_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008460 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008461 u8 power_settings_level[0x8];
8462
Matan Barakb4ff3a32016-02-09 14:57:42 +02008463 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008464};
8465
8466struct mlx5_ifc_register_host_endianness_bits {
8467 u8 he[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008468 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008469
Matan Barakb4ff3a32016-02-09 14:57:42 +02008470 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008471};
8472
8473struct mlx5_ifc_umr_pointer_desc_argument_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008474 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008475
8476 u8 mkey[0x20];
8477
8478 u8 addressh_63_32[0x20];
8479
8480 u8 addressl_31_0[0x20];
8481};
8482
8483struct mlx5_ifc_ud_adrs_vector_bits {
8484 u8 dc_key[0x40];
8485
8486 u8 ext[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008487 u8 reserved_at_41[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008488 u8 destination_qp_dct[0x18];
8489
8490 u8 static_rate[0x4];
8491 u8 sl_eth_prio[0x4];
8492 u8 fl[0x1];
8493 u8 mlid[0x7];
8494 u8 rlid_udp_sport[0x10];
8495
Matan Barakb4ff3a32016-02-09 14:57:42 +02008496 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008497
8498 u8 rmac_47_16[0x20];
8499
8500 u8 rmac_15_0[0x10];
8501 u8 tclass[0x8];
8502 u8 hop_limit[0x8];
8503
Matan Barakb4ff3a32016-02-09 14:57:42 +02008504 u8 reserved_at_e0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03008505 u8 grh[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008506 u8 reserved_at_e2[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008507 u8 src_addr_index[0x8];
8508 u8 flow_label[0x14];
8509
8510 u8 rgid_rip[16][0x8];
8511};
8512
8513struct mlx5_ifc_pages_req_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008514 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008515 u8 function_id[0x10];
8516
8517 u8 num_pages[0x20];
8518
Matan Barakb4ff3a32016-02-09 14:57:42 +02008519 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008520};
8521
8522struct mlx5_ifc_eqe_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008523 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008524 u8 event_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008525 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008526 u8 event_sub_type[0x8];
8527
Matan Barakb4ff3a32016-02-09 14:57:42 +02008528 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008529
8530 union mlx5_ifc_event_auto_bits event_data;
8531
Matan Barakb4ff3a32016-02-09 14:57:42 +02008532 u8 reserved_at_1e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008533 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008534 u8 reserved_at_1f8[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008535 u8 owner[0x1];
8536};
8537
8538enum {
8539 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
8540};
8541
8542struct mlx5_ifc_cmd_queue_entry_bits {
8543 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008544 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008545
8546 u8 input_length[0x20];
8547
8548 u8 input_mailbox_pointer_63_32[0x20];
8549
8550 u8 input_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008551 u8 reserved_at_77[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03008552
8553 u8 command_input_inline_data[16][0x8];
8554
8555 u8 command_output_inline_data[16][0x8];
8556
8557 u8 output_mailbox_pointer_63_32[0x20];
8558
8559 u8 output_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008560 u8 reserved_at_1b7[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03008561
8562 u8 output_length[0x20];
8563
8564 u8 token[0x8];
8565 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008566 u8 reserved_at_1f0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008567 u8 status[0x7];
8568 u8 ownership[0x1];
8569};
8570
8571struct mlx5_ifc_cmd_out_bits {
8572 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008573 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008574
8575 u8 syndrome[0x20];
8576
8577 u8 command_output[0x20];
8578};
8579
8580struct mlx5_ifc_cmd_in_bits {
8581 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008582 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008583
Matan Barakb4ff3a32016-02-09 14:57:42 +02008584 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008585 u8 op_mod[0x10];
8586
8587 u8 command[0][0x20];
8588};
8589
8590struct mlx5_ifc_cmd_if_box_bits {
8591 u8 mailbox_data[512][0x8];
8592
Matan Barakb4ff3a32016-02-09 14:57:42 +02008593 u8 reserved_at_1000[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03008594
8595 u8 next_pointer_63_32[0x20];
8596
8597 u8 next_pointer_31_10[0x16];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008598 u8 reserved_at_11b6[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +03008599
8600 u8 block_number[0x20];
8601
Matan Barakb4ff3a32016-02-09 14:57:42 +02008602 u8 reserved_at_11e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008603 u8 token[0x8];
8604 u8 ctrl_signature[0x8];
8605 u8 signature[0x8];
8606};
8607
8608struct mlx5_ifc_mtt_bits {
8609 u8 ptag_63_32[0x20];
8610
8611 u8 ptag_31_8[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008612 u8 reserved_at_38[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008613 u8 wr_en[0x1];
8614 u8 rd_en[0x1];
8615};
8616
Tariq Toukan928cfe82016-02-22 18:17:29 +02008617struct mlx5_ifc_query_wol_rol_out_bits {
8618 u8 status[0x8];
8619 u8 reserved_at_8[0x18];
8620
8621 u8 syndrome[0x20];
8622
8623 u8 reserved_at_40[0x10];
8624 u8 rol_mode[0x8];
8625 u8 wol_mode[0x8];
8626
8627 u8 reserved_at_60[0x20];
8628};
8629
8630struct mlx5_ifc_query_wol_rol_in_bits {
8631 u8 opcode[0x10];
8632 u8 reserved_at_10[0x10];
8633
8634 u8 reserved_at_20[0x10];
8635 u8 op_mod[0x10];
8636
8637 u8 reserved_at_40[0x40];
8638};
8639
8640struct mlx5_ifc_set_wol_rol_out_bits {
8641 u8 status[0x8];
8642 u8 reserved_at_8[0x18];
8643
8644 u8 syndrome[0x20];
8645
8646 u8 reserved_at_40[0x40];
8647};
8648
8649struct mlx5_ifc_set_wol_rol_in_bits {
8650 u8 opcode[0x10];
8651 u8 reserved_at_10[0x10];
8652
8653 u8 reserved_at_20[0x10];
8654 u8 op_mod[0x10];
8655
8656 u8 rol_mode_valid[0x1];
8657 u8 wol_mode_valid[0x1];
8658 u8 reserved_at_42[0xe];
8659 u8 rol_mode[0x8];
8660 u8 wol_mode[0x8];
8661
8662 u8 reserved_at_60[0x20];
8663};
8664
Saeed Mahameede2816822015-05-28 22:28:40 +03008665enum {
8666 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
8667 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
8668 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
8669};
8670
8671enum {
8672 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
8673 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
8674 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
8675};
8676
8677enum {
8678 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
8679 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
8680 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
8681 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
8682 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
8683 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
8684 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
8685 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
8686 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
8687 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
8688 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
8689};
8690
8691struct mlx5_ifc_initial_seg_bits {
8692 u8 fw_rev_minor[0x10];
8693 u8 fw_rev_major[0x10];
8694
8695 u8 cmd_interface_rev[0x10];
8696 u8 fw_rev_subminor[0x10];
8697
Matan Barakb4ff3a32016-02-09 14:57:42 +02008698 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008699
8700 u8 cmdq_phy_addr_63_32[0x20];
8701
8702 u8 cmdq_phy_addr_31_12[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008703 u8 reserved_at_b4[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008704 u8 nic_interface[0x2];
8705 u8 log_cmdq_size[0x4];
8706 u8 log_cmdq_stride[0x4];
8707
8708 u8 command_doorbell_vector[0x20];
8709
Matan Barakb4ff3a32016-02-09 14:57:42 +02008710 u8 reserved_at_e0[0xf00];
Saeed Mahameede2816822015-05-28 22:28:40 +03008711
8712 u8 initializing[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008713 u8 reserved_at_fe1[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008714 u8 nic_interface_supported[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008715 u8 reserved_at_fe8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008716
8717 struct mlx5_ifc_health_buffer_bits health_buffer;
8718
8719 u8 no_dram_nic_offset[0x20];
8720
Matan Barakb4ff3a32016-02-09 14:57:42 +02008721 u8 reserved_at_1220[0x6e40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008722
Matan Barakb4ff3a32016-02-09 14:57:42 +02008723 u8 reserved_at_8060[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008724 u8 clear_int[0x1];
8725
8726 u8 health_syndrome[0x8];
8727 u8 health_counter[0x18];
8728
Matan Barakb4ff3a32016-02-09 14:57:42 +02008729 u8 reserved_at_80a0[0x17fc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008730};
8731
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008732struct mlx5_ifc_mtpps_reg_bits {
8733 u8 reserved_at_0[0xc];
8734 u8 cap_number_of_pps_pins[0x4];
8735 u8 reserved_at_10[0x4];
8736 u8 cap_max_num_of_pps_in_pins[0x4];
8737 u8 reserved_at_18[0x4];
8738 u8 cap_max_num_of_pps_out_pins[0x4];
8739
8740 u8 reserved_at_20[0x24];
8741 u8 cap_pin_3_mode[0x4];
8742 u8 reserved_at_48[0x4];
8743 u8 cap_pin_2_mode[0x4];
8744 u8 reserved_at_50[0x4];
8745 u8 cap_pin_1_mode[0x4];
8746 u8 reserved_at_58[0x4];
8747 u8 cap_pin_0_mode[0x4];
8748
8749 u8 reserved_at_60[0x4];
8750 u8 cap_pin_7_mode[0x4];
8751 u8 reserved_at_68[0x4];
8752 u8 cap_pin_6_mode[0x4];
8753 u8 reserved_at_70[0x4];
8754 u8 cap_pin_5_mode[0x4];
8755 u8 reserved_at_78[0x4];
8756 u8 cap_pin_4_mode[0x4];
8757
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008758 u8 field_select[0x20];
8759 u8 reserved_at_a0[0x60];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008760
8761 u8 enable[0x1];
8762 u8 reserved_at_101[0xb];
8763 u8 pattern[0x4];
8764 u8 reserved_at_110[0x4];
8765 u8 pin_mode[0x4];
8766 u8 pin[0x8];
8767
8768 u8 reserved_at_120[0x20];
8769
8770 u8 time_stamp[0x40];
8771
8772 u8 out_pulse_duration[0x10];
8773 u8 out_periodic_adjustment[0x10];
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008774 u8 enhanced_out_periodic_adjustment[0x20];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008775
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008776 u8 reserved_at_1c0[0x20];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008777};
8778
8779struct mlx5_ifc_mtppse_reg_bits {
8780 u8 reserved_at_0[0x18];
8781 u8 pin[0x8];
8782 u8 event_arm[0x1];
8783 u8 reserved_at_21[0x1b];
8784 u8 event_generation_mode[0x4];
8785 u8 reserved_at_40[0x40];
8786};
8787
Or Gerlitz47176282017-04-18 13:35:39 +03008788struct mlx5_ifc_mcqi_cap_bits {
8789 u8 supported_info_bitmask[0x20];
8790
8791 u8 component_size[0x20];
8792
8793 u8 max_component_size[0x20];
8794
8795 u8 log_mcda_word_size[0x4];
8796 u8 reserved_at_64[0xc];
8797 u8 mcda_max_write_size[0x10];
8798
8799 u8 rd_en[0x1];
8800 u8 reserved_at_81[0x1];
8801 u8 match_chip_id[0x1];
8802 u8 match_psid[0x1];
8803 u8 check_user_timestamp[0x1];
8804 u8 match_base_guid_mac[0x1];
8805 u8 reserved_at_86[0x1a];
8806};
8807
8808struct mlx5_ifc_mcqi_reg_bits {
8809 u8 read_pending_component[0x1];
8810 u8 reserved_at_1[0xf];
8811 u8 component_index[0x10];
8812
8813 u8 reserved_at_20[0x20];
8814
8815 u8 reserved_at_40[0x1b];
8816 u8 info_type[0x5];
8817
8818 u8 info_size[0x20];
8819
8820 u8 offset[0x20];
8821
8822 u8 reserved_at_a0[0x10];
8823 u8 data_size[0x10];
8824
8825 u8 data[0][0x20];
8826};
8827
8828struct mlx5_ifc_mcc_reg_bits {
8829 u8 reserved_at_0[0x4];
8830 u8 time_elapsed_since_last_cmd[0xc];
8831 u8 reserved_at_10[0x8];
8832 u8 instruction[0x8];
8833
8834 u8 reserved_at_20[0x10];
8835 u8 component_index[0x10];
8836
8837 u8 reserved_at_40[0x8];
8838 u8 update_handle[0x18];
8839
8840 u8 handle_owner_type[0x4];
8841 u8 handle_owner_host_id[0x4];
8842 u8 reserved_at_68[0x1];
8843 u8 control_progress[0x7];
8844 u8 error_code[0x8];
8845 u8 reserved_at_78[0x4];
8846 u8 control_state[0x4];
8847
8848 u8 component_size[0x20];
8849
8850 u8 reserved_at_a0[0x60];
8851};
8852
8853struct mlx5_ifc_mcda_reg_bits {
8854 u8 reserved_at_0[0x8];
8855 u8 update_handle[0x18];
8856
8857 u8 offset[0x20];
8858
8859 u8 reserved_at_40[0x10];
8860 u8 size[0x10];
8861
8862 u8 reserved_at_60[0x20];
8863
8864 u8 data[0][0x20];
8865};
8866
Saeed Mahameede2816822015-05-28 22:28:40 +03008867union mlx5_ifc_ports_control_registers_document_bits {
8868 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
8869 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
8870 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
8871 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
8872 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
8873 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
8874 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
8875 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
8876 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
8877 struct mlx5_ifc_pamp_reg_bits pamp_reg;
8878 struct mlx5_ifc_paos_reg_bits paos_reg;
8879 struct mlx5_ifc_pcap_reg_bits pcap_reg;
8880 struct mlx5_ifc_peir_reg_bits peir_reg;
8881 struct mlx5_ifc_pelc_reg_bits pelc_reg;
8882 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02008883 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03008884 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
8885 struct mlx5_ifc_pifr_reg_bits pifr_reg;
8886 struct mlx5_ifc_pipg_reg_bits pipg_reg;
8887 struct mlx5_ifc_plbf_reg_bits plbf_reg;
8888 struct mlx5_ifc_plib_reg_bits plib_reg;
8889 struct mlx5_ifc_plpc_reg_bits plpc_reg;
8890 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
8891 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
8892 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
8893 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
8894 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
8895 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
8896 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
8897 struct mlx5_ifc_ppad_reg_bits ppad_reg;
8898 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
Gal Pressman8ed1a632016-11-17 13:46:01 +02008899 struct mlx5_ifc_mpcnt_reg_bits mpcnt_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03008900 struct mlx5_ifc_pplm_reg_bits pplm_reg;
8901 struct mlx5_ifc_pplr_reg_bits pplr_reg;
8902 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
8903 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
8904 struct mlx5_ifc_pspa_reg_bits pspa_reg;
8905 struct mlx5_ifc_ptas_reg_bits ptas_reg;
8906 struct mlx5_ifc_ptys_reg_bits ptys_reg;
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008907 struct mlx5_ifc_mlcr_reg_bits mlcr_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03008908 struct mlx5_ifc_pude_reg_bits pude_reg;
8909 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
8910 struct mlx5_ifc_slrg_reg_bits slrg_reg;
8911 struct mlx5_ifc_sltp_reg_bits sltp_reg;
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008912 struct mlx5_ifc_mtpps_reg_bits mtpps_reg;
8913 struct mlx5_ifc_mtppse_reg_bits mtppse_reg;
Ilan Tayaria9956d32017-04-18 13:10:41 +03008914 struct mlx5_ifc_fpga_access_reg_bits fpga_access_reg;
Ilan Tayarie29341f2017-03-13 20:05:45 +02008915 struct mlx5_ifc_fpga_ctrl_bits fpga_ctrl_bits;
8916 struct mlx5_ifc_fpga_cap_bits fpga_cap_bits;
Or Gerlitz47176282017-04-18 13:35:39 +03008917 struct mlx5_ifc_mcqi_reg_bits mcqi_reg;
8918 struct mlx5_ifc_mcc_reg_bits mcc_reg;
8919 struct mlx5_ifc_mcda_reg_bits mcda_reg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02008920 u8 reserved_at_0[0x60e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008921};
8922
8923union mlx5_ifc_debug_enhancements_document_bits {
8924 struct mlx5_ifc_health_buffer_bits health_buffer;
Matan Barakb4ff3a32016-02-09 14:57:42 +02008925 u8 reserved_at_0[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +03008926};
8927
8928union mlx5_ifc_uplink_pci_interface_document_bits {
8929 struct mlx5_ifc_initial_seg_bits initial_seg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02008930 u8 reserved_at_0[0x20060];
Eli Cohenb7755162014-10-02 12:19:44 +03008931};
8932
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008933struct mlx5_ifc_set_flow_table_root_out_bits {
8934 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008935 u8 reserved_at_8[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008936
8937 u8 syndrome[0x20];
8938
Matan Barakb4ff3a32016-02-09 14:57:42 +02008939 u8 reserved_at_40[0x40];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008940};
8941
8942struct mlx5_ifc_set_flow_table_root_in_bits {
8943 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008944 u8 reserved_at_10[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008945
Matan Barakb4ff3a32016-02-09 14:57:42 +02008946 u8 reserved_at_20[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008947 u8 op_mod[0x10];
8948
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008949 u8 other_vport[0x1];
8950 u8 reserved_at_41[0xf];
8951 u8 vport_number[0x10];
8952
8953 u8 reserved_at_60[0x20];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008954
8955 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008956 u8 reserved_at_88[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008957
Matan Barakb4ff3a32016-02-09 14:57:42 +02008958 u8 reserved_at_a0[0x8];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008959 u8 table_id[0x18];
8960
Erez Shitrit500a3d02017-04-13 06:36:51 +03008961 u8 reserved_at_c0[0x8];
8962 u8 underlay_qpn[0x18];
8963 u8 reserved_at_e0[0x120];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008964};
8965
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008966enum {
Aviv Heller84df61e2016-05-10 13:47:50 +03008967 MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = (1UL << 0),
8968 MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID = (1UL << 15),
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008969};
8970
8971struct mlx5_ifc_modify_flow_table_out_bits {
8972 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008973 u8 reserved_at_8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008974
8975 u8 syndrome[0x20];
8976
Matan Barakb4ff3a32016-02-09 14:57:42 +02008977 u8 reserved_at_40[0x40];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008978};
8979
8980struct mlx5_ifc_modify_flow_table_in_bits {
8981 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008982 u8 reserved_at_10[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008983
Matan Barakb4ff3a32016-02-09 14:57:42 +02008984 u8 reserved_at_20[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008985 u8 op_mod[0x10];
8986
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008987 u8 other_vport[0x1];
8988 u8 reserved_at_41[0xf];
8989 u8 vport_number[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008990
Matan Barakb4ff3a32016-02-09 14:57:42 +02008991 u8 reserved_at_60[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008992 u8 modify_field_select[0x10];
8993
8994 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008995 u8 reserved_at_88[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008996
Matan Barakb4ff3a32016-02-09 14:57:42 +02008997 u8 reserved_at_a0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008998 u8 table_id[0x18];
8999
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02009000 struct mlx5_ifc_flow_table_context_bits flow_table_context;
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009001};
9002
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02009003struct mlx5_ifc_ets_tcn_config_reg_bits {
9004 u8 g[0x1];
9005 u8 b[0x1];
9006 u8 r[0x1];
9007 u8 reserved_at_3[0x9];
9008 u8 group[0x4];
9009 u8 reserved_at_10[0x9];
9010 u8 bw_allocation[0x7];
9011
9012 u8 reserved_at_20[0xc];
9013 u8 max_bw_units[0x4];
9014 u8 reserved_at_30[0x8];
9015 u8 max_bw_value[0x8];
9016};
9017
9018struct mlx5_ifc_ets_global_config_reg_bits {
9019 u8 reserved_at_0[0x2];
9020 u8 r[0x1];
9021 u8 reserved_at_3[0x1d];
9022
9023 u8 reserved_at_20[0xc];
9024 u8 max_bw_units[0x4];
9025 u8 reserved_at_30[0x8];
9026 u8 max_bw_value[0x8];
9027};
9028
9029struct mlx5_ifc_qetc_reg_bits {
9030 u8 reserved_at_0[0x8];
9031 u8 port_number[0x8];
9032 u8 reserved_at_10[0x30];
9033
9034 struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8];
9035 struct mlx5_ifc_ets_global_config_reg_bits global_configuration;
9036};
9037
Huy Nguyen415a64a2017-07-18 16:08:46 -05009038struct mlx5_ifc_qpdpm_dscp_reg_bits {
9039 u8 e[0x1];
9040 u8 reserved_at_01[0x0b];
9041 u8 prio[0x04];
9042};
9043
9044struct mlx5_ifc_qpdpm_reg_bits {
9045 u8 reserved_at_0[0x8];
9046 u8 local_port[0x8];
9047 u8 reserved_at_10[0x10];
9048 struct mlx5_ifc_qpdpm_dscp_reg_bits dscp[64];
9049};
9050
9051struct mlx5_ifc_qpts_reg_bits {
9052 u8 reserved_at_0[0x8];
9053 u8 local_port[0x8];
9054 u8 reserved_at_10[0x2d];
9055 u8 trust_state[0x3];
9056};
9057
Huy Nguyen50b4a3c2018-03-02 15:47:01 -06009058struct mlx5_ifc_pptb_reg_bits {
9059 u8 reserved_at_0[0x2];
9060 u8 mm[0x2];
9061 u8 reserved_at_4[0x4];
9062 u8 local_port[0x8];
9063 u8 reserved_at_10[0x6];
9064 u8 cm[0x1];
9065 u8 um[0x1];
9066 u8 pm[0x8];
9067
9068 u8 prio_x_buff[0x20];
9069
9070 u8 pm_msb[0x8];
9071 u8 reserved_at_48[0x10];
9072 u8 ctrl_buff[0x4];
9073 u8 untagged_buff[0x4];
9074};
9075
9076struct mlx5_ifc_pbmc_reg_bits {
9077 u8 reserved_at_0[0x8];
9078 u8 local_port[0x8];
9079 u8 reserved_at_10[0x10];
9080
9081 u8 xoff_timer_value[0x10];
9082 u8 xoff_refresh[0x10];
9083
9084 u8 reserved_at_40[0x9];
9085 u8 fullness_threshold[0x7];
9086 u8 port_buffer_size[0x10];
9087
9088 struct mlx5_ifc_bufferx_reg_bits buffer[10];
9089
9090 u8 reserved_at_2e0[0x40];
9091};
9092
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02009093struct mlx5_ifc_qtct_reg_bits {
9094 u8 reserved_at_0[0x8];
9095 u8 port_number[0x8];
9096 u8 reserved_at_10[0xd];
9097 u8 prio[0x3];
9098
9099 u8 reserved_at_20[0x1d];
9100 u8 tclass[0x3];
9101};
9102
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009103struct mlx5_ifc_mcia_reg_bits {
9104 u8 l[0x1];
9105 u8 reserved_at_1[0x7];
9106 u8 module[0x8];
9107 u8 reserved_at_10[0x8];
9108 u8 status[0x8];
9109
9110 u8 i2c_device_address[0x8];
9111 u8 page_number[0x8];
9112 u8 device_address[0x10];
9113
9114 u8 reserved_at_40[0x10];
9115 u8 size[0x10];
9116
9117 u8 reserved_at_60[0x20];
9118
9119 u8 dword_0[0x20];
9120 u8 dword_1[0x20];
9121 u8 dword_2[0x20];
9122 u8 dword_3[0x20];
9123 u8 dword_4[0x20];
9124 u8 dword_5[0x20];
9125 u8 dword_6[0x20];
9126 u8 dword_7[0x20];
9127 u8 dword_8[0x20];
9128 u8 dword_9[0x20];
9129 u8 dword_10[0x20];
9130 u8 dword_11[0x20];
9131};
9132
Saeed Mahameed74862162016-06-09 15:11:34 +03009133struct mlx5_ifc_dcbx_param_bits {
9134 u8 dcbx_cee_cap[0x1];
9135 u8 dcbx_ieee_cap[0x1];
9136 u8 dcbx_standby_cap[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +02009137 u8 reserved_at_3[0x5];
Saeed Mahameed74862162016-06-09 15:11:34 +03009138 u8 port_number[0x8];
9139 u8 reserved_at_10[0xa];
9140 u8 max_application_table_size[6];
9141 u8 reserved_at_20[0x15];
9142 u8 version_oper[0x3];
9143 u8 reserved_at_38[5];
9144 u8 version_admin[0x3];
9145 u8 willing_admin[0x1];
9146 u8 reserved_at_41[0x3];
9147 u8 pfc_cap_oper[0x4];
9148 u8 reserved_at_48[0x4];
9149 u8 pfc_cap_admin[0x4];
9150 u8 reserved_at_50[0x4];
9151 u8 num_of_tc_oper[0x4];
9152 u8 reserved_at_58[0x4];
9153 u8 num_of_tc_admin[0x4];
9154 u8 remote_willing[0x1];
9155 u8 reserved_at_61[3];
9156 u8 remote_pfc_cap[4];
9157 u8 reserved_at_68[0x14];
9158 u8 remote_num_of_tc[0x4];
9159 u8 reserved_at_80[0x18];
9160 u8 error[0x8];
9161 u8 reserved_at_a0[0x160];
9162};
Aviv Heller84df61e2016-05-10 13:47:50 +03009163
9164struct mlx5_ifc_lagc_bits {
9165 u8 reserved_at_0[0x1d];
9166 u8 lag_state[0x3];
9167
9168 u8 reserved_at_20[0x14];
9169 u8 tx_remap_affinity_2[0x4];
9170 u8 reserved_at_38[0x4];
9171 u8 tx_remap_affinity_1[0x4];
9172};
9173
9174struct mlx5_ifc_create_lag_out_bits {
9175 u8 status[0x8];
9176 u8 reserved_at_8[0x18];
9177
9178 u8 syndrome[0x20];
9179
9180 u8 reserved_at_40[0x40];
9181};
9182
9183struct mlx5_ifc_create_lag_in_bits {
9184 u8 opcode[0x10];
9185 u8 reserved_at_10[0x10];
9186
9187 u8 reserved_at_20[0x10];
9188 u8 op_mod[0x10];
9189
9190 struct mlx5_ifc_lagc_bits ctx;
9191};
9192
9193struct mlx5_ifc_modify_lag_out_bits {
9194 u8 status[0x8];
9195 u8 reserved_at_8[0x18];
9196
9197 u8 syndrome[0x20];
9198
9199 u8 reserved_at_40[0x40];
9200};
9201
9202struct mlx5_ifc_modify_lag_in_bits {
9203 u8 opcode[0x10];
9204 u8 reserved_at_10[0x10];
9205
9206 u8 reserved_at_20[0x10];
9207 u8 op_mod[0x10];
9208
9209 u8 reserved_at_40[0x20];
9210 u8 field_select[0x20];
9211
9212 struct mlx5_ifc_lagc_bits ctx;
9213};
9214
9215struct mlx5_ifc_query_lag_out_bits {
9216 u8 status[0x8];
9217 u8 reserved_at_8[0x18];
9218
9219 u8 syndrome[0x20];
9220
9221 u8 reserved_at_40[0x40];
9222
9223 struct mlx5_ifc_lagc_bits ctx;
9224};
9225
9226struct mlx5_ifc_query_lag_in_bits {
9227 u8 opcode[0x10];
9228 u8 reserved_at_10[0x10];
9229
9230 u8 reserved_at_20[0x10];
9231 u8 op_mod[0x10];
9232
9233 u8 reserved_at_40[0x40];
9234};
9235
9236struct mlx5_ifc_destroy_lag_out_bits {
9237 u8 status[0x8];
9238 u8 reserved_at_8[0x18];
9239
9240 u8 syndrome[0x20];
9241
9242 u8 reserved_at_40[0x40];
9243};
9244
9245struct mlx5_ifc_destroy_lag_in_bits {
9246 u8 opcode[0x10];
9247 u8 reserved_at_10[0x10];
9248
9249 u8 reserved_at_20[0x10];
9250 u8 op_mod[0x10];
9251
9252 u8 reserved_at_40[0x40];
9253};
9254
9255struct mlx5_ifc_create_vport_lag_out_bits {
9256 u8 status[0x8];
9257 u8 reserved_at_8[0x18];
9258
9259 u8 syndrome[0x20];
9260
9261 u8 reserved_at_40[0x40];
9262};
9263
9264struct mlx5_ifc_create_vport_lag_in_bits {
9265 u8 opcode[0x10];
9266 u8 reserved_at_10[0x10];
9267
9268 u8 reserved_at_20[0x10];
9269 u8 op_mod[0x10];
9270
9271 u8 reserved_at_40[0x40];
9272};
9273
9274struct mlx5_ifc_destroy_vport_lag_out_bits {
9275 u8 status[0x8];
9276 u8 reserved_at_8[0x18];
9277
9278 u8 syndrome[0x20];
9279
9280 u8 reserved_at_40[0x40];
9281};
9282
9283struct mlx5_ifc_destroy_vport_lag_in_bits {
9284 u8 opcode[0x10];
9285 u8 reserved_at_10[0x10];
9286
9287 u8 reserved_at_20[0x10];
9288 u8 op_mod[0x10];
9289
9290 u8 reserved_at_40[0x40];
9291};
9292
Ariel Levkovich24da0012018-04-05 18:53:27 +03009293struct mlx5_ifc_alloc_memic_in_bits {
9294 u8 opcode[0x10];
9295 u8 reserved_at_10[0x10];
9296
9297 u8 reserved_at_20[0x10];
9298 u8 op_mod[0x10];
9299
9300 u8 reserved_at_30[0x20];
9301
9302 u8 reserved_at_40[0x18];
9303 u8 log_memic_addr_alignment[0x8];
9304
9305 u8 range_start_addr[0x40];
9306
9307 u8 range_size[0x20];
9308
9309 u8 memic_size[0x20];
9310};
9311
9312struct mlx5_ifc_alloc_memic_out_bits {
9313 u8 status[0x8];
9314 u8 reserved_at_8[0x18];
9315
9316 u8 syndrome[0x20];
9317
9318 u8 memic_start_addr[0x40];
9319};
9320
9321struct mlx5_ifc_dealloc_memic_in_bits {
9322 u8 opcode[0x10];
9323 u8 reserved_at_10[0x10];
9324
9325 u8 reserved_at_20[0x10];
9326 u8 op_mod[0x10];
9327
9328 u8 reserved_at_40[0x40];
9329
9330 u8 memic_start_addr[0x40];
9331
9332 u8 memic_size[0x20];
9333
9334 u8 reserved_at_e0[0x20];
9335};
9336
9337struct mlx5_ifc_dealloc_memic_out_bits {
9338 u8 status[0x8];
9339 u8 reserved_at_8[0x18];
9340
9341 u8 syndrome[0x20];
9342
9343 u8 reserved_at_40[0x40];
9344};
9345
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009346struct mlx5_ifc_general_obj_in_cmd_hdr_bits {
9347 u8 opcode[0x10];
9348 u8 uid[0x10];
9349
9350 u8 reserved_at_20[0x10];
9351 u8 obj_type[0x10];
9352
9353 u8 obj_id[0x20];
9354
9355 u8 reserved_at_60[0x20];
9356};
9357
9358struct mlx5_ifc_general_obj_out_cmd_hdr_bits {
9359 u8 status[0x8];
9360 u8 reserved_at_8[0x18];
9361
9362 u8 syndrome[0x20];
9363
9364 u8 obj_id[0x20];
9365
9366 u8 reserved_at_60[0x20];
9367};
9368
9369struct mlx5_ifc_umem_bits {
9370 u8 modify_field_select[0x40];
9371
9372 u8 reserved_at_40[0x5b];
9373 u8 log_page_size[0x5];
9374
9375 u8 page_offset[0x20];
9376
9377 u8 num_of_mtt[0x40];
9378
9379 struct mlx5_ifc_mtt_bits mtt[0];
9380};
9381
9382struct mlx5_ifc_uctx_bits {
9383 u8 modify_field_select[0x40];
9384
Yishai Hadas9d43faa2018-11-26 08:28:32 +02009385 u8 cap[0x20];
9386
9387 u8 reserved_at_60[0x1a0];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009388};
9389
9390struct mlx5_ifc_create_umem_in_bits {
9391 struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
9392 struct mlx5_ifc_umem_bits umem;
9393};
9394
9395struct mlx5_ifc_create_uctx_in_bits {
9396 struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
9397 struct mlx5_ifc_uctx_bits uctx;
9398};
9399
Feras Daoudeff8ea82018-07-16 18:35:30 -07009400struct mlx5_ifc_mtrc_string_db_param_bits {
9401 u8 string_db_base_address[0x20];
9402
9403 u8 reserved_at_20[0x8];
9404 u8 string_db_size[0x18];
9405};
9406
9407struct mlx5_ifc_mtrc_cap_bits {
9408 u8 trace_owner[0x1];
9409 u8 trace_to_memory[0x1];
9410 u8 reserved_at_2[0x4];
9411 u8 trc_ver[0x2];
9412 u8 reserved_at_8[0x14];
9413 u8 num_string_db[0x4];
9414
9415 u8 first_string_trace[0x8];
9416 u8 num_string_trace[0x8];
9417 u8 reserved_at_30[0x28];
9418
9419 u8 log_max_trace_buffer_size[0x8];
9420
9421 u8 reserved_at_60[0x20];
9422
9423 struct mlx5_ifc_mtrc_string_db_param_bits string_db_param[8];
9424
9425 u8 reserved_at_280[0x180];
9426};
9427
9428struct mlx5_ifc_mtrc_conf_bits {
9429 u8 reserved_at_0[0x1c];
9430 u8 trace_mode[0x4];
9431 u8 reserved_at_20[0x18];
9432 u8 log_trace_buffer_size[0x8];
9433 u8 trace_mkey[0x20];
9434 u8 reserved_at_60[0x3a0];
9435};
9436
9437struct mlx5_ifc_mtrc_stdb_bits {
9438 u8 string_db_index[0x4];
9439 u8 reserved_at_4[0x4];
9440 u8 read_size[0x18];
9441 u8 start_offset[0x20];
9442 u8 string_db_data[0];
9443};
9444
9445struct mlx5_ifc_mtrc_ctrl_bits {
9446 u8 trace_status[0x2];
9447 u8 reserved_at_2[0x2];
9448 u8 arm_event[0x1];
9449 u8 reserved_at_5[0xb];
9450 u8 modify_field_select[0x10];
9451 u8 reserved_at_20[0x2b];
9452 u8 current_timestamp52_32[0x15];
9453 u8 current_timestamp31_0[0x20];
9454 u8 reserved_at_80[0x180];
9455};
9456
Eli Cohend29b7962014-10-02 12:19:43 +03009457#endif /* MLX5_IFC_H */