blob: 8bb9fe6e99d9412e914c1dbac091e5942a55b386 [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,
Moni Shoua46861e32019-01-22 08:48:51 +020075 MLX5_SET_HCA_CAP_OP_MOD_ODP = 0x2,
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +020076 MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3,
77};
78
79enum {
Leon Romanovsky2acc7952018-12-06 14:40:11 +020080 MLX5_SHARED_RESOURCE_UID = 0xffff,
Yishai Hadas38b7ca92018-03-08 14:36:27 +020081};
82
83enum {
Ariel Levkovich9fba2b92019-03-31 19:44:43 +030084 MLX5_OBJ_TYPE_SW_ICM = 0x0008,
85};
86
87enum {
88 MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM = (1ULL << MLX5_OBJ_TYPE_SW_ICM),
89};
90
91enum {
Eli Cohend29b7962014-10-02 12:19:43 +030092 MLX5_CMD_OP_QUERY_HCA_CAP = 0x100,
93 MLX5_CMD_OP_QUERY_ADAPTER = 0x101,
94 MLX5_CMD_OP_INIT_HCA = 0x102,
95 MLX5_CMD_OP_TEARDOWN_HCA = 0x103,
96 MLX5_CMD_OP_ENABLE_HCA = 0x104,
97 MLX5_CMD_OP_DISABLE_HCA = 0x105,
98 MLX5_CMD_OP_QUERY_PAGES = 0x107,
99 MLX5_CMD_OP_MANAGE_PAGES = 0x108,
100 MLX5_CMD_OP_SET_HCA_CAP = 0x109,
Saeed Mahameede2816822015-05-28 22:28:40 +0300101 MLX5_CMD_OP_QUERY_ISSI = 0x10a,
102 MLX5_CMD_OP_SET_ISSI = 0x10b,
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +0200103 MLX5_CMD_OP_SET_DRIVER_VERSION = 0x10d,
Eli Cohend29b7962014-10-02 12:19:43 +0300104 MLX5_CMD_OP_CREATE_MKEY = 0x200,
105 MLX5_CMD_OP_QUERY_MKEY = 0x201,
106 MLX5_CMD_OP_DESTROY_MKEY = 0x202,
107 MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS = 0x203,
108 MLX5_CMD_OP_PAGE_FAULT_RESUME = 0x204,
Ariel Levkovich24da0012018-04-05 18:53:27 +0300109 MLX5_CMD_OP_ALLOC_MEMIC = 0x205,
110 MLX5_CMD_OP_DEALLOC_MEMIC = 0x206,
Eli Cohend29b7962014-10-02 12:19:43 +0300111 MLX5_CMD_OP_CREATE_EQ = 0x301,
112 MLX5_CMD_OP_DESTROY_EQ = 0x302,
113 MLX5_CMD_OP_QUERY_EQ = 0x303,
114 MLX5_CMD_OP_GEN_EQE = 0x304,
115 MLX5_CMD_OP_CREATE_CQ = 0x400,
116 MLX5_CMD_OP_DESTROY_CQ = 0x401,
117 MLX5_CMD_OP_QUERY_CQ = 0x402,
118 MLX5_CMD_OP_MODIFY_CQ = 0x403,
119 MLX5_CMD_OP_CREATE_QP = 0x500,
120 MLX5_CMD_OP_DESTROY_QP = 0x501,
121 MLX5_CMD_OP_RST2INIT_QP = 0x502,
122 MLX5_CMD_OP_INIT2RTR_QP = 0x503,
123 MLX5_CMD_OP_RTR2RTS_QP = 0x504,
124 MLX5_CMD_OP_RTS2RTS_QP = 0x505,
125 MLX5_CMD_OP_SQERR2RTS_QP = 0x506,
126 MLX5_CMD_OP_2ERR_QP = 0x507,
127 MLX5_CMD_OP_2RST_QP = 0x50a,
128 MLX5_CMD_OP_QUERY_QP = 0x50b,
Saeed Mahameede2816822015-05-28 22:28:40 +0300129 MLX5_CMD_OP_SQD_RTS_QP = 0x50c,
Eli Cohend29b7962014-10-02 12:19:43 +0300130 MLX5_CMD_OP_INIT2INIT_QP = 0x50e,
131 MLX5_CMD_OP_CREATE_PSV = 0x600,
132 MLX5_CMD_OP_DESTROY_PSV = 0x601,
133 MLX5_CMD_OP_CREATE_SRQ = 0x700,
134 MLX5_CMD_OP_DESTROY_SRQ = 0x701,
135 MLX5_CMD_OP_QUERY_SRQ = 0x702,
136 MLX5_CMD_OP_ARM_RQ = 0x703,
Saeed Mahameede2816822015-05-28 22:28:40 +0300137 MLX5_CMD_OP_CREATE_XRC_SRQ = 0x705,
138 MLX5_CMD_OP_DESTROY_XRC_SRQ = 0x706,
139 MLX5_CMD_OP_QUERY_XRC_SRQ = 0x707,
140 MLX5_CMD_OP_ARM_XRC_SRQ = 0x708,
Eli Cohend29b7962014-10-02 12:19:43 +0300141 MLX5_CMD_OP_CREATE_DCT = 0x710,
142 MLX5_CMD_OP_DESTROY_DCT = 0x711,
143 MLX5_CMD_OP_DRAIN_DCT = 0x712,
144 MLX5_CMD_OP_QUERY_DCT = 0x713,
145 MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION = 0x714,
Saeed Mahameed74862162016-06-09 15:11:34 +0300146 MLX5_CMD_OP_CREATE_XRQ = 0x717,
147 MLX5_CMD_OP_DESTROY_XRQ = 0x718,
148 MLX5_CMD_OP_QUERY_XRQ = 0x719,
149 MLX5_CMD_OP_ARM_XRQ = 0x71a,
Yishai Hadas719598c2018-11-26 08:28:37 +0200150 MLX5_CMD_OP_QUERY_XRQ_DC_PARAMS_ENTRY = 0x725,
151 MLX5_CMD_OP_SET_XRQ_DC_PARAMS_ENTRY = 0x726,
152 MLX5_CMD_OP_QUERY_XRQ_ERROR_PARAMS = 0x727,
Bodong Wangc3a4e9f2019-02-12 22:55:37 -0800153 MLX5_CMD_OP_QUERY_HOST_PARAMS = 0x740,
Eli Cohend29b7962014-10-02 12:19:43 +0300154 MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750,
155 MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751,
156 MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752,
157 MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT = 0x753,
158 MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT = 0x754,
159 MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT = 0x755,
Saeed Mahameede2816822015-05-28 22:28:40 +0300160 MLX5_CMD_OP_QUERY_ROCE_ADDRESS = 0x760,
Eli Cohend29b7962014-10-02 12:19:43 +0300161 MLX5_CMD_OP_SET_ROCE_ADDRESS = 0x761,
Saeed Mahameede2816822015-05-28 22:28:40 +0300162 MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT = 0x762,
163 MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT = 0x763,
164 MLX5_CMD_OP_QUERY_HCA_VPORT_GID = 0x764,
165 MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY = 0x765,
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +0200166 MLX5_CMD_OP_QUERY_VNIC_ENV = 0x76f,
Eli Cohend29b7962014-10-02 12:19:43 +0300167 MLX5_CMD_OP_QUERY_VPORT_COUNTER = 0x770,
168 MLX5_CMD_OP_ALLOC_Q_COUNTER = 0x771,
169 MLX5_CMD_OP_DEALLOC_Q_COUNTER = 0x772,
170 MLX5_CMD_OP_QUERY_Q_COUNTER = 0x773,
Eyal Davidovichfd4572b2018-12-10 13:15:12 -0800171 MLX5_CMD_OP_SET_MONITOR_COUNTER = 0x774,
172 MLX5_CMD_OP_ARM_MONITOR_COUNTER = 0x775,
Eran Ben Elisha37e92a92017-11-13 10:11:27 +0200173 MLX5_CMD_OP_SET_PP_RATE_LIMIT = 0x780,
Saeed Mahameed74862162016-06-09 15:11:34 +0300174 MLX5_CMD_OP_QUERY_RATE_LIMIT = 0x781,
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300175 MLX5_CMD_OP_CREATE_SCHEDULING_ELEMENT = 0x782,
176 MLX5_CMD_OP_DESTROY_SCHEDULING_ELEMENT = 0x783,
177 MLX5_CMD_OP_QUERY_SCHEDULING_ELEMENT = 0x784,
178 MLX5_CMD_OP_MODIFY_SCHEDULING_ELEMENT = 0x785,
179 MLX5_CMD_OP_CREATE_QOS_PARA_VPORT = 0x786,
180 MLX5_CMD_OP_DESTROY_QOS_PARA_VPORT = 0x787,
Eli Cohend29b7962014-10-02 12:19:43 +0300181 MLX5_CMD_OP_ALLOC_PD = 0x800,
182 MLX5_CMD_OP_DEALLOC_PD = 0x801,
183 MLX5_CMD_OP_ALLOC_UAR = 0x802,
184 MLX5_CMD_OP_DEALLOC_UAR = 0x803,
185 MLX5_CMD_OP_CONFIG_INT_MODERATION = 0x804,
186 MLX5_CMD_OP_ACCESS_REG = 0x805,
187 MLX5_CMD_OP_ATTACH_TO_MCG = 0x806,
Saeed Mahameed20bb5662016-07-17 02:01:45 +0300188 MLX5_CMD_OP_DETACH_FROM_MCG = 0x807,
Eli Cohend29b7962014-10-02 12:19:43 +0300189 MLX5_CMD_OP_GET_DROPPED_PACKET_LOG = 0x80a,
190 MLX5_CMD_OP_MAD_IFC = 0x50d,
191 MLX5_CMD_OP_QUERY_MAD_DEMUX = 0x80b,
192 MLX5_CMD_OP_SET_MAD_DEMUX = 0x80c,
193 MLX5_CMD_OP_NOP = 0x80d,
194 MLX5_CMD_OP_ALLOC_XRCD = 0x80e,
195 MLX5_CMD_OP_DEALLOC_XRCD = 0x80f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300196 MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN = 0x816,
197 MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN = 0x817,
198 MLX5_CMD_OP_QUERY_CONG_STATUS = 0x822,
199 MLX5_CMD_OP_MODIFY_CONG_STATUS = 0x823,
200 MLX5_CMD_OP_QUERY_CONG_PARAMS = 0x824,
201 MLX5_CMD_OP_MODIFY_CONG_PARAMS = 0x825,
202 MLX5_CMD_OP_QUERY_CONG_STATISTICS = 0x826,
203 MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT = 0x827,
204 MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT = 0x828,
205 MLX5_CMD_OP_SET_L2_TABLE_ENTRY = 0x829,
206 MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY = 0x82a,
207 MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY = 0x82b,
Tariq Toukan928cfe82016-02-22 18:17:29 +0200208 MLX5_CMD_OP_SET_WOL_ROL = 0x830,
209 MLX5_CMD_OP_QUERY_WOL_ROL = 0x831,
Aviv Heller84df61e2016-05-10 13:47:50 +0300210 MLX5_CMD_OP_CREATE_LAG = 0x840,
211 MLX5_CMD_OP_MODIFY_LAG = 0x841,
212 MLX5_CMD_OP_QUERY_LAG = 0x842,
213 MLX5_CMD_OP_DESTROY_LAG = 0x843,
214 MLX5_CMD_OP_CREATE_VPORT_LAG = 0x844,
215 MLX5_CMD_OP_DESTROY_VPORT_LAG = 0x845,
Eli Cohend29b7962014-10-02 12:19:43 +0300216 MLX5_CMD_OP_CREATE_TIR = 0x900,
217 MLX5_CMD_OP_MODIFY_TIR = 0x901,
218 MLX5_CMD_OP_DESTROY_TIR = 0x902,
219 MLX5_CMD_OP_QUERY_TIR = 0x903,
Eli Cohend29b7962014-10-02 12:19:43 +0300220 MLX5_CMD_OP_CREATE_SQ = 0x904,
221 MLX5_CMD_OP_MODIFY_SQ = 0x905,
222 MLX5_CMD_OP_DESTROY_SQ = 0x906,
223 MLX5_CMD_OP_QUERY_SQ = 0x907,
224 MLX5_CMD_OP_CREATE_RQ = 0x908,
225 MLX5_CMD_OP_MODIFY_RQ = 0x909,
Maor Gottliebc1e0bfc2017-05-30 10:29:11 +0300226 MLX5_CMD_OP_SET_DELAY_DROP_PARAMS = 0x910,
Eli Cohend29b7962014-10-02 12:19:43 +0300227 MLX5_CMD_OP_DESTROY_RQ = 0x90a,
228 MLX5_CMD_OP_QUERY_RQ = 0x90b,
229 MLX5_CMD_OP_CREATE_RMP = 0x90c,
230 MLX5_CMD_OP_MODIFY_RMP = 0x90d,
231 MLX5_CMD_OP_DESTROY_RMP = 0x90e,
232 MLX5_CMD_OP_QUERY_RMP = 0x90f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300233 MLX5_CMD_OP_CREATE_TIS = 0x912,
234 MLX5_CMD_OP_MODIFY_TIS = 0x913,
235 MLX5_CMD_OP_DESTROY_TIS = 0x914,
236 MLX5_CMD_OP_QUERY_TIS = 0x915,
237 MLX5_CMD_OP_CREATE_RQT = 0x916,
238 MLX5_CMD_OP_MODIFY_RQT = 0x917,
239 MLX5_CMD_OP_DESTROY_RQT = 0x918,
240 MLX5_CMD_OP_QUERY_RQT = 0x919,
Maor Gottlieb2cc43b42016-01-11 10:25:59 +0200241 MLX5_CMD_OP_SET_FLOW_TABLE_ROOT = 0x92f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300242 MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930,
243 MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931,
244 MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932,
245 MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933,
246 MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934,
247 MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935,
248 MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936,
249 MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937,
Maor Gottlieb34a40e62016-01-11 10:26:00 +0200250 MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938,
Amir Vadai9dc0b282016-05-13 12:55:39 +0000251 MLX5_CMD_OP_ALLOC_FLOW_COUNTER = 0x939,
252 MLX5_CMD_OP_DEALLOC_FLOW_COUNTER = 0x93a,
253 MLX5_CMD_OP_QUERY_FLOW_COUNTER = 0x93b,
Shahar Klein86d56a12016-06-10 00:07:30 +0300254 MLX5_CMD_OP_MODIFY_FLOW_TABLE = 0x93c,
Mark Bloch60786f02018-08-28 14:18:46 +0300255 MLX5_CMD_OP_ALLOC_PACKET_REFORMAT_CONTEXT = 0x93d,
256 MLX5_CMD_OP_DEALLOC_PACKET_REFORMAT_CONTEXT = 0x93e,
Yishai Hadas719598c2018-11-26 08:28:37 +0200257 MLX5_CMD_OP_QUERY_PACKET_REFORMAT_CONTEXT = 0x93f,
Or Gerlitz2a69cb92017-01-19 19:31:25 +0200258 MLX5_CMD_OP_ALLOC_MODIFY_HEADER_CONTEXT = 0x940,
259 MLX5_CMD_OP_DEALLOC_MODIFY_HEADER_CONTEXT = 0x941,
Yishai Hadase662e142018-06-17 13:00:02 +0300260 MLX5_CMD_OP_QUERY_MODIFY_HEADER_CONTEXT = 0x942,
Ilan Tayari60621182017-03-27 14:52:09 +0300261 MLX5_CMD_OP_FPGA_CREATE_QP = 0x960,
262 MLX5_CMD_OP_FPGA_MODIFY_QP = 0x961,
263 MLX5_CMD_OP_FPGA_QUERY_QP = 0x962,
264 MLX5_CMD_OP_FPGA_DESTROY_QP = 0x963,
265 MLX5_CMD_OP_FPGA_QUERY_QP_COUNTERS = 0x964,
Yishai Hadas38b7ca92018-03-08 14:36:27 +0200266 MLX5_CMD_OP_CREATE_GENERAL_OBJECT = 0xa00,
Yishai Hadase662e142018-06-17 13:00:02 +0300267 MLX5_CMD_OP_MODIFY_GENERAL_OBJECT = 0xa01,
268 MLX5_CMD_OP_QUERY_GENERAL_OBJECT = 0xa02,
Yishai Hadas38b7ca92018-03-08 14:36:27 +0200269 MLX5_CMD_OP_DESTROY_GENERAL_OBJECT = 0xa03,
Yishai Hadas6e3722b2018-12-19 16:28:15 +0200270 MLX5_CMD_OP_CREATE_UCTX = 0xa04,
271 MLX5_CMD_OP_DESTROY_UCTX = 0xa06,
272 MLX5_CMD_OP_CREATE_UMEM = 0xa08,
273 MLX5_CMD_OP_DESTROY_UMEM = 0xa0a,
Shahar Klein86d56a12016-06-10 00:07:30 +0300274 MLX5_CMD_OP_MAX
Saeed Mahameede2816822015-05-28 22:28:40 +0300275};
276
Yishai Hadas719598c2018-11-26 08:28:37 +0200277/* Valid range for general commands that don't work over an object */
278enum {
279 MLX5_CMD_OP_GENERAL_START = 0xb00,
280 MLX5_CMD_OP_GENERAL_END = 0xd00,
281};
282
Saeed Mahameede2816822015-05-28 22:28:40 +0300283struct mlx5_ifc_flow_table_fields_supported_bits {
284 u8 outer_dmac[0x1];
285 u8 outer_smac[0x1];
286 u8 outer_ether_type[0x1];
Ariel Levkovich19cc7522017-04-03 13:11:03 +0300287 u8 outer_ip_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300288 u8 outer_first_prio[0x1];
289 u8 outer_first_cfi[0x1];
290 u8 outer_first_vid[0x1];
Or Gerlitza8ade552017-06-07 17:49:56 +0300291 u8 outer_ipv4_ttl[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300292 u8 outer_second_prio[0x1];
293 u8 outer_second_cfi[0x1];
294 u8 outer_second_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200295 u8 reserved_at_b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300296 u8 outer_sip[0x1];
297 u8 outer_dip[0x1];
298 u8 outer_frag[0x1];
299 u8 outer_ip_protocol[0x1];
300 u8 outer_ip_ecn[0x1];
301 u8 outer_ip_dscp[0x1];
302 u8 outer_udp_sport[0x1];
303 u8 outer_udp_dport[0x1];
304 u8 outer_tcp_sport[0x1];
305 u8 outer_tcp_dport[0x1];
306 u8 outer_tcp_flags[0x1];
307 u8 outer_gre_protocol[0x1];
308 u8 outer_gre_key[0x1];
309 u8 outer_vxlan_vni[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200310 u8 reserved_at_1a[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +0300311 u8 source_eswitch_port[0x1];
312
313 u8 inner_dmac[0x1];
314 u8 inner_smac[0x1];
315 u8 inner_ether_type[0x1];
Ariel Levkovich19cc7522017-04-03 13:11:03 +0300316 u8 inner_ip_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300317 u8 inner_first_prio[0x1];
318 u8 inner_first_cfi[0x1];
319 u8 inner_first_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200320 u8 reserved_at_27[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300321 u8 inner_second_prio[0x1];
322 u8 inner_second_cfi[0x1];
323 u8 inner_second_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200324 u8 reserved_at_2b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300325 u8 inner_sip[0x1];
326 u8 inner_dip[0x1];
327 u8 inner_frag[0x1];
328 u8 inner_ip_protocol[0x1];
329 u8 inner_ip_ecn[0x1];
330 u8 inner_ip_dscp[0x1];
331 u8 inner_udp_sport[0x1];
332 u8 inner_udp_dport[0x1];
333 u8 inner_tcp_sport[0x1];
334 u8 inner_tcp_dport[0x1];
335 u8 inner_tcp_flags[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200336 u8 reserved_at_37[0x9];
Ariel Levkovich71c6e862018-05-13 14:33:34 +0300337
338 u8 reserved_at_40[0x5];
339 u8 outer_first_mpls_over_udp[0x4];
340 u8 outer_first_mpls_over_gre[0x4];
341 u8 inner_first_mpls[0x4];
342 u8 outer_first_mpls[0x4];
343 u8 reserved_at_55[0x2];
Boris Pismenny3346c482017-08-20 15:13:08 +0300344 u8 outer_esp_spi[0x1];
Ariel Levkovich71c6e862018-05-13 14:33:34 +0300345 u8 reserved_at_58[0x2];
Yishai Hadasa550ddf2017-08-17 15:52:33 +0300346 u8 bth_dst_qp[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300347
Yishai Hadasa550ddf2017-08-17 15:52:33 +0300348 u8 reserved_at_5b[0x25];
Saeed Mahameede2816822015-05-28 22:28:40 +0300349};
350
351struct mlx5_ifc_flow_table_prop_layout_bits {
352 u8 ft_support[0x1];
Amir Vadai9dc0b282016-05-13 12:55:39 +0000353 u8 reserved_at_1[0x1];
354 u8 flow_counter[0x1];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200355 u8 flow_modify_en[0x1];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +0200356 u8 modify_root[0x1];
Maor Gottlieb34a40e62016-01-11 10:26:00 +0200357 u8 identified_miss_table_mode[0x1];
358 u8 flow_table_modify[0x1];
Mark Bloch60786f02018-08-28 14:18:46 +0300359 u8 reformat[0x1];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300360 u8 decap[0x1];
Or Gerlitz0c068972018-01-28 20:14:20 +0200361 u8 reserved_at_9[0x1];
362 u8 pop_vlan[0x1];
363 u8 push_vlan[0x1];
Jianbo Liu8da6fe22018-07-16 18:35:32 -0700364 u8 reserved_at_c[0x1];
365 u8 pop_vlan_2[0x1];
366 u8 push_vlan_2[0x1];
Mark Blochbea4e1f2018-08-28 14:18:47 +0300367 u8 reformat_and_vlan_action[0x1];
Ariel Levkovich9fba2b92019-03-31 19:44:43 +0300368 u8 reserved_at_10[0x1];
369 u8 sw_owner[0x1];
Mark Blochbea4e1f2018-08-28 14:18:47 +0300370 u8 reformat_l3_tunnel_to_l2[0x1];
371 u8 reformat_l2_to_l3_tunnel[0x1];
372 u8 reformat_and_modify_action[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +0200373 u8 reserved_at_15[0xb];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200374 u8 reserved_at_20[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300375 u8 log_max_ft_size[0x6];
Or Gerlitz2a69cb92017-01-19 19:31:25 +0200376 u8 log_max_modify_header_context[0x8];
377 u8 max_modify_header_actions[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300378 u8 max_ft_level[0x8];
379
Matan Barakb4ff3a32016-02-09 14:57:42 +0200380 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300381
Matan Barakb4ff3a32016-02-09 14:57:42 +0200382 u8 reserved_at_60[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200383 u8 log_max_ft_num[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300384
Matan Barakb4ff3a32016-02-09 14:57:42 +0200385 u8 reserved_at_80[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200386 u8 log_max_destination[0x8];
387
Raed Salem16f1c5b2017-07-30 11:02:51 +0300388 u8 log_max_flow_counter[0x8];
389 u8 reserved_at_a8[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300390 u8 log_max_flow[0x8];
391
Matan Barakb4ff3a32016-02-09 14:57:42 +0200392 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300393
394 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support;
395
396 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support;
397};
398
399struct mlx5_ifc_odp_per_transport_service_cap_bits {
400 u8 send[0x1];
401 u8 receive[0x1];
402 u8 write[0x1];
403 u8 read[0x1];
Artemy Kovalyov17d2f882017-01-02 11:37:47 +0200404 u8 atomic[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300405 u8 srq_receive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200406 u8 reserved_at_6[0x1a];
Saeed Mahameede2816822015-05-28 22:28:40 +0300407};
408
409struct mlx5_ifc_fte_match_set_lyr_2_4_bits {
410 u8 smac_47_16[0x20];
411
412 u8 smac_15_0[0x10];
413 u8 ethertype[0x10];
414
415 u8 dmac_47_16[0x20];
416
417 u8 dmac_15_0[0x10];
418 u8 first_prio[0x3];
419 u8 first_cfi[0x1];
420 u8 first_vid[0xc];
421
422 u8 ip_protocol[0x8];
423 u8 ip_dscp[0x6];
424 u8 ip_ecn[0x2];
Mohamad Haj Yahia10543362016-10-09 16:25:43 +0300425 u8 cvlan_tag[0x1];
426 u8 svlan_tag[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300427 u8 frag[0x1];
Ariel Levkovich19cc7522017-04-03 13:11:03 +0300428 u8 ip_version[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300429 u8 tcp_flags[0x9];
430
431 u8 tcp_sport[0x10];
432 u8 tcp_dport[0x10];
433
Or Gerlitza8ade552017-06-07 17:49:56 +0300434 u8 reserved_at_c0[0x18];
435 u8 ttl_hoplimit[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300436
437 u8 udp_sport[0x10];
438 u8 udp_dport[0x10];
439
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200440 union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits src_ipv4_src_ipv6;
Saeed Mahameede2816822015-05-28 22:28:40 +0300441
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200442 union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits dst_ipv4_dst_ipv6;
Saeed Mahameede2816822015-05-28 22:28:40 +0300443};
444
Oz Shlomo5886a962018-12-10 13:15:13 -0800445struct mlx5_ifc_nvgre_key_bits {
446 u8 hi[0x18];
447 u8 lo[0x8];
448};
449
450union mlx5_ifc_gre_key_bits {
451 struct mlx5_ifc_nvgre_key_bits nvgre;
452 u8 key[0x20];
453};
454
Saeed Mahameede2816822015-05-28 22:28:40 +0300455struct mlx5_ifc_fte_match_set_misc_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +0300456 u8 reserved_at_0[0x8];
457 u8 source_sqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +0300458
Shahar Klein3e99df82018-03-18 09:02:06 +0200459 u8 source_eswitch_owner_vhca_id[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300460 u8 source_port[0x10];
461
462 u8 outer_second_prio[0x3];
463 u8 outer_second_cfi[0x1];
464 u8 outer_second_vid[0xc];
465 u8 inner_second_prio[0x3];
466 u8 inner_second_cfi[0x1];
467 u8 inner_second_vid[0xc];
468
Mohamad Haj Yahia10543362016-10-09 16:25:43 +0300469 u8 outer_second_cvlan_tag[0x1];
470 u8 inner_second_cvlan_tag[0x1];
471 u8 outer_second_svlan_tag[0x1];
472 u8 inner_second_svlan_tag[0x1];
473 u8 reserved_at_64[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300474 u8 gre_protocol[0x10];
475
Oz Shlomo5886a962018-12-10 13:15:13 -0800476 union mlx5_ifc_gre_key_bits gre_key;
Saeed Mahameede2816822015-05-28 22:28:40 +0300477
478 u8 vxlan_vni[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200479 u8 reserved_at_b8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300480
Matan Barakb4ff3a32016-02-09 14:57:42 +0200481 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300482
Matan Barakb4ff3a32016-02-09 14:57:42 +0200483 u8 reserved_at_e0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300484 u8 outer_ipv6_flow_label[0x14];
485
Matan Barakb4ff3a32016-02-09 14:57:42 +0200486 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300487 u8 inner_ipv6_flow_label[0x14];
488
Yishai Hadasa550ddf2017-08-17 15:52:33 +0300489 u8 reserved_at_120[0x28];
490 u8 bth_dst_qp[0x18];
Boris Pismenny3346c482017-08-20 15:13:08 +0300491 u8 reserved_at_160[0x20];
492 u8 outer_esp_spi[0x20];
493 u8 reserved_at_1a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +0300494};
495
Ariel Levkovich71c6e862018-05-13 14:33:34 +0300496struct mlx5_ifc_fte_match_mpls_bits {
497 u8 mpls_label[0x14];
498 u8 mpls_exp[0x3];
499 u8 mpls_s_bos[0x1];
500 u8 mpls_ttl[0x8];
501};
502
503struct mlx5_ifc_fte_match_set_misc2_bits {
504 struct mlx5_ifc_fte_match_mpls_bits outer_first_mpls;
505
506 struct mlx5_ifc_fte_match_mpls_bits inner_first_mpls;
507
508 struct mlx5_ifc_fte_match_mpls_bits outer_first_mpls_over_gre;
509
510 struct mlx5_ifc_fte_match_mpls_bits outer_first_mpls_over_udp;
511
512 u8 reserved_at_80[0x100];
513
514 u8 metadata_reg_a[0x20];
515
516 u8 reserved_at_1a0[0x60];
517};
518
Saeed Mahameede2816822015-05-28 22:28:40 +0300519struct mlx5_ifc_cmd_pas_bits {
520 u8 pa_h[0x20];
521
522 u8 pa_l[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200523 u8 reserved_at_34[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300524};
525
526struct mlx5_ifc_uint64_bits {
527 u8 hi[0x20];
528
529 u8 lo[0x20];
530};
531
532enum {
533 MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0,
534 MLX5_ADS_STAT_RATE_2_5GBPS = 0x7,
535 MLX5_ADS_STAT_RATE_10GBPS = 0x8,
536 MLX5_ADS_STAT_RATE_30GBPS = 0x9,
537 MLX5_ADS_STAT_RATE_5GBPS = 0xa,
538 MLX5_ADS_STAT_RATE_20GBPS = 0xb,
539 MLX5_ADS_STAT_RATE_40GBPS = 0xc,
540 MLX5_ADS_STAT_RATE_60GBPS = 0xd,
541 MLX5_ADS_STAT_RATE_80GBPS = 0xe,
542 MLX5_ADS_STAT_RATE_120GBPS = 0xf,
543};
544
545struct mlx5_ifc_ads_bits {
546 u8 fl[0x1];
547 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200548 u8 reserved_at_2[0xe];
Saeed Mahameede2816822015-05-28 22:28:40 +0300549 u8 pkey_index[0x10];
550
Matan Barakb4ff3a32016-02-09 14:57:42 +0200551 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300552 u8 grh[0x1];
553 u8 mlid[0x7];
554 u8 rlid[0x10];
555
556 u8 ack_timeout[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200557 u8 reserved_at_45[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300558 u8 src_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200559 u8 reserved_at_50[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300560 u8 stat_rate[0x4];
561 u8 hop_limit[0x8];
562
Matan Barakb4ff3a32016-02-09 14:57:42 +0200563 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300564 u8 tclass[0x8];
565 u8 flow_label[0x14];
566
567 u8 rgid_rip[16][0x8];
568
Matan Barakb4ff3a32016-02-09 14:57:42 +0200569 u8 reserved_at_100[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300570 u8 f_dscp[0x1];
571 u8 f_ecn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200572 u8 reserved_at_106[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300573 u8 f_eth_prio[0x1];
574 u8 ecn[0x2];
575 u8 dscp[0x6];
576 u8 udp_sport[0x10];
577
578 u8 dei_cfi[0x1];
579 u8 eth_prio[0x3];
580 u8 sl[0x4];
Daniel Jurgens32f69e42018-01-04 17:25:36 +0200581 u8 vhca_port_num[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300582 u8 rmac_47_32[0x10];
583
584 u8 rmac_31_0[0x20];
585};
586
587struct mlx5_ifc_flow_table_nic_cap_bits {
Maor Gottliebb3638e12016-03-07 18:51:46 +0200588 u8 nic_rx_multi_path_tirs[0x1];
Maor Gottliebcea824d2016-05-31 14:09:09 +0300589 u8 nic_rx_multi_path_tirs_fts[0x1];
590 u8 allow_sniffer_and_nic_rx_shared_tir[0x1];
Mark Blochbea4e1f2018-08-28 14:18:47 +0300591 u8 reserved_at_3[0x1d];
592 u8 encap_general_header[0x1];
593 u8 reserved_at_21[0xa];
594 u8 log_max_packet_reformat_context[0x5];
595 u8 reserved_at_30[0x6];
596 u8 max_encap_header_size[0xa];
597 u8 reserved_at_40[0x1c0];
Saeed Mahameede2816822015-05-28 22:28:40 +0300598
599 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;
600
Matan Barakb4ff3a32016-02-09 14:57:42 +0200601 u8 reserved_at_400[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300602
603 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;
604
605 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit;
606
Matan Barakb4ff3a32016-02-09 14:57:42 +0200607 u8 reserved_at_a00[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300608
609 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer;
610
Matan Barakb4ff3a32016-02-09 14:57:42 +0200611 u8 reserved_at_e00[0x7200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300612};
613
Saeed Mahameed495716b2015-12-01 18:03:19 +0200614struct mlx5_ifc_flow_table_eswitch_cap_bits {
Vu Pham663f1462018-10-31 16:03:21 +0200615 u8 reserved_at_0[0x1a];
Paul Blakeyb9aa0ba2018-05-31 11:50:23 +0300616 u8 multi_fdb_encap[0x1];
Vu Pham663f1462018-10-31 16:03:21 +0200617 u8 reserved_at_1b[0x1];
618 u8 fdb_multi_path_to_table[0x1];
619 u8 reserved_at_1d[0x3];
620
621 u8 reserved_at_20[0x1e0];
Saeed Mahameed495716b2015-12-01 18:03:19 +0200622
623 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb;
624
625 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress;
626
627 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress;
628
Matan Barakb4ff3a32016-02-09 14:57:42 +0200629 u8 reserved_at_800[0x7800];
Saeed Mahameed495716b2015-12-01 18:03:19 +0200630};
631
Shahar Klein8bb957d2018-12-12 19:11:38 -0800632enum {
633 MLX5_COUNTER_SOURCE_ESWITCH = 0x0,
634 MLX5_COUNTER_FLOW_ESWITCH = 0x1,
635};
636
Saeed Mahameedd6666752015-12-01 18:03:22 +0200637struct mlx5_ifc_e_switch_cap_bits {
638 u8 vport_svlan_strip[0x1];
639 u8 vport_cvlan_strip[0x1];
640 u8 vport_svlan_insert[0x1];
641 u8 vport_cvlan_insert_if_not_exist[0x1];
642 u8 vport_cvlan_insert_overwrite[0x1];
Bodong Wang81cd2292018-12-10 11:59:33 -0600643 u8 reserved_at_5[0x16];
644 u8 ecpf_vport_exists[0x1];
Shahar Klein8bb957d2018-12-12 19:11:38 -0800645 u8 counter_eswitch_affinity[0x1];
Roi Dayana6d04562017-12-05 10:38:58 +0200646 u8 merged_eswitch[0x1];
Noa Osherovich23898c72016-06-10 00:07:37 +0300647 u8 nic_vport_node_guid_modify[0x1];
648 u8 nic_vport_port_guid_modify[0x1];
Saeed Mahameedd6666752015-12-01 18:03:22 +0200649
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300650 u8 vxlan_encap_decap[0x1];
651 u8 nvgre_encap_decap[0x1];
Eli Britstein1b115492018-12-10 13:15:14 -0800652 u8 reserved_at_22[0x1];
653 u8 log_max_fdb_encap_uplink[0x5];
654 u8 reserved_at_21[0x3];
Mark Bloch60786f02018-08-28 14:18:46 +0300655 u8 log_max_packet_reformat_context[0x5];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300656 u8 reserved_2b[0x6];
657 u8 max_encap_header_size[0xa];
658
659 u8 reserved_40[0x7c0];
660
Saeed Mahameedd6666752015-12-01 18:03:22 +0200661};
662
Saeed Mahameed74862162016-06-09 15:11:34 +0300663struct mlx5_ifc_qos_cap_bits {
664 u8 packet_pacing[0x1];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300665 u8 esw_scheduling[0x1];
Mohamad Haj Yahiac9497c92016-12-15 14:02:53 +0200666 u8 esw_bw_share[0x1];
667 u8 esw_rate_limit[0x1];
Bodong Wang05d3ac92018-03-19 15:10:29 +0200668 u8 reserved_at_4[0x1];
669 u8 packet_pacing_burst_bound[0x1];
670 u8 packet_pacing_typical_size[0x1];
671 u8 reserved_at_7[0x19];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300672
673 u8 reserved_at_20[0x20];
674
Saeed Mahameed74862162016-06-09 15:11:34 +0300675 u8 packet_pacing_max_rate[0x20];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300676
Saeed Mahameed74862162016-06-09 15:11:34 +0300677 u8 packet_pacing_min_rate[0x20];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300678
679 u8 reserved_at_80[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +0300680 u8 packet_pacing_rate_table_size[0x10];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300681
682 u8 esw_element_type[0x10];
683 u8 esw_tsar_type[0x10];
684
685 u8 reserved_at_c0[0x10];
686 u8 max_qos_para_vport[0x10];
687
688 u8 max_tsar_bw_share[0x20];
689
690 u8 reserved_at_100[0x700];
Saeed Mahameed74862162016-06-09 15:11:34 +0300691};
692
Inbar Karmy2fcb12d2017-08-17 16:39:47 +0300693struct mlx5_ifc_debug_cap_bits {
694 u8 reserved_at_0[0x20];
695
696 u8 reserved_at_20[0x2];
697 u8 stall_detect[0x1];
698 u8 reserved_at_23[0x1d];
699
700 u8 reserved_at_40[0x7c0];
701};
702
Saeed Mahameede2816822015-05-28 22:28:40 +0300703struct mlx5_ifc_per_protocol_networking_offload_caps_bits {
704 u8 csum_cap[0x1];
705 u8 vlan_cap[0x1];
706 u8 lro_cap[0x1];
707 u8 lro_psh_flag[0x1];
708 u8 lro_time_stamp[0x1];
Saeed Mahameed2b31f7a2016-11-28 18:04:50 +0200709 u8 reserved_at_5[0x2];
710 u8 wqe_vlan_insert[0x1];
Tariq Toukan66189962015-11-12 19:35:26 +0200711 u8 self_lb_en_modifiable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200712 u8 reserved_at_9[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300713 u8 max_lso_cap[0x5];
Leon Romanovskyc226dc22016-10-31 12:15:20 +0200714 u8 multi_pkt_send_wqe[0x2];
Hadar Hen Zioncff92d72016-07-24 16:12:40 +0300715 u8 wqe_inline_mode[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300716 u8 rss_ind_tbl_cap[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300717 u8 reg_umr_sq[0x1];
718 u8 scatter_fcs[0x1];
Bodong Wang050da902017-08-17 15:52:35 +0300719 u8 enhanced_multi_pkt_send_wqe[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300720 u8 tunnel_lso_const_out_ip_id[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200721 u8 reserved_at_1c[0x2];
Gal Pressman27299842017-08-13 13:34:42 +0300722 u8 tunnel_stateless_gre[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300723 u8 tunnel_stateless_vxlan[0x1];
724
Ilan Tayari547eede2017-04-18 16:04:28 +0300725 u8 swp[0x1];
726 u8 swp_csum[0x1];
727 u8 swp_lso[0x1];
Gal Pressman22a65aa2017-12-25 18:40:52 +0200728 u8 reserved_at_23[0xd];
729 u8 max_vxlan_udp_ports[0x8];
730 u8 reserved_at_38[0x6];
Maor Gottlieb4d350f12017-10-19 08:25:54 +0300731 u8 max_geneve_opt_len[0x1];
732 u8 tunnel_stateless_geneve_rx[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300733
Matan Barakb4ff3a32016-02-09 14:57:42 +0200734 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300735 u8 lro_min_mss_size[0x10];
736
Matan Barakb4ff3a32016-02-09 14:57:42 +0200737 u8 reserved_at_60[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +0300738
739 u8 lro_timer_supported_periods[4][0x20];
740
Matan Barakb4ff3a32016-02-09 14:57:42 +0200741 u8 reserved_at_200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +0300742};
743
744struct mlx5_ifc_roce_cap_bits {
745 u8 roce_apm[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200746 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +0300747
Matan Barakb4ff3a32016-02-09 14:57:42 +0200748 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +0300749
Matan Barakb4ff3a32016-02-09 14:57:42 +0200750 u8 reserved_at_80[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300751 u8 l3_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200752 u8 reserved_at_90[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300753 u8 roce_version[0x8];
754
Matan Barakb4ff3a32016-02-09 14:57:42 +0200755 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300756 u8 r_roce_dest_udp_port[0x10];
757
758 u8 r_roce_max_src_udp_port[0x10];
759 u8 r_roce_min_src_udp_port[0x10];
760
Matan Barakb4ff3a32016-02-09 14:57:42 +0200761 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300762 u8 roce_address_table_size[0x10];
763
Matan Barakb4ff3a32016-02-09 14:57:42 +0200764 u8 reserved_at_100[0x700];
Saeed Mahameede2816822015-05-28 22:28:40 +0300765};
766
Ariel Levkoviche72bd812018-04-05 18:53:26 +0300767struct mlx5_ifc_device_mem_cap_bits {
768 u8 memic[0x1];
769 u8 reserved_at_1[0x1f];
770
771 u8 reserved_at_20[0xb];
772 u8 log_min_memic_alloc_size[0x5];
773 u8 reserved_at_30[0x8];
774 u8 log_max_memic_addr_alignment[0x8];
775
776 u8 memic_bar_start_addr[0x40];
777
778 u8 memic_bar_size[0x20];
779
780 u8 max_memic_size[0x20];
781
Ariel Levkovich9fba2b92019-03-31 19:44:43 +0300782 u8 steering_sw_icm_start_address[0x40];
783
784 u8 reserved_at_100[0x8];
785 u8 log_header_modify_sw_icm_size[0x8];
786 u8 reserved_at_110[0x2];
787 u8 log_sw_icm_alloc_granularity[0x6];
788 u8 log_steering_sw_icm_size[0x8];
789
790 u8 reserved_at_120[0x20];
791
792 u8 header_modify_sw_icm_start_address[0x40];
793
794 u8 reserved_at_180[0x680];
Ariel Levkoviche72bd812018-04-05 18:53:26 +0300795};
796
Saeed Mahameede2816822015-05-28 22:28:40 +0300797enum {
798 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0,
799 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2,
800 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4,
801 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8,
802 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10,
803 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20,
804 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40,
805 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80,
806 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100,
807};
808
809enum {
810 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1,
811 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2,
812 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4,
813 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8,
814 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10,
815 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20,
816 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40,
817 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80,
818 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100,
819};
820
821struct mlx5_ifc_atomic_caps_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200822 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300823
Or Gerlitzbd108382017-05-28 15:24:17 +0300824 u8 atomic_req_8B_endianness_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200825 u8 reserved_at_42[0x4];
Or Gerlitzbd108382017-05-28 15:24:17 +0300826 u8 supported_atomic_req_8B_endianness_mode_1[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300827
Matan Barakb4ff3a32016-02-09 14:57:42 +0200828 u8 reserved_at_47[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +0300829
Matan Barakb4ff3a32016-02-09 14:57:42 +0200830 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300831
Matan Barakb4ff3a32016-02-09 14:57:42 +0200832 u8 reserved_at_80[0x10];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200833 u8 atomic_operations[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300834
Matan Barakb4ff3a32016-02-09 14:57:42 +0200835 u8 reserved_at_a0[0x10];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200836 u8 atomic_size_qp[0x10];
837
Matan Barakb4ff3a32016-02-09 14:57:42 +0200838 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300839 u8 atomic_size_dc[0x10];
840
Matan Barakb4ff3a32016-02-09 14:57:42 +0200841 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +0300842};
843
844struct mlx5_ifc_odp_cap_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200845 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300846
847 u8 sig[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200848 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +0300849
Matan Barakb4ff3a32016-02-09 14:57:42 +0200850 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300851
852 struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps;
853
854 struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps;
855
856 struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps;
857
Moni Shouadda7a812019-01-22 08:48:49 +0200858 struct mlx5_ifc_odp_per_transport_service_cap_bits xrc_odp_caps;
859
860 u8 reserved_at_100[0x700];
Saeed Mahameede2816822015-05-28 22:28:40 +0300861};
862
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200863struct mlx5_ifc_calc_op {
864 u8 reserved_at_0[0x10];
865 u8 reserved_at_10[0x9];
866 u8 op_swap_endianness[0x1];
867 u8 op_min[0x1];
868 u8 op_xor[0x1];
869 u8 op_or[0x1];
870 u8 op_and[0x1];
871 u8 op_max[0x1];
872 u8 op_add[0x1];
873};
874
875struct mlx5_ifc_vector_calc_cap_bits {
876 u8 calc_matrix[0x1];
877 u8 reserved_at_1[0x1f];
878 u8 reserved_at_20[0x8];
879 u8 max_vec_count[0x8];
880 u8 reserved_at_30[0xd];
881 u8 max_chunk_size[0x3];
882 struct mlx5_ifc_calc_op calc0;
883 struct mlx5_ifc_calc_op calc1;
884 struct mlx5_ifc_calc_op calc2;
885 struct mlx5_ifc_calc_op calc3;
886
Gal Pressmanc74d90c2018-11-07 20:31:37 +0200887 u8 reserved_at_c0[0x720];
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200888};
889
Saeed Mahameede2816822015-05-28 22:28:40 +0300890enum {
891 MLX5_WQ_TYPE_LINKED_LIST = 0x0,
892 MLX5_WQ_TYPE_CYCLIC = 0x1,
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300893 MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ = 0x2,
Noa Osherovichccc870872017-10-17 18:01:13 +0300894 MLX5_WQ_TYPE_CYCLIC_STRIDING_RQ = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +0300895};
896
897enum {
898 MLX5_WQ_END_PAD_MODE_NONE = 0x0,
899 MLX5_WQ_END_PAD_MODE_ALIGN = 0x1,
900};
901
902enum {
903 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0,
904 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1,
905 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2,
906 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3,
907 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4,
908};
909
910enum {
911 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0,
912 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1,
913 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2,
914 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3,
915 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4,
916 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5,
917};
918
919enum {
920 MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0,
921 MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1,
922};
923
924enum {
925 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0,
926 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1,
927 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3,
928};
929
930enum {
931 MLX5_CAP_PORT_TYPE_IB = 0x0,
932 MLX5_CAP_PORT_TYPE_ETH = 0x1,
Eli Cohend29b7962014-10-02 12:19:43 +0300933};
934
Max Gurtovoy1410a902017-05-28 10:53:10 +0300935enum {
936 MLX5_CAP_UMR_FENCE_STRONG = 0x0,
937 MLX5_CAP_UMR_FENCE_SMALL = 0x1,
938 MLX5_CAP_UMR_FENCE_NONE = 0x2,
939};
940
Yishai Hadas9d43faa2018-11-26 08:28:32 +0200941enum {
942 MLX5_UCTX_CAP_RAW_TX = 1UL << 0,
Ariel Levkovich9fba2b92019-03-31 19:44:43 +0300943 MLX5_UCTX_CAP_INTERNAL_DEV_RES = 1UL << 1,
Yishai Hadas9d43faa2018-11-26 08:28:32 +0200944};
945
Eli Cohenb7755162014-10-02 12:19:44 +0300946struct mlx5_ifc_cmd_hca_cap_bits {
Daniel Jurgens32f69e42018-01-04 17:25:36 +0200947 u8 reserved_at_0[0x30];
948 u8 vhca_id[0x10];
949
950 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +0300951
952 u8 log_max_srq_sz[0x8];
953 u8 log_max_qp_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200954 u8 reserved_at_90[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300955 u8 log_max_qp[0x5];
956
Matan Barakb4ff3a32016-02-09 14:57:42 +0200957 u8 reserved_at_a0[0xb];
Saeed Mahameede2816822015-05-28 22:28:40 +0300958 u8 log_max_srq[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200959 u8 reserved_at_b0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300960
Matan Barakb4ff3a32016-02-09 14:57:42 +0200961 u8 reserved_at_c0[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300962 u8 log_max_cq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200963 u8 reserved_at_d0[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300964 u8 log_max_cq[0x5];
965
966 u8 log_max_eq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200967 u8 reserved_at_e8[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300968 u8 log_max_mkey[0x6];
Leon Romanovskyb183ee22018-06-19 08:47:23 +0300969 u8 reserved_at_f0[0x8];
970 u8 dump_fill_mkey[0x1];
Feras Daoudfcd29ad2018-08-09 09:55:21 +0300971 u8 reserved_at_f9[0x2];
972 u8 fast_teardown[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300973 u8 log_max_eq[0x4];
974
975 u8 max_indirection[0x8];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +0200976 u8 fixed_buffer_size[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300977 u8 log_max_mrw_sz[0x7];
Majd Dibbiny8812c242017-02-09 14:20:12 +0200978 u8 force_teardown[0x1];
979 u8 reserved_at_111[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300980 u8 log_max_bsf_list_size[0x6];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +0200981 u8 umr_extended_translation_offset[0x1];
982 u8 null_mkey[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300983 u8 log_max_klm_list_size[0x6];
984
Matan Barakb4ff3a32016-02-09 14:57:42 +0200985 u8 reserved_at_120[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300986 u8 log_max_ra_req_dc[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200987 u8 reserved_at_130[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300988 u8 log_max_ra_res_dc[0x6];
989
Matan Barakb4ff3a32016-02-09 14:57:42 +0200990 u8 reserved_at_140[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300991 u8 log_max_ra_req_qp[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200992 u8 reserved_at_150[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300993 u8 log_max_ra_res_qp[0x6];
994
Daniel Jurgensf32f5bd2015-11-19 17:12:26 +0200995 u8 end_pad[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300996 u8 cc_query_allowed[0x1];
997 u8 cc_modify_allowed[0x1];
Daniel Jurgensf32f5bd2015-11-19 17:12:26 +0200998 u8 start_pad[0x1];
999 u8 cache_line_128byte[0x1];
Huy Nguyenc02762e2017-07-18 16:03:17 -05001000 u8 reserved_at_165[0xa];
1001 u8 qcam_reg[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001002 u8 gid_table_size[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001003
Saeed Mahameede2816822015-05-28 22:28:40 +03001004 u8 out_of_seq_cnt[0x1];
1005 u8 vport_counters[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03001006 u8 retransmission_q_counters[0x1];
Inbar Karmy2fcb12d2017-08-17 16:39:47 +03001007 u8 debug[0x1];
Alex Vesker83b502a2016-08-04 17:32:02 +03001008 u8 modify_rq_counter_set_id[0x1];
Maor Gottliebc1e0bfc2017-05-30 10:29:11 +03001009 u8 rq_delay_drop[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001010 u8 max_qp_cnt[0xa];
1011 u8 pkey_table_size[0x10];
1012
Saeed Mahameede2816822015-05-28 22:28:40 +03001013 u8 vport_group_manager[0x1];
1014 u8 vhca_group_manager[0x1];
1015 u8 ib_virt[0x1];
1016 u8 eth_virt[0x1];
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +02001017 u8 vnic_env_queue_counters[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001018 u8 ets[0x1];
1019 u8 nic_flow_table[0x1];
Or Gerlitz0efc8562018-05-31 11:16:18 +03001020 u8 eswitch_manager[0x1];
Ariel Levkoviche72bd812018-04-05 18:53:26 +03001021 u8 device_memory[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02001022 u8 mcam_reg[0x1];
1023 u8 pcam_reg[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001024 u8 local_ca_ack_delay[0x5];
Huy Nguyen4ce3bf22016-11-17 13:45:56 +02001025 u8 port_module_event[0x1];
Parav Pandit58dcb602017-06-19 07:19:37 +03001026 u8 enhanced_error_q_counters[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001027 u8 ports_check[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +02001028 u8 reserved_at_1b3[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001029 u8 disable_link_up[0x1];
1030 u8 beacon_led[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001031 u8 port_type[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +03001032 u8 num_ports[0x8];
1033
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03001034 u8 reserved_at_1c0[0x1];
1035 u8 pps[0x1];
1036 u8 pps_modify[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001037 u8 log_max_msg[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001038 u8 reserved_at_1c8[0x4];
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02001039 u8 max_tc[0x4];
Ilan Tayari1865ea9a2018-05-30 10:59:49 -07001040 u8 temp_warn_event[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03001041 u8 dcbx[0x1];
Maor Gottlieb246ac982017-05-30 10:29:12 +03001042 u8 general_notification_event[0x1];
1043 u8 reserved_at_1d3[0x2];
Ilan Tayarie29341f2017-03-13 20:05:45 +02001044 u8 fpga[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +02001045 u8 rol_s[0x1];
1046 u8 rol_g[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001047 u8 reserved_at_1d8[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +02001048 u8 wol_s[0x1];
1049 u8 wol_g[0x1];
1050 u8 wol_a[0x1];
1051 u8 wol_b[0x1];
1052 u8 wol_m[0x1];
1053 u8 wol_u[0x1];
1054 u8 wol_p[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001055
1056 u8 stat_rate_support[0x10];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001057 u8 reserved_at_1f0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001058 u8 cqe_version[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +03001059
Saeed Mahameede2816822015-05-28 22:28:40 +03001060 u8 compact_address_vector[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001061 u8 striding_rq[0x1];
Erez Shitrit500a3d02017-04-13 06:36:51 +03001062 u8 reserved_at_202[0x1];
1063 u8 ipoib_enhanced_offloads[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02001064 u8 ipoib_basic_offloads[0x1];
Majd Dibbinyc8d75a92018-03-22 15:34:04 +02001065 u8 reserved_at_205[0x1];
1066 u8 repeated_block_disabled[0x1];
1067 u8 umr_modify_entity_size_disabled[0x1];
1068 u8 umr_modify_atomic_disabled[0x1];
1069 u8 umr_indirect_mkey_disabled[0x1];
Max Gurtovoy1410a902017-05-28 10:53:10 +03001070 u8 umr_fence[0x2];
Yonatan Cohen94a04d12018-10-09 12:05:12 +03001071 u8 dc_req_scat_data_cqe[0x1];
1072 u8 reserved_at_20d[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001073 u8 drain_sigerr[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001074 u8 cmdif_checksum[0x2];
1075 u8 sigerr_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001076 u8 reserved_at_213[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001077 u8 wq_signature[0x1];
1078 u8 sctr_data_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001079 u8 reserved_at_216[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001080 u8 sho[0x1];
1081 u8 tph[0x1];
1082 u8 rf[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001083 u8 dct[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03001084 u8 qos[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001085 u8 eth_net_offloads[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001086 u8 roce[0x1];
1087 u8 atomic[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001088 u8 reserved_at_21f[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001089
1090 u8 cq_oi[0x1];
1091 u8 cq_resize[0x1];
1092 u8 cq_moderation[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001093 u8 reserved_at_223[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001094 u8 cq_eq_remap[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001095 u8 pg[0x1];
1096 u8 block_lb_mc[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001097 u8 reserved_at_229[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001098 u8 scqe_break_moderation[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001099 u8 cq_period_start_from_cqe[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001100 u8 cd[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001101 u8 reserved_at_22d[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001102 u8 apm[0x1];
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02001103 u8 vector_calc[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001104 u8 umr_ptr_rlky[0x1];
Matan Barakd2370e02016-02-29 18:05:30 +02001105 u8 imaicl[0x1];
Danit Goldberg3fd3c802018-11-30 13:22:04 +02001106 u8 qp_packet_based[0x1];
1107 u8 reserved_at_233[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001108 u8 qkv[0x1];
1109 u8 pkv[0x1];
Haggai Eranb11a4f92016-02-29 15:45:03 +02001110 u8 set_deth_sqpn[0x1];
1111 u8 reserved_at_239[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001112 u8 xrc[0x1];
1113 u8 ud[0x1];
1114 u8 uc[0x1];
1115 u8 rc[0x1];
1116
Eli Cohena6d51b62017-01-03 23:55:23 +02001117 u8 uar_4k[0x1];
1118 u8 reserved_at_241[0x9];
Eli Cohenb7755162014-10-02 12:19:44 +03001119 u8 uar_sz[0x6];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001120 u8 reserved_at_250[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001121 u8 log_pg_sz[0x8];
1122
1123 u8 bf[0x1];
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +02001124 u8 driver_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001125 u8 pad_tx_eth_packet[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001126 u8 reserved_at_263[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001127 u8 log_bf_reg_size[0x5];
Aviv Heller84df61e2016-05-10 13:47:50 +03001128
1129 u8 reserved_at_270[0xb];
1130 u8 lag_master[0x1];
1131 u8 num_lag_ports[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +03001132
Tariq Toukane1c9c622016-04-11 23:10:21 +03001133 u8 reserved_at_280[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001134 u8 max_wqe_sz_sq[0x10];
1135
Tariq Toukane1c9c622016-04-11 23:10:21 +03001136 u8 reserved_at_2a0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001137 u8 max_wqe_sz_rq[0x10];
1138
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001139 u8 max_flow_counter_31_16[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001140 u8 max_wqe_sz_sq_dc[0x10];
1141
Tariq Toukane1c9c622016-04-11 23:10:21 +03001142 u8 reserved_at_2e0[0x7];
Eli Cohenb7755162014-10-02 12:19:44 +03001143 u8 max_qp_mcg[0x19];
1144
Tariq Toukane1c9c622016-04-11 23:10:21 +03001145 u8 reserved_at_300[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03001146 u8 log_max_mcg[0x8];
1147
Tariq Toukane1c9c622016-04-11 23:10:21 +03001148 u8 reserved_at_320[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001149 u8 log_max_transport_domain[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001150 u8 reserved_at_328[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001151 u8 log_max_pd[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001152 u8 reserved_at_330[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +03001153 u8 log_max_xrcd[0x5];
1154
Moshe Shemesh5c298142017-12-26 16:46:29 +02001155 u8 nic_receive_steering_discard[0x1];
Moshe Shemeshaaabd072018-01-14 00:56:25 +02001156 u8 receive_discard_vport_down[0x1];
1157 u8 transmit_discard_vport_down[0x1];
1158 u8 reserved_at_343[0x5];
Amir Vadaia351a1b02016-07-14 10:32:38 +03001159 u8 log_max_flow_counter_bulk[0x8];
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001160 u8 max_flow_counter_15_0[0x10];
Amir Vadaia351a1b02016-07-14 10:32:38 +03001161
Eli Cohenb7755162014-10-02 12:19:44 +03001162
Tariq Toukane1c9c622016-04-11 23:10:21 +03001163 u8 reserved_at_360[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001164 u8 log_max_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001165 u8 reserved_at_368[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001166 u8 log_max_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001167 u8 reserved_at_370[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001168 u8 log_max_tir[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001169 u8 reserved_at_378[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001170 u8 log_max_tis[0x5];
1171
Saeed Mahameede2816822015-05-28 22:28:40 +03001172 u8 basic_cyclic_rcv_wqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001173 u8 reserved_at_381[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001174 u8 log_max_rmp[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001175 u8 reserved_at_388[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001176 u8 log_max_rqt[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001177 u8 reserved_at_390[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001178 u8 log_max_rqt_size[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001179 u8 reserved_at_398[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001180 u8 log_max_tis_per_sq[0x5];
1181
Tariq Toukan619a8f2a2018-02-07 14:41:25 +02001182 u8 ext_stride_num_range[0x1];
1183 u8 reserved_at_3a1[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001184 u8 log_max_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001185 u8 reserved_at_3a8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001186 u8 log_min_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001187 u8 reserved_at_3b0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001188 u8 log_max_stride_sz_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001189 u8 reserved_at_3b8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001190 u8 log_min_stride_sz_sq[0x5];
Eli Cohenb7755162014-10-02 12:19:44 +03001191
Or Gerlitz40817cd2017-06-25 12:38:45 +03001192 u8 hairpin[0x1];
1193 u8 reserved_at_3c1[0x2];
1194 u8 log_max_hairpin_queues[0x5];
1195 u8 reserved_at_3c8[0x3];
1196 u8 log_max_hairpin_wq_data_sz[0x5];
Or Gerlitz4d533e02018-01-04 12:26:21 +02001197 u8 reserved_at_3d0[0x3];
1198 u8 log_max_hairpin_num_packets[0x5];
1199 u8 reserved_at_3d8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001200 u8 log_max_wq_sz[0x5];
1201
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001202 u8 nic_vport_change_event[0x1];
Eran Ben Elisha8978cc92018-01-09 11:41:10 +02001203 u8 disable_local_lb_uc[0x1];
1204 u8 disable_local_lb_mc[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001205 u8 log_min_hairpin_wq_data_sz[0x5];
1206 u8 reserved_at_3e8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001207 u8 log_max_vlan_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001208 u8 reserved_at_3f0[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001209 u8 log_max_current_mc_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001210 u8 reserved_at_3f8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001211 u8 log_max_current_uc_list[0x5];
1212
Yishai Hadas38b7ca92018-03-08 14:36:27 +02001213 u8 general_obj_types[0x40];
1214
Denis Drozdov342ac842018-08-08 16:23:48 -07001215 u8 reserved_at_440[0x20];
1216
Yishai Hadas6e3722b2018-12-19 16:28:15 +02001217 u8 reserved_at_460[0x3];
1218 u8 log_max_uctx[0x5];
1219 u8 reserved_at_468[0x3];
1220 u8 log_max_umem[0x5];
Denis Drozdov342ac842018-08-08 16:23:48 -07001221 u8 max_num_eqs[0x10];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001222
Tariq Toukane1c9c622016-04-11 23:10:21 +03001223 u8 reserved_at_480[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001224 u8 log_max_l2_table[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001225 u8 reserved_at_488[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001226 u8 log_uar_page_sz[0x10];
1227
Tariq Toukane1c9c622016-04-11 23:10:21 +03001228 u8 reserved_at_4a0[0x20];
Linus Torvalds048ccca2016-01-23 18:45:06 -08001229 u8 device_frequency_mhz[0x20];
Eran Ben Elishab0844442015-12-29 14:58:30 +02001230 u8 device_frequency_khz[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001231
Eli Cohena6d51b62017-01-03 23:55:23 +02001232 u8 reserved_at_500[0x20];
1233 u8 num_of_uars_per_page[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001234
Ariel Levkoviche818e252018-05-13 14:33:35 +03001235 u8 flex_parser_protocols[0x20];
1236 u8 reserved_at_560[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001237
Yonatan Cohenab741b22018-05-27 13:42:32 +03001238 u8 reserved_at_580[0x3c];
1239 u8 mini_cqe_resp_stride_index[0x1];
Guy Levi0ff8e792017-10-19 08:25:51 +03001240 u8 cqe_128_always[0x1];
1241 u8 cqe_compression_128[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001242 u8 cqe_compression[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001243
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001244 u8 cqe_compression_timeout[0x10];
1245 u8 cqe_compression_max_num[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001246
Saeed Mahameed74862162016-06-09 15:11:34 +03001247 u8 reserved_at_5e0[0x10];
1248 u8 tag_matching[0x1];
1249 u8 rndv_offload_rc[0x1];
1250 u8 rndv_offload_dc[0x1];
1251 u8 log_tag_matching_list_sz[0x5];
Max Gurtovoy7b135582017-01-02 11:37:38 +02001252 u8 reserved_at_5f8[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03001253 u8 log_max_xrq[0x5];
1254
Daniel Jurgens32f69e42018-01-04 17:25:36 +02001255 u8 affiliate_nic_vport_criteria[0x8];
1256 u8 native_port_num[0x8];
1257 u8 num_vhca_ports[0x8];
1258 u8 reserved_at_618[0x6];
1259 u8 sw_owner_id[0x1];
Yishai Hadas9d43faa2018-11-26 08:28:32 +02001260 u8 reserved_at_61f[0x1];
1261
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08001262 u8 max_num_of_monitor_counters[0x10];
1263 u8 num_ppcnt_monitor_counters[0x10];
1264
1265 u8 reserved_at_640[0x10];
1266 u8 num_q_monitor_counters[0x10];
1267
1268 u8 reserved_at_660[0x40];
Yishai Hadas9d43faa2018-11-26 08:28:32 +02001269
1270 u8 uctx_cap[0x20];
1271
1272 u8 reserved_at_6c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03001273};
1274
Saeed Mahameed81848732015-12-01 18:03:20 +02001275enum mlx5_flow_destination_type {
1276 MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0,
1277 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1,
1278 MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2,
Amir Vadaibd5251db2016-05-13 12:55:40 +00001279
Aviad Yehezkel5f418372018-02-18 13:17:17 +02001280 MLX5_FLOW_DESTINATION_TYPE_PORT = 0x99,
Amir Vadaibd5251db2016-05-13 12:55:40 +00001281 MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100,
Yishai Hadas664000b2018-06-19 15:23:36 +03001282 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM = 0x101,
Saeed Mahameede2816822015-05-28 22:28:40 +03001283};
1284
1285struct mlx5_ifc_dest_format_struct_bits {
1286 u8 destination_type[0x8];
1287 u8 destination_id[0x18];
Eli Britstein1b115492018-12-10 13:15:14 -08001288
Shahar Kleinb17f7fc2018-03-22 12:32:12 +02001289 u8 destination_eswitch_owner_vhca_id_valid[0x1];
Eli Britstein1b115492018-12-10 13:15:14 -08001290 u8 packet_reformat[0x1];
1291 u8 reserved_at_22[0xe];
Shahar Kleinb17f7fc2018-03-22 12:32:12 +02001292 u8 destination_eswitch_owner_vhca_id[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001293};
1294
Amir Vadai9dc0b282016-05-13 12:55:39 +00001295struct mlx5_ifc_flow_counter_list_bits {
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001296 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00001297
1298 u8 reserved_at_20[0x20];
1299};
1300
Eli Britstein1b115492018-12-10 13:15:14 -08001301struct mlx5_ifc_extended_dest_format_bits {
1302 struct mlx5_ifc_dest_format_struct_bits destination_entry;
1303
1304 u8 packet_reformat_id[0x20];
1305
1306 u8 reserved_at_60[0x20];
1307};
1308
Amir Vadai9dc0b282016-05-13 12:55:39 +00001309union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits {
1310 struct mlx5_ifc_dest_format_struct_bits dest_format_struct;
1311 struct mlx5_ifc_flow_counter_list_bits flow_counter_list;
1312 u8 reserved_at_0[0x40];
1313};
1314
Saeed Mahameede2816822015-05-28 22:28:40 +03001315struct mlx5_ifc_fte_match_param_bits {
1316 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
1317
1318 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
1319
1320 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
1321
Ariel Levkovich71c6e862018-05-13 14:33:34 +03001322 struct mlx5_ifc_fte_match_set_misc2_bits misc_parameters_2;
1323
1324 u8 reserved_at_800[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03001325};
1326
1327enum {
1328 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
1329 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
1330 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
1331 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
1332 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
1333};
1334
1335struct mlx5_ifc_rx_hash_field_select_bits {
1336 u8 l3_prot_type[0x1];
1337 u8 l4_prot_type[0x1];
1338 u8 selected_fields[0x1e];
1339};
1340
1341enum {
1342 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
1343 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
1344};
1345
1346enum {
1347 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
1348 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
1349};
1350
1351struct mlx5_ifc_wq_bits {
1352 u8 wq_type[0x4];
1353 u8 wq_signature[0x1];
1354 u8 end_padding_mode[0x2];
1355 u8 cd_slave[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001356 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001357
1358 u8 hds_skip_first_sge[0x1];
1359 u8 log2_hds_buf_size[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001360 u8 reserved_at_24[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03001361 u8 page_offset[0x5];
1362 u8 lwm[0x10];
1363
Matan Barakb4ff3a32016-02-09 14:57:42 +02001364 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001365 u8 pd[0x18];
1366
Matan Barakb4ff3a32016-02-09 14:57:42 +02001367 u8 reserved_at_60[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001368 u8 uar_page[0x18];
1369
1370 u8 dbr_addr[0x40];
1371
1372 u8 hw_counter[0x20];
1373
1374 u8 sw_counter[0x20];
1375
Matan Barakb4ff3a32016-02-09 14:57:42 +02001376 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001377 u8 log_wq_stride[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001378 u8 reserved_at_110[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001379 u8 log_wq_pg_sz[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001380 u8 reserved_at_118[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001381 u8 log_wq_sz[0x5];
1382
Leon Romanovskybd371972018-09-20 21:35:26 +03001383 u8 dbr_umem_valid[0x1];
1384 u8 wq_umem_valid[0x1];
1385 u8 reserved_at_122[0x1];
Or Gerlitz4d533e02018-01-04 12:26:21 +02001386 u8 log_hairpin_num_packets[0x5];
1387 u8 reserved_at_128[0x3];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001388 u8 log_hairpin_data_sz[0x5];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001389
Tariq Toukan619a8f2a2018-02-07 14:41:25 +02001390 u8 reserved_at_130[0x4];
1391 u8 log_wqe_num_of_strides[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001392 u8 two_byte_shift_en[0x1];
1393 u8 reserved_at_139[0x4];
1394 u8 log_wqe_stride_size[0x3];
1395
1396 u8 reserved_at_140[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001397
1398 struct mlx5_ifc_cmd_pas_bits pas[0];
1399};
1400
1401struct mlx5_ifc_rq_num_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001402 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001403 u8 rq_num[0x18];
1404};
1405
1406struct mlx5_ifc_mac_address_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001407 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001408 u8 mac_addr_47_32[0x10];
1409
1410 u8 mac_addr_31_0[0x20];
1411};
1412
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001413struct mlx5_ifc_vlan_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001414 u8 reserved_at_0[0x14];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001415 u8 vlan[0x0c];
1416
Matan Barakb4ff3a32016-02-09 14:57:42 +02001417 u8 reserved_at_20[0x20];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001418};
1419
Saeed Mahameede2816822015-05-28 22:28:40 +03001420struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001421 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001422
1423 u8 min_time_between_cnps[0x20];
1424
Matan Barakb4ff3a32016-02-09 14:57:42 +02001425 u8 reserved_at_c0[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03001426 u8 cnp_dscp[0x6];
Parav Pandit4a2da0b2017-05-30 10:05:15 +03001427 u8 reserved_at_d8[0x4];
1428 u8 cnp_prio_mode[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001429 u8 cnp_802p_prio[0x3];
1430
Matan Barakb4ff3a32016-02-09 14:57:42 +02001431 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +03001432};
1433
1434struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001435 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001436
Matan Barakb4ff3a32016-02-09 14:57:42 +02001437 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001438 u8 clamp_tgt_rate[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001439 u8 reserved_at_65[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001440 u8 clamp_tgt_rate_after_time_inc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001441 u8 reserved_at_69[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03001442
Matan Barakb4ff3a32016-02-09 14:57:42 +02001443 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001444
1445 u8 rpg_time_reset[0x20];
1446
1447 u8 rpg_byte_reset[0x20];
1448
1449 u8 rpg_threshold[0x20];
1450
1451 u8 rpg_max_rate[0x20];
1452
1453 u8 rpg_ai_rate[0x20];
1454
1455 u8 rpg_hai_rate[0x20];
1456
1457 u8 rpg_gd[0x20];
1458
1459 u8 rpg_min_dec_fac[0x20];
1460
1461 u8 rpg_min_rate[0x20];
1462
Matan Barakb4ff3a32016-02-09 14:57:42 +02001463 u8 reserved_at_1c0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001464
1465 u8 rate_to_set_on_first_cnp[0x20];
1466
1467 u8 dce_tcp_g[0x20];
1468
1469 u8 dce_tcp_rtt[0x20];
1470
1471 u8 rate_reduce_monitor_period[0x20];
1472
Matan Barakb4ff3a32016-02-09 14:57:42 +02001473 u8 reserved_at_320[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001474
1475 u8 initial_alpha_value[0x20];
1476
Matan Barakb4ff3a32016-02-09 14:57:42 +02001477 u8 reserved_at_360[0x4a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001478};
1479
1480struct mlx5_ifc_cong_control_802_1qau_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001481 u8 reserved_at_0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001482
1483 u8 rppp_max_rps[0x20];
1484
1485 u8 rpg_time_reset[0x20];
1486
1487 u8 rpg_byte_reset[0x20];
1488
1489 u8 rpg_threshold[0x20];
1490
1491 u8 rpg_max_rate[0x20];
1492
1493 u8 rpg_ai_rate[0x20];
1494
1495 u8 rpg_hai_rate[0x20];
1496
1497 u8 rpg_gd[0x20];
1498
1499 u8 rpg_min_dec_fac[0x20];
1500
1501 u8 rpg_min_rate[0x20];
1502
Matan Barakb4ff3a32016-02-09 14:57:42 +02001503 u8 reserved_at_1c0[0x640];
Saeed Mahameede2816822015-05-28 22:28:40 +03001504};
1505
1506enum {
1507 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1508 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1509 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1510};
1511
1512struct mlx5_ifc_resize_field_select_bits {
1513 u8 resize_field_select[0x20];
1514};
1515
1516enum {
1517 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1518 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1519 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1520 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1521};
1522
1523struct mlx5_ifc_modify_field_select_bits {
1524 u8 modify_field_select[0x20];
1525};
1526
1527struct mlx5_ifc_field_select_r_roce_np_bits {
1528 u8 field_select_r_roce_np[0x20];
1529};
1530
1531struct mlx5_ifc_field_select_r_roce_rp_bits {
1532 u8 field_select_r_roce_rp[0x20];
1533};
1534
1535enum {
1536 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1537 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1538 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1539 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1540 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1541 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1542 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1543 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1544 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1545 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1546};
1547
1548struct mlx5_ifc_field_select_802_1qau_rp_bits {
1549 u8 field_select_8021qaurp[0x20];
1550};
1551
1552struct mlx5_ifc_phys_layer_cntrs_bits {
1553 u8 time_since_last_clear_high[0x20];
1554
1555 u8 time_since_last_clear_low[0x20];
1556
1557 u8 symbol_errors_high[0x20];
1558
1559 u8 symbol_errors_low[0x20];
1560
1561 u8 sync_headers_errors_high[0x20];
1562
1563 u8 sync_headers_errors_low[0x20];
1564
1565 u8 edpl_bip_errors_lane0_high[0x20];
1566
1567 u8 edpl_bip_errors_lane0_low[0x20];
1568
1569 u8 edpl_bip_errors_lane1_high[0x20];
1570
1571 u8 edpl_bip_errors_lane1_low[0x20];
1572
1573 u8 edpl_bip_errors_lane2_high[0x20];
1574
1575 u8 edpl_bip_errors_lane2_low[0x20];
1576
1577 u8 edpl_bip_errors_lane3_high[0x20];
1578
1579 u8 edpl_bip_errors_lane3_low[0x20];
1580
1581 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1582
1583 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1584
1585 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1586
1587 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1588
1589 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1590
1591 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1592
1593 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1594
1595 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1596
1597 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1598
1599 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1600
1601 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1602
1603 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1604
1605 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1606
1607 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1608
1609 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1610
1611 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1612
1613 u8 rs_fec_corrected_blocks_high[0x20];
1614
1615 u8 rs_fec_corrected_blocks_low[0x20];
1616
1617 u8 rs_fec_uncorrectable_blocks_high[0x20];
1618
1619 u8 rs_fec_uncorrectable_blocks_low[0x20];
1620
1621 u8 rs_fec_no_errors_blocks_high[0x20];
1622
1623 u8 rs_fec_no_errors_blocks_low[0x20];
1624
1625 u8 rs_fec_single_error_blocks_high[0x20];
1626
1627 u8 rs_fec_single_error_blocks_low[0x20];
1628
1629 u8 rs_fec_corrected_symbols_total_high[0x20];
1630
1631 u8 rs_fec_corrected_symbols_total_low[0x20];
1632
1633 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1634
1635 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1636
1637 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1638
1639 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1640
1641 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1642
1643 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1644
1645 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1646
1647 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1648
1649 u8 link_down_events[0x20];
1650
1651 u8 successful_recovery_events[0x20];
1652
Matan Barakb4ff3a32016-02-09 14:57:42 +02001653 u8 reserved_at_640[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03001654};
1655
Gal Pressmand8dc0502016-09-27 17:04:51 +03001656struct mlx5_ifc_phys_layer_statistical_cntrs_bits {
1657 u8 time_since_last_clear_high[0x20];
1658
1659 u8 time_since_last_clear_low[0x20];
1660
1661 u8 phy_received_bits_high[0x20];
1662
1663 u8 phy_received_bits_low[0x20];
1664
1665 u8 phy_symbol_errors_high[0x20];
1666
1667 u8 phy_symbol_errors_low[0x20];
1668
1669 u8 phy_corrected_bits_high[0x20];
1670
1671 u8 phy_corrected_bits_low[0x20];
1672
1673 u8 phy_corrected_bits_lane0_high[0x20];
1674
1675 u8 phy_corrected_bits_lane0_low[0x20];
1676
1677 u8 phy_corrected_bits_lane1_high[0x20];
1678
1679 u8 phy_corrected_bits_lane1_low[0x20];
1680
1681 u8 phy_corrected_bits_lane2_high[0x20];
1682
1683 u8 phy_corrected_bits_lane2_low[0x20];
1684
1685 u8 phy_corrected_bits_lane3_high[0x20];
1686
1687 u8 phy_corrected_bits_lane3_low[0x20];
1688
1689 u8 reserved_at_200[0x5c0];
1690};
1691
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001692struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits {
1693 u8 symbol_error_counter[0x10];
1694
1695 u8 link_error_recovery_counter[0x8];
1696
1697 u8 link_downed_counter[0x8];
1698
1699 u8 port_rcv_errors[0x10];
1700
1701 u8 port_rcv_remote_physical_errors[0x10];
1702
1703 u8 port_rcv_switch_relay_errors[0x10];
1704
1705 u8 port_xmit_discards[0x10];
1706
1707 u8 port_xmit_constraint_errors[0x8];
1708
1709 u8 port_rcv_constraint_errors[0x8];
1710
1711 u8 reserved_at_70[0x8];
1712
1713 u8 link_overrun_errors[0x8];
1714
1715 u8 reserved_at_80[0x10];
1716
1717 u8 vl_15_dropped[0x10];
1718
Tim Wright133bea02017-05-01 17:30:08 +01001719 u8 reserved_at_a0[0x80];
1720
1721 u8 port_xmit_wait[0x20];
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001722};
1723
Saeed Mahameede2816822015-05-28 22:28:40 +03001724struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1725 u8 transmit_queue_high[0x20];
1726
1727 u8 transmit_queue_low[0x20];
1728
Matan Barakb4ff3a32016-02-09 14:57:42 +02001729 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001730};
1731
1732struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1733 u8 rx_octets_high[0x20];
1734
1735 u8 rx_octets_low[0x20];
1736
Matan Barakb4ff3a32016-02-09 14:57:42 +02001737 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001738
1739 u8 rx_frames_high[0x20];
1740
1741 u8 rx_frames_low[0x20];
1742
1743 u8 tx_octets_high[0x20];
1744
1745 u8 tx_octets_low[0x20];
1746
Matan Barakb4ff3a32016-02-09 14:57:42 +02001747 u8 reserved_at_180[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001748
1749 u8 tx_frames_high[0x20];
1750
1751 u8 tx_frames_low[0x20];
1752
1753 u8 rx_pause_high[0x20];
1754
1755 u8 rx_pause_low[0x20];
1756
1757 u8 rx_pause_duration_high[0x20];
1758
1759 u8 rx_pause_duration_low[0x20];
1760
1761 u8 tx_pause_high[0x20];
1762
1763 u8 tx_pause_low[0x20];
1764
1765 u8 tx_pause_duration_high[0x20];
1766
1767 u8 tx_pause_duration_low[0x20];
1768
1769 u8 rx_pause_transition_high[0x20];
1770
1771 u8 rx_pause_transition_low[0x20];
1772
Inbar Karmy2fcb12d2017-08-17 16:39:47 +03001773 u8 reserved_at_3c0[0x40];
1774
1775 u8 device_stall_minor_watermark_cnt_high[0x20];
1776
1777 u8 device_stall_minor_watermark_cnt_low[0x20];
1778
1779 u8 device_stall_critical_watermark_cnt_high[0x20];
1780
1781 u8 device_stall_critical_watermark_cnt_low[0x20];
1782
1783 u8 reserved_at_480[0x340];
Saeed Mahameede2816822015-05-28 22:28:40 +03001784};
1785
1786struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1787 u8 port_transmit_wait_high[0x20];
1788
1789 u8 port_transmit_wait_low[0x20];
1790
Gal Pressman2dba0792017-06-18 14:56:45 +03001791 u8 reserved_at_40[0x100];
1792
1793 u8 rx_buffer_almost_full_high[0x20];
1794
1795 u8 rx_buffer_almost_full_low[0x20];
1796
1797 u8 rx_buffer_full_high[0x20];
1798
1799 u8 rx_buffer_full_low[0x20];
1800
Talat Batheesh0af51072018-05-17 11:14:18 +03001801 u8 rx_icrc_encapsulated_high[0x20];
1802
1803 u8 rx_icrc_encapsulated_low[0x20];
1804
1805 u8 reserved_at_200[0x5c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001806};
1807
1808struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1809 u8 dot3stats_alignment_errors_high[0x20];
1810
1811 u8 dot3stats_alignment_errors_low[0x20];
1812
1813 u8 dot3stats_fcs_errors_high[0x20];
1814
1815 u8 dot3stats_fcs_errors_low[0x20];
1816
1817 u8 dot3stats_single_collision_frames_high[0x20];
1818
1819 u8 dot3stats_single_collision_frames_low[0x20];
1820
1821 u8 dot3stats_multiple_collision_frames_high[0x20];
1822
1823 u8 dot3stats_multiple_collision_frames_low[0x20];
1824
1825 u8 dot3stats_sqe_test_errors_high[0x20];
1826
1827 u8 dot3stats_sqe_test_errors_low[0x20];
1828
1829 u8 dot3stats_deferred_transmissions_high[0x20];
1830
1831 u8 dot3stats_deferred_transmissions_low[0x20];
1832
1833 u8 dot3stats_late_collisions_high[0x20];
1834
1835 u8 dot3stats_late_collisions_low[0x20];
1836
1837 u8 dot3stats_excessive_collisions_high[0x20];
1838
1839 u8 dot3stats_excessive_collisions_low[0x20];
1840
1841 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1842
1843 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1844
1845 u8 dot3stats_carrier_sense_errors_high[0x20];
1846
1847 u8 dot3stats_carrier_sense_errors_low[0x20];
1848
1849 u8 dot3stats_frame_too_longs_high[0x20];
1850
1851 u8 dot3stats_frame_too_longs_low[0x20];
1852
1853 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1854
1855 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1856
1857 u8 dot3stats_symbol_errors_high[0x20];
1858
1859 u8 dot3stats_symbol_errors_low[0x20];
1860
1861 u8 dot3control_in_unknown_opcodes_high[0x20];
1862
1863 u8 dot3control_in_unknown_opcodes_low[0x20];
1864
1865 u8 dot3in_pause_frames_high[0x20];
1866
1867 u8 dot3in_pause_frames_low[0x20];
1868
1869 u8 dot3out_pause_frames_high[0x20];
1870
1871 u8 dot3out_pause_frames_low[0x20];
1872
Matan Barakb4ff3a32016-02-09 14:57:42 +02001873 u8 reserved_at_400[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001874};
1875
1876struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1877 u8 ether_stats_drop_events_high[0x20];
1878
1879 u8 ether_stats_drop_events_low[0x20];
1880
1881 u8 ether_stats_octets_high[0x20];
1882
1883 u8 ether_stats_octets_low[0x20];
1884
1885 u8 ether_stats_pkts_high[0x20];
1886
1887 u8 ether_stats_pkts_low[0x20];
1888
1889 u8 ether_stats_broadcast_pkts_high[0x20];
1890
1891 u8 ether_stats_broadcast_pkts_low[0x20];
1892
1893 u8 ether_stats_multicast_pkts_high[0x20];
1894
1895 u8 ether_stats_multicast_pkts_low[0x20];
1896
1897 u8 ether_stats_crc_align_errors_high[0x20];
1898
1899 u8 ether_stats_crc_align_errors_low[0x20];
1900
1901 u8 ether_stats_undersize_pkts_high[0x20];
1902
1903 u8 ether_stats_undersize_pkts_low[0x20];
1904
1905 u8 ether_stats_oversize_pkts_high[0x20];
1906
1907 u8 ether_stats_oversize_pkts_low[0x20];
1908
1909 u8 ether_stats_fragments_high[0x20];
1910
1911 u8 ether_stats_fragments_low[0x20];
1912
1913 u8 ether_stats_jabbers_high[0x20];
1914
1915 u8 ether_stats_jabbers_low[0x20];
1916
1917 u8 ether_stats_collisions_high[0x20];
1918
1919 u8 ether_stats_collisions_low[0x20];
1920
1921 u8 ether_stats_pkts64octets_high[0x20];
1922
1923 u8 ether_stats_pkts64octets_low[0x20];
1924
1925 u8 ether_stats_pkts65to127octets_high[0x20];
1926
1927 u8 ether_stats_pkts65to127octets_low[0x20];
1928
1929 u8 ether_stats_pkts128to255octets_high[0x20];
1930
1931 u8 ether_stats_pkts128to255octets_low[0x20];
1932
1933 u8 ether_stats_pkts256to511octets_high[0x20];
1934
1935 u8 ether_stats_pkts256to511octets_low[0x20];
1936
1937 u8 ether_stats_pkts512to1023octets_high[0x20];
1938
1939 u8 ether_stats_pkts512to1023octets_low[0x20];
1940
1941 u8 ether_stats_pkts1024to1518octets_high[0x20];
1942
1943 u8 ether_stats_pkts1024to1518octets_low[0x20];
1944
1945 u8 ether_stats_pkts1519to2047octets_high[0x20];
1946
1947 u8 ether_stats_pkts1519to2047octets_low[0x20];
1948
1949 u8 ether_stats_pkts2048to4095octets_high[0x20];
1950
1951 u8 ether_stats_pkts2048to4095octets_low[0x20];
1952
1953 u8 ether_stats_pkts4096to8191octets_high[0x20];
1954
1955 u8 ether_stats_pkts4096to8191octets_low[0x20];
1956
1957 u8 ether_stats_pkts8192to10239octets_high[0x20];
1958
1959 u8 ether_stats_pkts8192to10239octets_low[0x20];
1960
Matan Barakb4ff3a32016-02-09 14:57:42 +02001961 u8 reserved_at_540[0x280];
Saeed Mahameede2816822015-05-28 22:28:40 +03001962};
1963
1964struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1965 u8 if_in_octets_high[0x20];
1966
1967 u8 if_in_octets_low[0x20];
1968
1969 u8 if_in_ucast_pkts_high[0x20];
1970
1971 u8 if_in_ucast_pkts_low[0x20];
1972
1973 u8 if_in_discards_high[0x20];
1974
1975 u8 if_in_discards_low[0x20];
1976
1977 u8 if_in_errors_high[0x20];
1978
1979 u8 if_in_errors_low[0x20];
1980
1981 u8 if_in_unknown_protos_high[0x20];
1982
1983 u8 if_in_unknown_protos_low[0x20];
1984
1985 u8 if_out_octets_high[0x20];
1986
1987 u8 if_out_octets_low[0x20];
1988
1989 u8 if_out_ucast_pkts_high[0x20];
1990
1991 u8 if_out_ucast_pkts_low[0x20];
1992
1993 u8 if_out_discards_high[0x20];
1994
1995 u8 if_out_discards_low[0x20];
1996
1997 u8 if_out_errors_high[0x20];
1998
1999 u8 if_out_errors_low[0x20];
2000
2001 u8 if_in_multicast_pkts_high[0x20];
2002
2003 u8 if_in_multicast_pkts_low[0x20];
2004
2005 u8 if_in_broadcast_pkts_high[0x20];
2006
2007 u8 if_in_broadcast_pkts_low[0x20];
2008
2009 u8 if_out_multicast_pkts_high[0x20];
2010
2011 u8 if_out_multicast_pkts_low[0x20];
2012
2013 u8 if_out_broadcast_pkts_high[0x20];
2014
2015 u8 if_out_broadcast_pkts_low[0x20];
2016
Matan Barakb4ff3a32016-02-09 14:57:42 +02002017 u8 reserved_at_340[0x480];
Saeed Mahameede2816822015-05-28 22:28:40 +03002018};
2019
2020struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
2021 u8 a_frames_transmitted_ok_high[0x20];
2022
2023 u8 a_frames_transmitted_ok_low[0x20];
2024
2025 u8 a_frames_received_ok_high[0x20];
2026
2027 u8 a_frames_received_ok_low[0x20];
2028
2029 u8 a_frame_check_sequence_errors_high[0x20];
2030
2031 u8 a_frame_check_sequence_errors_low[0x20];
2032
2033 u8 a_alignment_errors_high[0x20];
2034
2035 u8 a_alignment_errors_low[0x20];
2036
2037 u8 a_octets_transmitted_ok_high[0x20];
2038
2039 u8 a_octets_transmitted_ok_low[0x20];
2040
2041 u8 a_octets_received_ok_high[0x20];
2042
2043 u8 a_octets_received_ok_low[0x20];
2044
2045 u8 a_multicast_frames_xmitted_ok_high[0x20];
2046
2047 u8 a_multicast_frames_xmitted_ok_low[0x20];
2048
2049 u8 a_broadcast_frames_xmitted_ok_high[0x20];
2050
2051 u8 a_broadcast_frames_xmitted_ok_low[0x20];
2052
2053 u8 a_multicast_frames_received_ok_high[0x20];
2054
2055 u8 a_multicast_frames_received_ok_low[0x20];
2056
2057 u8 a_broadcast_frames_received_ok_high[0x20];
2058
2059 u8 a_broadcast_frames_received_ok_low[0x20];
2060
2061 u8 a_in_range_length_errors_high[0x20];
2062
2063 u8 a_in_range_length_errors_low[0x20];
2064
2065 u8 a_out_of_range_length_field_high[0x20];
2066
2067 u8 a_out_of_range_length_field_low[0x20];
2068
2069 u8 a_frame_too_long_errors_high[0x20];
2070
2071 u8 a_frame_too_long_errors_low[0x20];
2072
2073 u8 a_symbol_error_during_carrier_high[0x20];
2074
2075 u8 a_symbol_error_during_carrier_low[0x20];
2076
2077 u8 a_mac_control_frames_transmitted_high[0x20];
2078
2079 u8 a_mac_control_frames_transmitted_low[0x20];
2080
2081 u8 a_mac_control_frames_received_high[0x20];
2082
2083 u8 a_mac_control_frames_received_low[0x20];
2084
2085 u8 a_unsupported_opcodes_received_high[0x20];
2086
2087 u8 a_unsupported_opcodes_received_low[0x20];
2088
2089 u8 a_pause_mac_ctrl_frames_received_high[0x20];
2090
2091 u8 a_pause_mac_ctrl_frames_received_low[0x20];
2092
2093 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
2094
2095 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
2096
Matan Barakb4ff3a32016-02-09 14:57:42 +02002097 u8 reserved_at_4c0[0x300];
Saeed Mahameede2816822015-05-28 22:28:40 +03002098};
2099
Gal Pressman8ed1a632016-11-17 13:46:01 +02002100struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits {
2101 u8 life_time_counter_high[0x20];
2102
2103 u8 life_time_counter_low[0x20];
2104
2105 u8 rx_errors[0x20];
2106
2107 u8 tx_errors[0x20];
2108
2109 u8 l0_to_recovery_eieos[0x20];
2110
2111 u8 l0_to_recovery_ts[0x20];
2112
2113 u8 l0_to_recovery_framing[0x20];
2114
2115 u8 l0_to_recovery_retrain[0x20];
2116
2117 u8 crc_error_dllp[0x20];
2118
2119 u8 crc_error_tlp[0x20];
2120
Eran Ben Elishaefae7f72017-05-12 02:47:02 +03002121 u8 tx_overflow_buffer_pkt_high[0x20];
2122
2123 u8 tx_overflow_buffer_pkt_low[0x20];
Gal Pressman5405fa22017-06-15 18:29:23 +03002124
2125 u8 outbound_stalled_reads[0x20];
2126
2127 u8 outbound_stalled_writes[0x20];
2128
2129 u8 outbound_stalled_reads_events[0x20];
2130
2131 u8 outbound_stalled_writes_events[0x20];
2132
2133 u8 reserved_at_200[0x5c0];
Gal Pressman8ed1a632016-11-17 13:46:01 +02002134};
2135
Saeed Mahameede2816822015-05-28 22:28:40 +03002136struct mlx5_ifc_cmd_inter_comp_event_bits {
2137 u8 command_completion_vector[0x20];
2138
Matan Barakb4ff3a32016-02-09 14:57:42 +02002139 u8 reserved_at_20[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002140};
2141
2142struct mlx5_ifc_stall_vl_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002143 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002144 u8 port_num[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002145 u8 reserved_at_19[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002146 u8 vl[0x4];
2147
Matan Barakb4ff3a32016-02-09 14:57:42 +02002148 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002149};
2150
2151struct mlx5_ifc_db_bf_congestion_event_bits {
2152 u8 event_subtype[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002153 u8 reserved_at_8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002154 u8 congestion_level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002155 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002156
Matan Barakb4ff3a32016-02-09 14:57:42 +02002157 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002158};
2159
2160struct mlx5_ifc_gpio_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002161 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002162
2163 u8 gpio_event_hi[0x20];
2164
2165 u8 gpio_event_lo[0x20];
2166
Matan Barakb4ff3a32016-02-09 14:57:42 +02002167 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002168};
2169
2170struct mlx5_ifc_port_state_change_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002171 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002172
2173 u8 port_num[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002174 u8 reserved_at_44[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002175
Matan Barakb4ff3a32016-02-09 14:57:42 +02002176 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002177};
2178
2179struct mlx5_ifc_dropped_packet_logged_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002180 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002181};
2182
2183enum {
2184 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
2185 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
2186};
2187
2188struct mlx5_ifc_cq_error_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002189 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002190 u8 cqn[0x18];
2191
Matan Barakb4ff3a32016-02-09 14:57:42 +02002192 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002193
Matan Barakb4ff3a32016-02-09 14:57:42 +02002194 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002195 u8 syndrome[0x8];
2196
Matan Barakb4ff3a32016-02-09 14:57:42 +02002197 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002198};
2199
2200struct mlx5_ifc_rdma_page_fault_event_bits {
2201 u8 bytes_committed[0x20];
2202
2203 u8 r_key[0x20];
2204
Matan Barakb4ff3a32016-02-09 14:57:42 +02002205 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002206 u8 packet_len[0x10];
2207
2208 u8 rdma_op_len[0x20];
2209
2210 u8 rdma_va[0x40];
2211
Matan Barakb4ff3a32016-02-09 14:57:42 +02002212 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002213 u8 rdma[0x1];
2214 u8 write[0x1];
2215 u8 requestor[0x1];
2216 u8 qp_number[0x18];
2217};
2218
2219struct mlx5_ifc_wqe_associated_page_fault_event_bits {
2220 u8 bytes_committed[0x20];
2221
Matan Barakb4ff3a32016-02-09 14:57:42 +02002222 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002223 u8 wqe_index[0x10];
2224
Matan Barakb4ff3a32016-02-09 14:57:42 +02002225 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002226 u8 len[0x10];
2227
Matan Barakb4ff3a32016-02-09 14:57:42 +02002228 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002229
Matan Barakb4ff3a32016-02-09 14:57:42 +02002230 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002231 u8 rdma[0x1];
2232 u8 write_read[0x1];
2233 u8 requestor[0x1];
2234 u8 qpn[0x18];
2235};
2236
2237struct mlx5_ifc_qp_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002238 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002239
2240 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002241 u8 reserved_at_a8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002242
Matan Barakb4ff3a32016-02-09 14:57:42 +02002243 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002244 u8 qpn_rqn_sqn[0x18];
2245};
2246
2247struct mlx5_ifc_dct_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002248 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002249
Matan Barakb4ff3a32016-02-09 14:57:42 +02002250 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002251 u8 dct_number[0x18];
2252};
2253
2254struct mlx5_ifc_comp_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002255 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002256
Matan Barakb4ff3a32016-02-09 14:57:42 +02002257 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002258 u8 cq_number[0x18];
2259};
2260
2261enum {
2262 MLX5_QPC_STATE_RST = 0x0,
2263 MLX5_QPC_STATE_INIT = 0x1,
2264 MLX5_QPC_STATE_RTR = 0x2,
2265 MLX5_QPC_STATE_RTS = 0x3,
2266 MLX5_QPC_STATE_SQER = 0x4,
2267 MLX5_QPC_STATE_ERR = 0x6,
2268 MLX5_QPC_STATE_SQD = 0x7,
2269 MLX5_QPC_STATE_SUSPENDED = 0x9,
2270};
2271
2272enum {
2273 MLX5_QPC_ST_RC = 0x0,
2274 MLX5_QPC_ST_UC = 0x1,
2275 MLX5_QPC_ST_UD = 0x2,
2276 MLX5_QPC_ST_XRC = 0x3,
2277 MLX5_QPC_ST_DCI = 0x5,
2278 MLX5_QPC_ST_QP0 = 0x7,
2279 MLX5_QPC_ST_QP1 = 0x8,
2280 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
2281 MLX5_QPC_ST_REG_UMR = 0xc,
2282};
2283
2284enum {
2285 MLX5_QPC_PM_STATE_ARMED = 0x0,
2286 MLX5_QPC_PM_STATE_REARM = 0x1,
2287 MLX5_QPC_PM_STATE_RESERVED = 0x2,
2288 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
2289};
2290
2291enum {
Artemy Kovalyov6e446362017-08-15 11:59:02 +03002292 MLX5_QPC_OFFLOAD_TYPE_RNDV = 0x1,
2293};
2294
2295enum {
Saeed Mahameede2816822015-05-28 22:28:40 +03002296 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
2297 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
2298};
2299
2300enum {
2301 MLX5_QPC_MTU_256_BYTES = 0x1,
2302 MLX5_QPC_MTU_512_BYTES = 0x2,
2303 MLX5_QPC_MTU_1K_BYTES = 0x3,
2304 MLX5_QPC_MTU_2K_BYTES = 0x4,
2305 MLX5_QPC_MTU_4K_BYTES = 0x5,
2306 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
2307};
2308
2309enum {
2310 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
2311 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
2312 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
2313 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
2314 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
2315 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
2316 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
2317 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
2318};
2319
2320enum {
2321 MLX5_QPC_CS_REQ_DISABLE = 0x0,
2322 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
2323 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
2324};
2325
2326enum {
2327 MLX5_QPC_CS_RES_DISABLE = 0x0,
2328 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
2329 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
2330};
2331
2332struct mlx5_ifc_qpc_bits {
2333 u8 state[0x4];
Aviv Heller84df61e2016-05-10 13:47:50 +03002334 u8 lag_tx_port_affinity[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002335 u8 st[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002336 u8 reserved_at_10[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002337 u8 pm_state[0x2];
Danit Goldberg3fd3c802018-11-30 13:22:04 +02002338 u8 reserved_at_15[0x1];
2339 u8 req_e2e_credit_mode[0x2];
Artemy Kovalyov6e446362017-08-15 11:59:02 +03002340 u8 offload_type[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002341 u8 end_padding_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002342 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002343
2344 u8 wq_signature[0x1];
2345 u8 block_lb_mc[0x1];
2346 u8 atomic_like_write_en[0x1];
2347 u8 latency_sensitive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002348 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002349 u8 drain_sigerr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002350 u8 reserved_at_26[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002351 u8 pd[0x18];
2352
2353 u8 mtu[0x3];
2354 u8 log_msg_max[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002355 u8 reserved_at_48[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002356 u8 log_rq_size[0x4];
2357 u8 log_rq_stride[0x3];
2358 u8 no_sq[0x1];
2359 u8 log_sq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002360 u8 reserved_at_55[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002361 u8 rlky[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02002362 u8 ulp_stateless_offload_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002363
2364 u8 counter_set_id[0x8];
2365 u8 uar_page[0x18];
2366
Matan Barakb4ff3a32016-02-09 14:57:42 +02002367 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002368 u8 user_index[0x18];
2369
Matan Barakb4ff3a32016-02-09 14:57:42 +02002370 u8 reserved_at_a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002371 u8 log_page_size[0x5];
2372 u8 remote_qpn[0x18];
2373
2374 struct mlx5_ifc_ads_bits primary_address_path;
2375
2376 struct mlx5_ifc_ads_bits secondary_address_path;
2377
2378 u8 log_ack_req_freq[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002379 u8 reserved_at_384[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002380 u8 log_sra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002381 u8 reserved_at_38b[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002382 u8 retry_count[0x3];
2383 u8 rnr_retry[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002384 u8 reserved_at_393[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002385 u8 fre[0x1];
2386 u8 cur_rnr_retry[0x3];
2387 u8 cur_retry_count[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002388 u8 reserved_at_39b[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002389
Matan Barakb4ff3a32016-02-09 14:57:42 +02002390 u8 reserved_at_3a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002391
Matan Barakb4ff3a32016-02-09 14:57:42 +02002392 u8 reserved_at_3c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002393 u8 next_send_psn[0x18];
2394
Matan Barakb4ff3a32016-02-09 14:57:42 +02002395 u8 reserved_at_3e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002396 u8 cqn_snd[0x18];
2397
Saeed Mahameed09a7d9e2016-07-19 01:17:59 +03002398 u8 reserved_at_400[0x8];
2399 u8 deth_sqpn[0x18];
2400
2401 u8 reserved_at_420[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002402
Matan Barakb4ff3a32016-02-09 14:57:42 +02002403 u8 reserved_at_440[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002404 u8 last_acked_psn[0x18];
2405
Matan Barakb4ff3a32016-02-09 14:57:42 +02002406 u8 reserved_at_460[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002407 u8 ssn[0x18];
2408
Matan Barakb4ff3a32016-02-09 14:57:42 +02002409 u8 reserved_at_480[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002410 u8 log_rra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002411 u8 reserved_at_48b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002412 u8 atomic_mode[0x4];
2413 u8 rre[0x1];
2414 u8 rwe[0x1];
2415 u8 rae[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002416 u8 reserved_at_493[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002417 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002418 u8 reserved_at_49a[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002419 u8 cd_slave_receive[0x1];
2420 u8 cd_slave_send[0x1];
2421 u8 cd_master[0x1];
2422
Matan Barakb4ff3a32016-02-09 14:57:42 +02002423 u8 reserved_at_4a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002424 u8 min_rnr_nak[0x5];
2425 u8 next_rcv_psn[0x18];
2426
Matan Barakb4ff3a32016-02-09 14:57:42 +02002427 u8 reserved_at_4c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002428 u8 xrcd[0x18];
2429
Matan Barakb4ff3a32016-02-09 14:57:42 +02002430 u8 reserved_at_4e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002431 u8 cqn_rcv[0x18];
2432
2433 u8 dbr_addr[0x40];
2434
2435 u8 q_key[0x20];
2436
Matan Barakb4ff3a32016-02-09 14:57:42 +02002437 u8 reserved_at_560[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002438 u8 rq_type[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03002439 u8 srqn_rmpn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002440
Matan Barakb4ff3a32016-02-09 14:57:42 +02002441 u8 reserved_at_580[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002442 u8 rmsn[0x18];
2443
2444 u8 hw_sq_wqebb_counter[0x10];
2445 u8 sw_sq_wqebb_counter[0x10];
2446
2447 u8 hw_rq_counter[0x20];
2448
2449 u8 sw_rq_counter[0x20];
2450
Matan Barakb4ff3a32016-02-09 14:57:42 +02002451 u8 reserved_at_600[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002452
Matan Barakb4ff3a32016-02-09 14:57:42 +02002453 u8 reserved_at_620[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03002454 u8 cgs[0x1];
2455 u8 cs_req[0x8];
2456 u8 cs_res[0x8];
2457
2458 u8 dc_access_key[0x40];
2459
Leon Romanovskybd371972018-09-20 21:35:26 +03002460 u8 reserved_at_680[0x3];
2461 u8 dbr_umem_valid[0x1];
2462
2463 u8 reserved_at_684[0xbc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002464};
2465
2466struct mlx5_ifc_roce_addr_layout_bits {
2467 u8 source_l3_address[16][0x8];
2468
Matan Barakb4ff3a32016-02-09 14:57:42 +02002469 u8 reserved_at_80[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002470 u8 vlan_valid[0x1];
2471 u8 vlan_id[0xc];
2472 u8 source_mac_47_32[0x10];
2473
2474 u8 source_mac_31_0[0x20];
2475
Matan Barakb4ff3a32016-02-09 14:57:42 +02002476 u8 reserved_at_c0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002477 u8 roce_l3_type[0x4];
2478 u8 roce_version[0x8];
2479
Matan Barakb4ff3a32016-02-09 14:57:42 +02002480 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002481};
2482
2483union mlx5_ifc_hca_cap_union_bits {
2484 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
2485 struct mlx5_ifc_odp_cap_bits odp_cap;
2486 struct mlx5_ifc_atomic_caps_bits atomic_caps;
2487 struct mlx5_ifc_roce_cap_bits roce_cap;
2488 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
2489 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
Saeed Mahameed495716b2015-12-01 18:03:19 +02002490 struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap;
Saeed Mahameedd6666752015-12-01 18:03:22 +02002491 struct mlx5_ifc_e_switch_cap_bits e_switch_cap;
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02002492 struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap;
Saeed Mahameed74862162016-06-09 15:11:34 +03002493 struct mlx5_ifc_qos_cap_bits qos_cap;
Ilan Tayarie29341f2017-03-13 20:05:45 +02002494 struct mlx5_ifc_fpga_cap_bits fpga_cap;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002495 u8 reserved_at_0[0x8000];
Saeed Mahameede2816822015-05-28 22:28:40 +03002496};
2497
2498enum {
2499 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
2500 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
2501 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
Amir Vadai9dc0b282016-05-13 12:55:39 +00002502 MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8,
Mark Bloch60786f02018-08-28 14:18:46 +03002503 MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT = 0x10,
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002504 MLX5_FLOW_CONTEXT_ACTION_DECAP = 0x20,
Or Gerlitz2a69cb92017-01-19 19:31:25 +02002505 MLX5_FLOW_CONTEXT_ACTION_MOD_HDR = 0x40,
Or Gerlitz0c068972018-01-28 20:14:20 +02002506 MLX5_FLOW_CONTEXT_ACTION_VLAN_POP = 0x80,
2507 MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH = 0x100,
Jianbo Liu8da6fe22018-07-16 18:35:32 -07002508 MLX5_FLOW_CONTEXT_ACTION_VLAN_POP_2 = 0x400,
2509 MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH_2 = 0x800,
Or Gerlitz0c068972018-01-28 20:14:20 +02002510};
2511
2512struct mlx5_ifc_vlan_bits {
2513 u8 ethtype[0x10];
2514 u8 prio[0x3];
2515 u8 cfi[0x1];
2516 u8 vid[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002517};
2518
2519struct mlx5_ifc_flow_context_bits {
Or Gerlitz0c068972018-01-28 20:14:20 +02002520 struct mlx5_ifc_vlan_bits push_vlan;
Saeed Mahameede2816822015-05-28 22:28:40 +03002521
2522 u8 group_id[0x20];
2523
Matan Barakb4ff3a32016-02-09 14:57:42 +02002524 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002525 u8 flow_tag[0x18];
2526
Matan Barakb4ff3a32016-02-09 14:57:42 +02002527 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002528 u8 action[0x10];
2529
Eli Britstein1b115492018-12-10 13:15:14 -08002530 u8 extended_destination[0x1];
2531 u8 reserved_at_80[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03002532 u8 destination_list_size[0x18];
2533
Amir Vadai9dc0b282016-05-13 12:55:39 +00002534 u8 reserved_at_a0[0x8];
2535 u8 flow_counter_list_size[0x18];
2536
Mark Bloch60786f02018-08-28 14:18:46 +03002537 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002538
Or Gerlitz2a69cb92017-01-19 19:31:25 +02002539 u8 modify_header_id[0x20];
2540
Jianbo Liu8da6fe22018-07-16 18:35:32 -07002541 struct mlx5_ifc_vlan_bits push_vlan_2;
2542
2543 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002544
2545 struct mlx5_ifc_fte_match_param_bits match_value;
2546
Matan Barakb4ff3a32016-02-09 14:57:42 +02002547 u8 reserved_at_1200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03002548
Amir Vadai9dc0b282016-05-13 12:55:39 +00002549 union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits destination[0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002550};
2551
2552enum {
2553 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
2554 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
2555};
2556
2557struct mlx5_ifc_xrc_srqc_bits {
2558 u8 state[0x4];
2559 u8 log_xrc_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002560 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002561
2562 u8 wq_signature[0x1];
2563 u8 cont_srq[0x1];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02002564 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002565 u8 rlky[0x1];
2566 u8 basic_cyclic_rcv_wqe[0x1];
2567 u8 log_rq_stride[0x3];
2568 u8 xrcd[0x18];
2569
2570 u8 page_offset[0x6];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02002571 u8 reserved_at_46[0x1];
2572 u8 dbr_umem_valid[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002573 u8 cqn[0x18];
2574
Matan Barakb4ff3a32016-02-09 14:57:42 +02002575 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002576
2577 u8 user_index_equal_xrc_srqn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002578 u8 reserved_at_81[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002579 u8 log_page_size[0x6];
2580 u8 user_index[0x18];
2581
Matan Barakb4ff3a32016-02-09 14:57:42 +02002582 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002583
Matan Barakb4ff3a32016-02-09 14:57:42 +02002584 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002585 u8 pd[0x18];
2586
2587 u8 lwm[0x10];
2588 u8 wqe_cnt[0x10];
2589
Matan Barakb4ff3a32016-02-09 14:57:42 +02002590 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002591
2592 u8 db_record_addr_h[0x20];
2593
2594 u8 db_record_addr_l[0x1e];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002595 u8 reserved_at_17e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002596
Matan Barakb4ff3a32016-02-09 14:57:42 +02002597 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002598};
2599
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +02002600struct mlx5_ifc_vnic_diagnostic_statistics_bits {
2601 u8 counter_error_queues[0x20];
2602
2603 u8 total_error_queues[0x20];
2604
2605 u8 send_queue_priority_update_flow[0x20];
2606
2607 u8 reserved_at_60[0x20];
2608
2609 u8 nic_receive_steering_discard[0x40];
2610
2611 u8 receive_discard_vport_down[0x40];
2612
2613 u8 transmit_discard_vport_down[0x40];
2614
2615 u8 reserved_at_140[0xec0];
2616};
2617
Saeed Mahameede2816822015-05-28 22:28:40 +03002618struct mlx5_ifc_traffic_counter_bits {
2619 u8 packets[0x40];
2620
2621 u8 octets[0x40];
2622};
2623
2624struct mlx5_ifc_tisc_bits {
Aviv Heller84df61e2016-05-10 13:47:50 +03002625 u8 strict_lag_tx_port_affinity[0x1];
2626 u8 reserved_at_1[0x3];
2627 u8 lag_tx_port_affinity[0x04];
2628
2629 u8 reserved_at_8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002630 u8 prio[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002631 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002632
Matan Barakb4ff3a32016-02-09 14:57:42 +02002633 u8 reserved_at_20[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03002634
Matan Barakb4ff3a32016-02-09 14:57:42 +02002635 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002636 u8 transport_domain[0x18];
2637
Erez Shitrit500a3d02017-04-13 06:36:51 +03002638 u8 reserved_at_140[0x8];
2639 u8 underlay_qpn[0x18];
2640 u8 reserved_at_160[0x3a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002641};
2642
2643enum {
2644 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
2645 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
2646};
2647
2648enum {
2649 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
2650 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
2651};
2652
2653enum {
Saeed Mahameed2be69672015-07-23 23:35:56 +03002654 MLX5_RX_HASH_FN_NONE = 0x0,
2655 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
2656 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002657};
2658
2659enum {
Mark Bloch5d773ff2018-09-17 13:30:46 +03002660 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST = 0x1,
2661 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002662};
2663
2664struct mlx5_ifc_tirc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002665 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002666
2667 u8 disp_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002668 u8 reserved_at_24[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002669
Matan Barakb4ff3a32016-02-09 14:57:42 +02002670 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002671
Matan Barakb4ff3a32016-02-09 14:57:42 +02002672 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002673 u8 lro_timeout_period_usecs[0x10];
2674 u8 lro_enable_mask[0x4];
2675 u8 lro_max_ip_payload_size[0x8];
2676
Matan Barakb4ff3a32016-02-09 14:57:42 +02002677 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002678
Matan Barakb4ff3a32016-02-09 14:57:42 +02002679 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002680 u8 inline_rqn[0x18];
2681
2682 u8 rx_hash_symmetric[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002683 u8 reserved_at_101[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002684 u8 tunneled_offload_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002685 u8 reserved_at_103[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002686 u8 indirect_table[0x18];
2687
2688 u8 rx_hash_fn[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002689 u8 reserved_at_124[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002690 u8 self_lb_block[0x2];
2691 u8 transport_domain[0x18];
2692
2693 u8 rx_hash_toeplitz_key[10][0x20];
2694
2695 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
2696
2697 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
2698
Matan Barakb4ff3a32016-02-09 14:57:42 +02002699 u8 reserved_at_2c0[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002700};
2701
2702enum {
2703 MLX5_SRQC_STATE_GOOD = 0x0,
2704 MLX5_SRQC_STATE_ERROR = 0x1,
2705};
2706
2707struct mlx5_ifc_srqc_bits {
2708 u8 state[0x4];
2709 u8 log_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002710 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002711
2712 u8 wq_signature[0x1];
2713 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002714 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002715 u8 rlky[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002716 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002717 u8 log_rq_stride[0x3];
2718 u8 xrcd[0x18];
2719
2720 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002721 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002722 u8 cqn[0x18];
2723
Matan Barakb4ff3a32016-02-09 14:57:42 +02002724 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002725
Matan Barakb4ff3a32016-02-09 14:57:42 +02002726 u8 reserved_at_80[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002727 u8 log_page_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002728 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002729
Matan Barakb4ff3a32016-02-09 14:57:42 +02002730 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002731
Matan Barakb4ff3a32016-02-09 14:57:42 +02002732 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002733 u8 pd[0x18];
2734
2735 u8 lwm[0x10];
2736 u8 wqe_cnt[0x10];
2737
Matan Barakb4ff3a32016-02-09 14:57:42 +02002738 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002739
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03002740 u8 dbr_addr[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002741
Matan Barakb4ff3a32016-02-09 14:57:42 +02002742 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002743};
2744
2745enum {
2746 MLX5_SQC_STATE_RST = 0x0,
2747 MLX5_SQC_STATE_RDY = 0x1,
2748 MLX5_SQC_STATE_ERR = 0x3,
2749};
2750
2751struct mlx5_ifc_sqc_bits {
2752 u8 rlky[0x1];
2753 u8 cd_master[0x1];
2754 u8 fre[0x1];
2755 u8 flush_in_error_en[0x1];
Bodong Wang795b6092017-08-17 15:52:34 +03002756 u8 allow_multi_pkt_send_wqe[0x1];
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002757 u8 min_wqe_inline_mode[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002758 u8 state[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002759 u8 reg_umr[0x1];
Ilan Tayari547eede2017-04-18 16:04:28 +03002760 u8 allow_swp[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03002761 u8 hairpin[0x1];
2762 u8 reserved_at_f[0x11];
Saeed Mahameede2816822015-05-28 22:28:40 +03002763
Matan Barakb4ff3a32016-02-09 14:57:42 +02002764 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002765 u8 user_index[0x18];
2766
Matan Barakb4ff3a32016-02-09 14:57:42 +02002767 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002768 u8 cqn[0x18];
2769
Or Gerlitz40817cd2017-06-25 12:38:45 +03002770 u8 reserved_at_60[0x8];
2771 u8 hairpin_peer_rq[0x18];
2772
2773 u8 reserved_at_80[0x10];
2774 u8 hairpin_peer_vhca[0x10];
2775
2776 u8 reserved_at_a0[0x50];
Saeed Mahameede2816822015-05-28 22:28:40 +03002777
Saeed Mahameed74862162016-06-09 15:11:34 +03002778 u8 packet_pacing_rate_limit_index[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002779 u8 tis_lst_sz[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002780 u8 reserved_at_110[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002781
Matan Barakb4ff3a32016-02-09 14:57:42 +02002782 u8 reserved_at_120[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002783
Matan Barakb4ff3a32016-02-09 14:57:42 +02002784 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002785 u8 tis_num_0[0x18];
2786
2787 struct mlx5_ifc_wq_bits wq;
2788};
2789
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03002790enum {
2791 SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR = 0x0,
2792 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT = 0x1,
2793 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT_TC = 0x2,
2794 SCHEDULING_CONTEXT_ELEMENT_TYPE_PARA_VPORT_TC = 0x3,
2795};
2796
2797struct mlx5_ifc_scheduling_context_bits {
2798 u8 element_type[0x8];
2799 u8 reserved_at_8[0x18];
2800
2801 u8 element_attributes[0x20];
2802
2803 u8 parent_element_id[0x20];
2804
2805 u8 reserved_at_60[0x40];
2806
2807 u8 bw_share[0x20];
2808
2809 u8 max_average_bw[0x20];
2810
2811 u8 reserved_at_e0[0x120];
2812};
2813
Saeed Mahameede2816822015-05-28 22:28:40 +03002814struct mlx5_ifc_rqtc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002815 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002816
Matan Barakb4ff3a32016-02-09 14:57:42 +02002817 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002818 u8 rqt_max_size[0x10];
2819
Matan Barakb4ff3a32016-02-09 14:57:42 +02002820 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002821 u8 rqt_actual_size[0x10];
2822
Matan Barakb4ff3a32016-02-09 14:57:42 +02002823 u8 reserved_at_e0[0x6a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002824
2825 struct mlx5_ifc_rq_num_bits rq_num[0];
2826};
2827
2828enum {
2829 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2830 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2831};
2832
2833enum {
2834 MLX5_RQC_STATE_RST = 0x0,
2835 MLX5_RQC_STATE_RDY = 0x1,
2836 MLX5_RQC_STATE_ERR = 0x3,
2837};
2838
2839struct mlx5_ifc_rqc_bits {
2840 u8 rlky[0x1];
Maor Gottlieb03404e82017-05-30 10:29:13 +03002841 u8 delay_drop_en[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002842 u8 scatter_fcs[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002843 u8 vsd[0x1];
2844 u8 mem_rq_type[0x4];
2845 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002846 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002847 u8 flush_in_error_en[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03002848 u8 hairpin[0x1];
2849 u8 reserved_at_f[0x11];
Saeed Mahameede2816822015-05-28 22:28:40 +03002850
Matan Barakb4ff3a32016-02-09 14:57:42 +02002851 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002852 u8 user_index[0x18];
2853
Matan Barakb4ff3a32016-02-09 14:57:42 +02002854 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002855 u8 cqn[0x18];
2856
2857 u8 counter_set_id[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002858 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002859
Matan Barakb4ff3a32016-02-09 14:57:42 +02002860 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002861 u8 rmpn[0x18];
2862
Or Gerlitz40817cd2017-06-25 12:38:45 +03002863 u8 reserved_at_a0[0x8];
2864 u8 hairpin_peer_sq[0x18];
2865
2866 u8 reserved_at_c0[0x10];
2867 u8 hairpin_peer_vhca[0x10];
2868
2869 u8 reserved_at_e0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002870
2871 struct mlx5_ifc_wq_bits wq;
2872};
2873
2874enum {
2875 MLX5_RMPC_STATE_RDY = 0x1,
2876 MLX5_RMPC_STATE_ERR = 0x3,
2877};
2878
2879struct mlx5_ifc_rmpc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002880 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002881 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002882 u8 reserved_at_c[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002883
2884 u8 basic_cyclic_rcv_wqe[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002885 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03002886
Matan Barakb4ff3a32016-02-09 14:57:42 +02002887 u8 reserved_at_40[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03002888
2889 struct mlx5_ifc_wq_bits wq;
2890};
2891
Saeed Mahameede2816822015-05-28 22:28:40 +03002892struct mlx5_ifc_nic_vport_context_bits {
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002893 u8 reserved_at_0[0x5];
2894 u8 min_wqe_inline_mode[0x3];
Huy Nguyenbded7472017-05-30 09:42:53 +03002895 u8 reserved_at_8[0x15];
2896 u8 disable_mc_local_lb[0x1];
2897 u8 disable_uc_local_lb[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002898 u8 roce_en[0x1];
2899
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002900 u8 arm_change_event[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002901 u8 reserved_at_21[0x1a];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002902 u8 event_on_mtu[0x1];
2903 u8 event_on_promisc_change[0x1];
2904 u8 event_on_vlan_change[0x1];
2905 u8 event_on_mc_address_change[0x1];
2906 u8 event_on_uc_address_change[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002907
Daniel Jurgens32f69e42018-01-04 17:25:36 +02002908 u8 reserved_at_40[0xc];
2909
2910 u8 affiliation_criteria[0x4];
2911 u8 affiliated_vhca_id[0x10];
2912
2913 u8 reserved_at_60[0xd0];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002914
2915 u8 mtu[0x10];
2916
Achiad Shochat9efa7522015-12-23 18:47:20 +02002917 u8 system_image_guid[0x40];
2918 u8 port_guid[0x40];
2919 u8 node_guid[0x40];
2920
Matan Barakb4ff3a32016-02-09 14:57:42 +02002921 u8 reserved_at_200[0x140];
Achiad Shochat9efa7522015-12-23 18:47:20 +02002922 u8 qkey_violation_counter[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002923 u8 reserved_at_350[0x430];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002924
2925 u8 promisc_uc[0x1];
2926 u8 promisc_mc[0x1];
2927 u8 promisc_all[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002928 u8 reserved_at_783[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002929 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002930 u8 reserved_at_788[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002931 u8 allowed_list_size[0xc];
2932
2933 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2934
Matan Barakb4ff3a32016-02-09 14:57:42 +02002935 u8 reserved_at_7e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002936
2937 u8 current_uc_mac_address[0][0x40];
2938};
2939
2940enum {
2941 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2942 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2943 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02002944 MLX5_MKC_ACCESS_MODE_KSM = 0x3,
Ariel Levkovich9fba2b92019-03-31 19:44:43 +03002945 MLX5_MKC_ACCESS_MODE_SW_ICM = 0x4,
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002946 MLX5_MKC_ACCESS_MODE_MEMIC = 0x5,
Saeed Mahameede2816822015-05-28 22:28:40 +03002947};
2948
2949struct mlx5_ifc_mkc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002950 u8 reserved_at_0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002951 u8 free[0x1];
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002952 u8 reserved_at_2[0x1];
2953 u8 access_mode_4_2[0x3];
2954 u8 reserved_at_6[0x7];
2955 u8 relaxed_ordering_write[0x1];
2956 u8 reserved_at_e[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002957 u8 small_fence_on_rdma_read_response[0x1];
2958 u8 umr_en[0x1];
2959 u8 a[0x1];
2960 u8 rw[0x1];
2961 u8 rr[0x1];
2962 u8 lw[0x1];
2963 u8 lr[0x1];
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002964 u8 access_mode_1_0[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002965 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002966
2967 u8 qpn[0x18];
2968 u8 mkey_7_0[0x8];
2969
Matan Barakb4ff3a32016-02-09 14:57:42 +02002970 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002971
2972 u8 length64[0x1];
2973 u8 bsf_en[0x1];
2974 u8 sync_umr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002975 u8 reserved_at_63[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002976 u8 expected_sigerr_count[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002977 u8 reserved_at_66[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002978 u8 en_rinval[0x1];
2979 u8 pd[0x18];
2980
2981 u8 start_addr[0x40];
2982
2983 u8 len[0x40];
2984
2985 u8 bsf_octword_size[0x20];
2986
Matan Barakb4ff3a32016-02-09 14:57:42 +02002987 u8 reserved_at_120[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002988
2989 u8 translations_octword_size[0x20];
2990
Matan Barakb4ff3a32016-02-09 14:57:42 +02002991 u8 reserved_at_1c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +03002992 u8 log_page_size[0x5];
2993
Matan Barakb4ff3a32016-02-09 14:57:42 +02002994 u8 reserved_at_1e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002995};
2996
2997struct mlx5_ifc_pkey_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002998 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002999 u8 pkey[0x10];
3000};
3001
3002struct mlx5_ifc_array128_auto_bits {
3003 u8 array128_auto[16][0x8];
3004};
3005
3006struct mlx5_ifc_hca_vport_context_bits {
3007 u8 field_select[0x20];
3008
Matan Barakb4ff3a32016-02-09 14:57:42 +02003009 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003010
3011 u8 sm_virt_aware[0x1];
3012 u8 has_smi[0x1];
3013 u8 has_raw[0x1];
3014 u8 grh_required[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003015 u8 reserved_at_104[0xc];
Majd Dibbiny707c4602015-06-04 19:30:41 +03003016 u8 port_physical_state[0x4];
3017 u8 vport_state_policy[0x4];
3018 u8 port_state[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003019 u8 vport_state[0x4];
3020
Matan Barakb4ff3a32016-02-09 14:57:42 +02003021 u8 reserved_at_120[0x20];
Majd Dibbiny707c4602015-06-04 19:30:41 +03003022
3023 u8 system_image_guid[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003024
3025 u8 port_guid[0x40];
3026
3027 u8 node_guid[0x40];
3028
3029 u8 cap_mask1[0x20];
3030
3031 u8 cap_mask1_field_select[0x20];
3032
3033 u8 cap_mask2[0x20];
3034
3035 u8 cap_mask2_field_select[0x20];
3036
Matan Barakb4ff3a32016-02-09 14:57:42 +02003037 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003038
3039 u8 lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003040 u8 reserved_at_310[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003041 u8 init_type_reply[0x4];
3042 u8 lmc[0x3];
3043 u8 subnet_timeout[0x5];
3044
3045 u8 sm_lid[0x10];
3046 u8 sm_sl[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003047 u8 reserved_at_334[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03003048
3049 u8 qkey_violation_counter[0x10];
3050 u8 pkey_violation_counter[0x10];
3051
Matan Barakb4ff3a32016-02-09 14:57:42 +02003052 u8 reserved_at_360[0xca0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003053};
3054
Saeed Mahameedd6666752015-12-01 18:03:22 +02003055struct mlx5_ifc_esw_vport_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003056 u8 reserved_at_0[0x3];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003057 u8 vport_svlan_strip[0x1];
3058 u8 vport_cvlan_strip[0x1];
3059 u8 vport_svlan_insert[0x1];
3060 u8 vport_cvlan_insert[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003061 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003062
Matan Barakb4ff3a32016-02-09 14:57:42 +02003063 u8 reserved_at_20[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003064
3065 u8 svlan_cfi[0x1];
3066 u8 svlan_pcp[0x3];
3067 u8 svlan_id[0xc];
3068 u8 cvlan_cfi[0x1];
3069 u8 cvlan_pcp[0x3];
3070 u8 cvlan_id[0xc];
3071
Matan Barakb4ff3a32016-02-09 14:57:42 +02003072 u8 reserved_at_60[0x7a0];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003073};
3074
Saeed Mahameede2816822015-05-28 22:28:40 +03003075enum {
3076 MLX5_EQC_STATUS_OK = 0x0,
3077 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
3078};
3079
3080enum {
3081 MLX5_EQC_ST_ARMED = 0x9,
3082 MLX5_EQC_ST_FIRED = 0xa,
3083};
3084
3085struct mlx5_ifc_eqc_bits {
3086 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003087 u8 reserved_at_4[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03003088 u8 ec[0x1];
3089 u8 oi[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003090 u8 reserved_at_f[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003091 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003092 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003093
Matan Barakb4ff3a32016-02-09 14:57:42 +02003094 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003095
Matan Barakb4ff3a32016-02-09 14:57:42 +02003096 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003097 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003098 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003099
Matan Barakb4ff3a32016-02-09 14:57:42 +02003100 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003101 u8 log_eq_size[0x5];
3102 u8 uar_page[0x18];
3103
Matan Barakb4ff3a32016-02-09 14:57:42 +02003104 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003105
Matan Barakb4ff3a32016-02-09 14:57:42 +02003106 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003107 u8 intr[0x8];
3108
Matan Barakb4ff3a32016-02-09 14:57:42 +02003109 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003110 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003111 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003112
Matan Barakb4ff3a32016-02-09 14:57:42 +02003113 u8 reserved_at_e0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003114
Matan Barakb4ff3a32016-02-09 14:57:42 +02003115 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003116 u8 consumer_counter[0x18];
3117
Matan Barakb4ff3a32016-02-09 14:57:42 +02003118 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003119 u8 producer_counter[0x18];
3120
Matan Barakb4ff3a32016-02-09 14:57:42 +02003121 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003122};
3123
3124enum {
3125 MLX5_DCTC_STATE_ACTIVE = 0x0,
3126 MLX5_DCTC_STATE_DRAINING = 0x1,
3127 MLX5_DCTC_STATE_DRAINED = 0x2,
3128};
3129
3130enum {
3131 MLX5_DCTC_CS_RES_DISABLE = 0x0,
3132 MLX5_DCTC_CS_RES_NA = 0x1,
3133 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
3134};
3135
3136enum {
3137 MLX5_DCTC_MTU_256_BYTES = 0x1,
3138 MLX5_DCTC_MTU_512_BYTES = 0x2,
3139 MLX5_DCTC_MTU_1K_BYTES = 0x3,
3140 MLX5_DCTC_MTU_2K_BYTES = 0x4,
3141 MLX5_DCTC_MTU_4K_BYTES = 0x5,
3142};
3143
3144struct mlx5_ifc_dctc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003145 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003146 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003147 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003148
Matan Barakb4ff3a32016-02-09 14:57:42 +02003149 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003150 u8 user_index[0x18];
3151
Matan Barakb4ff3a32016-02-09 14:57:42 +02003152 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003153 u8 cqn[0x18];
3154
3155 u8 counter_set_id[0x8];
3156 u8 atomic_mode[0x4];
3157 u8 rre[0x1];
3158 u8 rwe[0x1];
3159 u8 rae[0x1];
3160 u8 atomic_like_write_en[0x1];
3161 u8 latency_sensitive[0x1];
3162 u8 rlky[0x1];
3163 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003164 u8 reserved_at_73[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03003165
Matan Barakb4ff3a32016-02-09 14:57:42 +02003166 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003167 u8 cs_res[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003168 u8 reserved_at_90[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003169 u8 min_rnr_nak[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003170 u8 reserved_at_98[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003171
Matan Barakb4ff3a32016-02-09 14:57:42 +02003172 u8 reserved_at_a0[0x8];
Saeed Mahameed74862162016-06-09 15:11:34 +03003173 u8 srqn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003174
Matan Barakb4ff3a32016-02-09 14:57:42 +02003175 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003176 u8 pd[0x18];
3177
3178 u8 tclass[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003179 u8 reserved_at_e8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003180 u8 flow_label[0x14];
3181
3182 u8 dc_access_key[0x40];
3183
Matan Barakb4ff3a32016-02-09 14:57:42 +02003184 u8 reserved_at_140[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003185 u8 mtu[0x3];
3186 u8 port[0x8];
3187 u8 pkey_index[0x10];
3188
Matan Barakb4ff3a32016-02-09 14:57:42 +02003189 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003190 u8 my_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003191 u8 reserved_at_170[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003192 u8 hop_limit[0x8];
3193
3194 u8 dc_access_key_violation_count[0x20];
3195
Matan Barakb4ff3a32016-02-09 14:57:42 +02003196 u8 reserved_at_1a0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003197 u8 dei_cfi[0x1];
3198 u8 eth_prio[0x3];
3199 u8 ecn[0x2];
3200 u8 dscp[0x6];
3201
Matan Barakb4ff3a32016-02-09 14:57:42 +02003202 u8 reserved_at_1c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003203};
3204
3205enum {
3206 MLX5_CQC_STATUS_OK = 0x0,
3207 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
3208 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
3209};
3210
3211enum {
3212 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
3213 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
3214};
3215
3216enum {
3217 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
3218 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
3219 MLX5_CQC_ST_FIRED = 0xa,
3220};
3221
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003222enum {
3223 MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0,
3224 MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1,
Saeed Mahameed74862162016-06-09 15:11:34 +03003225 MLX5_CQ_PERIOD_NUM_MODES
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003226};
3227
Saeed Mahameede2816822015-05-28 22:28:40 +03003228struct mlx5_ifc_cqc_bits {
3229 u8 status[0x4];
Leon Romanovskybd371972018-09-20 21:35:26 +03003230 u8 reserved_at_4[0x2];
3231 u8 dbr_umem_valid[0x1];
3232 u8 reserved_at_7[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003233 u8 cqe_sz[0x3];
3234 u8 cc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003235 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003236 u8 scqe_break_moderation_en[0x1];
3237 u8 oi[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003238 u8 cq_period_mode[0x2];
3239 u8 cqe_comp_en[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003240 u8 mini_cqe_res_format[0x2];
3241 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003242 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003243
Matan Barakb4ff3a32016-02-09 14:57:42 +02003244 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003245
Matan Barakb4ff3a32016-02-09 14:57:42 +02003246 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003247 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003248 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003249
Matan Barakb4ff3a32016-02-09 14:57:42 +02003250 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003251 u8 log_cq_size[0x5];
3252 u8 uar_page[0x18];
3253
Matan Barakb4ff3a32016-02-09 14:57:42 +02003254 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003255 u8 cq_period[0xc];
3256 u8 cq_max_count[0x10];
3257
Matan Barakb4ff3a32016-02-09 14:57:42 +02003258 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003259 u8 c_eqn[0x8];
3260
Matan Barakb4ff3a32016-02-09 14:57:42 +02003261 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003262 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003263 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003264
Matan Barakb4ff3a32016-02-09 14:57:42 +02003265 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003266
Matan Barakb4ff3a32016-02-09 14:57:42 +02003267 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003268 u8 last_notified_index[0x18];
3269
Matan Barakb4ff3a32016-02-09 14:57:42 +02003270 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003271 u8 last_solicit_index[0x18];
3272
Matan Barakb4ff3a32016-02-09 14:57:42 +02003273 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003274 u8 consumer_counter[0x18];
3275
Matan Barakb4ff3a32016-02-09 14:57:42 +02003276 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003277 u8 producer_counter[0x18];
3278
Matan Barakb4ff3a32016-02-09 14:57:42 +02003279 u8 reserved_at_180[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003280
3281 u8 dbr_addr[0x40];
3282};
3283
3284union mlx5_ifc_cong_control_roce_ecn_auto_bits {
3285 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
3286 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
3287 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003288 u8 reserved_at_0[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03003289};
3290
3291struct mlx5_ifc_query_adapter_param_block_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003292 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003293
Matan Barakb4ff3a32016-02-09 14:57:42 +02003294 u8 reserved_at_c0[0x8];
Majd Dibbiny211e6c82015-06-04 19:30:42 +03003295 u8 ieee_vendor_id[0x18];
3296
Matan Barakb4ff3a32016-02-09 14:57:42 +02003297 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003298 u8 vsd_vendor_id[0x10];
3299
3300 u8 vsd[208][0x8];
3301
3302 u8 vsd_contd_psid[16][0x8];
3303};
3304
Saeed Mahameed74862162016-06-09 15:11:34 +03003305enum {
3306 MLX5_XRQC_STATE_GOOD = 0x0,
3307 MLX5_XRQC_STATE_ERROR = 0x1,
3308};
3309
3310enum {
3311 MLX5_XRQC_TOPOLOGY_NO_SPECIAL_TOPOLOGY = 0x0,
3312 MLX5_XRQC_TOPOLOGY_TAG_MATCHING = 0x1,
3313};
3314
3315enum {
3316 MLX5_XRQC_OFFLOAD_RNDV = 0x1,
3317};
3318
3319struct mlx5_ifc_tag_matching_topology_context_bits {
3320 u8 log_matching_list_sz[0x4];
3321 u8 reserved_at_4[0xc];
3322 u8 append_next_index[0x10];
3323
3324 u8 sw_phase_cnt[0x10];
3325 u8 hw_phase_cnt[0x10];
3326
3327 u8 reserved_at_40[0x40];
3328};
3329
3330struct mlx5_ifc_xrqc_bits {
3331 u8 state[0x4];
3332 u8 rlkey[0x1];
3333 u8 reserved_at_5[0xf];
3334 u8 topology[0x4];
3335 u8 reserved_at_18[0x4];
3336 u8 offload[0x4];
3337
3338 u8 reserved_at_20[0x8];
3339 u8 user_index[0x18];
3340
3341 u8 reserved_at_40[0x8];
3342 u8 cqn[0x18];
3343
3344 u8 reserved_at_60[0xa0];
3345
3346 struct mlx5_ifc_tag_matching_topology_context_bits tag_matching_topology_context;
3347
Artemy Kovalyov6e446362017-08-15 11:59:02 +03003348 u8 reserved_at_180[0x280];
Saeed Mahameed74862162016-06-09 15:11:34 +03003349
3350 struct mlx5_ifc_wq_bits wq;
3351};
3352
Saeed Mahameede2816822015-05-28 22:28:40 +03003353union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
3354 struct mlx5_ifc_modify_field_select_bits modify_field_select;
3355 struct mlx5_ifc_resize_field_select_bits resize_field_select;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003356 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003357};
3358
3359union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
3360 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
3361 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
3362 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003363 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003364};
3365
3366union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
3367 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
3368 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
3369 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
3370 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
3371 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
3372 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
3373 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02003374 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03003375 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
Gal Pressmand8dc0502016-09-27 17:04:51 +03003376 struct mlx5_ifc_phys_layer_statistical_cntrs_bits phys_layer_statistical_cntrs;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003377 u8 reserved_at_0[0x7c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003378};
3379
Gal Pressman8ed1a632016-11-17 13:46:01 +02003380union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits {
3381 struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits pcie_perf_cntrs_grp_data_layout;
3382 u8 reserved_at_0[0x7c0];
3383};
3384
Saeed Mahameede2816822015-05-28 22:28:40 +03003385union mlx5_ifc_event_auto_bits {
3386 struct mlx5_ifc_comp_event_bits comp_event;
3387 struct mlx5_ifc_dct_events_bits dct_events;
3388 struct mlx5_ifc_qp_events_bits qp_events;
3389 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
3390 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
3391 struct mlx5_ifc_cq_error_bits cq_error;
3392 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
3393 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
3394 struct mlx5_ifc_gpio_event_bits gpio_event;
3395 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
3396 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
3397 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003398 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003399};
3400
3401struct mlx5_ifc_health_buffer_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003402 u8 reserved_at_0[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03003403
3404 u8 assert_existptr[0x20];
3405
3406 u8 assert_callra[0x20];
3407
Matan Barakb4ff3a32016-02-09 14:57:42 +02003408 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003409
3410 u8 fw_version[0x20];
3411
3412 u8 hw_id[0x20];
3413
Matan Barakb4ff3a32016-02-09 14:57:42 +02003414 u8 reserved_at_1c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003415
3416 u8 irisc_index[0x8];
3417 u8 synd[0x8];
3418 u8 ext_synd[0x10];
3419};
3420
3421struct mlx5_ifc_register_loopback_control_bits {
3422 u8 no_lb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003423 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03003424 u8 port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003425 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003426
Matan Barakb4ff3a32016-02-09 14:57:42 +02003427 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003428};
3429
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03003430struct mlx5_ifc_vport_tc_element_bits {
3431 u8 traffic_class[0x4];
3432 u8 reserved_at_4[0xc];
3433 u8 vport_number[0x10];
3434};
3435
3436struct mlx5_ifc_vport_element_bits {
3437 u8 reserved_at_0[0x10];
3438 u8 vport_number[0x10];
3439};
3440
3441enum {
3442 TSAR_ELEMENT_TSAR_TYPE_DWRR = 0x0,
3443 TSAR_ELEMENT_TSAR_TYPE_ROUND_ROBIN = 0x1,
3444 TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2,
3445};
3446
3447struct mlx5_ifc_tsar_element_bits {
3448 u8 reserved_at_0[0x8];
3449 u8 tsar_type[0x8];
3450 u8 reserved_at_10[0x10];
3451};
3452
Majd Dibbiny8812c242017-02-09 14:20:12 +02003453enum {
3454 MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_SUCCESS = 0x0,
3455 MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_FAIL = 0x1,
3456};
3457
Saeed Mahameede2816822015-05-28 22:28:40 +03003458struct mlx5_ifc_teardown_hca_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
Majd Dibbiny8812c242017-02-09 14:20:12 +02003464 u8 reserved_at_40[0x3f];
3465
Feras Daoudfcd29ad2018-08-09 09:55:21 +03003466 u8 state[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003467};
3468
3469enum {
3470 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
Majd Dibbiny8812c242017-02-09 14:20:12 +02003471 MLX5_TEARDOWN_HCA_IN_PROFILE_FORCE_CLOSE = 0x1,
Feras Daoudfcd29ad2018-08-09 09:55:21 +03003472 MLX5_TEARDOWN_HCA_IN_PROFILE_PREPARE_FAST_TEARDOWN = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03003473};
3474
3475struct mlx5_ifc_teardown_hca_in_bits {
3476 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003477 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003478
Matan Barakb4ff3a32016-02-09 14:57:42 +02003479 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003480 u8 op_mod[0x10];
3481
Matan Barakb4ff3a32016-02-09 14:57:42 +02003482 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003483 u8 profile[0x10];
3484
Matan Barakb4ff3a32016-02-09 14:57:42 +02003485 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003486};
3487
3488struct mlx5_ifc_sqerr2rts_qp_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_sqerr2rts_qp_in_bits {
3498 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003499 u8 uid[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
Matan Barakb4ff3a32016-02-09 14:57:42 +02003504 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003505 u8 qpn[0x18];
3506
Matan Barakb4ff3a32016-02-09 14:57:42 +02003507 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003508
3509 u8 opt_param_mask[0x20];
3510
Matan Barakb4ff3a32016-02-09 14:57:42 +02003511 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003512
3513 struct mlx5_ifc_qpc_bits qpc;
3514
Matan Barakb4ff3a32016-02-09 14:57:42 +02003515 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003516};
3517
3518struct mlx5_ifc_sqd2rts_qp_out_bits {
3519 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003520 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003521
3522 u8 syndrome[0x20];
3523
Matan Barakb4ff3a32016-02-09 14:57:42 +02003524 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003525};
3526
3527struct mlx5_ifc_sqd2rts_qp_in_bits {
3528 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003529 u8 uid[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[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003535 u8 qpn[0x18];
3536
Matan Barakb4ff3a32016-02-09 14:57:42 +02003537 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003538
3539 u8 opt_param_mask[0x20];
3540
Matan Barakb4ff3a32016-02-09 14:57:42 +02003541 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003542
3543 struct mlx5_ifc_qpc_bits qpc;
3544
Matan Barakb4ff3a32016-02-09 14:57:42 +02003545 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003546};
3547
3548struct mlx5_ifc_set_roce_address_out_bits {
3549 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003550 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003551
3552 u8 syndrome[0x20];
3553
Matan Barakb4ff3a32016-02-09 14:57:42 +02003554 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003555};
3556
3557struct mlx5_ifc_set_roce_address_in_bits {
3558 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003559 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003560
Matan Barakb4ff3a32016-02-09 14:57:42 +02003561 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003562 u8 op_mod[0x10];
3563
3564 u8 roce_address_index[0x10];
Daniel Jurgens32f69e42018-01-04 17:25:36 +02003565 u8 reserved_at_50[0xc];
3566 u8 vhca_port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003567
Matan Barakb4ff3a32016-02-09 14:57:42 +02003568 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003569
3570 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3571};
3572
3573struct mlx5_ifc_set_mad_demux_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
3582enum {
3583 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
3584 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
3585};
3586
3587struct mlx5_ifc_set_mad_demux_in_bits {
3588 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003589 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003590
Matan Barakb4ff3a32016-02-09 14:57:42 +02003591 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003592 u8 op_mod[0x10];
3593
Matan Barakb4ff3a32016-02-09 14:57:42 +02003594 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003595
Matan Barakb4ff3a32016-02-09 14:57:42 +02003596 u8 reserved_at_60[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003597 u8 demux_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003598 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003599};
3600
3601struct mlx5_ifc_set_l2_table_entry_out_bits {
3602 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003603 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003604
3605 u8 syndrome[0x20];
3606
Matan Barakb4ff3a32016-02-09 14:57:42 +02003607 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003608};
3609
3610struct mlx5_ifc_set_l2_table_entry_in_bits {
3611 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003612 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003613
Matan Barakb4ff3a32016-02-09 14:57:42 +02003614 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003615 u8 op_mod[0x10];
3616
Matan Barakb4ff3a32016-02-09 14:57:42 +02003617 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003618
Matan Barakb4ff3a32016-02-09 14:57:42 +02003619 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003620 u8 table_index[0x18];
3621
Matan Barakb4ff3a32016-02-09 14:57:42 +02003622 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003623
Matan Barakb4ff3a32016-02-09 14:57:42 +02003624 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03003625 u8 vlan_valid[0x1];
3626 u8 vlan[0xc];
3627
3628 struct mlx5_ifc_mac_address_layout_bits mac_address;
3629
Matan Barakb4ff3a32016-02-09 14:57:42 +02003630 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003631};
3632
3633struct mlx5_ifc_set_issi_out_bits {
3634 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003635 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003636
3637 u8 syndrome[0x20];
3638
Matan Barakb4ff3a32016-02-09 14:57:42 +02003639 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003640};
3641
3642struct mlx5_ifc_set_issi_in_bits {
3643 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003644 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003645
Matan Barakb4ff3a32016-02-09 14:57:42 +02003646 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003647 u8 op_mod[0x10];
3648
Matan Barakb4ff3a32016-02-09 14:57:42 +02003649 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003650 u8 current_issi[0x10];
3651
Matan Barakb4ff3a32016-02-09 14:57:42 +02003652 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003653};
3654
3655struct mlx5_ifc_set_hca_cap_out_bits {
3656 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003657 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003658
3659 u8 syndrome[0x20];
3660
Matan Barakb4ff3a32016-02-09 14:57:42 +02003661 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003662};
3663
3664struct mlx5_ifc_set_hca_cap_in_bits {
3665 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003666 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003667
Matan Barakb4ff3a32016-02-09 14:57:42 +02003668 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003669 u8 op_mod[0x10];
3670
Matan Barakb4ff3a32016-02-09 14:57:42 +02003671 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003672
Saeed Mahameede2816822015-05-28 22:28:40 +03003673 union mlx5_ifc_hca_cap_union_bits capability;
3674};
3675
Maor Gottlieb26a81452015-12-10 17:12:39 +02003676enum {
3677 MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0,
3678 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1,
3679 MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2,
3680 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3
3681};
3682
Saeed Mahameede2816822015-05-28 22:28:40 +03003683struct mlx5_ifc_set_fte_out_bits {
3684 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003685 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003686
3687 u8 syndrome[0x20];
3688
Matan Barakb4ff3a32016-02-09 14:57:42 +02003689 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003690};
3691
3692struct mlx5_ifc_set_fte_in_bits {
3693 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003694 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003695
Matan Barakb4ff3a32016-02-09 14:57:42 +02003696 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003697 u8 op_mod[0x10];
3698
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003699 u8 other_vport[0x1];
3700 u8 reserved_at_41[0xf];
3701 u8 vport_number[0x10];
3702
3703 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003704
3705 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003706 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003707
Matan Barakb4ff3a32016-02-09 14:57:42 +02003708 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003709 u8 table_id[0x18];
3710
Matan Barakb4ff3a32016-02-09 14:57:42 +02003711 u8 reserved_at_c0[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +02003712 u8 modify_enable_mask[0x8];
3713
Matan Barakb4ff3a32016-02-09 14:57:42 +02003714 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003715
3716 u8 flow_index[0x20];
3717
Matan Barakb4ff3a32016-02-09 14:57:42 +02003718 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003719
3720 struct mlx5_ifc_flow_context_bits flow_context;
3721};
3722
3723struct mlx5_ifc_rts2rts_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_rts2rts_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
3753struct mlx5_ifc_rtr2rts_qp_out_bits {
3754 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003755 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003756
3757 u8 syndrome[0x20];
3758
Matan Barakb4ff3a32016-02-09 14:57:42 +02003759 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003760};
3761
3762struct mlx5_ifc_rtr2rts_qp_in_bits {
3763 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003764 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003765
Matan Barakb4ff3a32016-02-09 14:57:42 +02003766 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003767 u8 op_mod[0x10];
3768
Matan Barakb4ff3a32016-02-09 14:57:42 +02003769 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003770 u8 qpn[0x18];
3771
Matan Barakb4ff3a32016-02-09 14:57:42 +02003772 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003773
3774 u8 opt_param_mask[0x20];
3775
Matan Barakb4ff3a32016-02-09 14:57:42 +02003776 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003777
3778 struct mlx5_ifc_qpc_bits qpc;
3779
Matan Barakb4ff3a32016-02-09 14:57:42 +02003780 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003781};
3782
3783struct mlx5_ifc_rst2init_qp_out_bits {
3784 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003785 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003786
3787 u8 syndrome[0x20];
3788
Matan Barakb4ff3a32016-02-09 14:57:42 +02003789 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003790};
3791
3792struct mlx5_ifc_rst2init_qp_in_bits {
3793 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003794 u8 uid[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 qpn[0x18];
3801
Matan Barakb4ff3a32016-02-09 14:57:42 +02003802 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003803
3804 u8 opt_param_mask[0x20];
3805
Matan Barakb4ff3a32016-02-09 14:57:42 +02003806 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003807
3808 struct mlx5_ifc_qpc_bits qpc;
3809
Matan Barakb4ff3a32016-02-09 14:57:42 +02003810 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003811};
3812
Saeed Mahameed74862162016-06-09 15:11:34 +03003813struct mlx5_ifc_query_xrq_out_bits {
3814 u8 status[0x8];
3815 u8 reserved_at_8[0x18];
3816
3817 u8 syndrome[0x20];
3818
3819 u8 reserved_at_40[0x40];
3820
3821 struct mlx5_ifc_xrqc_bits xrq_context;
3822};
3823
3824struct mlx5_ifc_query_xrq_in_bits {
3825 u8 opcode[0x10];
3826 u8 reserved_at_10[0x10];
3827
3828 u8 reserved_at_20[0x10];
3829 u8 op_mod[0x10];
3830
3831 u8 reserved_at_40[0x8];
3832 u8 xrqn[0x18];
3833
3834 u8 reserved_at_60[0x20];
3835};
3836
Saeed Mahameede2816822015-05-28 22:28:40 +03003837struct mlx5_ifc_query_xrc_srq_out_bits {
3838 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003839 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003840
3841 u8 syndrome[0x20];
3842
Matan Barakb4ff3a32016-02-09 14:57:42 +02003843 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003844
3845 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
3846
Matan Barakb4ff3a32016-02-09 14:57:42 +02003847 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003848
3849 u8 pas[0][0x40];
3850};
3851
3852struct mlx5_ifc_query_xrc_srq_in_bits {
3853 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003854 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003855
Matan Barakb4ff3a32016-02-09 14:57:42 +02003856 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003857 u8 op_mod[0x10];
3858
Matan Barakb4ff3a32016-02-09 14:57:42 +02003859 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003860 u8 xrc_srqn[0x18];
3861
Matan Barakb4ff3a32016-02-09 14:57:42 +02003862 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003863};
3864
3865enum {
3866 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
3867 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
3868};
3869
3870struct mlx5_ifc_query_vport_state_out_bits {
3871 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003872 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003873
3874 u8 syndrome[0x20];
3875
Matan Barakb4ff3a32016-02-09 14:57:42 +02003876 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003877
Matan Barakb4ff3a32016-02-09 14:57:42 +02003878 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003879 u8 admin_state[0x4];
3880 u8 state[0x4];
3881};
3882
3883enum {
Eran Ben Elishacc9c82a2018-08-08 16:23:49 -07003884 MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT = 0x0,
3885 MLX5_VPORT_STATE_OP_MOD_ESW_VPORT = 0x1,
Saeed Mahameede2816822015-05-28 22:28:40 +03003886};
3887
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08003888struct mlx5_ifc_arm_monitor_counter_in_bits {
3889 u8 opcode[0x10];
3890 u8 uid[0x10];
3891
3892 u8 reserved_at_20[0x10];
3893 u8 op_mod[0x10];
3894
3895 u8 reserved_at_40[0x20];
3896
3897 u8 reserved_at_60[0x20];
3898};
3899
3900struct mlx5_ifc_arm_monitor_counter_out_bits {
3901 u8 status[0x8];
3902 u8 reserved_at_8[0x18];
3903
3904 u8 syndrome[0x20];
3905
3906 u8 reserved_at_40[0x40];
3907};
3908
3909enum {
3910 MLX5_QUERY_MONITOR_CNT_TYPE_PPCNT = 0x0,
3911 MLX5_QUERY_MONITOR_CNT_TYPE_Q_COUNTER = 0x1,
3912};
3913
3914enum mlx5_monitor_counter_ppcnt {
Saeed Mahameed4c8b8512018-12-12 19:11:36 -08003915 MLX5_QUERY_MONITOR_PPCNT_IN_RANGE_LENGTH_ERRORS = 0x0,
3916 MLX5_QUERY_MONITOR_PPCNT_OUT_OF_RANGE_LENGTH_FIELD = 0x1,
3917 MLX5_QUERY_MONITOR_PPCNT_FRAME_TOO_LONG_ERRORS = 0x2,
3918 MLX5_QUERY_MONITOR_PPCNT_FRAME_CHECK_SEQUENCE_ERRORS = 0x3,
3919 MLX5_QUERY_MONITOR_PPCNT_ALIGNMENT_ERRORS = 0x4,
3920 MLX5_QUERY_MONITOR_PPCNT_IF_OUT_DISCARDS = 0x5,
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08003921};
3922
3923enum {
Saeed Mahameed4c8b8512018-12-12 19:11:36 -08003924 MLX5_QUERY_MONITOR_Q_COUNTER_RX_OUT_OF_BUFFER = 0x4,
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08003925};
3926
3927struct mlx5_ifc_monitor_counter_output_bits {
3928 u8 reserved_at_0[0x4];
3929 u8 type[0x4];
3930 u8 reserved_at_8[0x8];
3931 u8 counter[0x10];
3932
3933 u8 counter_group_id[0x20];
3934};
3935
3936#define MLX5_CMD_SET_MONITOR_NUM_PPCNT_COUNTER_SET1 (6)
3937#define MLX5_CMD_SET_MONITOR_NUM_Q_COUNTERS_SET1 (1)
3938#define MLX5_CMD_SET_MONITOR_NUM_COUNTER (MLX5_CMD_SET_MONITOR_NUM_PPCNT_COUNTER_SET1 +\
3939 MLX5_CMD_SET_MONITOR_NUM_Q_COUNTERS_SET1)
3940
3941struct mlx5_ifc_set_monitor_counter_in_bits {
3942 u8 opcode[0x10];
3943 u8 uid[0x10];
3944
3945 u8 reserved_at_20[0x10];
3946 u8 op_mod[0x10];
3947
3948 u8 reserved_at_40[0x10];
3949 u8 num_of_counters[0x10];
3950
3951 u8 reserved_at_60[0x20];
3952
3953 struct mlx5_ifc_monitor_counter_output_bits monitor_counter[MLX5_CMD_SET_MONITOR_NUM_COUNTER];
3954};
3955
3956struct mlx5_ifc_set_monitor_counter_out_bits {
3957 u8 status[0x8];
3958 u8 reserved_at_8[0x18];
3959
3960 u8 syndrome[0x20];
3961
3962 u8 reserved_at_40[0x40];
3963};
3964
Saeed Mahameede2816822015-05-28 22:28:40 +03003965struct mlx5_ifc_query_vport_state_in_bits {
3966 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003967 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003968
Matan Barakb4ff3a32016-02-09 14:57:42 +02003969 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003970 u8 op_mod[0x10];
3971
3972 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003973 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003974 u8 vport_number[0x10];
3975
Matan Barakb4ff3a32016-02-09 14:57:42 +02003976 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003977};
3978
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +02003979struct mlx5_ifc_query_vnic_env_out_bits {
3980 u8 status[0x8];
3981 u8 reserved_at_8[0x18];
3982
3983 u8 syndrome[0x20];
3984
3985 u8 reserved_at_40[0x40];
3986
3987 struct mlx5_ifc_vnic_diagnostic_statistics_bits vport_env;
3988};
3989
3990enum {
3991 MLX5_QUERY_VNIC_ENV_IN_OP_MOD_VPORT_DIAG_STATISTICS = 0x0,
3992};
3993
3994struct mlx5_ifc_query_vnic_env_in_bits {
3995 u8 opcode[0x10];
3996 u8 reserved_at_10[0x10];
3997
3998 u8 reserved_at_20[0x10];
3999 u8 op_mod[0x10];
4000
4001 u8 other_vport[0x1];
4002 u8 reserved_at_41[0xf];
4003 u8 vport_number[0x10];
4004
4005 u8 reserved_at_60[0x20];
4006};
4007
Saeed Mahameede2816822015-05-28 22:28:40 +03004008struct mlx5_ifc_query_vport_counter_out_bits {
4009 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004010 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004011
4012 u8 syndrome[0x20];
4013
Matan Barakb4ff3a32016-02-09 14:57:42 +02004014 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004015
4016 struct mlx5_ifc_traffic_counter_bits received_errors;
4017
4018 struct mlx5_ifc_traffic_counter_bits transmit_errors;
4019
4020 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
4021
4022 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
4023
4024 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
4025
4026 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
4027
4028 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
4029
4030 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
4031
4032 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
4033
4034 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
4035
4036 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
4037
4038 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
4039
Matan Barakb4ff3a32016-02-09 14:57:42 +02004040 u8 reserved_at_680[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +03004041};
4042
4043enum {
4044 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
4045};
4046
4047struct mlx5_ifc_query_vport_counter_in_bits {
4048 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004049 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004050
Matan Barakb4ff3a32016-02-09 14:57:42 +02004051 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004052 u8 op_mod[0x10];
4053
4054 u8 other_vport[0x1];
Meny Yossefib54ba272016-02-18 18:14:59 +02004055 u8 reserved_at_41[0xb];
4056 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004057 u8 vport_number[0x10];
4058
Matan Barakb4ff3a32016-02-09 14:57:42 +02004059 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004060
4061 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004062 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004063
Matan Barakb4ff3a32016-02-09 14:57:42 +02004064 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004065};
4066
4067struct mlx5_ifc_query_tis_out_bits {
4068 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004069 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004070
4071 u8 syndrome[0x20];
4072
Matan Barakb4ff3a32016-02-09 14:57:42 +02004073 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004074
4075 struct mlx5_ifc_tisc_bits tis_context;
4076};
4077
4078struct mlx5_ifc_query_tis_in_bits {
4079 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004080 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004081
Matan Barakb4ff3a32016-02-09 14:57:42 +02004082 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004083 u8 op_mod[0x10];
4084
Matan Barakb4ff3a32016-02-09 14:57:42 +02004085 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004086 u8 tisn[0x18];
4087
Matan Barakb4ff3a32016-02-09 14:57:42 +02004088 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004089};
4090
4091struct mlx5_ifc_query_tir_out_bits {
4092 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004093 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004094
4095 u8 syndrome[0x20];
4096
Matan Barakb4ff3a32016-02-09 14:57:42 +02004097 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004098
4099 struct mlx5_ifc_tirc_bits tir_context;
4100};
4101
4102struct mlx5_ifc_query_tir_in_bits {
4103 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004104 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004105
Matan Barakb4ff3a32016-02-09 14:57:42 +02004106 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004107 u8 op_mod[0x10];
4108
Matan Barakb4ff3a32016-02-09 14:57:42 +02004109 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004110 u8 tirn[0x18];
4111
Matan Barakb4ff3a32016-02-09 14:57:42 +02004112 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004113};
4114
4115struct mlx5_ifc_query_srq_out_bits {
4116 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004117 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004118
4119 u8 syndrome[0x20];
4120
Matan Barakb4ff3a32016-02-09 14:57:42 +02004121 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004122
4123 struct mlx5_ifc_srqc_bits srq_context_entry;
4124
Matan Barakb4ff3a32016-02-09 14:57:42 +02004125 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004126
4127 u8 pas[0][0x40];
4128};
4129
4130struct mlx5_ifc_query_srq_in_bits {
4131 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004132 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004133
Matan Barakb4ff3a32016-02-09 14:57:42 +02004134 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004135 u8 op_mod[0x10];
4136
Matan Barakb4ff3a32016-02-09 14:57:42 +02004137 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004138 u8 srqn[0x18];
4139
Matan Barakb4ff3a32016-02-09 14:57:42 +02004140 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004141};
4142
4143struct mlx5_ifc_query_sq_out_bits {
4144 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004145 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004146
4147 u8 syndrome[0x20];
4148
Matan Barakb4ff3a32016-02-09 14:57:42 +02004149 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004150
4151 struct mlx5_ifc_sqc_bits sq_context;
4152};
4153
4154struct mlx5_ifc_query_sq_in_bits {
4155 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004156 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004157
Matan Barakb4ff3a32016-02-09 14:57:42 +02004158 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004159 u8 op_mod[0x10];
4160
Matan Barakb4ff3a32016-02-09 14:57:42 +02004161 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004162 u8 sqn[0x18];
4163
Matan Barakb4ff3a32016-02-09 14:57:42 +02004164 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004165};
4166
4167struct mlx5_ifc_query_special_contexts_out_bits {
4168 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004169 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004170
4171 u8 syndrome[0x20];
4172
Saeed Mahameedec22eb52016-07-16 06:28:36 +03004173 u8 dump_fill_mkey[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004174
4175 u8 resd_lkey[0x20];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02004176
4177 u8 null_mkey[0x20];
4178
4179 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004180};
4181
4182struct mlx5_ifc_query_special_contexts_in_bits {
4183 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004184 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004185
Matan Barakb4ff3a32016-02-09 14:57:42 +02004186 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004187 u8 op_mod[0x10];
4188
Matan Barakb4ff3a32016-02-09 14:57:42 +02004189 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004190};
4191
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03004192struct mlx5_ifc_query_scheduling_element_out_bits {
4193 u8 opcode[0x10];
4194 u8 reserved_at_10[0x10];
4195
4196 u8 reserved_at_20[0x10];
4197 u8 op_mod[0x10];
4198
4199 u8 reserved_at_40[0xc0];
4200
4201 struct mlx5_ifc_scheduling_context_bits scheduling_context;
4202
4203 u8 reserved_at_300[0x100];
4204};
4205
4206enum {
4207 SCHEDULING_HIERARCHY_E_SWITCH = 0x2,
4208};
4209
4210struct mlx5_ifc_query_scheduling_element_in_bits {
4211 u8 opcode[0x10];
4212 u8 reserved_at_10[0x10];
4213
4214 u8 reserved_at_20[0x10];
4215 u8 op_mod[0x10];
4216
4217 u8 scheduling_hierarchy[0x8];
4218 u8 reserved_at_48[0x18];
4219
4220 u8 scheduling_element_id[0x20];
4221
4222 u8 reserved_at_80[0x180];
4223};
4224
Saeed Mahameede2816822015-05-28 22:28:40 +03004225struct mlx5_ifc_query_rqt_out_bits {
4226 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004227 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004228
4229 u8 syndrome[0x20];
4230
Matan Barakb4ff3a32016-02-09 14:57:42 +02004231 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004232
4233 struct mlx5_ifc_rqtc_bits rqt_context;
4234};
4235
4236struct mlx5_ifc_query_rqt_in_bits {
4237 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004238 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004239
Matan Barakb4ff3a32016-02-09 14:57:42 +02004240 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004241 u8 op_mod[0x10];
4242
Matan Barakb4ff3a32016-02-09 14:57:42 +02004243 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004244 u8 rqtn[0x18];
4245
Matan Barakb4ff3a32016-02-09 14:57:42 +02004246 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004247};
4248
4249struct mlx5_ifc_query_rq_out_bits {
4250 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004251 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004252
4253 u8 syndrome[0x20];
4254
Matan Barakb4ff3a32016-02-09 14:57:42 +02004255 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004256
4257 struct mlx5_ifc_rqc_bits rq_context;
4258};
4259
4260struct mlx5_ifc_query_rq_in_bits {
4261 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004262 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004263
Matan Barakb4ff3a32016-02-09 14:57:42 +02004264 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004265 u8 op_mod[0x10];
4266
Matan Barakb4ff3a32016-02-09 14:57:42 +02004267 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004268 u8 rqn[0x18];
4269
Matan Barakb4ff3a32016-02-09 14:57:42 +02004270 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004271};
4272
4273struct mlx5_ifc_query_roce_address_out_bits {
4274 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004275 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004276
4277 u8 syndrome[0x20];
4278
Matan Barakb4ff3a32016-02-09 14:57:42 +02004279 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004280
4281 struct mlx5_ifc_roce_addr_layout_bits roce_address;
4282};
4283
4284struct mlx5_ifc_query_roce_address_in_bits {
4285 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004286 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004287
Matan Barakb4ff3a32016-02-09 14:57:42 +02004288 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004289 u8 op_mod[0x10];
4290
4291 u8 roce_address_index[0x10];
Daniel Jurgens32f69e42018-01-04 17:25:36 +02004292 u8 reserved_at_50[0xc];
4293 u8 vhca_port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004294
Matan Barakb4ff3a32016-02-09 14:57:42 +02004295 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004296};
4297
4298struct mlx5_ifc_query_rmp_out_bits {
4299 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004300 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004301
4302 u8 syndrome[0x20];
4303
Matan Barakb4ff3a32016-02-09 14:57:42 +02004304 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004305
4306 struct mlx5_ifc_rmpc_bits rmp_context;
4307};
4308
4309struct mlx5_ifc_query_rmp_in_bits {
4310 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004311 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004312
Matan Barakb4ff3a32016-02-09 14:57:42 +02004313 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004314 u8 op_mod[0x10];
4315
Matan Barakb4ff3a32016-02-09 14:57:42 +02004316 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004317 u8 rmpn[0x18];
4318
Matan Barakb4ff3a32016-02-09 14:57:42 +02004319 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004320};
4321
4322struct mlx5_ifc_query_qp_out_bits {
4323 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004324 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004325
4326 u8 syndrome[0x20];
4327
Matan Barakb4ff3a32016-02-09 14:57:42 +02004328 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004329
4330 u8 opt_param_mask[0x20];
4331
Matan Barakb4ff3a32016-02-09 14:57:42 +02004332 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004333
4334 struct mlx5_ifc_qpc_bits qpc;
4335
Matan Barakb4ff3a32016-02-09 14:57:42 +02004336 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004337
4338 u8 pas[0][0x40];
4339};
4340
4341struct mlx5_ifc_query_qp_in_bits {
4342 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004343 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004344
Matan Barakb4ff3a32016-02-09 14:57:42 +02004345 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004346 u8 op_mod[0x10];
4347
Matan Barakb4ff3a32016-02-09 14:57:42 +02004348 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004349 u8 qpn[0x18];
4350
Matan Barakb4ff3a32016-02-09 14:57:42 +02004351 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004352};
4353
4354struct mlx5_ifc_query_q_counter_out_bits {
4355 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004356 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004357
4358 u8 syndrome[0x20];
4359
Matan Barakb4ff3a32016-02-09 14:57:42 +02004360 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004361
4362 u8 rx_write_requests[0x20];
4363
Matan Barakb4ff3a32016-02-09 14:57:42 +02004364 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004365
4366 u8 rx_read_requests[0x20];
4367
Matan Barakb4ff3a32016-02-09 14:57:42 +02004368 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004369
4370 u8 rx_atomic_requests[0x20];
4371
Matan Barakb4ff3a32016-02-09 14:57:42 +02004372 u8 reserved_at_120[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004373
4374 u8 rx_dct_connect[0x20];
4375
Matan Barakb4ff3a32016-02-09 14:57:42 +02004376 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004377
4378 u8 out_of_buffer[0x20];
4379
Matan Barakb4ff3a32016-02-09 14:57:42 +02004380 u8 reserved_at_1a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004381
4382 u8 out_of_sequence[0x20];
4383
Saeed Mahameed74862162016-06-09 15:11:34 +03004384 u8 reserved_at_1e0[0x20];
4385
4386 u8 duplicate_request[0x20];
4387
4388 u8 reserved_at_220[0x20];
4389
4390 u8 rnr_nak_retry_err[0x20];
4391
4392 u8 reserved_at_260[0x20];
4393
4394 u8 packet_seq_err[0x20];
4395
4396 u8 reserved_at_2a0[0x20];
4397
4398 u8 implied_nak_seq_err[0x20];
4399
4400 u8 reserved_at_2e0[0x20];
4401
4402 u8 local_ack_timeout_err[0x20];
4403
Parav Pandit58dcb602017-06-19 07:19:37 +03004404 u8 reserved_at_320[0xa0];
4405
4406 u8 resp_local_length_error[0x20];
4407
4408 u8 req_local_length_error[0x20];
4409
4410 u8 resp_local_qp_error[0x20];
4411
4412 u8 local_operation_error[0x20];
4413
4414 u8 resp_local_protection[0x20];
4415
4416 u8 req_local_protection[0x20];
4417
4418 u8 resp_cqe_error[0x20];
4419
4420 u8 req_cqe_error[0x20];
4421
4422 u8 req_mw_binding[0x20];
4423
4424 u8 req_bad_response[0x20];
4425
4426 u8 req_remote_invalid_request[0x20];
4427
4428 u8 resp_remote_invalid_request[0x20];
4429
4430 u8 req_remote_access_errors[0x20];
4431
4432 u8 resp_remote_access_errors[0x20];
4433
4434 u8 req_remote_operation_errors[0x20];
4435
4436 u8 req_transport_retries_exceeded[0x20];
4437
4438 u8 cq_overflow[0x20];
4439
4440 u8 resp_cqe_flush_error[0x20];
4441
4442 u8 req_cqe_flush_error[0x20];
4443
4444 u8 reserved_at_620[0x1e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004445};
4446
4447struct mlx5_ifc_query_q_counter_in_bits {
4448 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004449 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004450
Matan Barakb4ff3a32016-02-09 14:57:42 +02004451 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004452 u8 op_mod[0x10];
4453
Matan Barakb4ff3a32016-02-09 14:57:42 +02004454 u8 reserved_at_40[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004455
4456 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004457 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004458
Matan Barakb4ff3a32016-02-09 14:57:42 +02004459 u8 reserved_at_e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004460 u8 counter_set_id[0x8];
4461};
4462
4463struct mlx5_ifc_query_pages_out_bits {
4464 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004465 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004466
4467 u8 syndrome[0x20];
4468
Bodong Wang591905b2019-02-12 22:55:35 -08004469 u8 embedded_cpu_function[0x1];
4470 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004471 u8 function_id[0x10];
4472
4473 u8 num_pages[0x20];
4474};
4475
4476enum {
4477 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
4478 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
4479 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
4480};
4481
4482struct mlx5_ifc_query_pages_in_bits {
4483 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004484 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004485
Matan Barakb4ff3a32016-02-09 14:57:42 +02004486 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004487 u8 op_mod[0x10];
4488
Bodong Wang591905b2019-02-12 22:55:35 -08004489 u8 embedded_cpu_function[0x1];
4490 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004491 u8 function_id[0x10];
4492
Matan Barakb4ff3a32016-02-09 14:57:42 +02004493 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004494};
4495
4496struct mlx5_ifc_query_nic_vport_context_out_bits {
4497 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004498 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004499
4500 u8 syndrome[0x20];
4501
Matan Barakb4ff3a32016-02-09 14:57:42 +02004502 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004503
4504 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
4505};
4506
4507struct mlx5_ifc_query_nic_vport_context_in_bits {
4508 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004509 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004510
Matan Barakb4ff3a32016-02-09 14:57:42 +02004511 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004512 u8 op_mod[0x10];
4513
4514 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004515 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004516 u8 vport_number[0x10];
4517
Matan Barakb4ff3a32016-02-09 14:57:42 +02004518 u8 reserved_at_60[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03004519 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004520 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004521};
4522
4523struct mlx5_ifc_query_mkey_out_bits {
4524 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004525 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004526
4527 u8 syndrome[0x20];
4528
Matan Barakb4ff3a32016-02-09 14:57:42 +02004529 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004530
4531 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
4532
Matan Barakb4ff3a32016-02-09 14:57:42 +02004533 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004534
4535 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
4536
4537 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
4538};
4539
4540struct mlx5_ifc_query_mkey_in_bits {
4541 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004542 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004543
Matan Barakb4ff3a32016-02-09 14:57:42 +02004544 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004545 u8 op_mod[0x10];
4546
Matan Barakb4ff3a32016-02-09 14:57:42 +02004547 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004548 u8 mkey_index[0x18];
4549
4550 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004551 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004552};
4553
4554struct mlx5_ifc_query_mad_demux_out_bits {
4555 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004556 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004557
4558 u8 syndrome[0x20];
4559
Matan Barakb4ff3a32016-02-09 14:57:42 +02004560 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004561
4562 u8 mad_dumux_parameters_block[0x20];
4563};
4564
4565struct mlx5_ifc_query_mad_demux_in_bits {
4566 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004567 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004568
Matan Barakb4ff3a32016-02-09 14:57:42 +02004569 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004570 u8 op_mod[0x10];
4571
Matan Barakb4ff3a32016-02-09 14:57:42 +02004572 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004573};
4574
4575struct mlx5_ifc_query_l2_table_entry_out_bits {
4576 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004577 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004578
4579 u8 syndrome[0x20];
4580
Matan Barakb4ff3a32016-02-09 14:57:42 +02004581 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004582
Matan Barakb4ff3a32016-02-09 14:57:42 +02004583 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03004584 u8 vlan_valid[0x1];
4585 u8 vlan[0xc];
4586
4587 struct mlx5_ifc_mac_address_layout_bits mac_address;
4588
Matan Barakb4ff3a32016-02-09 14:57:42 +02004589 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004590};
4591
4592struct mlx5_ifc_query_l2_table_entry_in_bits {
4593 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004594 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004595
Matan Barakb4ff3a32016-02-09 14:57:42 +02004596 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004597 u8 op_mod[0x10];
4598
Matan Barakb4ff3a32016-02-09 14:57:42 +02004599 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004600
Matan Barakb4ff3a32016-02-09 14:57:42 +02004601 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004602 u8 table_index[0x18];
4603
Matan Barakb4ff3a32016-02-09 14:57:42 +02004604 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004605};
4606
4607struct mlx5_ifc_query_issi_out_bits {
4608 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004609 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004610
4611 u8 syndrome[0x20];
4612
Matan Barakb4ff3a32016-02-09 14:57:42 +02004613 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004614 u8 current_issi[0x10];
4615
Matan Barakb4ff3a32016-02-09 14:57:42 +02004616 u8 reserved_at_60[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004617
Matan Barakb4ff3a32016-02-09 14:57:42 +02004618 u8 reserved_at_100[76][0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004619 u8 supported_issi_dw0[0x20];
4620};
4621
4622struct mlx5_ifc_query_issi_in_bits {
4623 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004624 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004625
Matan Barakb4ff3a32016-02-09 14:57:42 +02004626 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004627 u8 op_mod[0x10];
4628
Matan Barakb4ff3a32016-02-09 14:57:42 +02004629 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004630};
4631
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +02004632struct mlx5_ifc_set_driver_version_out_bits {
4633 u8 status[0x8];
4634 u8 reserved_0[0x18];
4635
4636 u8 syndrome[0x20];
4637 u8 reserved_1[0x40];
4638};
4639
4640struct mlx5_ifc_set_driver_version_in_bits {
4641 u8 opcode[0x10];
4642 u8 reserved_0[0x10];
4643
4644 u8 reserved_1[0x10];
4645 u8 op_mod[0x10];
4646
4647 u8 reserved_2[0x40];
4648 u8 driver_version[64][0x8];
4649};
4650
Saeed Mahameede2816822015-05-28 22:28:40 +03004651struct mlx5_ifc_query_hca_vport_pkey_out_bits {
4652 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004653 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004654
4655 u8 syndrome[0x20];
4656
Matan Barakb4ff3a32016-02-09 14:57:42 +02004657 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004658
4659 struct mlx5_ifc_pkey_bits pkey[0];
4660};
4661
4662struct mlx5_ifc_query_hca_vport_pkey_in_bits {
4663 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004664 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004665
Matan Barakb4ff3a32016-02-09 14:57:42 +02004666 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004667 u8 op_mod[0x10];
4668
4669 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004670 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004671 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004672 u8 vport_number[0x10];
4673
Matan Barakb4ff3a32016-02-09 14:57:42 +02004674 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004675 u8 pkey_index[0x10];
4676};
4677
Eli Coheneff901d2016-03-11 22:58:42 +02004678enum {
4679 MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0,
4680 MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1,
4681 MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2,
4682};
4683
Saeed Mahameede2816822015-05-28 22:28:40 +03004684struct mlx5_ifc_query_hca_vport_gid_out_bits {
4685 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004686 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004687
4688 u8 syndrome[0x20];
4689
Matan Barakb4ff3a32016-02-09 14:57:42 +02004690 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004691
4692 u8 gids_num[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004693 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004694
4695 struct mlx5_ifc_array128_auto_bits gid[0];
4696};
4697
4698struct mlx5_ifc_query_hca_vport_gid_in_bits {
4699 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004700 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004701
Matan Barakb4ff3a32016-02-09 14:57:42 +02004702 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004703 u8 op_mod[0x10];
4704
4705 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004706 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004707 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004708 u8 vport_number[0x10];
4709
Matan Barakb4ff3a32016-02-09 14:57:42 +02004710 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004711 u8 gid_index[0x10];
4712};
4713
4714struct mlx5_ifc_query_hca_vport_context_out_bits {
4715 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004716 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004717
4718 u8 syndrome[0x20];
4719
Matan Barakb4ff3a32016-02-09 14:57:42 +02004720 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004721
4722 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4723};
4724
4725struct mlx5_ifc_query_hca_vport_context_in_bits {
4726 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004727 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004728
Matan Barakb4ff3a32016-02-09 14:57:42 +02004729 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004730 u8 op_mod[0x10];
4731
4732 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004733 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004734 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004735 u8 vport_number[0x10];
4736
Matan Barakb4ff3a32016-02-09 14:57:42 +02004737 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004738};
4739
4740struct mlx5_ifc_query_hca_cap_out_bits {
4741 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004742 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004743
4744 u8 syndrome[0x20];
4745
Matan Barakb4ff3a32016-02-09 14:57:42 +02004746 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004747
4748 union mlx5_ifc_hca_cap_union_bits capability;
Eli Cohenb7755162014-10-02 12:19:44 +03004749};
4750
4751struct mlx5_ifc_query_hca_cap_in_bits {
4752 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004753 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004754
Matan Barakb4ff3a32016-02-09 14:57:42 +02004755 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004756 u8 op_mod[0x10];
4757
Matan Barakb4ff3a32016-02-09 14:57:42 +02004758 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03004759};
4760
Saeed Mahameede2816822015-05-28 22:28:40 +03004761struct mlx5_ifc_query_flow_table_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004762 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004763 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004764
4765 u8 syndrome[0x20];
4766
Matan Barakb4ff3a32016-02-09 14:57:42 +02004767 u8 reserved_at_40[0x80];
Eli Cohenb7755162014-10-02 12:19:44 +03004768
Matan Barakb4ff3a32016-02-09 14:57:42 +02004769 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004770 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004771 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004772 u8 log_size[0x8];
4773
Matan Barakb4ff3a32016-02-09 14:57:42 +02004774 u8 reserved_at_e0[0x120];
Eli Cohenb7755162014-10-02 12:19:44 +03004775};
4776
Saeed Mahameede2816822015-05-28 22:28:40 +03004777struct mlx5_ifc_query_flow_table_in_bits {
4778 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004779 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004780
Matan Barakb4ff3a32016-02-09 14:57:42 +02004781 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004782 u8 op_mod[0x10];
4783
Matan Barakb4ff3a32016-02-09 14:57:42 +02004784 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004785
4786 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004787 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004788
Matan Barakb4ff3a32016-02-09 14:57:42 +02004789 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004790 u8 table_id[0x18];
4791
Matan Barakb4ff3a32016-02-09 14:57:42 +02004792 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004793};
4794
4795struct mlx5_ifc_query_fte_out_bits {
4796 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004797 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004798
4799 u8 syndrome[0x20];
4800
Matan Barakb4ff3a32016-02-09 14:57:42 +02004801 u8 reserved_at_40[0x1c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004802
4803 struct mlx5_ifc_flow_context_bits flow_context;
4804};
4805
4806struct mlx5_ifc_query_fte_in_bits {
4807 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004808 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004809
Matan Barakb4ff3a32016-02-09 14:57:42 +02004810 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004811 u8 op_mod[0x10];
4812
Matan Barakb4ff3a32016-02-09 14:57:42 +02004813 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004814
4815 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004816 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004817
Matan Barakb4ff3a32016-02-09 14:57:42 +02004818 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004819 u8 table_id[0x18];
4820
Matan Barakb4ff3a32016-02-09 14:57:42 +02004821 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004822
4823 u8 flow_index[0x20];
4824
Matan Barakb4ff3a32016-02-09 14:57:42 +02004825 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004826};
4827
4828enum {
4829 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
4830 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
4831 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
Saeed Mahameed4c8b8512018-12-12 19:11:36 -08004832 MLX5_QUERY_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS_2 = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +03004833};
4834
4835struct mlx5_ifc_query_flow_group_out_bits {
4836 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004837 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004838
4839 u8 syndrome[0x20];
4840
Matan Barakb4ff3a32016-02-09 14:57:42 +02004841 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004842
4843 u8 start_flow_index[0x20];
4844
Matan Barakb4ff3a32016-02-09 14:57:42 +02004845 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004846
4847 u8 end_flow_index[0x20];
4848
Matan Barakb4ff3a32016-02-09 14:57:42 +02004849 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004850
Matan Barakb4ff3a32016-02-09 14:57:42 +02004851 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004852 u8 match_criteria_enable[0x8];
4853
4854 struct mlx5_ifc_fte_match_param_bits match_criteria;
4855
Matan Barakb4ff3a32016-02-09 14:57:42 +02004856 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03004857};
4858
4859struct mlx5_ifc_query_flow_group_in_bits {
4860 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004861 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004862
Matan Barakb4ff3a32016-02-09 14:57:42 +02004863 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004864 u8 op_mod[0x10];
4865
Matan Barakb4ff3a32016-02-09 14:57:42 +02004866 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004867
4868 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004869 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004870
Matan Barakb4ff3a32016-02-09 14:57:42 +02004871 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004872 u8 table_id[0x18];
4873
4874 u8 group_id[0x20];
4875
Matan Barakb4ff3a32016-02-09 14:57:42 +02004876 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03004877};
4878
Amir Vadai9dc0b282016-05-13 12:55:39 +00004879struct mlx5_ifc_query_flow_counter_out_bits {
4880 u8 status[0x8];
4881 u8 reserved_at_8[0x18];
4882
4883 u8 syndrome[0x20];
4884
4885 u8 reserved_at_40[0x40];
4886
4887 struct mlx5_ifc_traffic_counter_bits flow_statistics[0];
4888};
4889
4890struct mlx5_ifc_query_flow_counter_in_bits {
4891 u8 opcode[0x10];
4892 u8 reserved_at_10[0x10];
4893
4894 u8 reserved_at_20[0x10];
4895 u8 op_mod[0x10];
4896
4897 u8 reserved_at_40[0x80];
4898
4899 u8 clear[0x1];
4900 u8 reserved_at_c1[0xf];
4901 u8 num_of_counters[0x10];
4902
Rabie Louloua8ffcc72017-07-09 13:39:30 +03004903 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00004904};
4905
Saeed Mahameedd6666752015-12-01 18:03:22 +02004906struct mlx5_ifc_query_esw_vport_context_out_bits {
4907 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004908 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004909
4910 u8 syndrome[0x20];
4911
Matan Barakb4ff3a32016-02-09 14:57:42 +02004912 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004913
4914 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4915};
4916
4917struct mlx5_ifc_query_esw_vport_context_in_bits {
4918 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004919 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004920
Matan Barakb4ff3a32016-02-09 14:57:42 +02004921 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004922 u8 op_mod[0x10];
4923
4924 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004925 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004926 u8 vport_number[0x10];
4927
Matan Barakb4ff3a32016-02-09 14:57:42 +02004928 u8 reserved_at_60[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004929};
4930
4931struct mlx5_ifc_modify_esw_vport_context_out_bits {
4932 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004933 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004934
4935 u8 syndrome[0x20];
4936
Matan Barakb4ff3a32016-02-09 14:57:42 +02004937 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004938};
4939
4940struct mlx5_ifc_esw_vport_context_fields_select_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004941 u8 reserved_at_0[0x1c];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004942 u8 vport_cvlan_insert[0x1];
4943 u8 vport_svlan_insert[0x1];
4944 u8 vport_cvlan_strip[0x1];
4945 u8 vport_svlan_strip[0x1];
4946};
4947
4948struct mlx5_ifc_modify_esw_vport_context_in_bits {
4949 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004950 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004951
Matan Barakb4ff3a32016-02-09 14:57:42 +02004952 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004953 u8 op_mod[0x10];
4954
4955 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004956 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004957 u8 vport_number[0x10];
4958
4959 struct mlx5_ifc_esw_vport_context_fields_select_bits field_select;
4960
4961 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4962};
4963
Saeed Mahameede2816822015-05-28 22:28:40 +03004964struct mlx5_ifc_query_eq_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004965 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004966 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004967
4968 u8 syndrome[0x20];
4969
Matan Barakb4ff3a32016-02-09 14:57:42 +02004970 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004971
4972 struct mlx5_ifc_eqc_bits eq_context_entry;
4973
Matan Barakb4ff3a32016-02-09 14:57:42 +02004974 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004975
4976 u8 event_bitmask[0x40];
4977
Matan Barakb4ff3a32016-02-09 14:57:42 +02004978 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03004979
4980 u8 pas[0][0x40];
4981};
4982
4983struct mlx5_ifc_query_eq_in_bits {
4984 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004985 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004986
Matan Barakb4ff3a32016-02-09 14:57:42 +02004987 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004988 u8 op_mod[0x10];
4989
Matan Barakb4ff3a32016-02-09 14:57:42 +02004990 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004991 u8 eq_number[0x8];
4992
Matan Barakb4ff3a32016-02-09 14:57:42 +02004993 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004994};
4995
Mark Bloch60786f02018-08-28 14:18:46 +03004996struct mlx5_ifc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004997 u8 reserved_at_0[0x5];
Mark Bloch60786f02018-08-28 14:18:46 +03004998 u8 reformat_type[0x3];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004999 u8 reserved_at_8[0xe];
Mark Bloch60786f02018-08-28 14:18:46 +03005000 u8 reformat_data_size[0xa];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005001
5002 u8 reserved_at_20[0x10];
Mark Bloch60786f02018-08-28 14:18:46 +03005003 u8 reformat_data[2][0x8];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005004
Mark Bloch60786f02018-08-28 14:18:46 +03005005 u8 more_reformat_data[0][0x8];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005006};
5007
Mark Bloch60786f02018-08-28 14:18:46 +03005008struct mlx5_ifc_query_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005009 u8 status[0x8];
5010 u8 reserved_at_8[0x18];
5011
5012 u8 syndrome[0x20];
5013
5014 u8 reserved_at_40[0xa0];
5015
Mark Bloch60786f02018-08-28 14:18:46 +03005016 struct mlx5_ifc_packet_reformat_context_in_bits packet_reformat_context[0];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005017};
5018
Mark Bloch60786f02018-08-28 14:18:46 +03005019struct mlx5_ifc_query_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005020 u8 opcode[0x10];
5021 u8 reserved_at_10[0x10];
5022
5023 u8 reserved_at_20[0x10];
5024 u8 op_mod[0x10];
5025
Mark Bloch60786f02018-08-28 14:18:46 +03005026 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005027
5028 u8 reserved_at_60[0xa0];
5029};
5030
Mark Bloch60786f02018-08-28 14:18:46 +03005031struct mlx5_ifc_alloc_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005032 u8 status[0x8];
5033 u8 reserved_at_8[0x18];
5034
5035 u8 syndrome[0x20];
5036
Mark Bloch60786f02018-08-28 14:18:46 +03005037 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005038
5039 u8 reserved_at_60[0x20];
5040};
5041
Mark Bloche0e7a382018-08-28 14:18:45 +03005042enum {
Mark Bloch60786f02018-08-28 14:18:46 +03005043 MLX5_REFORMAT_TYPE_L2_TO_VXLAN = 0x0,
5044 MLX5_REFORMAT_TYPE_L2_TO_NVGRE = 0x1,
Mark Blochbea4e1f2018-08-28 14:18:47 +03005045 MLX5_REFORMAT_TYPE_L2_TO_L2_TUNNEL = 0x2,
5046 MLX5_REFORMAT_TYPE_L3_TUNNEL_TO_L2 = 0x3,
5047 MLX5_REFORMAT_TYPE_L2_TO_L3_TUNNEL = 0x4,
Mark Bloche0e7a382018-08-28 14:18:45 +03005048};
5049
Mark Bloch60786f02018-08-28 14:18:46 +03005050struct mlx5_ifc_alloc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005051 u8 opcode[0x10];
5052 u8 reserved_at_10[0x10];
5053
5054 u8 reserved_at_20[0x10];
5055 u8 op_mod[0x10];
5056
5057 u8 reserved_at_40[0xa0];
5058
Mark Bloch60786f02018-08-28 14:18:46 +03005059 struct mlx5_ifc_packet_reformat_context_in_bits packet_reformat_context;
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005060};
5061
Mark Bloch60786f02018-08-28 14:18:46 +03005062struct mlx5_ifc_dealloc_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005063 u8 status[0x8];
5064 u8 reserved_at_8[0x18];
5065
5066 u8 syndrome[0x20];
5067
5068 u8 reserved_at_40[0x40];
5069};
5070
Mark Bloch60786f02018-08-28 14:18:46 +03005071struct mlx5_ifc_dealloc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005072 u8 opcode[0x10];
5073 u8 reserved_at_10[0x10];
5074
5075 u8 reserved_20[0x10];
5076 u8 op_mod[0x10];
5077
Mark Bloch60786f02018-08-28 14:18:46 +03005078 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005079
5080 u8 reserved_60[0x20];
5081};
5082
Or Gerlitz2a69cb92017-01-19 19:31:25 +02005083struct mlx5_ifc_set_action_in_bits {
5084 u8 action_type[0x4];
5085 u8 field[0xc];
5086 u8 reserved_at_10[0x3];
5087 u8 offset[0x5];
5088 u8 reserved_at_18[0x3];
5089 u8 length[0x5];
5090
5091 u8 data[0x20];
5092};
5093
5094struct mlx5_ifc_add_action_in_bits {
5095 u8 action_type[0x4];
5096 u8 field[0xc];
5097 u8 reserved_at_10[0x10];
5098
5099 u8 data[0x20];
5100};
5101
5102union mlx5_ifc_set_action_in_add_action_in_auto_bits {
5103 struct mlx5_ifc_set_action_in_bits set_action_in;
5104 struct mlx5_ifc_add_action_in_bits add_action_in;
5105 u8 reserved_at_0[0x40];
5106};
5107
5108enum {
5109 MLX5_ACTION_TYPE_SET = 0x1,
5110 MLX5_ACTION_TYPE_ADD = 0x2,
5111};
5112
5113enum {
5114 MLX5_ACTION_IN_FIELD_OUT_SMAC_47_16 = 0x1,
5115 MLX5_ACTION_IN_FIELD_OUT_SMAC_15_0 = 0x2,
5116 MLX5_ACTION_IN_FIELD_OUT_ETHERTYPE = 0x3,
5117 MLX5_ACTION_IN_FIELD_OUT_DMAC_47_16 = 0x4,
5118 MLX5_ACTION_IN_FIELD_OUT_DMAC_15_0 = 0x5,
5119 MLX5_ACTION_IN_FIELD_OUT_IP_DSCP = 0x6,
5120 MLX5_ACTION_IN_FIELD_OUT_TCP_FLAGS = 0x7,
5121 MLX5_ACTION_IN_FIELD_OUT_TCP_SPORT = 0x8,
5122 MLX5_ACTION_IN_FIELD_OUT_TCP_DPORT = 0x9,
5123 MLX5_ACTION_IN_FIELD_OUT_IP_TTL = 0xa,
5124 MLX5_ACTION_IN_FIELD_OUT_UDP_SPORT = 0xb,
5125 MLX5_ACTION_IN_FIELD_OUT_UDP_DPORT = 0xc,
5126 MLX5_ACTION_IN_FIELD_OUT_SIPV6_127_96 = 0xd,
5127 MLX5_ACTION_IN_FIELD_OUT_SIPV6_95_64 = 0xe,
5128 MLX5_ACTION_IN_FIELD_OUT_SIPV6_63_32 = 0xf,
5129 MLX5_ACTION_IN_FIELD_OUT_SIPV6_31_0 = 0x10,
5130 MLX5_ACTION_IN_FIELD_OUT_DIPV6_127_96 = 0x11,
5131 MLX5_ACTION_IN_FIELD_OUT_DIPV6_95_64 = 0x12,
5132 MLX5_ACTION_IN_FIELD_OUT_DIPV6_63_32 = 0x13,
5133 MLX5_ACTION_IN_FIELD_OUT_DIPV6_31_0 = 0x14,
5134 MLX5_ACTION_IN_FIELD_OUT_SIPV4 = 0x15,
5135 MLX5_ACTION_IN_FIELD_OUT_DIPV4 = 0x16,
Or Gerlitz0c0316f2017-06-13 11:09:57 +03005136 MLX5_ACTION_IN_FIELD_OUT_IPV6_HOPLIMIT = 0x47,
Or Gerlitz2a69cb92017-01-19 19:31:25 +02005137};
5138
5139struct mlx5_ifc_alloc_modify_header_context_out_bits {
5140 u8 status[0x8];
5141 u8 reserved_at_8[0x18];
5142
5143 u8 syndrome[0x20];
5144
5145 u8 modify_header_id[0x20];
5146
5147 u8 reserved_at_60[0x20];
5148};
5149
5150struct mlx5_ifc_alloc_modify_header_context_in_bits {
5151 u8 opcode[0x10];
5152 u8 reserved_at_10[0x10];
5153
5154 u8 reserved_at_20[0x10];
5155 u8 op_mod[0x10];
5156
5157 u8 reserved_at_40[0x20];
5158
5159 u8 table_type[0x8];
5160 u8 reserved_at_68[0x10];
5161 u8 num_of_actions[0x8];
5162
5163 union mlx5_ifc_set_action_in_add_action_in_auto_bits actions[0];
5164};
5165
5166struct mlx5_ifc_dealloc_modify_header_context_out_bits {
5167 u8 status[0x8];
5168 u8 reserved_at_8[0x18];
5169
5170 u8 syndrome[0x20];
5171
5172 u8 reserved_at_40[0x40];
5173};
5174
5175struct mlx5_ifc_dealloc_modify_header_context_in_bits {
5176 u8 opcode[0x10];
5177 u8 reserved_at_10[0x10];
5178
5179 u8 reserved_at_20[0x10];
5180 u8 op_mod[0x10];
5181
5182 u8 modify_header_id[0x20];
5183
5184 u8 reserved_at_60[0x20];
5185};
5186
Saeed Mahameede2816822015-05-28 22:28:40 +03005187struct mlx5_ifc_query_dct_out_bits {
5188 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005189 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005190
5191 u8 syndrome[0x20];
5192
Matan Barakb4ff3a32016-02-09 14:57:42 +02005193 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005194
5195 struct mlx5_ifc_dctc_bits dct_context_entry;
5196
Matan Barakb4ff3a32016-02-09 14:57:42 +02005197 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03005198};
5199
5200struct mlx5_ifc_query_dct_in_bits {
5201 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005202 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005203
Matan Barakb4ff3a32016-02-09 14:57:42 +02005204 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005205 u8 op_mod[0x10];
5206
Matan Barakb4ff3a32016-02-09 14:57:42 +02005207 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005208 u8 dctn[0x18];
5209
Matan Barakb4ff3a32016-02-09 14:57:42 +02005210 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005211};
5212
5213struct mlx5_ifc_query_cq_out_bits {
5214 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005215 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005216
5217 u8 syndrome[0x20];
5218
Matan Barakb4ff3a32016-02-09 14:57:42 +02005219 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005220
5221 struct mlx5_ifc_cqc_bits cq_context;
5222
Matan Barakb4ff3a32016-02-09 14:57:42 +02005223 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03005224
5225 u8 pas[0][0x40];
5226};
5227
5228struct mlx5_ifc_query_cq_in_bits {
5229 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005230 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005231
Matan Barakb4ff3a32016-02-09 14:57:42 +02005232 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005233 u8 op_mod[0x10];
5234
Matan Barakb4ff3a32016-02-09 14:57:42 +02005235 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005236 u8 cqn[0x18];
5237
Matan Barakb4ff3a32016-02-09 14:57:42 +02005238 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005239};
5240
5241struct mlx5_ifc_query_cong_status_out_bits {
5242 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005243 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005244
5245 u8 syndrome[0x20];
5246
Matan Barakb4ff3a32016-02-09 14:57:42 +02005247 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005248
5249 u8 enable[0x1];
5250 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005251 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03005252};
5253
5254struct mlx5_ifc_query_cong_status_in_bits {
5255 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005256 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005257
Matan Barakb4ff3a32016-02-09 14:57:42 +02005258 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005259 u8 op_mod[0x10];
5260
Matan Barakb4ff3a32016-02-09 14:57:42 +02005261 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005262 u8 priority[0x4];
5263 u8 cong_protocol[0x4];
5264
Matan Barakb4ff3a32016-02-09 14:57:42 +02005265 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005266};
5267
5268struct mlx5_ifc_query_cong_statistics_out_bits {
5269 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005270 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005271
5272 u8 syndrome[0x20];
5273
Matan Barakb4ff3a32016-02-09 14:57:42 +02005274 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005275
Parav Pandite1f24a72017-04-16 07:29:29 +03005276 u8 rp_cur_flows[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005277
5278 u8 sum_flows[0x20];
5279
Parav Pandite1f24a72017-04-16 07:29:29 +03005280 u8 rp_cnp_ignored_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005281
Parav Pandite1f24a72017-04-16 07:29:29 +03005282 u8 rp_cnp_ignored_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005283
Parav Pandite1f24a72017-04-16 07:29:29 +03005284 u8 rp_cnp_handled_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005285
Parav Pandite1f24a72017-04-16 07:29:29 +03005286 u8 rp_cnp_handled_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005287
Matan Barakb4ff3a32016-02-09 14:57:42 +02005288 u8 reserved_at_140[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03005289
5290 u8 time_stamp_high[0x20];
5291
5292 u8 time_stamp_low[0x20];
5293
5294 u8 accumulators_period[0x20];
5295
Parav Pandite1f24a72017-04-16 07:29:29 +03005296 u8 np_ecn_marked_roce_packets_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005297
Parav Pandite1f24a72017-04-16 07:29:29 +03005298 u8 np_ecn_marked_roce_packets_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005299
Parav Pandite1f24a72017-04-16 07:29:29 +03005300 u8 np_cnp_sent_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005301
Parav Pandite1f24a72017-04-16 07:29:29 +03005302 u8 np_cnp_sent_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005303
Matan Barakb4ff3a32016-02-09 14:57:42 +02005304 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03005305};
5306
5307struct mlx5_ifc_query_cong_statistics_in_bits {
5308 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005309 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005310
Matan Barakb4ff3a32016-02-09 14:57:42 +02005311 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005312 u8 op_mod[0x10];
5313
5314 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005315 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03005316
Matan Barakb4ff3a32016-02-09 14:57:42 +02005317 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005318};
5319
5320struct mlx5_ifc_query_cong_params_out_bits {
5321 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005322 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005323
5324 u8 syndrome[0x20];
5325
Matan Barakb4ff3a32016-02-09 14:57:42 +02005326 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005327
5328 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
5329};
5330
5331struct mlx5_ifc_query_cong_params_in_bits {
5332 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005333 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005334
Matan Barakb4ff3a32016-02-09 14:57:42 +02005335 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005336 u8 op_mod[0x10];
5337
Matan Barakb4ff3a32016-02-09 14:57:42 +02005338 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03005339 u8 cong_protocol[0x4];
5340
Matan Barakb4ff3a32016-02-09 14:57:42 +02005341 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005342};
5343
5344struct mlx5_ifc_query_adapter_out_bits {
5345 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005346 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005347
5348 u8 syndrome[0x20];
5349
Matan Barakb4ff3a32016-02-09 14:57:42 +02005350 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005351
5352 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
5353};
5354
5355struct mlx5_ifc_query_adapter_in_bits {
5356 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005357 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005358
Matan Barakb4ff3a32016-02-09 14:57:42 +02005359 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005360 u8 op_mod[0x10];
5361
Matan Barakb4ff3a32016-02-09 14:57:42 +02005362 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005363};
5364
5365struct mlx5_ifc_qp_2rst_out_bits {
5366 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005367 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005368
5369 u8 syndrome[0x20];
5370
Matan Barakb4ff3a32016-02-09 14:57:42 +02005371 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005372};
5373
5374struct mlx5_ifc_qp_2rst_in_bits {
5375 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005376 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005377
Matan Barakb4ff3a32016-02-09 14:57:42 +02005378 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005379 u8 op_mod[0x10];
5380
Matan Barakb4ff3a32016-02-09 14:57:42 +02005381 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005382 u8 qpn[0x18];
5383
Matan Barakb4ff3a32016-02-09 14:57:42 +02005384 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005385};
5386
5387struct mlx5_ifc_qp_2err_out_bits {
5388 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005389 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005390
5391 u8 syndrome[0x20];
5392
Matan Barakb4ff3a32016-02-09 14:57:42 +02005393 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005394};
5395
5396struct mlx5_ifc_qp_2err_in_bits {
5397 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005398 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005399
Matan Barakb4ff3a32016-02-09 14:57:42 +02005400 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005401 u8 op_mod[0x10];
5402
Matan Barakb4ff3a32016-02-09 14:57:42 +02005403 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005404 u8 qpn[0x18];
5405
Matan Barakb4ff3a32016-02-09 14:57:42 +02005406 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005407};
5408
5409struct mlx5_ifc_page_fault_resume_out_bits {
5410 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005411 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005412
5413 u8 syndrome[0x20];
5414
Matan Barakb4ff3a32016-02-09 14:57:42 +02005415 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005416};
5417
5418struct mlx5_ifc_page_fault_resume_in_bits {
5419 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005420 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005421
Matan Barakb4ff3a32016-02-09 14:57:42 +02005422 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005423 u8 op_mod[0x10];
5424
5425 u8 error[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005426 u8 reserved_at_41[0x4];
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02005427 u8 page_fault_type[0x3];
5428 u8 wq_number[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005429
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02005430 u8 reserved_at_60[0x8];
5431 u8 token[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005432};
5433
5434struct mlx5_ifc_nop_out_bits {
5435 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005436 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005437
5438 u8 syndrome[0x20];
5439
Matan Barakb4ff3a32016-02-09 14:57:42 +02005440 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005441};
5442
5443struct mlx5_ifc_nop_in_bits {
5444 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005445 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005446
Matan Barakb4ff3a32016-02-09 14:57:42 +02005447 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005448 u8 op_mod[0x10];
5449
Matan Barakb4ff3a32016-02-09 14:57:42 +02005450 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005451};
5452
5453struct mlx5_ifc_modify_vport_state_out_bits {
5454 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005455 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005456
5457 u8 syndrome[0x20];
5458
Matan Barakb4ff3a32016-02-09 14:57:42 +02005459 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005460};
5461
5462struct mlx5_ifc_modify_vport_state_in_bits {
5463 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005464 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005465
Matan Barakb4ff3a32016-02-09 14:57:42 +02005466 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005467 u8 op_mod[0x10];
5468
5469 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005470 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005471 u8 vport_number[0x10];
5472
Matan Barakb4ff3a32016-02-09 14:57:42 +02005473 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005474 u8 admin_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005475 u8 reserved_at_7c[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005476};
5477
5478struct mlx5_ifc_modify_tis_out_bits {
5479 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005480 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005481
5482 u8 syndrome[0x20];
5483
Matan Barakb4ff3a32016-02-09 14:57:42 +02005484 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005485};
5486
majd@mellanox.com75850d02016-01-14 19:13:06 +02005487struct mlx5_ifc_modify_tis_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005488 u8 reserved_at_0[0x20];
majd@mellanox.com75850d02016-01-14 19:13:06 +02005489
Aviv Heller84df61e2016-05-10 13:47:50 +03005490 u8 reserved_at_20[0x1d];
5491 u8 lag_tx_port_affinity[0x1];
5492 u8 strict_lag_tx_port_affinity[0x1];
majd@mellanox.com75850d02016-01-14 19:13:06 +02005493 u8 prio[0x1];
5494};
5495
Saeed Mahameede2816822015-05-28 22:28:40 +03005496struct mlx5_ifc_modify_tis_in_bits {
5497 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005498 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005499
Matan Barakb4ff3a32016-02-09 14:57:42 +02005500 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005501 u8 op_mod[0x10];
5502
Matan Barakb4ff3a32016-02-09 14:57:42 +02005503 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005504 u8 tisn[0x18];
5505
Matan Barakb4ff3a32016-02-09 14:57:42 +02005506 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005507
majd@mellanox.com75850d02016-01-14 19:13:06 +02005508 struct mlx5_ifc_modify_tis_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005509
Matan Barakb4ff3a32016-02-09 14:57:42 +02005510 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005511
5512 struct mlx5_ifc_tisc_bits ctx;
5513};
5514
Achiad Shochatd9eea402015-08-04 14:05:42 +03005515struct mlx5_ifc_modify_tir_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005516 u8 reserved_at_0[0x20];
Achiad Shochatd9eea402015-08-04 14:05:42 +03005517
Matan Barakb4ff3a32016-02-09 14:57:42 +02005518 u8 reserved_at_20[0x1b];
Tariq Toukan66189962015-11-12 19:35:26 +02005519 u8 self_lb_en[0x1];
Tariq Toukanbdfc0282016-02-29 21:17:12 +02005520 u8 reserved_at_3c[0x1];
5521 u8 hash[0x1];
5522 u8 reserved_at_3e[0x1];
Achiad Shochatd9eea402015-08-04 14:05:42 +03005523 u8 lro[0x1];
5524};
5525
Saeed Mahameede2816822015-05-28 22:28:40 +03005526struct mlx5_ifc_modify_tir_out_bits {
5527 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005528 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005529
5530 u8 syndrome[0x20];
5531
Matan Barakb4ff3a32016-02-09 14:57:42 +02005532 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005533};
5534
5535struct mlx5_ifc_modify_tir_in_bits {
5536 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005537 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005538
Matan Barakb4ff3a32016-02-09 14:57:42 +02005539 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005540 u8 op_mod[0x10];
5541
Matan Barakb4ff3a32016-02-09 14:57:42 +02005542 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005543 u8 tirn[0x18];
5544
Matan Barakb4ff3a32016-02-09 14:57:42 +02005545 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005546
Achiad Shochatd9eea402015-08-04 14:05:42 +03005547 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005548
Matan Barakb4ff3a32016-02-09 14:57:42 +02005549 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005550
5551 struct mlx5_ifc_tirc_bits ctx;
5552};
5553
5554struct mlx5_ifc_modify_sq_out_bits {
5555 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005556 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005557
5558 u8 syndrome[0x20];
5559
Matan Barakb4ff3a32016-02-09 14:57:42 +02005560 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005561};
5562
5563struct mlx5_ifc_modify_sq_in_bits {
5564 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03005565 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005566
Matan Barakb4ff3a32016-02-09 14:57:42 +02005567 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005568 u8 op_mod[0x10];
5569
5570 u8 sq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005571 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005572 u8 sqn[0x18];
5573
Matan Barakb4ff3a32016-02-09 14:57:42 +02005574 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005575
5576 u8 modify_bitmask[0x40];
5577
Matan Barakb4ff3a32016-02-09 14:57:42 +02005578 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005579
5580 struct mlx5_ifc_sqc_bits ctx;
5581};
5582
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03005583struct mlx5_ifc_modify_scheduling_element_out_bits {
5584 u8 status[0x8];
5585 u8 reserved_at_8[0x18];
5586
5587 u8 syndrome[0x20];
5588
5589 u8 reserved_at_40[0x1c0];
5590};
5591
5592enum {
5593 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE = 0x1,
5594 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW = 0x2,
5595};
5596
5597struct mlx5_ifc_modify_scheduling_element_in_bits {
5598 u8 opcode[0x10];
5599 u8 reserved_at_10[0x10];
5600
5601 u8 reserved_at_20[0x10];
5602 u8 op_mod[0x10];
5603
5604 u8 scheduling_hierarchy[0x8];
5605 u8 reserved_at_48[0x18];
5606
5607 u8 scheduling_element_id[0x20];
5608
5609 u8 reserved_at_80[0x20];
5610
5611 u8 modify_bitmask[0x20];
5612
5613 u8 reserved_at_c0[0x40];
5614
5615 struct mlx5_ifc_scheduling_context_bits scheduling_context;
5616
5617 u8 reserved_at_300[0x100];
5618};
5619
Saeed Mahameede2816822015-05-28 22:28:40 +03005620struct mlx5_ifc_modify_rqt_out_bits {
5621 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005622 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005623
5624 u8 syndrome[0x20];
5625
Matan Barakb4ff3a32016-02-09 14:57:42 +02005626 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005627};
5628
Achiad Shochat5c503682015-08-04 14:05:43 +03005629struct mlx5_ifc_rqt_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005630 u8 reserved_at_0[0x20];
Achiad Shochat5c503682015-08-04 14:05:43 +03005631
Matan Barakb4ff3a32016-02-09 14:57:42 +02005632 u8 reserved_at_20[0x1f];
Achiad Shochat5c503682015-08-04 14:05:43 +03005633 u8 rqn_list[0x1];
5634};
5635
Saeed Mahameede2816822015-05-28 22:28:40 +03005636struct mlx5_ifc_modify_rqt_in_bits {
5637 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005638 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005639
Matan Barakb4ff3a32016-02-09 14:57:42 +02005640 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005641 u8 op_mod[0x10];
5642
Matan Barakb4ff3a32016-02-09 14:57:42 +02005643 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005644 u8 rqtn[0x18];
5645
Matan Barakb4ff3a32016-02-09 14:57:42 +02005646 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005647
Achiad Shochat5c503682015-08-04 14:05:43 +03005648 struct mlx5_ifc_rqt_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005649
Matan Barakb4ff3a32016-02-09 14:57:42 +02005650 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005651
5652 struct mlx5_ifc_rqtc_bits ctx;
5653};
5654
5655struct mlx5_ifc_modify_rq_out_bits {
5656 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005657 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005658
5659 u8 syndrome[0x20];
5660
Matan Barakb4ff3a32016-02-09 14:57:42 +02005661 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005662};
5663
Alex Vesker83b502a2016-08-04 17:32:02 +03005664enum {
5665 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_VSD = 1ULL << 1,
Guy Ergas102722f2017-02-20 16:18:17 +02005666 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_SCATTER_FCS = 1ULL << 2,
Majd Dibbiny23a69642017-01-18 15:25:10 +02005667 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID = 1ULL << 3,
Alex Vesker83b502a2016-08-04 17:32:02 +03005668};
5669
Saeed Mahameede2816822015-05-28 22:28:40 +03005670struct mlx5_ifc_modify_rq_in_bits {
5671 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03005672 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005673
Matan Barakb4ff3a32016-02-09 14:57:42 +02005674 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005675 u8 op_mod[0x10];
5676
5677 u8 rq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005678 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005679 u8 rqn[0x18];
5680
Matan Barakb4ff3a32016-02-09 14:57:42 +02005681 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005682
5683 u8 modify_bitmask[0x40];
5684
Matan Barakb4ff3a32016-02-09 14:57:42 +02005685 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005686
5687 struct mlx5_ifc_rqc_bits ctx;
5688};
5689
5690struct mlx5_ifc_modify_rmp_out_bits {
5691 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005692 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005693
5694 u8 syndrome[0x20];
5695
Matan Barakb4ff3a32016-02-09 14:57:42 +02005696 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005697};
5698
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005699struct mlx5_ifc_rmp_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005700 u8 reserved_at_0[0x20];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005701
Matan Barakb4ff3a32016-02-09 14:57:42 +02005702 u8 reserved_at_20[0x1f];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005703 u8 lwm[0x1];
5704};
5705
Saeed Mahameede2816822015-05-28 22:28:40 +03005706struct mlx5_ifc_modify_rmp_in_bits {
5707 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03005708 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005709
Matan Barakb4ff3a32016-02-09 14:57:42 +02005710 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005711 u8 op_mod[0x10];
5712
5713 u8 rmp_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005714 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005715 u8 rmpn[0x18];
5716
Matan Barakb4ff3a32016-02-09 14:57:42 +02005717 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005718
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005719 struct mlx5_ifc_rmp_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005720
Matan Barakb4ff3a32016-02-09 14:57:42 +02005721 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005722
5723 struct mlx5_ifc_rmpc_bits ctx;
5724};
5725
5726struct mlx5_ifc_modify_nic_vport_context_out_bits {
5727 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005728 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005729
5730 u8 syndrome[0x20];
5731
Matan Barakb4ff3a32016-02-09 14:57:42 +02005732 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005733};
5734
5735struct mlx5_ifc_modify_nic_vport_field_select_bits {
Daniel Jurgens32f69e42018-01-04 17:25:36 +02005736 u8 reserved_at_0[0x12];
5737 u8 affiliation[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +02005738 u8 reserved_at_13[0x1];
Huy Nguyenbded7472017-05-30 09:42:53 +03005739 u8 disable_uc_local_lb[0x1];
5740 u8 disable_mc_local_lb[0x1];
Noa Osherovich23898c72016-06-10 00:07:37 +03005741 u8 node_guid[0x1];
5742 u8 port_guid[0x1];
Hadar Hen Zion9def7122016-08-03 17:27:30 +03005743 u8 min_inline[0x1];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02005744 u8 mtu[0x1];
5745 u8 change_event[0x1];
5746 u8 promisc[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005747 u8 permanent_address[0x1];
5748 u8 addresses_list[0x1];
5749 u8 roce_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005750 u8 reserved_at_1f[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005751};
5752
5753struct mlx5_ifc_modify_nic_vport_context_in_bits {
5754 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005755 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005756
Matan Barakb4ff3a32016-02-09 14:57:42 +02005757 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005758 u8 op_mod[0x10];
5759
5760 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005761 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005762 u8 vport_number[0x10];
5763
5764 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
5765
Matan Barakb4ff3a32016-02-09 14:57:42 +02005766 u8 reserved_at_80[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03005767
5768 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
5769};
5770
5771struct mlx5_ifc_modify_hca_vport_context_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_hca_vport_context_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
5787 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005788 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03005789 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005790 u8 vport_number[0x10];
5791
Matan Barakb4ff3a32016-02-09 14:57:42 +02005792 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005793
5794 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
5795};
5796
5797struct mlx5_ifc_modify_cq_out_bits {
5798 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005799 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005800
5801 u8 syndrome[0x20];
5802
Matan Barakb4ff3a32016-02-09 14:57:42 +02005803 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005804};
5805
5806enum {
5807 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
5808 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
5809};
5810
5811struct mlx5_ifc_modify_cq_in_bits {
5812 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03005813 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005814
Matan Barakb4ff3a32016-02-09 14:57:42 +02005815 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005816 u8 op_mod[0x10];
5817
Matan Barakb4ff3a32016-02-09 14:57:42 +02005818 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005819 u8 cqn[0x18];
5820
5821 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
5822
5823 struct mlx5_ifc_cqc_bits cq_context;
5824
Leon Romanovskybd371972018-09-20 21:35:26 +03005825 u8 reserved_at_280[0x40];
5826
5827 u8 cq_umem_valid[0x1];
5828 u8 reserved_at_2c1[0x5bf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005829
5830 u8 pas[0][0x40];
5831};
5832
5833struct mlx5_ifc_modify_cong_status_out_bits {
5834 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005835 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005836
5837 u8 syndrome[0x20];
5838
Matan Barakb4ff3a32016-02-09 14:57:42 +02005839 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005840};
5841
5842struct mlx5_ifc_modify_cong_status_in_bits {
5843 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005844 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005845
Matan Barakb4ff3a32016-02-09 14:57:42 +02005846 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005847 u8 op_mod[0x10];
5848
Matan Barakb4ff3a32016-02-09 14:57:42 +02005849 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005850 u8 priority[0x4];
5851 u8 cong_protocol[0x4];
5852
5853 u8 enable[0x1];
5854 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005855 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03005856};
5857
5858struct mlx5_ifc_modify_cong_params_out_bits {
5859 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005860 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005861
5862 u8 syndrome[0x20];
5863
Matan Barakb4ff3a32016-02-09 14:57:42 +02005864 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005865};
5866
5867struct mlx5_ifc_modify_cong_params_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
Matan Barakb4ff3a32016-02-09 14:57:42 +02005874 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03005875 u8 cong_protocol[0x4];
5876
5877 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
5878
Matan Barakb4ff3a32016-02-09 14:57:42 +02005879 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005880
5881 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
5882};
5883
5884struct mlx5_ifc_manage_pages_out_bits {
5885 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005886 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005887
5888 u8 syndrome[0x20];
5889
5890 u8 output_num_entries[0x20];
5891
Matan Barakb4ff3a32016-02-09 14:57:42 +02005892 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005893
5894 u8 pas[0][0x40];
5895};
5896
5897enum {
5898 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
5899 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
5900 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
5901};
5902
5903struct mlx5_ifc_manage_pages_in_bits {
5904 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005905 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005906
Matan Barakb4ff3a32016-02-09 14:57:42 +02005907 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005908 u8 op_mod[0x10];
5909
Bodong Wang591905b2019-02-12 22:55:35 -08005910 u8 embedded_cpu_function[0x1];
5911 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005912 u8 function_id[0x10];
5913
5914 u8 input_num_entries[0x20];
5915
5916 u8 pas[0][0x40];
5917};
5918
5919struct mlx5_ifc_mad_ifc_out_bits {
5920 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005921 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005922
5923 u8 syndrome[0x20];
5924
Matan Barakb4ff3a32016-02-09 14:57:42 +02005925 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005926
5927 u8 response_mad_packet[256][0x8];
5928};
5929
5930struct mlx5_ifc_mad_ifc_in_bits {
5931 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005932 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005933
Matan Barakb4ff3a32016-02-09 14:57:42 +02005934 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005935 u8 op_mod[0x10];
5936
5937 u8 remote_lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005938 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005939 u8 port[0x8];
5940
Matan Barakb4ff3a32016-02-09 14:57:42 +02005941 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005942
5943 u8 mad[256][0x8];
5944};
5945
5946struct mlx5_ifc_init_hca_out_bits {
5947 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005948 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005949
5950 u8 syndrome[0x20];
5951
Matan Barakb4ff3a32016-02-09 14:57:42 +02005952 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005953};
5954
5955struct mlx5_ifc_init_hca_in_bits {
5956 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005957 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005958
Matan Barakb4ff3a32016-02-09 14:57:42 +02005959 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005960 u8 op_mod[0x10];
5961
Matan Barakb4ff3a32016-02-09 14:57:42 +02005962 u8 reserved_at_40[0x40];
Daniel Jurgens8737f812018-01-04 17:25:32 +02005963 u8 sw_owner_id[4][0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005964};
5965
5966struct mlx5_ifc_init2rtr_qp_out_bits {
5967 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005968 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005969
5970 u8 syndrome[0x20];
5971
Matan Barakb4ff3a32016-02-09 14:57:42 +02005972 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005973};
5974
5975struct mlx5_ifc_init2rtr_qp_in_bits {
5976 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005977 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005978
Matan Barakb4ff3a32016-02-09 14:57:42 +02005979 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005980 u8 op_mod[0x10];
5981
Matan Barakb4ff3a32016-02-09 14:57:42 +02005982 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005983 u8 qpn[0x18];
5984
Matan Barakb4ff3a32016-02-09 14:57:42 +02005985 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005986
5987 u8 opt_param_mask[0x20];
5988
Matan Barakb4ff3a32016-02-09 14:57:42 +02005989 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005990
5991 struct mlx5_ifc_qpc_bits qpc;
5992
Matan Barakb4ff3a32016-02-09 14:57:42 +02005993 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005994};
5995
5996struct mlx5_ifc_init2init_qp_out_bits {
5997 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005998 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005999
6000 u8 syndrome[0x20];
6001
Matan Barakb4ff3a32016-02-09 14:57:42 +02006002 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006003};
6004
6005struct mlx5_ifc_init2init_qp_in_bits {
6006 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03006007 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006008
Matan Barakb4ff3a32016-02-09 14:57:42 +02006009 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006010 u8 op_mod[0x10];
6011
Matan Barakb4ff3a32016-02-09 14:57:42 +02006012 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006013 u8 qpn[0x18];
6014
Matan Barakb4ff3a32016-02-09 14:57:42 +02006015 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006016
6017 u8 opt_param_mask[0x20];
6018
Matan Barakb4ff3a32016-02-09 14:57:42 +02006019 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006020
6021 struct mlx5_ifc_qpc_bits qpc;
6022
Matan Barakb4ff3a32016-02-09 14:57:42 +02006023 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006024};
6025
6026struct mlx5_ifc_get_dropped_packet_log_out_bits {
6027 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006028 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006029
6030 u8 syndrome[0x20];
6031
Matan Barakb4ff3a32016-02-09 14:57:42 +02006032 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006033
6034 u8 packet_headers_log[128][0x8];
6035
6036 u8 packet_syndrome[64][0x8];
6037};
6038
6039struct mlx5_ifc_get_dropped_packet_log_in_bits {
6040 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006041 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006042
Matan Barakb4ff3a32016-02-09 14:57:42 +02006043 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006044 u8 op_mod[0x10];
6045
Matan Barakb4ff3a32016-02-09 14:57:42 +02006046 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006047};
6048
6049struct mlx5_ifc_gen_eqe_in_bits {
6050 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006051 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006052
Matan Barakb4ff3a32016-02-09 14:57:42 +02006053 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006054 u8 op_mod[0x10];
6055
Matan Barakb4ff3a32016-02-09 14:57:42 +02006056 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006057 u8 eq_number[0x8];
6058
Matan Barakb4ff3a32016-02-09 14:57:42 +02006059 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006060
6061 u8 eqe[64][0x8];
6062};
6063
6064struct mlx5_ifc_gen_eq_out_bits {
6065 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006066 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006067
6068 u8 syndrome[0x20];
6069
Matan Barakb4ff3a32016-02-09 14:57:42 +02006070 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006071};
6072
6073struct mlx5_ifc_enable_hca_out_bits {
6074 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006075 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006076
6077 u8 syndrome[0x20];
6078
Matan Barakb4ff3a32016-02-09 14:57:42 +02006079 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006080};
6081
6082struct mlx5_ifc_enable_hca_in_bits {
6083 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006084 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006085
Matan Barakb4ff3a32016-02-09 14:57:42 +02006086 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006087 u8 op_mod[0x10];
6088
Bodong Wang22e939a2019-02-12 22:55:36 -08006089 u8 embedded_cpu_function[0x1];
6090 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03006091 u8 function_id[0x10];
6092
Matan Barakb4ff3a32016-02-09 14:57:42 +02006093 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006094};
6095
6096struct mlx5_ifc_drain_dct_out_bits {
6097 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006098 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006099
6100 u8 syndrome[0x20];
6101
Matan Barakb4ff3a32016-02-09 14:57:42 +02006102 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006103};
6104
6105struct mlx5_ifc_drain_dct_in_bits {
6106 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03006107 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006108
Matan Barakb4ff3a32016-02-09 14:57:42 +02006109 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006110 u8 op_mod[0x10];
6111
Matan Barakb4ff3a32016-02-09 14:57:42 +02006112 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006113 u8 dctn[0x18];
6114
Matan Barakb4ff3a32016-02-09 14:57:42 +02006115 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006116};
6117
6118struct mlx5_ifc_disable_hca_out_bits {
6119 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006120 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006121
6122 u8 syndrome[0x20];
6123
Matan Barakb4ff3a32016-02-09 14:57:42 +02006124 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006125};
6126
6127struct mlx5_ifc_disable_hca_in_bits {
6128 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006129 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006130
Matan Barakb4ff3a32016-02-09 14:57:42 +02006131 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006132 u8 op_mod[0x10];
6133
Bodong Wang22e939a2019-02-12 22:55:36 -08006134 u8 embedded_cpu_function[0x1];
6135 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03006136 u8 function_id[0x10];
6137
Matan Barakb4ff3a32016-02-09 14:57:42 +02006138 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006139};
6140
6141struct mlx5_ifc_detach_from_mcg_out_bits {
6142 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006143 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006144
6145 u8 syndrome[0x20];
6146
Matan Barakb4ff3a32016-02-09 14:57:42 +02006147 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006148};
6149
6150struct mlx5_ifc_detach_from_mcg_in_bits {
6151 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006152 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006153
Matan Barakb4ff3a32016-02-09 14:57:42 +02006154 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006155 u8 op_mod[0x10];
6156
Matan Barakb4ff3a32016-02-09 14:57:42 +02006157 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006158 u8 qpn[0x18];
6159
Matan Barakb4ff3a32016-02-09 14:57:42 +02006160 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006161
6162 u8 multicast_gid[16][0x8];
6163};
6164
Saeed Mahameed74862162016-06-09 15:11:34 +03006165struct mlx5_ifc_destroy_xrq_out_bits {
6166 u8 status[0x8];
6167 u8 reserved_at_8[0x18];
6168
6169 u8 syndrome[0x20];
6170
6171 u8 reserved_at_40[0x40];
6172};
6173
6174struct mlx5_ifc_destroy_xrq_in_bits {
6175 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006176 u8 uid[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +03006177
6178 u8 reserved_at_20[0x10];
6179 u8 op_mod[0x10];
6180
6181 u8 reserved_at_40[0x8];
6182 u8 xrqn[0x18];
6183
6184 u8 reserved_at_60[0x20];
6185};
6186
Saeed Mahameede2816822015-05-28 22:28:40 +03006187struct mlx5_ifc_destroy_xrc_srq_out_bits {
6188 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006189 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006190
6191 u8 syndrome[0x20];
6192
Matan Barakb4ff3a32016-02-09 14:57:42 +02006193 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006194};
6195
6196struct mlx5_ifc_destroy_xrc_srq_in_bits {
6197 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006198 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006199
Matan Barakb4ff3a32016-02-09 14:57:42 +02006200 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006201 u8 op_mod[0x10];
6202
Matan Barakb4ff3a32016-02-09 14:57:42 +02006203 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006204 u8 xrc_srqn[0x18];
6205
Matan Barakb4ff3a32016-02-09 14:57:42 +02006206 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006207};
6208
6209struct mlx5_ifc_destroy_tis_out_bits {
6210 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006211 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006212
6213 u8 syndrome[0x20];
6214
Matan Barakb4ff3a32016-02-09 14:57:42 +02006215 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006216};
6217
6218struct mlx5_ifc_destroy_tis_in_bits {
6219 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006220 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006221
Matan Barakb4ff3a32016-02-09 14:57:42 +02006222 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006223 u8 op_mod[0x10];
6224
Matan Barakb4ff3a32016-02-09 14:57:42 +02006225 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006226 u8 tisn[0x18];
6227
Matan Barakb4ff3a32016-02-09 14:57:42 +02006228 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006229};
6230
6231struct mlx5_ifc_destroy_tir_out_bits {
6232 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006233 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006234
6235 u8 syndrome[0x20];
6236
Matan Barakb4ff3a32016-02-09 14:57:42 +02006237 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006238};
6239
6240struct mlx5_ifc_destroy_tir_in_bits {
6241 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006242 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006243
Matan Barakb4ff3a32016-02-09 14:57:42 +02006244 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006245 u8 op_mod[0x10];
6246
Matan Barakb4ff3a32016-02-09 14:57:42 +02006247 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006248 u8 tirn[0x18];
6249
Matan Barakb4ff3a32016-02-09 14:57:42 +02006250 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006251};
6252
6253struct mlx5_ifc_destroy_srq_out_bits {
6254 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006255 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006256
6257 u8 syndrome[0x20];
6258
Matan Barakb4ff3a32016-02-09 14:57:42 +02006259 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006260};
6261
6262struct mlx5_ifc_destroy_srq_in_bits {
6263 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006264 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006265
Matan Barakb4ff3a32016-02-09 14:57:42 +02006266 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006267 u8 op_mod[0x10];
6268
Matan Barakb4ff3a32016-02-09 14:57:42 +02006269 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006270 u8 srqn[0x18];
6271
Matan Barakb4ff3a32016-02-09 14:57:42 +02006272 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006273};
6274
6275struct mlx5_ifc_destroy_sq_out_bits {
6276 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006277 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006278
6279 u8 syndrome[0x20];
6280
Matan Barakb4ff3a32016-02-09 14:57:42 +02006281 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006282};
6283
6284struct mlx5_ifc_destroy_sq_in_bits {
6285 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03006286 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006287
Matan Barakb4ff3a32016-02-09 14:57:42 +02006288 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006289 u8 op_mod[0x10];
6290
Matan Barakb4ff3a32016-02-09 14:57:42 +02006291 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006292 u8 sqn[0x18];
6293
Matan Barakb4ff3a32016-02-09 14:57:42 +02006294 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006295};
6296
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03006297struct mlx5_ifc_destroy_scheduling_element_out_bits {
6298 u8 status[0x8];
6299 u8 reserved_at_8[0x18];
6300
6301 u8 syndrome[0x20];
6302
6303 u8 reserved_at_40[0x1c0];
6304};
6305
6306struct mlx5_ifc_destroy_scheduling_element_in_bits {
6307 u8 opcode[0x10];
6308 u8 reserved_at_10[0x10];
6309
6310 u8 reserved_at_20[0x10];
6311 u8 op_mod[0x10];
6312
6313 u8 scheduling_hierarchy[0x8];
6314 u8 reserved_at_48[0x18];
6315
6316 u8 scheduling_element_id[0x20];
6317
6318 u8 reserved_at_80[0x180];
6319};
6320
Saeed Mahameede2816822015-05-28 22:28:40 +03006321struct mlx5_ifc_destroy_rqt_out_bits {
6322 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006323 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006324
6325 u8 syndrome[0x20];
6326
Matan Barakb4ff3a32016-02-09 14:57:42 +02006327 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006328};
6329
6330struct mlx5_ifc_destroy_rqt_in_bits {
6331 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006332 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006333
Matan Barakb4ff3a32016-02-09 14:57:42 +02006334 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006335 u8 op_mod[0x10];
6336
Matan Barakb4ff3a32016-02-09 14:57:42 +02006337 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006338 u8 rqtn[0x18];
6339
Matan Barakb4ff3a32016-02-09 14:57:42 +02006340 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006341};
6342
6343struct mlx5_ifc_destroy_rq_out_bits {
6344 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006345 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006346
6347 u8 syndrome[0x20];
6348
Matan Barakb4ff3a32016-02-09 14:57:42 +02006349 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006350};
6351
6352struct mlx5_ifc_destroy_rq_in_bits {
6353 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03006354 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006355
Matan Barakb4ff3a32016-02-09 14:57:42 +02006356 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006357 u8 op_mod[0x10];
6358
Matan Barakb4ff3a32016-02-09 14:57:42 +02006359 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006360 u8 rqn[0x18];
6361
Matan Barakb4ff3a32016-02-09 14:57:42 +02006362 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006363};
6364
Maor Gottliebc1e0bfc2017-05-30 10:29:11 +03006365struct mlx5_ifc_set_delay_drop_params_in_bits {
6366 u8 opcode[0x10];
6367 u8 reserved_at_10[0x10];
6368
6369 u8 reserved_at_20[0x10];
6370 u8 op_mod[0x10];
6371
6372 u8 reserved_at_40[0x20];
6373
6374 u8 reserved_at_60[0x10];
6375 u8 delay_drop_timeout[0x10];
6376};
6377
6378struct mlx5_ifc_set_delay_drop_params_out_bits {
6379 u8 status[0x8];
6380 u8 reserved_at_8[0x18];
6381
6382 u8 syndrome[0x20];
6383
6384 u8 reserved_at_40[0x40];
6385};
6386
Saeed Mahameede2816822015-05-28 22:28:40 +03006387struct mlx5_ifc_destroy_rmp_out_bits {
6388 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006389 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006390
6391 u8 syndrome[0x20];
6392
Matan Barakb4ff3a32016-02-09 14:57:42 +02006393 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006394};
6395
6396struct mlx5_ifc_destroy_rmp_in_bits {
6397 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006398 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006399
Matan Barakb4ff3a32016-02-09 14:57:42 +02006400 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006401 u8 op_mod[0x10];
6402
Matan Barakb4ff3a32016-02-09 14:57:42 +02006403 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006404 u8 rmpn[0x18];
6405
Matan Barakb4ff3a32016-02-09 14:57:42 +02006406 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006407};
6408
6409struct mlx5_ifc_destroy_qp_out_bits {
6410 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006411 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006412
6413 u8 syndrome[0x20];
6414
Matan Barakb4ff3a32016-02-09 14:57:42 +02006415 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006416};
6417
6418struct mlx5_ifc_destroy_qp_in_bits {
6419 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03006420 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006421
Matan Barakb4ff3a32016-02-09 14:57:42 +02006422 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006423 u8 op_mod[0x10];
6424
Matan Barakb4ff3a32016-02-09 14:57:42 +02006425 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006426 u8 qpn[0x18];
6427
Matan Barakb4ff3a32016-02-09 14:57:42 +02006428 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006429};
6430
6431struct mlx5_ifc_destroy_psv_out_bits {
6432 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006433 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006434
6435 u8 syndrome[0x20];
6436
Matan Barakb4ff3a32016-02-09 14:57:42 +02006437 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006438};
6439
6440struct mlx5_ifc_destroy_psv_in_bits {
6441 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006442 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006443
Matan Barakb4ff3a32016-02-09 14:57:42 +02006444 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006445 u8 op_mod[0x10];
6446
Matan Barakb4ff3a32016-02-09 14:57:42 +02006447 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006448 u8 psvn[0x18];
6449
Matan Barakb4ff3a32016-02-09 14:57:42 +02006450 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006451};
6452
6453struct mlx5_ifc_destroy_mkey_out_bits {
6454 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006455 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006456
6457 u8 syndrome[0x20];
6458
Matan Barakb4ff3a32016-02-09 14:57:42 +02006459 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006460};
6461
6462struct mlx5_ifc_destroy_mkey_in_bits {
6463 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006464 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006465
Matan Barakb4ff3a32016-02-09 14:57:42 +02006466 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006467 u8 op_mod[0x10];
6468
Matan Barakb4ff3a32016-02-09 14:57:42 +02006469 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006470 u8 mkey_index[0x18];
6471
Matan Barakb4ff3a32016-02-09 14:57:42 +02006472 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006473};
6474
6475struct mlx5_ifc_destroy_flow_table_out_bits {
6476 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006477 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006478
6479 u8 syndrome[0x20];
6480
Matan Barakb4ff3a32016-02-09 14:57:42 +02006481 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006482};
6483
6484struct mlx5_ifc_destroy_flow_table_in_bits {
6485 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006486 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006487
Matan Barakb4ff3a32016-02-09 14:57:42 +02006488 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006489 u8 op_mod[0x10];
6490
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006491 u8 other_vport[0x1];
6492 u8 reserved_at_41[0xf];
6493 u8 vport_number[0x10];
6494
6495 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006496
6497 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006498 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006499
Matan Barakb4ff3a32016-02-09 14:57:42 +02006500 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006501 u8 table_id[0x18];
6502
Matan Barakb4ff3a32016-02-09 14:57:42 +02006503 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03006504};
6505
6506struct mlx5_ifc_destroy_flow_group_out_bits {
6507 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006508 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006509
6510 u8 syndrome[0x20];
6511
Matan Barakb4ff3a32016-02-09 14:57:42 +02006512 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006513};
6514
6515struct mlx5_ifc_destroy_flow_group_in_bits {
6516 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006517 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006518
Matan Barakb4ff3a32016-02-09 14:57:42 +02006519 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006520 u8 op_mod[0x10];
6521
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006522 u8 other_vport[0x1];
6523 u8 reserved_at_41[0xf];
6524 u8 vport_number[0x10];
6525
6526 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006527
6528 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006529 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006530
Matan Barakb4ff3a32016-02-09 14:57:42 +02006531 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006532 u8 table_id[0x18];
6533
6534 u8 group_id[0x20];
6535
Matan Barakb4ff3a32016-02-09 14:57:42 +02006536 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03006537};
6538
6539struct mlx5_ifc_destroy_eq_out_bits {
6540 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006541 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006542
6543 u8 syndrome[0x20];
6544
Matan Barakb4ff3a32016-02-09 14:57:42 +02006545 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006546};
6547
6548struct mlx5_ifc_destroy_eq_in_bits {
6549 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006550 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006551
Matan Barakb4ff3a32016-02-09 14:57:42 +02006552 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006553 u8 op_mod[0x10];
6554
Matan Barakb4ff3a32016-02-09 14:57:42 +02006555 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006556 u8 eq_number[0x8];
6557
Matan Barakb4ff3a32016-02-09 14:57:42 +02006558 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006559};
6560
6561struct mlx5_ifc_destroy_dct_out_bits {
6562 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006563 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006564
6565 u8 syndrome[0x20];
6566
Matan Barakb4ff3a32016-02-09 14:57:42 +02006567 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006568};
6569
6570struct mlx5_ifc_destroy_dct_in_bits {
6571 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03006572 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006573
Matan Barakb4ff3a32016-02-09 14:57:42 +02006574 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006575 u8 op_mod[0x10];
6576
Matan Barakb4ff3a32016-02-09 14:57:42 +02006577 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006578 u8 dctn[0x18];
6579
Matan Barakb4ff3a32016-02-09 14:57:42 +02006580 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006581};
6582
6583struct mlx5_ifc_destroy_cq_out_bits {
6584 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006585 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006586
6587 u8 syndrome[0x20];
6588
Matan Barakb4ff3a32016-02-09 14:57:42 +02006589 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006590};
6591
6592struct mlx5_ifc_destroy_cq_in_bits {
6593 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03006594 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006595
Matan Barakb4ff3a32016-02-09 14:57:42 +02006596 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006597 u8 op_mod[0x10];
6598
Matan Barakb4ff3a32016-02-09 14:57:42 +02006599 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006600 u8 cqn[0x18];
6601
Matan Barakb4ff3a32016-02-09 14:57:42 +02006602 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006603};
6604
6605struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
6606 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006607 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006608
6609 u8 syndrome[0x20];
6610
Matan Barakb4ff3a32016-02-09 14:57:42 +02006611 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006612};
6613
6614struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
6615 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006616 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006617
Matan Barakb4ff3a32016-02-09 14:57:42 +02006618 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006619 u8 op_mod[0x10];
6620
Matan Barakb4ff3a32016-02-09 14:57:42 +02006621 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006622
Matan Barakb4ff3a32016-02-09 14:57:42 +02006623 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006624 u8 vxlan_udp_port[0x10];
6625};
6626
6627struct mlx5_ifc_delete_l2_table_entry_out_bits {
6628 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006629 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006630
6631 u8 syndrome[0x20];
6632
Matan Barakb4ff3a32016-02-09 14:57:42 +02006633 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006634};
6635
6636struct mlx5_ifc_delete_l2_table_entry_in_bits {
6637 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006638 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006639
Matan Barakb4ff3a32016-02-09 14:57:42 +02006640 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006641 u8 op_mod[0x10];
6642
Matan Barakb4ff3a32016-02-09 14:57:42 +02006643 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006644
Matan Barakb4ff3a32016-02-09 14:57:42 +02006645 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006646 u8 table_index[0x18];
6647
Matan Barakb4ff3a32016-02-09 14:57:42 +02006648 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03006649};
6650
6651struct mlx5_ifc_delete_fte_out_bits {
6652 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006653 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006654
6655 u8 syndrome[0x20];
6656
Matan Barakb4ff3a32016-02-09 14:57:42 +02006657 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006658};
6659
6660struct mlx5_ifc_delete_fte_in_bits {
6661 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006662 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006663
Matan Barakb4ff3a32016-02-09 14:57:42 +02006664 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006665 u8 op_mod[0x10];
6666
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006667 u8 other_vport[0x1];
6668 u8 reserved_at_41[0xf];
6669 u8 vport_number[0x10];
6670
6671 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006672
6673 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006674 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006675
Matan Barakb4ff3a32016-02-09 14:57:42 +02006676 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006677 u8 table_id[0x18];
6678
Matan Barakb4ff3a32016-02-09 14:57:42 +02006679 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006680
6681 u8 flow_index[0x20];
6682
Matan Barakb4ff3a32016-02-09 14:57:42 +02006683 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006684};
6685
6686struct mlx5_ifc_dealloc_xrcd_out_bits {
6687 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006688 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006689
6690 u8 syndrome[0x20];
6691
Matan Barakb4ff3a32016-02-09 14:57:42 +02006692 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006693};
6694
6695struct mlx5_ifc_dealloc_xrcd_in_bits {
6696 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006697 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006698
Matan Barakb4ff3a32016-02-09 14:57:42 +02006699 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006700 u8 op_mod[0x10];
6701
Matan Barakb4ff3a32016-02-09 14:57:42 +02006702 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006703 u8 xrcd[0x18];
6704
Matan Barakb4ff3a32016-02-09 14:57:42 +02006705 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006706};
6707
6708struct mlx5_ifc_dealloc_uar_out_bits {
6709 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006710 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006711
6712 u8 syndrome[0x20];
6713
Matan Barakb4ff3a32016-02-09 14:57:42 +02006714 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006715};
6716
6717struct mlx5_ifc_dealloc_uar_in_bits {
6718 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006719 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006720
Matan Barakb4ff3a32016-02-09 14:57:42 +02006721 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006722 u8 op_mod[0x10];
6723
Matan Barakb4ff3a32016-02-09 14:57:42 +02006724 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006725 u8 uar[0x18];
6726
Matan Barakb4ff3a32016-02-09 14:57:42 +02006727 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006728};
6729
6730struct mlx5_ifc_dealloc_transport_domain_out_bits {
6731 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006732 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006733
6734 u8 syndrome[0x20];
6735
Matan Barakb4ff3a32016-02-09 14:57:42 +02006736 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006737};
6738
6739struct mlx5_ifc_dealloc_transport_domain_in_bits {
6740 u8 opcode[0x10];
Yishai Hadas71bef2f2018-12-19 16:28:10 +02006741 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006742
Matan Barakb4ff3a32016-02-09 14:57:42 +02006743 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006744 u8 op_mod[0x10];
6745
Matan Barakb4ff3a32016-02-09 14:57:42 +02006746 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006747 u8 transport_domain[0x18];
6748
Matan Barakb4ff3a32016-02-09 14:57:42 +02006749 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006750};
6751
6752struct mlx5_ifc_dealloc_q_counter_out_bits {
6753 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006754 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006755
6756 u8 syndrome[0x20];
6757
Matan Barakb4ff3a32016-02-09 14:57:42 +02006758 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006759};
6760
6761struct mlx5_ifc_dealloc_q_counter_in_bits {
6762 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006763 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006764
Matan Barakb4ff3a32016-02-09 14:57:42 +02006765 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006766 u8 op_mod[0x10];
6767
Matan Barakb4ff3a32016-02-09 14:57:42 +02006768 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006769 u8 counter_set_id[0x8];
6770
Matan Barakb4ff3a32016-02-09 14:57:42 +02006771 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006772};
6773
6774struct mlx5_ifc_dealloc_pd_out_bits {
6775 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006776 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006777
6778 u8 syndrome[0x20];
6779
Matan Barakb4ff3a32016-02-09 14:57:42 +02006780 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006781};
6782
6783struct mlx5_ifc_dealloc_pd_in_bits {
6784 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006785 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006786
Matan Barakb4ff3a32016-02-09 14:57:42 +02006787 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006788 u8 op_mod[0x10];
6789
Matan Barakb4ff3a32016-02-09 14:57:42 +02006790 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006791 u8 pd[0x18];
6792
Matan Barakb4ff3a32016-02-09 14:57:42 +02006793 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006794};
6795
Amir Vadai9dc0b282016-05-13 12:55:39 +00006796struct mlx5_ifc_dealloc_flow_counter_out_bits {
6797 u8 status[0x8];
6798 u8 reserved_at_8[0x18];
6799
6800 u8 syndrome[0x20];
6801
6802 u8 reserved_at_40[0x40];
6803};
6804
6805struct mlx5_ifc_dealloc_flow_counter_in_bits {
6806 u8 opcode[0x10];
6807 u8 reserved_at_10[0x10];
6808
6809 u8 reserved_at_20[0x10];
6810 u8 op_mod[0x10];
6811
Rabie Louloua8ffcc72017-07-09 13:39:30 +03006812 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00006813
6814 u8 reserved_at_60[0x20];
6815};
6816
Saeed Mahameed74862162016-06-09 15:11:34 +03006817struct mlx5_ifc_create_xrq_out_bits {
6818 u8 status[0x8];
6819 u8 reserved_at_8[0x18];
6820
6821 u8 syndrome[0x20];
6822
6823 u8 reserved_at_40[0x8];
6824 u8 xrqn[0x18];
6825
6826 u8 reserved_at_60[0x20];
6827};
6828
6829struct mlx5_ifc_create_xrq_in_bits {
6830 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006831 u8 uid[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +03006832
6833 u8 reserved_at_20[0x10];
6834 u8 op_mod[0x10];
6835
6836 u8 reserved_at_40[0x40];
6837
6838 struct mlx5_ifc_xrqc_bits xrq_context;
6839};
6840
Saeed Mahameede2816822015-05-28 22:28:40 +03006841struct mlx5_ifc_create_xrc_srq_out_bits {
6842 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006843 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006844
6845 u8 syndrome[0x20];
6846
Matan Barakb4ff3a32016-02-09 14:57:42 +02006847 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006848 u8 xrc_srqn[0x18];
6849
Matan Barakb4ff3a32016-02-09 14:57:42 +02006850 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006851};
6852
6853struct mlx5_ifc_create_xrc_srq_in_bits {
6854 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006855 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006856
Matan Barakb4ff3a32016-02-09 14:57:42 +02006857 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006858 u8 op_mod[0x10];
6859
Matan Barakb4ff3a32016-02-09 14:57:42 +02006860 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006861
6862 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
6863
Yishai Hadas99b77fe2018-10-31 12:20:28 +02006864 u8 reserved_at_280[0x60];
6865
Leon Romanovskybd371972018-09-20 21:35:26 +03006866 u8 xrc_srq_umem_valid[0x1];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02006867 u8 reserved_at_2e1[0x1f];
6868
6869 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03006870
6871 u8 pas[0][0x40];
6872};
6873
6874struct mlx5_ifc_create_tis_out_bits {
6875 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006876 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006877
6878 u8 syndrome[0x20];
6879
Matan Barakb4ff3a32016-02-09 14:57:42 +02006880 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006881 u8 tisn[0x18];
6882
Matan Barakb4ff3a32016-02-09 14:57:42 +02006883 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006884};
6885
6886struct mlx5_ifc_create_tis_in_bits {
6887 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006888 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006889
Matan Barakb4ff3a32016-02-09 14:57:42 +02006890 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006891 u8 op_mod[0x10];
6892
Matan Barakb4ff3a32016-02-09 14:57:42 +02006893 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006894
6895 struct mlx5_ifc_tisc_bits ctx;
6896};
6897
6898struct mlx5_ifc_create_tir_out_bits {
6899 u8 status[0x8];
Ariel Levkovich3e070472019-03-31 19:44:48 +03006900 u8 icm_address_63_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006901
6902 u8 syndrome[0x20];
6903
Ariel Levkovich3e070472019-03-31 19:44:48 +03006904 u8 icm_address_39_32[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006905 u8 tirn[0x18];
6906
Ariel Levkovich3e070472019-03-31 19:44:48 +03006907 u8 icm_address_31_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006908};
6909
6910struct mlx5_ifc_create_tir_in_bits {
6911 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006912 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006913
Matan Barakb4ff3a32016-02-09 14:57:42 +02006914 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006915 u8 op_mod[0x10];
6916
Matan Barakb4ff3a32016-02-09 14:57:42 +02006917 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006918
6919 struct mlx5_ifc_tirc_bits ctx;
6920};
6921
6922struct mlx5_ifc_create_srq_out_bits {
6923 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006924 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006925
6926 u8 syndrome[0x20];
6927
Matan Barakb4ff3a32016-02-09 14:57:42 +02006928 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006929 u8 srqn[0x18];
6930
Matan Barakb4ff3a32016-02-09 14:57:42 +02006931 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006932};
6933
6934struct mlx5_ifc_create_srq_in_bits {
6935 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006936 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006937
Matan Barakb4ff3a32016-02-09 14:57:42 +02006938 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006939 u8 op_mod[0x10];
6940
Matan Barakb4ff3a32016-02-09 14:57:42 +02006941 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006942
6943 struct mlx5_ifc_srqc_bits srq_context_entry;
6944
Matan Barakb4ff3a32016-02-09 14:57:42 +02006945 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006946
6947 u8 pas[0][0x40];
6948};
6949
6950struct mlx5_ifc_create_sq_out_bits {
6951 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006952 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006953
6954 u8 syndrome[0x20];
6955
Matan Barakb4ff3a32016-02-09 14:57:42 +02006956 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006957 u8 sqn[0x18];
6958
Matan Barakb4ff3a32016-02-09 14:57:42 +02006959 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006960};
6961
6962struct mlx5_ifc_create_sq_in_bits {
6963 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03006964 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006965
Matan Barakb4ff3a32016-02-09 14:57:42 +02006966 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006967 u8 op_mod[0x10];
6968
Matan Barakb4ff3a32016-02-09 14:57:42 +02006969 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006970
6971 struct mlx5_ifc_sqc_bits ctx;
6972};
6973
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03006974struct mlx5_ifc_create_scheduling_element_out_bits {
6975 u8 status[0x8];
6976 u8 reserved_at_8[0x18];
6977
6978 u8 syndrome[0x20];
6979
6980 u8 reserved_at_40[0x40];
6981
6982 u8 scheduling_element_id[0x20];
6983
6984 u8 reserved_at_a0[0x160];
6985};
6986
6987struct mlx5_ifc_create_scheduling_element_in_bits {
6988 u8 opcode[0x10];
6989 u8 reserved_at_10[0x10];
6990
6991 u8 reserved_at_20[0x10];
6992 u8 op_mod[0x10];
6993
6994 u8 scheduling_hierarchy[0x8];
6995 u8 reserved_at_48[0x18];
6996
6997 u8 reserved_at_60[0xa0];
6998
6999 struct mlx5_ifc_scheduling_context_bits scheduling_context;
7000
7001 u8 reserved_at_300[0x100];
7002};
7003
Saeed Mahameede2816822015-05-28 22:28:40 +03007004struct mlx5_ifc_create_rqt_out_bits {
7005 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007006 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007007
7008 u8 syndrome[0x20];
7009
Matan Barakb4ff3a32016-02-09 14:57:42 +02007010 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007011 u8 rqtn[0x18];
7012
Matan Barakb4ff3a32016-02-09 14:57:42 +02007013 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007014};
7015
7016struct mlx5_ifc_create_rqt_in_bits {
7017 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007018 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007019
Matan Barakb4ff3a32016-02-09 14:57:42 +02007020 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007021 u8 op_mod[0x10];
7022
Matan Barakb4ff3a32016-02-09 14:57:42 +02007023 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007024
7025 struct mlx5_ifc_rqtc_bits rqt_context;
7026};
7027
7028struct mlx5_ifc_create_rq_out_bits {
7029 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007030 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007031
7032 u8 syndrome[0x20];
7033
Matan Barakb4ff3a32016-02-09 14:57:42 +02007034 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007035 u8 rqn[0x18];
7036
Matan Barakb4ff3a32016-02-09 14:57:42 +02007037 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007038};
7039
7040struct mlx5_ifc_create_rq_in_bits {
7041 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03007042 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007043
Matan Barakb4ff3a32016-02-09 14:57:42 +02007044 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007045 u8 op_mod[0x10];
7046
Matan Barakb4ff3a32016-02-09 14:57:42 +02007047 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007048
7049 struct mlx5_ifc_rqc_bits ctx;
7050};
7051
7052struct mlx5_ifc_create_rmp_out_bits {
7053 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007054 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007055
7056 u8 syndrome[0x20];
7057
Matan Barakb4ff3a32016-02-09 14:57:42 +02007058 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007059 u8 rmpn[0x18];
7060
Matan Barakb4ff3a32016-02-09 14:57:42 +02007061 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007062};
7063
7064struct mlx5_ifc_create_rmp_in_bits {
7065 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007066 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007067
Matan Barakb4ff3a32016-02-09 14:57:42 +02007068 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007069 u8 op_mod[0x10];
7070
Matan Barakb4ff3a32016-02-09 14:57:42 +02007071 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007072
7073 struct mlx5_ifc_rmpc_bits ctx;
7074};
7075
7076struct mlx5_ifc_create_qp_out_bits {
7077 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007078 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007079
7080 u8 syndrome[0x20];
7081
Matan Barakb4ff3a32016-02-09 14:57:42 +02007082 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007083 u8 qpn[0x18];
7084
Matan Barakb4ff3a32016-02-09 14:57:42 +02007085 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007086};
7087
7088struct mlx5_ifc_create_qp_in_bits {
7089 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03007090 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007091
Matan Barakb4ff3a32016-02-09 14:57:42 +02007092 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007093 u8 op_mod[0x10];
7094
Matan Barakb4ff3a32016-02-09 14:57:42 +02007095 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007096
7097 u8 opt_param_mask[0x20];
7098
Matan Barakb4ff3a32016-02-09 14:57:42 +02007099 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007100
7101 struct mlx5_ifc_qpc_bits qpc;
7102
Leon Romanovskybd371972018-09-20 21:35:26 +03007103 u8 reserved_at_800[0x60];
7104
7105 u8 wq_umem_valid[0x1];
7106 u8 reserved_at_861[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007107
7108 u8 pas[0][0x40];
7109};
7110
7111struct mlx5_ifc_create_psv_out_bits {
7112 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007113 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007114
7115 u8 syndrome[0x20];
7116
Matan Barakb4ff3a32016-02-09 14:57:42 +02007117 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007118
Matan Barakb4ff3a32016-02-09 14:57:42 +02007119 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007120 u8 psv0_index[0x18];
7121
Matan Barakb4ff3a32016-02-09 14:57:42 +02007122 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007123 u8 psv1_index[0x18];
7124
Matan Barakb4ff3a32016-02-09 14:57:42 +02007125 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007126 u8 psv2_index[0x18];
7127
Matan Barakb4ff3a32016-02-09 14:57:42 +02007128 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007129 u8 psv3_index[0x18];
7130};
7131
7132struct mlx5_ifc_create_psv_in_bits {
7133 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007134 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007135
Matan Barakb4ff3a32016-02-09 14:57:42 +02007136 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007137 u8 op_mod[0x10];
7138
7139 u8 num_psv[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007140 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007141 u8 pd[0x18];
7142
Matan Barakb4ff3a32016-02-09 14:57:42 +02007143 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007144};
7145
7146struct mlx5_ifc_create_mkey_out_bits {
7147 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007148 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007149
7150 u8 syndrome[0x20];
7151
Matan Barakb4ff3a32016-02-09 14:57:42 +02007152 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007153 u8 mkey_index[0x18];
7154
Matan Barakb4ff3a32016-02-09 14:57:42 +02007155 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007156};
7157
7158struct mlx5_ifc_create_mkey_in_bits {
7159 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007160 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007161
Matan Barakb4ff3a32016-02-09 14:57:42 +02007162 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007163 u8 op_mod[0x10];
7164
Matan Barakb4ff3a32016-02-09 14:57:42 +02007165 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007166
7167 u8 pg_access[0x1];
Leon Romanovskybd371972018-09-20 21:35:26 +03007168 u8 mkey_umem_valid[0x1];
7169 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03007170
7171 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
7172
Matan Barakb4ff3a32016-02-09 14:57:42 +02007173 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007174
7175 u8 translations_octword_actual_size[0x20];
7176
Matan Barakb4ff3a32016-02-09 14:57:42 +02007177 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03007178
7179 u8 klm_pas_mtt[0][0x20];
7180};
7181
7182struct mlx5_ifc_create_flow_table_out_bits {
7183 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007184 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007185
7186 u8 syndrome[0x20];
7187
Matan Barakb4ff3a32016-02-09 14:57:42 +02007188 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007189 u8 table_id[0x18];
7190
Matan Barakb4ff3a32016-02-09 14:57:42 +02007191 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007192};
7193
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007194struct mlx5_ifc_flow_table_context_bits {
Mark Bloch60786f02018-08-28 14:18:46 +03007195 u8 reformat_en[0x1];
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007196 u8 decap_en[0x1];
7197 u8 reserved_at_2[0x2];
7198 u8 table_miss_action[0x4];
7199 u8 level[0x8];
7200 u8 reserved_at_10[0x8];
7201 u8 log_size[0x8];
7202
7203 u8 reserved_at_20[0x8];
7204 u8 table_miss_id[0x18];
7205
7206 u8 reserved_at_40[0x8];
7207 u8 lag_master_next_table_id[0x18];
7208
7209 u8 reserved_at_60[0xe0];
7210};
7211
Saeed Mahameede2816822015-05-28 22:28:40 +03007212struct mlx5_ifc_create_flow_table_in_bits {
7213 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007214 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007215
Matan Barakb4ff3a32016-02-09 14:57:42 +02007216 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007217 u8 op_mod[0x10];
7218
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007219 u8 other_vport[0x1];
7220 u8 reserved_at_41[0xf];
7221 u8 vport_number[0x10];
7222
7223 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007224
7225 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007226 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007227
Matan Barakb4ff3a32016-02-09 14:57:42 +02007228 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007229
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007230 struct mlx5_ifc_flow_table_context_bits flow_table_context;
Saeed Mahameede2816822015-05-28 22:28:40 +03007231};
7232
7233struct mlx5_ifc_create_flow_group_out_bits {
7234 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007235 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007236
7237 u8 syndrome[0x20];
7238
Matan Barakb4ff3a32016-02-09 14:57:42 +02007239 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007240 u8 group_id[0x18];
7241
Matan Barakb4ff3a32016-02-09 14:57:42 +02007242 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007243};
7244
7245enum {
Ariel Levkovich71c6e862018-05-13 14:33:34 +03007246 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
7247 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
7248 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
7249 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS_2 = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +03007250};
7251
7252struct mlx5_ifc_create_flow_group_in_bits {
7253 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007254 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007255
Matan Barakb4ff3a32016-02-09 14:57:42 +02007256 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007257 u8 op_mod[0x10];
7258
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007259 u8 other_vport[0x1];
7260 u8 reserved_at_41[0xf];
7261 u8 vport_number[0x10];
7262
7263 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007264
7265 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007266 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007267
Matan Barakb4ff3a32016-02-09 14:57:42 +02007268 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007269 u8 table_id[0x18];
7270
Shahar Klein3e99df82018-03-18 09:02:06 +02007271 u8 source_eswitch_owner_vhca_id_valid[0x1];
7272
7273 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007274
7275 u8 start_flow_index[0x20];
7276
Matan Barakb4ff3a32016-02-09 14:57:42 +02007277 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007278
7279 u8 end_flow_index[0x20];
7280
Matan Barakb4ff3a32016-02-09 14:57:42 +02007281 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007282
Matan Barakb4ff3a32016-02-09 14:57:42 +02007283 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007284 u8 match_criteria_enable[0x8];
7285
7286 struct mlx5_ifc_fte_match_param_bits match_criteria;
7287
Matan Barakb4ff3a32016-02-09 14:57:42 +02007288 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03007289};
7290
7291struct mlx5_ifc_create_eq_out_bits {
7292 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007293 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007294
7295 u8 syndrome[0x20];
7296
Matan Barakb4ff3a32016-02-09 14:57:42 +02007297 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007298 u8 eq_number[0x8];
7299
Matan Barakb4ff3a32016-02-09 14:57:42 +02007300 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007301};
7302
7303struct mlx5_ifc_create_eq_in_bits {
7304 u8 opcode[0x10];
Yishai Hadasc191f932019-05-14 14:44:12 +03007305 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007306
Matan Barakb4ff3a32016-02-09 14:57:42 +02007307 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007308 u8 op_mod[0x10];
7309
Matan Barakb4ff3a32016-02-09 14:57:42 +02007310 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007311
7312 struct mlx5_ifc_eqc_bits eq_context_entry;
7313
Matan Barakb4ff3a32016-02-09 14:57:42 +02007314 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007315
7316 u8 event_bitmask[0x40];
7317
Matan Barakb4ff3a32016-02-09 14:57:42 +02007318 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03007319
7320 u8 pas[0][0x40];
7321};
7322
7323struct mlx5_ifc_create_dct_out_bits {
7324 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007325 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007326
7327 u8 syndrome[0x20];
7328
Matan Barakb4ff3a32016-02-09 14:57:42 +02007329 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007330 u8 dctn[0x18];
7331
Matan Barakb4ff3a32016-02-09 14:57:42 +02007332 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007333};
7334
7335struct mlx5_ifc_create_dct_in_bits {
7336 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03007337 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007338
Matan Barakb4ff3a32016-02-09 14:57:42 +02007339 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007340 u8 op_mod[0x10];
7341
Matan Barakb4ff3a32016-02-09 14:57:42 +02007342 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007343
7344 struct mlx5_ifc_dctc_bits dct_context_entry;
7345
Matan Barakb4ff3a32016-02-09 14:57:42 +02007346 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03007347};
7348
7349struct mlx5_ifc_create_cq_out_bits {
7350 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007351 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007352
7353 u8 syndrome[0x20];
7354
Matan Barakb4ff3a32016-02-09 14:57:42 +02007355 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007356 u8 cqn[0x18];
7357
Matan Barakb4ff3a32016-02-09 14:57:42 +02007358 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007359};
7360
7361struct mlx5_ifc_create_cq_in_bits {
7362 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03007363 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007364
Matan Barakb4ff3a32016-02-09 14:57:42 +02007365 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007366 u8 op_mod[0x10];
7367
Matan Barakb4ff3a32016-02-09 14:57:42 +02007368 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007369
7370 struct mlx5_ifc_cqc_bits cq_context;
7371
Leon Romanovskybd371972018-09-20 21:35:26 +03007372 u8 reserved_at_280[0x60];
7373
7374 u8 cq_umem_valid[0x1];
7375 u8 reserved_at_2e1[0x59f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007376
7377 u8 pas[0][0x40];
7378};
7379
7380struct mlx5_ifc_config_int_moderation_out_bits {
7381 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007382 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007383
7384 u8 syndrome[0x20];
7385
Matan Barakb4ff3a32016-02-09 14:57:42 +02007386 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007387 u8 min_delay[0xc];
7388 u8 int_vector[0x10];
7389
Matan Barakb4ff3a32016-02-09 14:57:42 +02007390 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007391};
7392
7393enum {
7394 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
7395 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
7396};
7397
7398struct mlx5_ifc_config_int_moderation_in_bits {
7399 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007400 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007401
Matan Barakb4ff3a32016-02-09 14:57:42 +02007402 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007403 u8 op_mod[0x10];
7404
Matan Barakb4ff3a32016-02-09 14:57:42 +02007405 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007406 u8 min_delay[0xc];
7407 u8 int_vector[0x10];
7408
Matan Barakb4ff3a32016-02-09 14:57:42 +02007409 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007410};
7411
7412struct mlx5_ifc_attach_to_mcg_out_bits {
7413 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007414 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007415
7416 u8 syndrome[0x20];
7417
Matan Barakb4ff3a32016-02-09 14:57:42 +02007418 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007419};
7420
7421struct mlx5_ifc_attach_to_mcg_in_bits {
7422 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007423 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007424
Matan Barakb4ff3a32016-02-09 14:57:42 +02007425 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007426 u8 op_mod[0x10];
7427
Matan Barakb4ff3a32016-02-09 14:57:42 +02007428 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007429 u8 qpn[0x18];
7430
Matan Barakb4ff3a32016-02-09 14:57:42 +02007431 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007432
7433 u8 multicast_gid[16][0x8];
7434};
7435
Saeed Mahameed74862162016-06-09 15:11:34 +03007436struct mlx5_ifc_arm_xrq_out_bits {
7437 u8 status[0x8];
7438 u8 reserved_at_8[0x18];
7439
7440 u8 syndrome[0x20];
7441
7442 u8 reserved_at_40[0x40];
7443};
7444
7445struct mlx5_ifc_arm_xrq_in_bits {
7446 u8 opcode[0x10];
7447 u8 reserved_at_10[0x10];
7448
7449 u8 reserved_at_20[0x10];
7450 u8 op_mod[0x10];
7451
7452 u8 reserved_at_40[0x8];
7453 u8 xrqn[0x18];
7454
7455 u8 reserved_at_60[0x10];
7456 u8 lwm[0x10];
7457};
7458
Saeed Mahameede2816822015-05-28 22:28:40 +03007459struct mlx5_ifc_arm_xrc_srq_out_bits {
7460 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007461 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007462
7463 u8 syndrome[0x20];
7464
Matan Barakb4ff3a32016-02-09 14:57:42 +02007465 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007466};
7467
7468enum {
7469 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
7470};
7471
7472struct mlx5_ifc_arm_xrc_srq_in_bits {
7473 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007474 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007475
Matan Barakb4ff3a32016-02-09 14:57:42 +02007476 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007477 u8 op_mod[0x10];
7478
Matan Barakb4ff3a32016-02-09 14:57:42 +02007479 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007480 u8 xrc_srqn[0x18];
7481
Matan Barakb4ff3a32016-02-09 14:57:42 +02007482 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007483 u8 lwm[0x10];
7484};
7485
7486struct mlx5_ifc_arm_rq_out_bits {
7487 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007488 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007489
7490 u8 syndrome[0x20];
7491
Matan Barakb4ff3a32016-02-09 14:57:42 +02007492 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007493};
7494
7495enum {
Saeed Mahameed74862162016-06-09 15:11:34 +03007496 MLX5_ARM_RQ_IN_OP_MOD_SRQ = 0x1,
7497 MLX5_ARM_RQ_IN_OP_MOD_XRQ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03007498};
7499
7500struct mlx5_ifc_arm_rq_in_bits {
7501 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007502 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007503
Matan Barakb4ff3a32016-02-09 14:57:42 +02007504 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007505 u8 op_mod[0x10];
7506
Matan Barakb4ff3a32016-02-09 14:57:42 +02007507 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007508 u8 srq_number[0x18];
7509
Matan Barakb4ff3a32016-02-09 14:57:42 +02007510 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007511 u8 lwm[0x10];
7512};
7513
7514struct mlx5_ifc_arm_dct_out_bits {
7515 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007516 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007517
7518 u8 syndrome[0x20];
7519
Matan Barakb4ff3a32016-02-09 14:57:42 +02007520 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007521};
7522
7523struct mlx5_ifc_arm_dct_in_bits {
7524 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007525 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007526
Matan Barakb4ff3a32016-02-09 14:57:42 +02007527 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007528 u8 op_mod[0x10];
7529
Matan Barakb4ff3a32016-02-09 14:57:42 +02007530 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007531 u8 dct_number[0x18];
7532
Matan Barakb4ff3a32016-02-09 14:57:42 +02007533 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007534};
7535
7536struct mlx5_ifc_alloc_xrcd_out_bits {
7537 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007538 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007539
7540 u8 syndrome[0x20];
7541
Matan Barakb4ff3a32016-02-09 14:57:42 +02007542 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007543 u8 xrcd[0x18];
7544
Matan Barakb4ff3a32016-02-09 14:57:42 +02007545 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007546};
7547
7548struct mlx5_ifc_alloc_xrcd_in_bits {
7549 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007550 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007551
Matan Barakb4ff3a32016-02-09 14:57:42 +02007552 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007553 u8 op_mod[0x10];
7554
Matan Barakb4ff3a32016-02-09 14:57:42 +02007555 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007556};
7557
7558struct mlx5_ifc_alloc_uar_out_bits {
7559 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007560 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007561
7562 u8 syndrome[0x20];
7563
Matan Barakb4ff3a32016-02-09 14:57:42 +02007564 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007565 u8 uar[0x18];
7566
Matan Barakb4ff3a32016-02-09 14:57:42 +02007567 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007568};
7569
7570struct mlx5_ifc_alloc_uar_in_bits {
7571 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007572 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007573
Matan Barakb4ff3a32016-02-09 14:57:42 +02007574 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007575 u8 op_mod[0x10];
7576
Matan Barakb4ff3a32016-02-09 14:57:42 +02007577 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007578};
7579
7580struct mlx5_ifc_alloc_transport_domain_out_bits {
7581 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007582 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007583
7584 u8 syndrome[0x20];
7585
Matan Barakb4ff3a32016-02-09 14:57:42 +02007586 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007587 u8 transport_domain[0x18];
7588
Matan Barakb4ff3a32016-02-09 14:57:42 +02007589 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007590};
7591
7592struct mlx5_ifc_alloc_transport_domain_in_bits {
7593 u8 opcode[0x10];
Yishai Hadas71bef2f2018-12-19 16:28:10 +02007594 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007595
Matan Barakb4ff3a32016-02-09 14:57:42 +02007596 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007597 u8 op_mod[0x10];
7598
Matan Barakb4ff3a32016-02-09 14:57:42 +02007599 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007600};
7601
7602struct mlx5_ifc_alloc_q_counter_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[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007609 u8 counter_set_id[0x8];
7610
Matan Barakb4ff3a32016-02-09 14:57:42 +02007611 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007612};
7613
7614struct mlx5_ifc_alloc_q_counter_in_bits {
7615 u8 opcode[0x10];
Leon Romanovsky2acc7952018-12-06 14:40:11 +02007616 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007617
Matan Barakb4ff3a32016-02-09 14:57:42 +02007618 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007619 u8 op_mod[0x10];
7620
Matan Barakb4ff3a32016-02-09 14:57:42 +02007621 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007622};
7623
7624struct mlx5_ifc_alloc_pd_out_bits {
7625 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007626 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007627
7628 u8 syndrome[0x20];
7629
Matan Barakb4ff3a32016-02-09 14:57:42 +02007630 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007631 u8 pd[0x18];
7632
Matan Barakb4ff3a32016-02-09 14:57:42 +02007633 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007634};
7635
7636struct mlx5_ifc_alloc_pd_in_bits {
7637 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007638 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007639
Matan Barakb4ff3a32016-02-09 14:57:42 +02007640 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007641 u8 op_mod[0x10];
7642
Matan Barakb4ff3a32016-02-09 14:57:42 +02007643 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007644};
7645
Amir Vadai9dc0b282016-05-13 12:55:39 +00007646struct mlx5_ifc_alloc_flow_counter_out_bits {
7647 u8 status[0x8];
7648 u8 reserved_at_8[0x18];
7649
7650 u8 syndrome[0x20];
7651
Rabie Louloua8ffcc72017-07-09 13:39:30 +03007652 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00007653
7654 u8 reserved_at_60[0x20];
7655};
7656
7657struct mlx5_ifc_alloc_flow_counter_in_bits {
7658 u8 opcode[0x10];
7659 u8 reserved_at_10[0x10];
7660
7661 u8 reserved_at_20[0x10];
7662 u8 op_mod[0x10];
7663
7664 u8 reserved_at_40[0x40];
7665};
7666
Saeed Mahameede2816822015-05-28 22:28:40 +03007667struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
7668 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007669 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007670
7671 u8 syndrome[0x20];
7672
Matan Barakb4ff3a32016-02-09 14:57:42 +02007673 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007674};
7675
7676struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
7677 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007678 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007679
Matan Barakb4ff3a32016-02-09 14:57:42 +02007680 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007681 u8 op_mod[0x10];
7682
Matan Barakb4ff3a32016-02-09 14:57:42 +02007683 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007684
Matan Barakb4ff3a32016-02-09 14:57:42 +02007685 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007686 u8 vxlan_udp_port[0x10];
7687};
7688
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007689struct mlx5_ifc_set_pp_rate_limit_out_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +03007690 u8 status[0x8];
7691 u8 reserved_at_8[0x18];
7692
7693 u8 syndrome[0x20];
7694
7695 u8 reserved_at_40[0x40];
7696};
7697
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007698struct mlx5_ifc_set_pp_rate_limit_in_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +03007699 u8 opcode[0x10];
7700 u8 reserved_at_10[0x10];
7701
7702 u8 reserved_at_20[0x10];
7703 u8 op_mod[0x10];
7704
7705 u8 reserved_at_40[0x10];
7706 u8 rate_limit_index[0x10];
7707
7708 u8 reserved_at_60[0x20];
7709
7710 u8 rate_limit[0x20];
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007711
Bodong Wang05d3ac92018-03-19 15:10:29 +02007712 u8 burst_upper_bound[0x20];
7713
7714 u8 reserved_at_c0[0x10];
7715 u8 typical_packet_size[0x10];
7716
7717 u8 reserved_at_e0[0x120];
Saeed Mahameed74862162016-06-09 15:11:34 +03007718};
7719
Saeed Mahameede2816822015-05-28 22:28:40 +03007720struct mlx5_ifc_access_register_out_bits {
7721 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007722 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007723
7724 u8 syndrome[0x20];
7725
Matan Barakb4ff3a32016-02-09 14:57:42 +02007726 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007727
7728 u8 register_data[0][0x20];
7729};
7730
7731enum {
7732 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
7733 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
7734};
7735
7736struct mlx5_ifc_access_register_in_bits {
7737 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007738 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007739
Matan Barakb4ff3a32016-02-09 14:57:42 +02007740 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007741 u8 op_mod[0x10];
7742
Matan Barakb4ff3a32016-02-09 14:57:42 +02007743 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007744 u8 register_id[0x10];
7745
7746 u8 argument[0x20];
7747
7748 u8 register_data[0][0x20];
7749};
7750
7751struct mlx5_ifc_sltp_reg_bits {
7752 u8 status[0x4];
7753 u8 version[0x4];
7754 u8 local_port[0x8];
7755 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007756 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007757 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007758 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007759
Matan Barakb4ff3a32016-02-09 14:57:42 +02007760 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007761
Matan Barakb4ff3a32016-02-09 14:57:42 +02007762 u8 reserved_at_40[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007763 u8 polarity[0x1];
7764 u8 ob_tap0[0x8];
7765 u8 ob_tap1[0x8];
7766 u8 ob_tap2[0x8];
7767
Matan Barakb4ff3a32016-02-09 14:57:42 +02007768 u8 reserved_at_60[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007769 u8 ob_preemp_mode[0x4];
7770 u8 ob_reg[0x8];
7771 u8 ob_bias[0x8];
7772
Matan Barakb4ff3a32016-02-09 14:57:42 +02007773 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007774};
7775
7776struct mlx5_ifc_slrg_reg_bits {
7777 u8 status[0x4];
7778 u8 version[0x4];
7779 u8 local_port[0x8];
7780 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007781 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007782 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007783 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007784
7785 u8 time_to_link_up[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007786 u8 reserved_at_30[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007787 u8 grade_lane_speed[0x4];
7788
7789 u8 grade_version[0x8];
7790 u8 grade[0x18];
7791
Matan Barakb4ff3a32016-02-09 14:57:42 +02007792 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007793 u8 height_grade_type[0x4];
7794 u8 height_grade[0x18];
7795
7796 u8 height_dz[0x10];
7797 u8 height_dv[0x10];
7798
Matan Barakb4ff3a32016-02-09 14:57:42 +02007799 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007800 u8 height_sigma[0x10];
7801
Matan Barakb4ff3a32016-02-09 14:57:42 +02007802 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007803
Matan Barakb4ff3a32016-02-09 14:57:42 +02007804 u8 reserved_at_e0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007805 u8 phase_grade_type[0x4];
7806 u8 phase_grade[0x18];
7807
Matan Barakb4ff3a32016-02-09 14:57:42 +02007808 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007809 u8 phase_eo_pos[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007810 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007811 u8 phase_eo_neg[0x8];
7812
7813 u8 ffe_set_tested[0x10];
7814 u8 test_errors_per_lane[0x10];
7815};
7816
7817struct mlx5_ifc_pvlc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007818 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007819 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007820 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007821
Matan Barakb4ff3a32016-02-09 14:57:42 +02007822 u8 reserved_at_20[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007823 u8 vl_hw_cap[0x4];
7824
Matan Barakb4ff3a32016-02-09 14:57:42 +02007825 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007826 u8 vl_admin[0x4];
7827
Matan Barakb4ff3a32016-02-09 14:57:42 +02007828 u8 reserved_at_60[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007829 u8 vl_operational[0x4];
7830};
7831
7832struct mlx5_ifc_pude_reg_bits {
7833 u8 swid[0x8];
7834 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007835 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007836 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007837 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007838 u8 oper_status[0x4];
7839
Matan Barakb4ff3a32016-02-09 14:57:42 +02007840 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007841};
7842
7843struct mlx5_ifc_ptys_reg_bits {
Bodong Wange7e31ca2016-09-07 19:07:58 +03007844 u8 reserved_at_0[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03007845 u8 an_disable_admin[0x1];
Bodong Wange7e31ca2016-09-07 19:07:58 +03007846 u8 an_disable_cap[0x1];
7847 u8 reserved_at_3[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007848 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007849 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03007850 u8 proto_mask[0x3];
7851
Saeed Mahameed74862162016-06-09 15:11:34 +03007852 u8 an_status[0x4];
Aya Levina0a89982019-02-12 22:55:44 -08007853 u8 reserved_at_24[0x1c];
7854
7855 u8 ext_eth_proto_capability[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007856
7857 u8 eth_proto_capability[0x20];
7858
7859 u8 ib_link_width_capability[0x10];
7860 u8 ib_proto_capability[0x10];
7861
Aya Levina0a89982019-02-12 22:55:44 -08007862 u8 ext_eth_proto_admin[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007863
7864 u8 eth_proto_admin[0x20];
7865
7866 u8 ib_link_width_admin[0x10];
7867 u8 ib_proto_admin[0x10];
7868
Aya Levina0a89982019-02-12 22:55:44 -08007869 u8 ext_eth_proto_oper[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007870
7871 u8 eth_proto_oper[0x20];
7872
7873 u8 ib_link_width_oper[0x10];
7874 u8 ib_proto_oper[0x10];
7875
Eran Ben Elisha5b4793f2017-02-13 14:00:59 +02007876 u8 reserved_at_160[0x1c];
7877 u8 connector_type[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007878
7879 u8 eth_proto_lp_advertise[0x20];
7880
Matan Barakb4ff3a32016-02-09 14:57:42 +02007881 u8 reserved_at_1a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007882};
7883
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007884struct mlx5_ifc_mlcr_reg_bits {
7885 u8 reserved_at_0[0x8];
7886 u8 local_port[0x8];
7887 u8 reserved_at_10[0x20];
7888
7889 u8 beacon_duration[0x10];
7890 u8 reserved_at_40[0x10];
7891
7892 u8 beacon_remain[0x10];
7893};
7894
Saeed Mahameede2816822015-05-28 22:28:40 +03007895struct mlx5_ifc_ptas_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007896 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007897
7898 u8 algorithm_options[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007899 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007900 u8 repetitions_mode[0x4];
7901 u8 num_of_repetitions[0x8];
7902
7903 u8 grade_version[0x8];
7904 u8 height_grade_type[0x4];
7905 u8 phase_grade_type[0x4];
7906 u8 height_grade_weight[0x8];
7907 u8 phase_grade_weight[0x8];
7908
7909 u8 gisim_measure_bits[0x10];
7910 u8 adaptive_tap_measure_bits[0x10];
7911
7912 u8 ber_bath_high_error_threshold[0x10];
7913 u8 ber_bath_mid_error_threshold[0x10];
7914
7915 u8 ber_bath_low_error_threshold[0x10];
7916 u8 one_ratio_high_threshold[0x10];
7917
7918 u8 one_ratio_high_mid_threshold[0x10];
7919 u8 one_ratio_low_mid_threshold[0x10];
7920
7921 u8 one_ratio_low_threshold[0x10];
7922 u8 ndeo_error_threshold[0x10];
7923
7924 u8 mixer_offset_step_size[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007925 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007926 u8 mix90_phase_for_voltage_bath[0x8];
7927
7928 u8 mixer_offset_start[0x10];
7929 u8 mixer_offset_end[0x10];
7930
Matan Barakb4ff3a32016-02-09 14:57:42 +02007931 u8 reserved_at_140[0x15];
Saeed Mahameede2816822015-05-28 22:28:40 +03007932 u8 ber_test_time[0xb];
7933};
7934
7935struct mlx5_ifc_pspa_reg_bits {
7936 u8 swid[0x8];
7937 u8 local_port[0x8];
7938 u8 sub_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007939 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007940
Matan Barakb4ff3a32016-02-09 14:57:42 +02007941 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007942};
7943
7944struct mlx5_ifc_pqdr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007945 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007946 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007947 u8 reserved_at_10[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007948 u8 prio[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007949 u8 reserved_at_18[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007950 u8 mode[0x2];
7951
Matan Barakb4ff3a32016-02-09 14:57:42 +02007952 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007953
Matan Barakb4ff3a32016-02-09 14:57:42 +02007954 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007955 u8 min_threshold[0x10];
7956
Matan Barakb4ff3a32016-02-09 14:57:42 +02007957 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007958 u8 max_threshold[0x10];
7959
Matan Barakb4ff3a32016-02-09 14:57:42 +02007960 u8 reserved_at_80[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007961 u8 mark_probability_denominator[0x10];
7962
Matan Barakb4ff3a32016-02-09 14:57:42 +02007963 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007964};
7965
7966struct mlx5_ifc_ppsc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007967 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007968 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007969 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007970
Matan Barakb4ff3a32016-02-09 14:57:42 +02007971 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007972
Matan Barakb4ff3a32016-02-09 14:57:42 +02007973 u8 reserved_at_80[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007974 u8 wrps_admin[0x4];
7975
Matan Barakb4ff3a32016-02-09 14:57:42 +02007976 u8 reserved_at_a0[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007977 u8 wrps_status[0x4];
7978
Matan Barakb4ff3a32016-02-09 14:57:42 +02007979 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007980 u8 up_threshold[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007981 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007982 u8 down_threshold[0x8];
7983
Matan Barakb4ff3a32016-02-09 14:57:42 +02007984 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007985
Matan Barakb4ff3a32016-02-09 14:57:42 +02007986 u8 reserved_at_100[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007987 u8 srps_admin[0x4];
7988
Matan Barakb4ff3a32016-02-09 14:57:42 +02007989 u8 reserved_at_120[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007990 u8 srps_status[0x4];
7991
Matan Barakb4ff3a32016-02-09 14:57:42 +02007992 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007993};
7994
7995struct mlx5_ifc_pplr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007996 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007997 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007998 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007999
Matan Barakb4ff3a32016-02-09 14:57:42 +02008000 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008001 u8 lb_cap[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008002 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008003 u8 lb_en[0x8];
8004};
8005
8006struct mlx5_ifc_pplm_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008007 u8 reserved_at_0[0x8];
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008008 u8 local_port[0x8];
8009 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008010
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008011 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008012
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008013 u8 port_profile_mode[0x8];
8014 u8 static_port_profile[0x8];
8015 u8 active_port_profile[0x8];
8016 u8 reserved_at_58[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008017
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008018 u8 retransmission_active[0x8];
8019 u8 fec_mode_active[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008020
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008021 u8 rs_fec_correction_bypass_cap[0x4];
8022 u8 reserved_at_84[0x8];
8023 u8 fec_override_cap_56g[0x4];
8024 u8 fec_override_cap_100g[0x4];
8025 u8 fec_override_cap_50g[0x4];
8026 u8 fec_override_cap_25g[0x4];
8027 u8 fec_override_cap_10g_40g[0x4];
8028
8029 u8 rs_fec_correction_bypass_admin[0x4];
8030 u8 reserved_at_a4[0x8];
8031 u8 fec_override_admin_56g[0x4];
8032 u8 fec_override_admin_100g[0x4];
8033 u8 fec_override_admin_50g[0x4];
8034 u8 fec_override_admin_25g[0x4];
8035 u8 fec_override_admin_10g_40g[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008036};
8037
8038struct mlx5_ifc_ppcnt_reg_bits {
8039 u8 swid[0x8];
8040 u8 local_port[0x8];
8041 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008042 u8 reserved_at_12[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008043 u8 grp[0x6];
8044
8045 u8 clr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008046 u8 reserved_at_21[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03008047 u8 prio_tc[0x3];
8048
8049 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
8050};
8051
Aya Levin40390492019-03-29 15:38:03 -07008052struct mlx5_ifc_mpein_reg_bits {
8053 u8 reserved_at_0[0x2];
8054 u8 depth[0x6];
8055 u8 pcie_index[0x8];
8056 u8 node[0x8];
8057 u8 reserved_at_18[0x8];
8058
8059 u8 capability_mask[0x20];
8060
8061 u8 reserved_at_40[0x8];
8062 u8 link_width_enabled[0x8];
8063 u8 link_speed_enabled[0x10];
8064
8065 u8 lane0_physical_position[0x8];
8066 u8 link_width_active[0x8];
8067 u8 link_speed_active[0x10];
8068
8069 u8 num_of_pfs[0x10];
8070 u8 num_of_vfs[0x10];
8071
8072 u8 bdf0[0x10];
8073 u8 reserved_at_b0[0x10];
8074
8075 u8 max_read_request_size[0x4];
8076 u8 max_payload_size[0x4];
8077 u8 reserved_at_c8[0x5];
8078 u8 pwr_status[0x3];
8079 u8 port_type[0x4];
8080 u8 reserved_at_d4[0xb];
8081 u8 lane_reversal[0x1];
8082
8083 u8 reserved_at_e0[0x14];
8084 u8 pci_power[0xc];
8085
8086 u8 reserved_at_100[0x20];
8087
8088 u8 device_status[0x10];
8089 u8 port_state[0x8];
8090 u8 reserved_at_138[0x8];
8091
8092 u8 reserved_at_140[0x10];
8093 u8 receiver_detect_result[0x10];
8094
8095 u8 reserved_at_160[0x20];
8096};
8097
Gal Pressman8ed1a632016-11-17 13:46:01 +02008098struct mlx5_ifc_mpcnt_reg_bits {
8099 u8 reserved_at_0[0x8];
8100 u8 pcie_index[0x8];
8101 u8 reserved_at_10[0xa];
8102 u8 grp[0x6];
8103
8104 u8 clr[0x1];
8105 u8 reserved_at_21[0x1f];
8106
8107 union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits counter_set;
8108};
8109
Saeed Mahameede2816822015-05-28 22:28:40 +03008110struct mlx5_ifc_ppad_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008111 u8 reserved_at_0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03008112 u8 single_mac[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008113 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008114 u8 local_port[0x8];
8115 u8 mac_47_32[0x10];
8116
8117 u8 mac_31_0[0x20];
8118
Matan Barakb4ff3a32016-02-09 14:57:42 +02008119 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008120};
8121
8122struct mlx5_ifc_pmtu_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[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008126
8127 u8 max_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008128 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008129
8130 u8 admin_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008131 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008132
8133 u8 oper_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008134 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008135};
8136
8137struct mlx5_ifc_pmpr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008138 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008139 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008140 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008141
Matan Barakb4ff3a32016-02-09 14:57:42 +02008142 u8 reserved_at_20[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008143 u8 attenuation_5g[0x8];
8144
Matan Barakb4ff3a32016-02-09 14:57:42 +02008145 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008146 u8 attenuation_7g[0x8];
8147
Matan Barakb4ff3a32016-02-09 14:57:42 +02008148 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008149 u8 attenuation_12g[0x8];
8150};
8151
8152struct mlx5_ifc_pmpe_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008153 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008154 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008155 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008156 u8 module_status[0x4];
8157
Matan Barakb4ff3a32016-02-09 14:57:42 +02008158 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008159};
8160
8161struct mlx5_ifc_pmpc_reg_bits {
8162 u8 module_state_updated[32][0x8];
8163};
8164
8165struct mlx5_ifc_pmlpn_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008166 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008167 u8 mlpn_status[0x4];
8168 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008169 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008170
8171 u8 e[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008172 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008173};
8174
8175struct mlx5_ifc_pmlp_reg_bits {
8176 u8 rxtx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008177 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008178 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008179 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008180 u8 width[0x8];
8181
8182 u8 lane0_module_mapping[0x20];
8183
8184 u8 lane1_module_mapping[0x20];
8185
8186 u8 lane2_module_mapping[0x20];
8187
8188 u8 lane3_module_mapping[0x20];
8189
Matan Barakb4ff3a32016-02-09 14:57:42 +02008190 u8 reserved_at_a0[0x160];
Saeed Mahameede2816822015-05-28 22:28:40 +03008191};
8192
8193struct mlx5_ifc_pmaos_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008194 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008195 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008196 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008197 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008198 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008199 u8 oper_status[0x4];
8200
8201 u8 ase[0x1];
8202 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008203 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03008204 u8 e[0x2];
8205
Matan Barakb4ff3a32016-02-09 14:57:42 +02008206 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008207};
8208
8209struct mlx5_ifc_plpc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008210 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008211 u8 profile_id[0xc];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008212 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008213 u8 proto_mask[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008214 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008215
Matan Barakb4ff3a32016-02-09 14:57:42 +02008216 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008217 u8 lane_speed[0x10];
8218
Matan Barakb4ff3a32016-02-09 14:57:42 +02008219 u8 reserved_at_40[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03008220 u8 lpbf[0x1];
8221 u8 fec_mode_policy[0x8];
8222
8223 u8 retransmission_capability[0x8];
8224 u8 fec_mode_capability[0x18];
8225
8226 u8 retransmission_support_admin[0x8];
8227 u8 fec_mode_support_admin[0x18];
8228
8229 u8 retransmission_request_admin[0x8];
8230 u8 fec_mode_request_admin[0x18];
8231
Matan Barakb4ff3a32016-02-09 14:57:42 +02008232 u8 reserved_at_c0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03008233};
8234
8235struct mlx5_ifc_plib_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008236 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008237 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008238 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008239 u8 ib_port[0x8];
8240
Matan Barakb4ff3a32016-02-09 14:57:42 +02008241 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008242};
8243
8244struct mlx5_ifc_plbf_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008245 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008246 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008247 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03008248 u8 lbf_mode[0x3];
8249
Matan Barakb4ff3a32016-02-09 14:57:42 +02008250 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008251};
8252
8253struct mlx5_ifc_pipg_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008254 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008255 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008256 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008257
8258 u8 dic[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008259 u8 reserved_at_21[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +03008260 u8 ipg[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008261 u8 reserved_at_3e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008262};
8263
8264struct mlx5_ifc_pifr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008265 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008266 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008267 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008268
Matan Barakb4ff3a32016-02-09 14:57:42 +02008269 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008270
8271 u8 port_filter[8][0x20];
8272
8273 u8 port_filter_update_en[8][0x20];
8274};
8275
8276struct mlx5_ifc_pfcc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008277 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008278 u8 local_port[0x8];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008279 u8 reserved_at_10[0xb];
8280 u8 ppan_mask_n[0x1];
8281 u8 minor_stall_mask[0x1];
8282 u8 critical_stall_mask[0x1];
8283 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008284
8285 u8 ppan[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008286 u8 reserved_at_24[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008287 u8 prio_mask_tx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008288 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008289 u8 prio_mask_rx[0x8];
8290
8291 u8 pptx[0x1];
8292 u8 aptx[0x1];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008293 u8 pptx_mask_n[0x1];
8294 u8 reserved_at_43[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03008295 u8 pfctx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008296 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008297
8298 u8 pprx[0x1];
8299 u8 aprx[0x1];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008300 u8 pprx_mask_n[0x1];
8301 u8 reserved_at_63[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03008302 u8 pfcrx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008303 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008304
Inbar Karmy2afa6092017-11-20 18:06:20 +02008305 u8 device_stall_minor_watermark[0x10];
8306 u8 device_stall_critical_watermark[0x10];
8307
8308 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008309};
8310
8311struct mlx5_ifc_pelc_reg_bits {
8312 u8 op[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008313 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008314 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008315 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008316
8317 u8 op_admin[0x8];
8318 u8 op_capability[0x8];
8319 u8 op_request[0x8];
8320 u8 op_active[0x8];
8321
8322 u8 admin[0x40];
8323
8324 u8 capability[0x40];
8325
8326 u8 request[0x40];
8327
8328 u8 active[0x40];
8329
Matan Barakb4ff3a32016-02-09 14:57:42 +02008330 u8 reserved_at_140[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03008331};
8332
8333struct mlx5_ifc_peir_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008334 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008335 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008336 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008337
Matan Barakb4ff3a32016-02-09 14:57:42 +02008338 u8 reserved_at_20[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008339 u8 error_count[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008340 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008341
Matan Barakb4ff3a32016-02-09 14:57:42 +02008342 u8 reserved_at_40[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008343 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008344 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008345 u8 error_type[0x8];
8346};
8347
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008348struct mlx5_ifc_mpegc_reg_bits {
8349 u8 reserved_at_0[0x30];
8350 u8 field_select[0x10];
8351
8352 u8 tx_overflow_sense[0x1];
8353 u8 mark_cqe[0x1];
8354 u8 mark_cnp[0x1];
8355 u8 reserved_at_43[0x1b];
8356 u8 tx_lossy_overflow_oper[0x2];
8357
8358 u8 reserved_at_60[0x100];
8359};
8360
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008361struct mlx5_ifc_pcam_enhanced_features_bits {
Talat Batheesh0af51072018-05-17 11:14:18 +03008362 u8 reserved_at_0[0x6d];
8363 u8 rx_icrc_encapsulated_counter[0x1];
Aya Levina0a89982019-02-12 22:55:44 -08008364 u8 reserved_at_6e[0x4];
8365 u8 ptys_extended_ethernet[0x1];
8366 u8 reserved_at_73[0x3];
Inbar Karmy2fcb12d2017-08-17 16:39:47 +03008367 u8 pfcc_mask[0x1];
Shay Agroskin67daf112018-09-30 09:58:08 +03008368 u8 reserved_at_77[0x3];
8369 u8 per_lane_error_counters[0x1];
Gal Pressman2dba0792017-06-18 14:56:45 +03008370 u8 rx_buffer_fullness_counters[0x1];
Eran Ben Elisha5b4793f2017-02-13 14:00:59 +02008371 u8 ptys_connector_type[0x1];
8372 u8 reserved_at_7d[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008373 u8 ppcnt_discard_group[0x1];
8374 u8 ppcnt_statistical_group[0x1];
8375};
8376
Huy Nguyendf5f1362018-02-28 14:16:47 -06008377struct mlx5_ifc_pcam_regs_5000_to_507f_bits {
8378 u8 port_access_reg_cap_mask_127_to_96[0x20];
8379 u8 port_access_reg_cap_mask_95_to_64[0x20];
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008380
8381 u8 port_access_reg_cap_mask_63_to_36[0x1c];
8382 u8 pplm[0x1];
8383 u8 port_access_reg_cap_mask_34_to_32[0x3];
Huy Nguyendf5f1362018-02-28 14:16:47 -06008384
8385 u8 port_access_reg_cap_mask_31_to_13[0x13];
8386 u8 pbmc[0x1];
8387 u8 pptb[0x1];
Eyal Davidovich75370eb2018-10-07 15:18:37 +03008388 u8 port_access_reg_cap_mask_10_to_09[0x2];
8389 u8 ppcnt[0x1];
8390 u8 port_access_reg_cap_mask_07_to_00[0x8];
Huy Nguyendf5f1362018-02-28 14:16:47 -06008391};
8392
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008393struct mlx5_ifc_pcam_reg_bits {
8394 u8 reserved_at_0[0x8];
8395 u8 feature_group[0x8];
8396 u8 reserved_at_10[0x8];
8397 u8 access_reg_group[0x8];
8398
8399 u8 reserved_at_20[0x20];
8400
8401 union {
Huy Nguyendf5f1362018-02-28 14:16:47 -06008402 struct mlx5_ifc_pcam_regs_5000_to_507f_bits regs_5000_to_507f;
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008403 u8 reserved_at_0[0x80];
8404 } port_access_reg_cap_mask;
8405
8406 u8 reserved_at_c0[0x80];
8407
8408 union {
8409 struct mlx5_ifc_pcam_enhanced_features_bits enhanced_features;
8410 u8 reserved_at_0[0x80];
8411 } feature_cap_mask;
8412
8413 u8 reserved_at_1c0[0xc0];
8414};
8415
8416struct mlx5_ifc_mcam_enhanced_features_bits {
Aya Levin40390492019-03-29 15:38:03 -07008417 u8 reserved_at_0[0x6e];
8418 u8 pci_status_and_power[0x1];
8419 u8 reserved_at_6f[0x5];
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008420 u8 mark_tx_action_cnp[0x1];
8421 u8 mark_tx_action_cqe[0x1];
8422 u8 dynamic_tx_overflow[0x1];
8423 u8 reserved_at_77[0x4];
Gal Pressman5405fa22017-06-15 18:29:23 +03008424 u8 pcie_outbound_stalled[0x1];
Eran Ben Elishaefae7f72017-05-12 02:47:02 +03008425 u8 tx_overflow_buffer_pkt[0x1];
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008426 u8 mtpps_enh_out_per_adj[0x1];
8427 u8 mtpps_fs[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008428 u8 pcie_performance_group[0x1];
8429};
8430
Or Gerlitz0ab87742017-06-11 15:25:38 +03008431struct mlx5_ifc_mcam_access_reg_bits {
8432 u8 reserved_at_0[0x1c];
8433 u8 mcda[0x1];
8434 u8 mcc[0x1];
8435 u8 mcqi[0x1];
8436 u8 reserved_at_1f[0x1];
8437
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008438 u8 regs_95_to_87[0x9];
8439 u8 mpegc[0x1];
8440 u8 regs_85_to_68[0x12];
Feras Daoudeff8ea82018-07-16 18:35:30 -07008441 u8 tracer_registers[0x4];
8442
Or Gerlitz0ab87742017-06-11 15:25:38 +03008443 u8 regs_63_to_32[0x20];
8444 u8 regs_31_to_0[0x20];
8445};
8446
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008447struct mlx5_ifc_mcam_reg_bits {
8448 u8 reserved_at_0[0x8];
8449 u8 feature_group[0x8];
8450 u8 reserved_at_10[0x8];
8451 u8 access_reg_group[0x8];
8452
8453 u8 reserved_at_20[0x20];
8454
8455 union {
Or Gerlitz0ab87742017-06-11 15:25:38 +03008456 struct mlx5_ifc_mcam_access_reg_bits access_regs;
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008457 u8 reserved_at_0[0x80];
8458 } mng_access_reg_cap_mask;
8459
8460 u8 reserved_at_c0[0x80];
8461
8462 union {
8463 struct mlx5_ifc_mcam_enhanced_features_bits enhanced_features;
8464 u8 reserved_at_0[0x80];
8465 } mng_feature_cap_mask;
8466
8467 u8 reserved_at_1c0[0x80];
8468};
8469
Huy Nguyenc02762e2017-07-18 16:03:17 -05008470struct mlx5_ifc_qcam_access_reg_cap_mask {
8471 u8 qcam_access_reg_cap_mask_127_to_20[0x6C];
8472 u8 qpdpm[0x1];
8473 u8 qcam_access_reg_cap_mask_18_to_4[0x0F];
8474 u8 qdpm[0x1];
8475 u8 qpts[0x1];
8476 u8 qcap[0x1];
8477 u8 qcam_access_reg_cap_mask_0[0x1];
8478};
8479
8480struct mlx5_ifc_qcam_qos_feature_cap_mask {
8481 u8 qcam_qos_feature_cap_mask_127_to_1[0x7F];
8482 u8 qpts_trust_both[0x1];
8483};
8484
8485struct mlx5_ifc_qcam_reg_bits {
8486 u8 reserved_at_0[0x8];
8487 u8 feature_group[0x8];
8488 u8 reserved_at_10[0x8];
8489 u8 access_reg_group[0x8];
8490 u8 reserved_at_20[0x20];
8491
8492 union {
8493 struct mlx5_ifc_qcam_access_reg_cap_mask reg_cap;
8494 u8 reserved_at_0[0x80];
8495 } qos_access_reg_cap_mask;
8496
8497 u8 reserved_at_c0[0x80];
8498
8499 union {
8500 struct mlx5_ifc_qcam_qos_feature_cap_mask feature_cap;
8501 u8 reserved_at_0[0x80];
8502 } qos_feature_cap_mask;
8503
8504 u8 reserved_at_1c0[0x80];
8505};
8506
Saeed Mahameede2816822015-05-28 22:28:40 +03008507struct mlx5_ifc_pcap_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008508 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008509 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008510 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008511
8512 u8 port_capability_mask[4][0x20];
8513};
8514
8515struct mlx5_ifc_paos_reg_bits {
8516 u8 swid[0x8];
8517 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008518 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008519 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008520 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008521 u8 oper_status[0x4];
8522
8523 u8 ase[0x1];
8524 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008525 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03008526 u8 e[0x2];
8527
Matan Barakb4ff3a32016-02-09 14:57:42 +02008528 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008529};
8530
8531struct mlx5_ifc_pamp_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008532 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008533 u8 opamp_group[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008534 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008535 u8 opamp_group_type[0x4];
8536
8537 u8 start_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008538 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008539 u8 num_of_indices[0xc];
8540
8541 u8 index_data[18][0x10];
8542};
8543
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008544struct mlx5_ifc_pcmr_reg_bits {
8545 u8 reserved_at_0[0x8];
8546 u8 local_port[0x8];
Eli Britstein0dcaafc2019-01-20 22:33:19 +02008547 u8 reserved_at_10[0x10];
8548 u8 entropy_force_cap[0x1];
8549 u8 entropy_calc_cap[0x1];
8550 u8 entropy_gre_calc_cap[0x1];
8551 u8 reserved_at_23[0x1b];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008552 u8 fcs_cap[0x1];
Eli Britstein0dcaafc2019-01-20 22:33:19 +02008553 u8 reserved_at_3f[0x1];
8554 u8 entropy_force[0x1];
8555 u8 entropy_calc[0x1];
8556 u8 entropy_gre_calc[0x1];
8557 u8 reserved_at_43[0x1b];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008558 u8 fcs_chk[0x1];
8559 u8 reserved_at_5f[0x1];
8560};
8561
Saeed Mahameede2816822015-05-28 22:28:40 +03008562struct mlx5_ifc_lane_2_module_mapping_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008563 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008564 u8 rx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008565 u8 reserved_at_8[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008566 u8 tx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008567 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008568 u8 module[0x8];
8569};
8570
8571struct mlx5_ifc_bufferx_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008572 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008573 u8 lossy[0x1];
8574 u8 epsb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008575 u8 reserved_at_8[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008576 u8 size[0xc];
8577
8578 u8 xoff_threshold[0x10];
8579 u8 xon_threshold[0x10];
8580};
8581
8582struct mlx5_ifc_set_node_in_bits {
8583 u8 node_description[64][0x8];
8584};
8585
8586struct mlx5_ifc_register_power_settings_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008587 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008588 u8 power_settings_level[0x8];
8589
Matan Barakb4ff3a32016-02-09 14:57:42 +02008590 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008591};
8592
8593struct mlx5_ifc_register_host_endianness_bits {
8594 u8 he[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008595 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008596
Matan Barakb4ff3a32016-02-09 14:57:42 +02008597 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008598};
8599
8600struct mlx5_ifc_umr_pointer_desc_argument_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008601 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008602
8603 u8 mkey[0x20];
8604
8605 u8 addressh_63_32[0x20];
8606
8607 u8 addressl_31_0[0x20];
8608};
8609
8610struct mlx5_ifc_ud_adrs_vector_bits {
8611 u8 dc_key[0x40];
8612
8613 u8 ext[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008614 u8 reserved_at_41[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008615 u8 destination_qp_dct[0x18];
8616
8617 u8 static_rate[0x4];
8618 u8 sl_eth_prio[0x4];
8619 u8 fl[0x1];
8620 u8 mlid[0x7];
8621 u8 rlid_udp_sport[0x10];
8622
Matan Barakb4ff3a32016-02-09 14:57:42 +02008623 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008624
8625 u8 rmac_47_16[0x20];
8626
8627 u8 rmac_15_0[0x10];
8628 u8 tclass[0x8];
8629 u8 hop_limit[0x8];
8630
Matan Barakb4ff3a32016-02-09 14:57:42 +02008631 u8 reserved_at_e0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03008632 u8 grh[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008633 u8 reserved_at_e2[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008634 u8 src_addr_index[0x8];
8635 u8 flow_label[0x14];
8636
8637 u8 rgid_rip[16][0x8];
8638};
8639
8640struct mlx5_ifc_pages_req_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008641 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008642 u8 function_id[0x10];
8643
8644 u8 num_pages[0x20];
8645
Matan Barakb4ff3a32016-02-09 14:57:42 +02008646 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008647};
8648
8649struct mlx5_ifc_eqe_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008650 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008651 u8 event_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008652 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008653 u8 event_sub_type[0x8];
8654
Matan Barakb4ff3a32016-02-09 14:57:42 +02008655 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008656
8657 union mlx5_ifc_event_auto_bits event_data;
8658
Matan Barakb4ff3a32016-02-09 14:57:42 +02008659 u8 reserved_at_1e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008660 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008661 u8 reserved_at_1f8[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008662 u8 owner[0x1];
8663};
8664
8665enum {
8666 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
8667};
8668
8669struct mlx5_ifc_cmd_queue_entry_bits {
8670 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008671 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008672
8673 u8 input_length[0x20];
8674
8675 u8 input_mailbox_pointer_63_32[0x20];
8676
8677 u8 input_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008678 u8 reserved_at_77[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03008679
8680 u8 command_input_inline_data[16][0x8];
8681
8682 u8 command_output_inline_data[16][0x8];
8683
8684 u8 output_mailbox_pointer_63_32[0x20];
8685
8686 u8 output_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008687 u8 reserved_at_1b7[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03008688
8689 u8 output_length[0x20];
8690
8691 u8 token[0x8];
8692 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008693 u8 reserved_at_1f0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008694 u8 status[0x7];
8695 u8 ownership[0x1];
8696};
8697
8698struct mlx5_ifc_cmd_out_bits {
8699 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008700 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008701
8702 u8 syndrome[0x20];
8703
8704 u8 command_output[0x20];
8705};
8706
8707struct mlx5_ifc_cmd_in_bits {
8708 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008709 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008710
Matan Barakb4ff3a32016-02-09 14:57:42 +02008711 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008712 u8 op_mod[0x10];
8713
8714 u8 command[0][0x20];
8715};
8716
8717struct mlx5_ifc_cmd_if_box_bits {
8718 u8 mailbox_data[512][0x8];
8719
Matan Barakb4ff3a32016-02-09 14:57:42 +02008720 u8 reserved_at_1000[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03008721
8722 u8 next_pointer_63_32[0x20];
8723
8724 u8 next_pointer_31_10[0x16];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008725 u8 reserved_at_11b6[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +03008726
8727 u8 block_number[0x20];
8728
Matan Barakb4ff3a32016-02-09 14:57:42 +02008729 u8 reserved_at_11e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008730 u8 token[0x8];
8731 u8 ctrl_signature[0x8];
8732 u8 signature[0x8];
8733};
8734
8735struct mlx5_ifc_mtt_bits {
8736 u8 ptag_63_32[0x20];
8737
8738 u8 ptag_31_8[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008739 u8 reserved_at_38[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008740 u8 wr_en[0x1];
8741 u8 rd_en[0x1];
8742};
8743
Tariq Toukan928cfe82016-02-22 18:17:29 +02008744struct mlx5_ifc_query_wol_rol_out_bits {
8745 u8 status[0x8];
8746 u8 reserved_at_8[0x18];
8747
8748 u8 syndrome[0x20];
8749
8750 u8 reserved_at_40[0x10];
8751 u8 rol_mode[0x8];
8752 u8 wol_mode[0x8];
8753
8754 u8 reserved_at_60[0x20];
8755};
8756
8757struct mlx5_ifc_query_wol_rol_in_bits {
8758 u8 opcode[0x10];
8759 u8 reserved_at_10[0x10];
8760
8761 u8 reserved_at_20[0x10];
8762 u8 op_mod[0x10];
8763
8764 u8 reserved_at_40[0x40];
8765};
8766
8767struct mlx5_ifc_set_wol_rol_out_bits {
8768 u8 status[0x8];
8769 u8 reserved_at_8[0x18];
8770
8771 u8 syndrome[0x20];
8772
8773 u8 reserved_at_40[0x40];
8774};
8775
8776struct mlx5_ifc_set_wol_rol_in_bits {
8777 u8 opcode[0x10];
8778 u8 reserved_at_10[0x10];
8779
8780 u8 reserved_at_20[0x10];
8781 u8 op_mod[0x10];
8782
8783 u8 rol_mode_valid[0x1];
8784 u8 wol_mode_valid[0x1];
8785 u8 reserved_at_42[0xe];
8786 u8 rol_mode[0x8];
8787 u8 wol_mode[0x8];
8788
8789 u8 reserved_at_60[0x20];
8790};
8791
Saeed Mahameede2816822015-05-28 22:28:40 +03008792enum {
8793 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
8794 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
8795 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
8796};
8797
8798enum {
8799 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
8800 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
8801 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
8802};
8803
8804enum {
8805 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
8806 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
8807 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
8808 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
8809 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
8810 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
8811 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
8812 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
8813 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
8814 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
8815 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
8816};
8817
8818struct mlx5_ifc_initial_seg_bits {
8819 u8 fw_rev_minor[0x10];
8820 u8 fw_rev_major[0x10];
8821
8822 u8 cmd_interface_rev[0x10];
8823 u8 fw_rev_subminor[0x10];
8824
Matan Barakb4ff3a32016-02-09 14:57:42 +02008825 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008826
8827 u8 cmdq_phy_addr_63_32[0x20];
8828
8829 u8 cmdq_phy_addr_31_12[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008830 u8 reserved_at_b4[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008831 u8 nic_interface[0x2];
8832 u8 log_cmdq_size[0x4];
8833 u8 log_cmdq_stride[0x4];
8834
8835 u8 command_doorbell_vector[0x20];
8836
Matan Barakb4ff3a32016-02-09 14:57:42 +02008837 u8 reserved_at_e0[0xf00];
Saeed Mahameede2816822015-05-28 22:28:40 +03008838
8839 u8 initializing[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008840 u8 reserved_at_fe1[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008841 u8 nic_interface_supported[0x3];
Bodong Wang591905b2019-02-12 22:55:35 -08008842 u8 embedded_cpu[0x1];
8843 u8 reserved_at_fe9[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03008844
8845 struct mlx5_ifc_health_buffer_bits health_buffer;
8846
8847 u8 no_dram_nic_offset[0x20];
8848
Matan Barakb4ff3a32016-02-09 14:57:42 +02008849 u8 reserved_at_1220[0x6e40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008850
Matan Barakb4ff3a32016-02-09 14:57:42 +02008851 u8 reserved_at_8060[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008852 u8 clear_int[0x1];
8853
8854 u8 health_syndrome[0x8];
8855 u8 health_counter[0x18];
8856
Matan Barakb4ff3a32016-02-09 14:57:42 +02008857 u8 reserved_at_80a0[0x17fc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008858};
8859
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008860struct mlx5_ifc_mtpps_reg_bits {
8861 u8 reserved_at_0[0xc];
8862 u8 cap_number_of_pps_pins[0x4];
8863 u8 reserved_at_10[0x4];
8864 u8 cap_max_num_of_pps_in_pins[0x4];
8865 u8 reserved_at_18[0x4];
8866 u8 cap_max_num_of_pps_out_pins[0x4];
8867
8868 u8 reserved_at_20[0x24];
8869 u8 cap_pin_3_mode[0x4];
8870 u8 reserved_at_48[0x4];
8871 u8 cap_pin_2_mode[0x4];
8872 u8 reserved_at_50[0x4];
8873 u8 cap_pin_1_mode[0x4];
8874 u8 reserved_at_58[0x4];
8875 u8 cap_pin_0_mode[0x4];
8876
8877 u8 reserved_at_60[0x4];
8878 u8 cap_pin_7_mode[0x4];
8879 u8 reserved_at_68[0x4];
8880 u8 cap_pin_6_mode[0x4];
8881 u8 reserved_at_70[0x4];
8882 u8 cap_pin_5_mode[0x4];
8883 u8 reserved_at_78[0x4];
8884 u8 cap_pin_4_mode[0x4];
8885
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008886 u8 field_select[0x20];
8887 u8 reserved_at_a0[0x60];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008888
8889 u8 enable[0x1];
8890 u8 reserved_at_101[0xb];
8891 u8 pattern[0x4];
8892 u8 reserved_at_110[0x4];
8893 u8 pin_mode[0x4];
8894 u8 pin[0x8];
8895
8896 u8 reserved_at_120[0x20];
8897
8898 u8 time_stamp[0x40];
8899
8900 u8 out_pulse_duration[0x10];
8901 u8 out_periodic_adjustment[0x10];
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008902 u8 enhanced_out_periodic_adjustment[0x20];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008903
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008904 u8 reserved_at_1c0[0x20];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008905};
8906
8907struct mlx5_ifc_mtppse_reg_bits {
8908 u8 reserved_at_0[0x18];
8909 u8 pin[0x8];
8910 u8 event_arm[0x1];
8911 u8 reserved_at_21[0x1b];
8912 u8 event_generation_mode[0x4];
8913 u8 reserved_at_40[0x40];
8914};
8915
Or Gerlitz47176282017-04-18 13:35:39 +03008916struct mlx5_ifc_mcqi_cap_bits {
8917 u8 supported_info_bitmask[0x20];
8918
8919 u8 component_size[0x20];
8920
8921 u8 max_component_size[0x20];
8922
8923 u8 log_mcda_word_size[0x4];
8924 u8 reserved_at_64[0xc];
8925 u8 mcda_max_write_size[0x10];
8926
8927 u8 rd_en[0x1];
8928 u8 reserved_at_81[0x1];
8929 u8 match_chip_id[0x1];
8930 u8 match_psid[0x1];
8931 u8 check_user_timestamp[0x1];
8932 u8 match_base_guid_mac[0x1];
8933 u8 reserved_at_86[0x1a];
8934};
8935
8936struct mlx5_ifc_mcqi_reg_bits {
8937 u8 read_pending_component[0x1];
8938 u8 reserved_at_1[0xf];
8939 u8 component_index[0x10];
8940
8941 u8 reserved_at_20[0x20];
8942
8943 u8 reserved_at_40[0x1b];
8944 u8 info_type[0x5];
8945
8946 u8 info_size[0x20];
8947
8948 u8 offset[0x20];
8949
8950 u8 reserved_at_a0[0x10];
8951 u8 data_size[0x10];
8952
8953 u8 data[0][0x20];
8954};
8955
8956struct mlx5_ifc_mcc_reg_bits {
8957 u8 reserved_at_0[0x4];
8958 u8 time_elapsed_since_last_cmd[0xc];
8959 u8 reserved_at_10[0x8];
8960 u8 instruction[0x8];
8961
8962 u8 reserved_at_20[0x10];
8963 u8 component_index[0x10];
8964
8965 u8 reserved_at_40[0x8];
8966 u8 update_handle[0x18];
8967
8968 u8 handle_owner_type[0x4];
8969 u8 handle_owner_host_id[0x4];
8970 u8 reserved_at_68[0x1];
8971 u8 control_progress[0x7];
8972 u8 error_code[0x8];
8973 u8 reserved_at_78[0x4];
8974 u8 control_state[0x4];
8975
8976 u8 component_size[0x20];
8977
8978 u8 reserved_at_a0[0x60];
8979};
8980
8981struct mlx5_ifc_mcda_reg_bits {
8982 u8 reserved_at_0[0x8];
8983 u8 update_handle[0x18];
8984
8985 u8 offset[0x20];
8986
8987 u8 reserved_at_40[0x10];
8988 u8 size[0x10];
8989
8990 u8 reserved_at_60[0x20];
8991
8992 u8 data[0][0x20];
8993};
8994
Saeed Mahameede2816822015-05-28 22:28:40 +03008995union mlx5_ifc_ports_control_registers_document_bits {
8996 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
8997 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
8998 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
8999 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
9000 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
9001 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
9002 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
9003 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
9004 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
9005 struct mlx5_ifc_pamp_reg_bits pamp_reg;
9006 struct mlx5_ifc_paos_reg_bits paos_reg;
9007 struct mlx5_ifc_pcap_reg_bits pcap_reg;
9008 struct mlx5_ifc_peir_reg_bits peir_reg;
9009 struct mlx5_ifc_pelc_reg_bits pelc_reg;
9010 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02009011 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03009012 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
9013 struct mlx5_ifc_pifr_reg_bits pifr_reg;
9014 struct mlx5_ifc_pipg_reg_bits pipg_reg;
9015 struct mlx5_ifc_plbf_reg_bits plbf_reg;
9016 struct mlx5_ifc_plib_reg_bits plib_reg;
9017 struct mlx5_ifc_plpc_reg_bits plpc_reg;
9018 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
9019 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
9020 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
9021 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
9022 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
9023 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
9024 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
9025 struct mlx5_ifc_ppad_reg_bits ppad_reg;
9026 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
Aya Levin40390492019-03-29 15:38:03 -07009027 struct mlx5_ifc_mpein_reg_bits mpein_reg;
Gal Pressman8ed1a632016-11-17 13:46:01 +02009028 struct mlx5_ifc_mpcnt_reg_bits mpcnt_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03009029 struct mlx5_ifc_pplm_reg_bits pplm_reg;
9030 struct mlx5_ifc_pplr_reg_bits pplr_reg;
9031 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
9032 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
9033 struct mlx5_ifc_pspa_reg_bits pspa_reg;
9034 struct mlx5_ifc_ptas_reg_bits ptas_reg;
9035 struct mlx5_ifc_ptys_reg_bits ptys_reg;
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009036 struct mlx5_ifc_mlcr_reg_bits mlcr_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03009037 struct mlx5_ifc_pude_reg_bits pude_reg;
9038 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
9039 struct mlx5_ifc_slrg_reg_bits slrg_reg;
9040 struct mlx5_ifc_sltp_reg_bits sltp_reg;
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03009041 struct mlx5_ifc_mtpps_reg_bits mtpps_reg;
9042 struct mlx5_ifc_mtppse_reg_bits mtppse_reg;
Ilan Tayaria9956d32017-04-18 13:10:41 +03009043 struct mlx5_ifc_fpga_access_reg_bits fpga_access_reg;
Ilan Tayarie29341f2017-03-13 20:05:45 +02009044 struct mlx5_ifc_fpga_ctrl_bits fpga_ctrl_bits;
9045 struct mlx5_ifc_fpga_cap_bits fpga_cap_bits;
Or Gerlitz47176282017-04-18 13:35:39 +03009046 struct mlx5_ifc_mcqi_reg_bits mcqi_reg;
9047 struct mlx5_ifc_mcc_reg_bits mcc_reg;
9048 struct mlx5_ifc_mcda_reg_bits mcda_reg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02009049 u8 reserved_at_0[0x60e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03009050};
9051
9052union mlx5_ifc_debug_enhancements_document_bits {
9053 struct mlx5_ifc_health_buffer_bits health_buffer;
Matan Barakb4ff3a32016-02-09 14:57:42 +02009054 u8 reserved_at_0[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +03009055};
9056
9057union mlx5_ifc_uplink_pci_interface_document_bits {
9058 struct mlx5_ifc_initial_seg_bits initial_seg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02009059 u8 reserved_at_0[0x20060];
Eli Cohenb7755162014-10-02 12:19:44 +03009060};
9061
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009062struct mlx5_ifc_set_flow_table_root_out_bits {
9063 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009064 u8 reserved_at_8[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009065
9066 u8 syndrome[0x20];
9067
Matan Barakb4ff3a32016-02-09 14:57:42 +02009068 u8 reserved_at_40[0x40];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009069};
9070
9071struct mlx5_ifc_set_flow_table_root_in_bits {
9072 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009073 u8 reserved_at_10[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009074
Matan Barakb4ff3a32016-02-09 14:57:42 +02009075 u8 reserved_at_20[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009076 u8 op_mod[0x10];
9077
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009078 u8 other_vport[0x1];
9079 u8 reserved_at_41[0xf];
9080 u8 vport_number[0x10];
9081
9082 u8 reserved_at_60[0x20];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009083
9084 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009085 u8 reserved_at_88[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009086
Matan Barakb4ff3a32016-02-09 14:57:42 +02009087 u8 reserved_at_a0[0x8];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009088 u8 table_id[0x18];
9089
Erez Shitrit500a3d02017-04-13 06:36:51 +03009090 u8 reserved_at_c0[0x8];
9091 u8 underlay_qpn[0x18];
9092 u8 reserved_at_e0[0x120];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009093};
9094
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009095enum {
Aviv Heller84df61e2016-05-10 13:47:50 +03009096 MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = (1UL << 0),
9097 MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID = (1UL << 15),
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009098};
9099
9100struct mlx5_ifc_modify_flow_table_out_bits {
9101 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009102 u8 reserved_at_8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009103
9104 u8 syndrome[0x20];
9105
Matan Barakb4ff3a32016-02-09 14:57:42 +02009106 u8 reserved_at_40[0x40];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009107};
9108
9109struct mlx5_ifc_modify_flow_table_in_bits {
9110 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009111 u8 reserved_at_10[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009112
Matan Barakb4ff3a32016-02-09 14:57:42 +02009113 u8 reserved_at_20[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009114 u8 op_mod[0x10];
9115
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009116 u8 other_vport[0x1];
9117 u8 reserved_at_41[0xf];
9118 u8 vport_number[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009119
Matan Barakb4ff3a32016-02-09 14:57:42 +02009120 u8 reserved_at_60[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009121 u8 modify_field_select[0x10];
9122
9123 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009124 u8 reserved_at_88[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009125
Matan Barakb4ff3a32016-02-09 14:57:42 +02009126 u8 reserved_at_a0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009127 u8 table_id[0x18];
9128
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02009129 struct mlx5_ifc_flow_table_context_bits flow_table_context;
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009130};
9131
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02009132struct mlx5_ifc_ets_tcn_config_reg_bits {
9133 u8 g[0x1];
9134 u8 b[0x1];
9135 u8 r[0x1];
9136 u8 reserved_at_3[0x9];
9137 u8 group[0x4];
9138 u8 reserved_at_10[0x9];
9139 u8 bw_allocation[0x7];
9140
9141 u8 reserved_at_20[0xc];
9142 u8 max_bw_units[0x4];
9143 u8 reserved_at_30[0x8];
9144 u8 max_bw_value[0x8];
9145};
9146
9147struct mlx5_ifc_ets_global_config_reg_bits {
9148 u8 reserved_at_0[0x2];
9149 u8 r[0x1];
9150 u8 reserved_at_3[0x1d];
9151
9152 u8 reserved_at_20[0xc];
9153 u8 max_bw_units[0x4];
9154 u8 reserved_at_30[0x8];
9155 u8 max_bw_value[0x8];
9156};
9157
9158struct mlx5_ifc_qetc_reg_bits {
9159 u8 reserved_at_0[0x8];
9160 u8 port_number[0x8];
9161 u8 reserved_at_10[0x30];
9162
9163 struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8];
9164 struct mlx5_ifc_ets_global_config_reg_bits global_configuration;
9165};
9166
Huy Nguyen415a64a2017-07-18 16:08:46 -05009167struct mlx5_ifc_qpdpm_dscp_reg_bits {
9168 u8 e[0x1];
9169 u8 reserved_at_01[0x0b];
9170 u8 prio[0x04];
9171};
9172
9173struct mlx5_ifc_qpdpm_reg_bits {
9174 u8 reserved_at_0[0x8];
9175 u8 local_port[0x8];
9176 u8 reserved_at_10[0x10];
9177 struct mlx5_ifc_qpdpm_dscp_reg_bits dscp[64];
9178};
9179
9180struct mlx5_ifc_qpts_reg_bits {
9181 u8 reserved_at_0[0x8];
9182 u8 local_port[0x8];
9183 u8 reserved_at_10[0x2d];
9184 u8 trust_state[0x3];
9185};
9186
Huy Nguyen50b4a3c2018-03-02 15:47:01 -06009187struct mlx5_ifc_pptb_reg_bits {
9188 u8 reserved_at_0[0x2];
9189 u8 mm[0x2];
9190 u8 reserved_at_4[0x4];
9191 u8 local_port[0x8];
9192 u8 reserved_at_10[0x6];
9193 u8 cm[0x1];
9194 u8 um[0x1];
9195 u8 pm[0x8];
9196
9197 u8 prio_x_buff[0x20];
9198
9199 u8 pm_msb[0x8];
9200 u8 reserved_at_48[0x10];
9201 u8 ctrl_buff[0x4];
9202 u8 untagged_buff[0x4];
9203};
9204
9205struct mlx5_ifc_pbmc_reg_bits {
9206 u8 reserved_at_0[0x8];
9207 u8 local_port[0x8];
9208 u8 reserved_at_10[0x10];
9209
9210 u8 xoff_timer_value[0x10];
9211 u8 xoff_refresh[0x10];
9212
9213 u8 reserved_at_40[0x9];
9214 u8 fullness_threshold[0x7];
9215 u8 port_buffer_size[0x10];
9216
9217 struct mlx5_ifc_bufferx_reg_bits buffer[10];
9218
9219 u8 reserved_at_2e0[0x40];
9220};
9221
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02009222struct mlx5_ifc_qtct_reg_bits {
9223 u8 reserved_at_0[0x8];
9224 u8 port_number[0x8];
9225 u8 reserved_at_10[0xd];
9226 u8 prio[0x3];
9227
9228 u8 reserved_at_20[0x1d];
9229 u8 tclass[0x3];
9230};
9231
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009232struct mlx5_ifc_mcia_reg_bits {
9233 u8 l[0x1];
9234 u8 reserved_at_1[0x7];
9235 u8 module[0x8];
9236 u8 reserved_at_10[0x8];
9237 u8 status[0x8];
9238
9239 u8 i2c_device_address[0x8];
9240 u8 page_number[0x8];
9241 u8 device_address[0x10];
9242
9243 u8 reserved_at_40[0x10];
9244 u8 size[0x10];
9245
9246 u8 reserved_at_60[0x20];
9247
9248 u8 dword_0[0x20];
9249 u8 dword_1[0x20];
9250 u8 dword_2[0x20];
9251 u8 dword_3[0x20];
9252 u8 dword_4[0x20];
9253 u8 dword_5[0x20];
9254 u8 dword_6[0x20];
9255 u8 dword_7[0x20];
9256 u8 dword_8[0x20];
9257 u8 dword_9[0x20];
9258 u8 dword_10[0x20];
9259 u8 dword_11[0x20];
9260};
9261
Saeed Mahameed74862162016-06-09 15:11:34 +03009262struct mlx5_ifc_dcbx_param_bits {
9263 u8 dcbx_cee_cap[0x1];
9264 u8 dcbx_ieee_cap[0x1];
9265 u8 dcbx_standby_cap[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +02009266 u8 reserved_at_3[0x5];
Saeed Mahameed74862162016-06-09 15:11:34 +03009267 u8 port_number[0x8];
9268 u8 reserved_at_10[0xa];
9269 u8 max_application_table_size[6];
9270 u8 reserved_at_20[0x15];
9271 u8 version_oper[0x3];
9272 u8 reserved_at_38[5];
9273 u8 version_admin[0x3];
9274 u8 willing_admin[0x1];
9275 u8 reserved_at_41[0x3];
9276 u8 pfc_cap_oper[0x4];
9277 u8 reserved_at_48[0x4];
9278 u8 pfc_cap_admin[0x4];
9279 u8 reserved_at_50[0x4];
9280 u8 num_of_tc_oper[0x4];
9281 u8 reserved_at_58[0x4];
9282 u8 num_of_tc_admin[0x4];
9283 u8 remote_willing[0x1];
9284 u8 reserved_at_61[3];
9285 u8 remote_pfc_cap[4];
9286 u8 reserved_at_68[0x14];
9287 u8 remote_num_of_tc[0x4];
9288 u8 reserved_at_80[0x18];
9289 u8 error[0x8];
9290 u8 reserved_at_a0[0x160];
9291};
Aviv Heller84df61e2016-05-10 13:47:50 +03009292
9293struct mlx5_ifc_lagc_bits {
9294 u8 reserved_at_0[0x1d];
9295 u8 lag_state[0x3];
9296
9297 u8 reserved_at_20[0x14];
9298 u8 tx_remap_affinity_2[0x4];
9299 u8 reserved_at_38[0x4];
9300 u8 tx_remap_affinity_1[0x4];
9301};
9302
9303struct mlx5_ifc_create_lag_out_bits {
9304 u8 status[0x8];
9305 u8 reserved_at_8[0x18];
9306
9307 u8 syndrome[0x20];
9308
9309 u8 reserved_at_40[0x40];
9310};
9311
9312struct mlx5_ifc_create_lag_in_bits {
9313 u8 opcode[0x10];
9314 u8 reserved_at_10[0x10];
9315
9316 u8 reserved_at_20[0x10];
9317 u8 op_mod[0x10];
9318
9319 struct mlx5_ifc_lagc_bits ctx;
9320};
9321
9322struct mlx5_ifc_modify_lag_out_bits {
9323 u8 status[0x8];
9324 u8 reserved_at_8[0x18];
9325
9326 u8 syndrome[0x20];
9327
9328 u8 reserved_at_40[0x40];
9329};
9330
9331struct mlx5_ifc_modify_lag_in_bits {
9332 u8 opcode[0x10];
9333 u8 reserved_at_10[0x10];
9334
9335 u8 reserved_at_20[0x10];
9336 u8 op_mod[0x10];
9337
9338 u8 reserved_at_40[0x20];
9339 u8 field_select[0x20];
9340
9341 struct mlx5_ifc_lagc_bits ctx;
9342};
9343
9344struct mlx5_ifc_query_lag_out_bits {
9345 u8 status[0x8];
9346 u8 reserved_at_8[0x18];
9347
9348 u8 syndrome[0x20];
9349
9350 u8 reserved_at_40[0x40];
9351
9352 struct mlx5_ifc_lagc_bits ctx;
9353};
9354
9355struct mlx5_ifc_query_lag_in_bits {
9356 u8 opcode[0x10];
9357 u8 reserved_at_10[0x10];
9358
9359 u8 reserved_at_20[0x10];
9360 u8 op_mod[0x10];
9361
9362 u8 reserved_at_40[0x40];
9363};
9364
9365struct mlx5_ifc_destroy_lag_out_bits {
9366 u8 status[0x8];
9367 u8 reserved_at_8[0x18];
9368
9369 u8 syndrome[0x20];
9370
9371 u8 reserved_at_40[0x40];
9372};
9373
9374struct mlx5_ifc_destroy_lag_in_bits {
9375 u8 opcode[0x10];
9376 u8 reserved_at_10[0x10];
9377
9378 u8 reserved_at_20[0x10];
9379 u8 op_mod[0x10];
9380
9381 u8 reserved_at_40[0x40];
9382};
9383
9384struct mlx5_ifc_create_vport_lag_out_bits {
9385 u8 status[0x8];
9386 u8 reserved_at_8[0x18];
9387
9388 u8 syndrome[0x20];
9389
9390 u8 reserved_at_40[0x40];
9391};
9392
9393struct mlx5_ifc_create_vport_lag_in_bits {
9394 u8 opcode[0x10];
9395 u8 reserved_at_10[0x10];
9396
9397 u8 reserved_at_20[0x10];
9398 u8 op_mod[0x10];
9399
9400 u8 reserved_at_40[0x40];
9401};
9402
9403struct mlx5_ifc_destroy_vport_lag_out_bits {
9404 u8 status[0x8];
9405 u8 reserved_at_8[0x18];
9406
9407 u8 syndrome[0x20];
9408
9409 u8 reserved_at_40[0x40];
9410};
9411
9412struct mlx5_ifc_destroy_vport_lag_in_bits {
9413 u8 opcode[0x10];
9414 u8 reserved_at_10[0x10];
9415
9416 u8 reserved_at_20[0x10];
9417 u8 op_mod[0x10];
9418
9419 u8 reserved_at_40[0x40];
9420};
9421
Ariel Levkovich24da0012018-04-05 18:53:27 +03009422struct mlx5_ifc_alloc_memic_in_bits {
9423 u8 opcode[0x10];
9424 u8 reserved_at_10[0x10];
9425
9426 u8 reserved_at_20[0x10];
9427 u8 op_mod[0x10];
9428
9429 u8 reserved_at_30[0x20];
9430
9431 u8 reserved_at_40[0x18];
9432 u8 log_memic_addr_alignment[0x8];
9433
9434 u8 range_start_addr[0x40];
9435
9436 u8 range_size[0x20];
9437
9438 u8 memic_size[0x20];
9439};
9440
9441struct mlx5_ifc_alloc_memic_out_bits {
9442 u8 status[0x8];
9443 u8 reserved_at_8[0x18];
9444
9445 u8 syndrome[0x20];
9446
9447 u8 memic_start_addr[0x40];
9448};
9449
9450struct mlx5_ifc_dealloc_memic_in_bits {
9451 u8 opcode[0x10];
9452 u8 reserved_at_10[0x10];
9453
9454 u8 reserved_at_20[0x10];
9455 u8 op_mod[0x10];
9456
9457 u8 reserved_at_40[0x40];
9458
9459 u8 memic_start_addr[0x40];
9460
9461 u8 memic_size[0x20];
9462
9463 u8 reserved_at_e0[0x20];
9464};
9465
9466struct mlx5_ifc_dealloc_memic_out_bits {
9467 u8 status[0x8];
9468 u8 reserved_at_8[0x18];
9469
9470 u8 syndrome[0x20];
9471
9472 u8 reserved_at_40[0x40];
9473};
9474
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009475struct mlx5_ifc_general_obj_in_cmd_hdr_bits {
9476 u8 opcode[0x10];
9477 u8 uid[0x10];
9478
9479 u8 reserved_at_20[0x10];
9480 u8 obj_type[0x10];
9481
9482 u8 obj_id[0x20];
9483
9484 u8 reserved_at_60[0x20];
9485};
9486
9487struct mlx5_ifc_general_obj_out_cmd_hdr_bits {
9488 u8 status[0x8];
9489 u8 reserved_at_8[0x18];
9490
9491 u8 syndrome[0x20];
9492
9493 u8 obj_id[0x20];
9494
9495 u8 reserved_at_60[0x20];
9496};
9497
9498struct mlx5_ifc_umem_bits {
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009499 u8 reserved_at_0[0x80];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009500
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009501 u8 reserved_at_80[0x1b];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009502 u8 log_page_size[0x5];
9503
9504 u8 page_offset[0x20];
9505
9506 u8 num_of_mtt[0x40];
9507
9508 struct mlx5_ifc_mtt_bits mtt[0];
9509};
9510
9511struct mlx5_ifc_uctx_bits {
Yishai Hadas9d43faa2018-11-26 08:28:32 +02009512 u8 cap[0x20];
9513
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009514 u8 reserved_at_20[0x160];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009515};
9516
Ariel Levkovich9fba2b92019-03-31 19:44:43 +03009517struct mlx5_ifc_sw_icm_bits {
9518 u8 modify_field_select[0x40];
9519
9520 u8 reserved_at_40[0x18];
9521 u8 log_sw_icm_size[0x8];
9522
9523 u8 reserved_at_60[0x20];
9524
9525 u8 sw_icm_start_addr[0x40];
9526
9527 u8 reserved_at_c0[0x140];
9528};
9529
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009530struct mlx5_ifc_create_umem_in_bits {
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009531 u8 opcode[0x10];
9532 u8 uid[0x10];
9533
9534 u8 reserved_at_20[0x10];
9535 u8 op_mod[0x10];
9536
9537 u8 reserved_at_40[0x40];
9538
9539 struct mlx5_ifc_umem_bits umem;
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009540};
9541
9542struct mlx5_ifc_create_uctx_in_bits {
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009543 u8 opcode[0x10];
9544 u8 reserved_at_10[0x10];
9545
9546 u8 reserved_at_20[0x10];
9547 u8 op_mod[0x10];
9548
9549 u8 reserved_at_40[0x40];
9550
9551 struct mlx5_ifc_uctx_bits uctx;
9552};
9553
9554struct mlx5_ifc_destroy_uctx_in_bits {
9555 u8 opcode[0x10];
9556 u8 reserved_at_10[0x10];
9557
9558 u8 reserved_at_20[0x10];
9559 u8 op_mod[0x10];
9560
9561 u8 reserved_at_40[0x10];
9562 u8 uid[0x10];
9563
9564 u8 reserved_at_60[0x20];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009565};
9566
Ariel Levkovich9fba2b92019-03-31 19:44:43 +03009567struct mlx5_ifc_create_sw_icm_in_bits {
9568 struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
9569 struct mlx5_ifc_sw_icm_bits sw_icm;
9570};
9571
Feras Daoudeff8ea82018-07-16 18:35:30 -07009572struct mlx5_ifc_mtrc_string_db_param_bits {
9573 u8 string_db_base_address[0x20];
9574
9575 u8 reserved_at_20[0x8];
9576 u8 string_db_size[0x18];
9577};
9578
9579struct mlx5_ifc_mtrc_cap_bits {
9580 u8 trace_owner[0x1];
9581 u8 trace_to_memory[0x1];
9582 u8 reserved_at_2[0x4];
9583 u8 trc_ver[0x2];
9584 u8 reserved_at_8[0x14];
9585 u8 num_string_db[0x4];
9586
9587 u8 first_string_trace[0x8];
9588 u8 num_string_trace[0x8];
9589 u8 reserved_at_30[0x28];
9590
9591 u8 log_max_trace_buffer_size[0x8];
9592
9593 u8 reserved_at_60[0x20];
9594
9595 struct mlx5_ifc_mtrc_string_db_param_bits string_db_param[8];
9596
9597 u8 reserved_at_280[0x180];
9598};
9599
9600struct mlx5_ifc_mtrc_conf_bits {
9601 u8 reserved_at_0[0x1c];
9602 u8 trace_mode[0x4];
9603 u8 reserved_at_20[0x18];
9604 u8 log_trace_buffer_size[0x8];
9605 u8 trace_mkey[0x20];
9606 u8 reserved_at_60[0x3a0];
9607};
9608
9609struct mlx5_ifc_mtrc_stdb_bits {
9610 u8 string_db_index[0x4];
9611 u8 reserved_at_4[0x4];
9612 u8 read_size[0x18];
9613 u8 start_offset[0x20];
9614 u8 string_db_data[0];
9615};
9616
9617struct mlx5_ifc_mtrc_ctrl_bits {
9618 u8 trace_status[0x2];
9619 u8 reserved_at_2[0x2];
9620 u8 arm_event[0x1];
9621 u8 reserved_at_5[0xb];
9622 u8 modify_field_select[0x10];
9623 u8 reserved_at_20[0x2b];
9624 u8 current_timestamp52_32[0x15];
9625 u8 current_timestamp31_0[0x20];
9626 u8 reserved_at_80[0x180];
9627};
9628
Bodong Wangc3a4e9f2019-02-12 22:55:37 -08009629struct mlx5_ifc_host_params_context_bits {
9630 u8 host_number[0x8];
9631 u8 reserved_at_8[0x8];
9632 u8 host_num_of_vfs[0x10];
9633
9634 u8 reserved_at_20[0x10];
9635 u8 host_pci_bus[0x10];
9636
9637 u8 reserved_at_40[0x10];
9638 u8 host_pci_device[0x10];
9639
9640 u8 reserved_at_60[0x10];
9641 u8 host_pci_function[0x10];
9642
9643 u8 reserved_at_80[0x180];
9644};
9645
9646struct mlx5_ifc_query_host_params_in_bits {
9647 u8 opcode[0x10];
9648 u8 reserved_at_10[0x10];
9649
9650 u8 reserved_at_20[0x10];
9651 u8 op_mod[0x10];
9652
9653 u8 reserved_at_40[0x40];
9654};
9655
9656struct mlx5_ifc_query_host_params_out_bits {
9657 u8 status[0x8];
9658 u8 reserved_at_8[0x18];
9659
9660 u8 syndrome[0x20];
9661
9662 u8 reserved_at_40[0x40];
9663
9664 struct mlx5_ifc_host_params_context_bits host_params_context;
9665
9666 u8 reserved_at_280[0x180];
9667};
9668
Eli Cohend29b7962014-10-02 12:19:43 +03009669#endif /* MLX5_IFC_H */