blob: eeedf3f53ed3cdfa06852c0ca4ca48416b978d1e [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];
Eli Britstein316793f2019-04-29 18:14:01 +0000954 u8 reserved_at_90[0x8];
955 u8 prio_tag_required[0x1];
956 u8 reserved_at_99[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300957 u8 log_max_qp[0x5];
958
Matan Barakb4ff3a32016-02-09 14:57:42 +0200959 u8 reserved_at_a0[0xb];
Saeed Mahameede2816822015-05-28 22:28:40 +0300960 u8 log_max_srq[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200961 u8 reserved_at_b0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300962
Matan Barakb4ff3a32016-02-09 14:57:42 +0200963 u8 reserved_at_c0[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300964 u8 log_max_cq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200965 u8 reserved_at_d0[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300966 u8 log_max_cq[0x5];
967
968 u8 log_max_eq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200969 u8 reserved_at_e8[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300970 u8 log_max_mkey[0x6];
Leon Romanovskyb183ee22018-06-19 08:47:23 +0300971 u8 reserved_at_f0[0x8];
972 u8 dump_fill_mkey[0x1];
Feras Daoudfcd29ad2018-08-09 09:55:21 +0300973 u8 reserved_at_f9[0x2];
974 u8 fast_teardown[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300975 u8 log_max_eq[0x4];
976
977 u8 max_indirection[0x8];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +0200978 u8 fixed_buffer_size[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300979 u8 log_max_mrw_sz[0x7];
Majd Dibbiny8812c242017-02-09 14:20:12 +0200980 u8 force_teardown[0x1];
981 u8 reserved_at_111[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300982 u8 log_max_bsf_list_size[0x6];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +0200983 u8 umr_extended_translation_offset[0x1];
984 u8 null_mkey[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300985 u8 log_max_klm_list_size[0x6];
986
Matan Barakb4ff3a32016-02-09 14:57:42 +0200987 u8 reserved_at_120[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300988 u8 log_max_ra_req_dc[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200989 u8 reserved_at_130[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300990 u8 log_max_ra_res_dc[0x6];
991
Matan Barakb4ff3a32016-02-09 14:57:42 +0200992 u8 reserved_at_140[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300993 u8 log_max_ra_req_qp[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200994 u8 reserved_at_150[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300995 u8 log_max_ra_res_qp[0x6];
996
Daniel Jurgensf32f5bd2015-11-19 17:12:26 +0200997 u8 end_pad[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300998 u8 cc_query_allowed[0x1];
999 u8 cc_modify_allowed[0x1];
Daniel Jurgensf32f5bd2015-11-19 17:12:26 +02001000 u8 start_pad[0x1];
1001 u8 cache_line_128byte[0x1];
Huy Nguyenc02762e2017-07-18 16:03:17 -05001002 u8 reserved_at_165[0xa];
1003 u8 qcam_reg[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001004 u8 gid_table_size[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001005
Saeed Mahameede2816822015-05-28 22:28:40 +03001006 u8 out_of_seq_cnt[0x1];
1007 u8 vport_counters[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03001008 u8 retransmission_q_counters[0x1];
Inbar Karmy2fcb12d2017-08-17 16:39:47 +03001009 u8 debug[0x1];
Alex Vesker83b502a2016-08-04 17:32:02 +03001010 u8 modify_rq_counter_set_id[0x1];
Maor Gottliebc1e0bfc2017-05-30 10:29:11 +03001011 u8 rq_delay_drop[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001012 u8 max_qp_cnt[0xa];
1013 u8 pkey_table_size[0x10];
1014
Saeed Mahameede2816822015-05-28 22:28:40 +03001015 u8 vport_group_manager[0x1];
1016 u8 vhca_group_manager[0x1];
1017 u8 ib_virt[0x1];
1018 u8 eth_virt[0x1];
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +02001019 u8 vnic_env_queue_counters[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001020 u8 ets[0x1];
1021 u8 nic_flow_table[0x1];
Or Gerlitz0efc8562018-05-31 11:16:18 +03001022 u8 eswitch_manager[0x1];
Ariel Levkoviche72bd812018-04-05 18:53:26 +03001023 u8 device_memory[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02001024 u8 mcam_reg[0x1];
1025 u8 pcam_reg[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001026 u8 local_ca_ack_delay[0x5];
Huy Nguyen4ce3bf22016-11-17 13:45:56 +02001027 u8 port_module_event[0x1];
Parav Pandit58dcb602017-06-19 07:19:37 +03001028 u8 enhanced_error_q_counters[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001029 u8 ports_check[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +02001030 u8 reserved_at_1b3[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001031 u8 disable_link_up[0x1];
1032 u8 beacon_led[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001033 u8 port_type[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +03001034 u8 num_ports[0x8];
1035
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03001036 u8 reserved_at_1c0[0x1];
1037 u8 pps[0x1];
1038 u8 pps_modify[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001039 u8 log_max_msg[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001040 u8 reserved_at_1c8[0x4];
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02001041 u8 max_tc[0x4];
Ilan Tayari1865ea9a2018-05-30 10:59:49 -07001042 u8 temp_warn_event[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03001043 u8 dcbx[0x1];
Maor Gottlieb246ac982017-05-30 10:29:12 +03001044 u8 general_notification_event[0x1];
1045 u8 reserved_at_1d3[0x2];
Ilan Tayarie29341f2017-03-13 20:05:45 +02001046 u8 fpga[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +02001047 u8 rol_s[0x1];
1048 u8 rol_g[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001049 u8 reserved_at_1d8[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +02001050 u8 wol_s[0x1];
1051 u8 wol_g[0x1];
1052 u8 wol_a[0x1];
1053 u8 wol_b[0x1];
1054 u8 wol_m[0x1];
1055 u8 wol_u[0x1];
1056 u8 wol_p[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001057
1058 u8 stat_rate_support[0x10];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001059 u8 reserved_at_1f0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001060 u8 cqe_version[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +03001061
Saeed Mahameede2816822015-05-28 22:28:40 +03001062 u8 compact_address_vector[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001063 u8 striding_rq[0x1];
Erez Shitrit500a3d02017-04-13 06:36:51 +03001064 u8 reserved_at_202[0x1];
1065 u8 ipoib_enhanced_offloads[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02001066 u8 ipoib_basic_offloads[0x1];
Majd Dibbinyc8d75a92018-03-22 15:34:04 +02001067 u8 reserved_at_205[0x1];
1068 u8 repeated_block_disabled[0x1];
1069 u8 umr_modify_entity_size_disabled[0x1];
1070 u8 umr_modify_atomic_disabled[0x1];
1071 u8 umr_indirect_mkey_disabled[0x1];
Max Gurtovoy1410a902017-05-28 10:53:10 +03001072 u8 umr_fence[0x2];
Yonatan Cohen94a04d12018-10-09 12:05:12 +03001073 u8 dc_req_scat_data_cqe[0x1];
1074 u8 reserved_at_20d[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001075 u8 drain_sigerr[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001076 u8 cmdif_checksum[0x2];
1077 u8 sigerr_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001078 u8 reserved_at_213[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001079 u8 wq_signature[0x1];
1080 u8 sctr_data_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001081 u8 reserved_at_216[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001082 u8 sho[0x1];
1083 u8 tph[0x1];
1084 u8 rf[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001085 u8 dct[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03001086 u8 qos[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001087 u8 eth_net_offloads[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001088 u8 roce[0x1];
1089 u8 atomic[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001090 u8 reserved_at_21f[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001091
1092 u8 cq_oi[0x1];
1093 u8 cq_resize[0x1];
1094 u8 cq_moderation[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001095 u8 reserved_at_223[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001096 u8 cq_eq_remap[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001097 u8 pg[0x1];
1098 u8 block_lb_mc[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001099 u8 reserved_at_229[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001100 u8 scqe_break_moderation[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001101 u8 cq_period_start_from_cqe[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001102 u8 cd[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001103 u8 reserved_at_22d[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001104 u8 apm[0x1];
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02001105 u8 vector_calc[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001106 u8 umr_ptr_rlky[0x1];
Matan Barakd2370e02016-02-29 18:05:30 +02001107 u8 imaicl[0x1];
Danit Goldberg3fd3c802018-11-30 13:22:04 +02001108 u8 qp_packet_based[0x1];
1109 u8 reserved_at_233[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001110 u8 qkv[0x1];
1111 u8 pkv[0x1];
Haggai Eranb11a4f92016-02-29 15:45:03 +02001112 u8 set_deth_sqpn[0x1];
1113 u8 reserved_at_239[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001114 u8 xrc[0x1];
1115 u8 ud[0x1];
1116 u8 uc[0x1];
1117 u8 rc[0x1];
1118
Eli Cohena6d51b62017-01-03 23:55:23 +02001119 u8 uar_4k[0x1];
1120 u8 reserved_at_241[0x9];
Eli Cohenb7755162014-10-02 12:19:44 +03001121 u8 uar_sz[0x6];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001122 u8 reserved_at_250[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001123 u8 log_pg_sz[0x8];
1124
1125 u8 bf[0x1];
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +02001126 u8 driver_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001127 u8 pad_tx_eth_packet[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001128 u8 reserved_at_263[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001129 u8 log_bf_reg_size[0x5];
Aviv Heller84df61e2016-05-10 13:47:50 +03001130
1131 u8 reserved_at_270[0xb];
1132 u8 lag_master[0x1];
1133 u8 num_lag_ports[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +03001134
Tariq Toukane1c9c622016-04-11 23:10:21 +03001135 u8 reserved_at_280[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001136 u8 max_wqe_sz_sq[0x10];
1137
Tariq Toukane1c9c622016-04-11 23:10:21 +03001138 u8 reserved_at_2a0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001139 u8 max_wqe_sz_rq[0x10];
1140
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001141 u8 max_flow_counter_31_16[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001142 u8 max_wqe_sz_sq_dc[0x10];
1143
Tariq Toukane1c9c622016-04-11 23:10:21 +03001144 u8 reserved_at_2e0[0x7];
Eli Cohenb7755162014-10-02 12:19:44 +03001145 u8 max_qp_mcg[0x19];
1146
Tariq Toukane1c9c622016-04-11 23:10:21 +03001147 u8 reserved_at_300[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03001148 u8 log_max_mcg[0x8];
1149
Tariq Toukane1c9c622016-04-11 23:10:21 +03001150 u8 reserved_at_320[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001151 u8 log_max_transport_domain[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001152 u8 reserved_at_328[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001153 u8 log_max_pd[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001154 u8 reserved_at_330[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +03001155 u8 log_max_xrcd[0x5];
1156
Moshe Shemesh5c298142017-12-26 16:46:29 +02001157 u8 nic_receive_steering_discard[0x1];
Moshe Shemeshaaabd072018-01-14 00:56:25 +02001158 u8 receive_discard_vport_down[0x1];
1159 u8 transmit_discard_vport_down[0x1];
1160 u8 reserved_at_343[0x5];
Amir Vadaia351a1b02016-07-14 10:32:38 +03001161 u8 log_max_flow_counter_bulk[0x8];
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001162 u8 max_flow_counter_15_0[0x10];
Amir Vadaia351a1b02016-07-14 10:32:38 +03001163
Eli Cohenb7755162014-10-02 12:19:44 +03001164
Tariq Toukane1c9c622016-04-11 23:10:21 +03001165 u8 reserved_at_360[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001166 u8 log_max_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001167 u8 reserved_at_368[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001168 u8 log_max_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001169 u8 reserved_at_370[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001170 u8 log_max_tir[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001171 u8 reserved_at_378[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001172 u8 log_max_tis[0x5];
1173
Saeed Mahameede2816822015-05-28 22:28:40 +03001174 u8 basic_cyclic_rcv_wqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001175 u8 reserved_at_381[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001176 u8 log_max_rmp[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001177 u8 reserved_at_388[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001178 u8 log_max_rqt[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001179 u8 reserved_at_390[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001180 u8 log_max_rqt_size[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001181 u8 reserved_at_398[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +03001182 u8 log_max_tis_per_sq[0x5];
1183
Tariq Toukan619a8f2a2018-02-07 14:41:25 +02001184 u8 ext_stride_num_range[0x1];
1185 u8 reserved_at_3a1[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001186 u8 log_max_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001187 u8 reserved_at_3a8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001188 u8 log_min_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001189 u8 reserved_at_3b0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001190 u8 log_max_stride_sz_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001191 u8 reserved_at_3b8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001192 u8 log_min_stride_sz_sq[0x5];
Eli Cohenb7755162014-10-02 12:19:44 +03001193
Or Gerlitz40817cd2017-06-25 12:38:45 +03001194 u8 hairpin[0x1];
1195 u8 reserved_at_3c1[0x2];
1196 u8 log_max_hairpin_queues[0x5];
1197 u8 reserved_at_3c8[0x3];
1198 u8 log_max_hairpin_wq_data_sz[0x5];
Or Gerlitz4d533e02018-01-04 12:26:21 +02001199 u8 reserved_at_3d0[0x3];
1200 u8 log_max_hairpin_num_packets[0x5];
1201 u8 reserved_at_3d8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001202 u8 log_max_wq_sz[0x5];
1203
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001204 u8 nic_vport_change_event[0x1];
Eran Ben Elisha8978cc92018-01-09 11:41:10 +02001205 u8 disable_local_lb_uc[0x1];
1206 u8 disable_local_lb_mc[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001207 u8 log_min_hairpin_wq_data_sz[0x5];
1208 u8 reserved_at_3e8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001209 u8 log_max_vlan_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001210 u8 reserved_at_3f0[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001211 u8 log_max_current_mc_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001212 u8 reserved_at_3f8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001213 u8 log_max_current_uc_list[0x5];
1214
Yishai Hadas38b7ca92018-03-08 14:36:27 +02001215 u8 general_obj_types[0x40];
1216
Denis Drozdov342ac842018-08-08 16:23:48 -07001217 u8 reserved_at_440[0x20];
1218
Yishai Hadas6e3722b2018-12-19 16:28:15 +02001219 u8 reserved_at_460[0x3];
1220 u8 log_max_uctx[0x5];
1221 u8 reserved_at_468[0x3];
1222 u8 log_max_umem[0x5];
Denis Drozdov342ac842018-08-08 16:23:48 -07001223 u8 max_num_eqs[0x10];
Saeed Mahameed54f0a412015-12-01 18:03:10 +02001224
Tariq Toukane1c9c622016-04-11 23:10:21 +03001225 u8 reserved_at_480[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001226 u8 log_max_l2_table[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001227 u8 reserved_at_488[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001228 u8 log_uar_page_sz[0x10];
1229
Tariq Toukane1c9c622016-04-11 23:10:21 +03001230 u8 reserved_at_4a0[0x20];
Linus Torvalds048ccca2016-01-23 18:45:06 -08001231 u8 device_frequency_mhz[0x20];
Eran Ben Elishab0844442015-12-29 14:58:30 +02001232 u8 device_frequency_khz[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001233
Eli Cohena6d51b62017-01-03 23:55:23 +02001234 u8 reserved_at_500[0x20];
1235 u8 num_of_uars_per_page[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001236
Ariel Levkoviche818e252018-05-13 14:33:35 +03001237 u8 flex_parser_protocols[0x20];
1238 u8 reserved_at_560[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001239
Yonatan Cohenab741b22018-05-27 13:42:32 +03001240 u8 reserved_at_580[0x3c];
1241 u8 mini_cqe_resp_stride_index[0x1];
Guy Levi0ff8e792017-10-19 08:25:51 +03001242 u8 cqe_128_always[0x1];
1243 u8 cqe_compression_128[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001244 u8 cqe_compression[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001245
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001246 u8 cqe_compression_timeout[0x10];
1247 u8 cqe_compression_max_num[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001248
Saeed Mahameed74862162016-06-09 15:11:34 +03001249 u8 reserved_at_5e0[0x10];
1250 u8 tag_matching[0x1];
1251 u8 rndv_offload_rc[0x1];
1252 u8 rndv_offload_dc[0x1];
1253 u8 log_tag_matching_list_sz[0x5];
Max Gurtovoy7b135582017-01-02 11:37:38 +02001254 u8 reserved_at_5f8[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03001255 u8 log_max_xrq[0x5];
1256
Daniel Jurgens32f69e42018-01-04 17:25:36 +02001257 u8 affiliate_nic_vport_criteria[0x8];
1258 u8 native_port_num[0x8];
1259 u8 num_vhca_ports[0x8];
1260 u8 reserved_at_618[0x6];
1261 u8 sw_owner_id[0x1];
Yishai Hadas9d43faa2018-11-26 08:28:32 +02001262 u8 reserved_at_61f[0x1];
1263
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08001264 u8 max_num_of_monitor_counters[0x10];
1265 u8 num_ppcnt_monitor_counters[0x10];
1266
1267 u8 reserved_at_640[0x10];
1268 u8 num_q_monitor_counters[0x10];
1269
1270 u8 reserved_at_660[0x40];
Yishai Hadas9d43faa2018-11-26 08:28:32 +02001271
1272 u8 uctx_cap[0x20];
1273
1274 u8 reserved_at_6c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03001275};
1276
Saeed Mahameed81848732015-12-01 18:03:20 +02001277enum mlx5_flow_destination_type {
1278 MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0,
1279 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1,
1280 MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2,
Amir Vadaibd5251db2016-05-13 12:55:40 +00001281
Aviad Yehezkel5f418372018-02-18 13:17:17 +02001282 MLX5_FLOW_DESTINATION_TYPE_PORT = 0x99,
Amir Vadaibd5251db2016-05-13 12:55:40 +00001283 MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100,
Yishai Hadas664000b2018-06-19 15:23:36 +03001284 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM = 0x101,
Saeed Mahameede2816822015-05-28 22:28:40 +03001285};
1286
1287struct mlx5_ifc_dest_format_struct_bits {
1288 u8 destination_type[0x8];
1289 u8 destination_id[0x18];
Eli Britstein1b115492018-12-10 13:15:14 -08001290
Shahar Kleinb17f7fc2018-03-22 12:32:12 +02001291 u8 destination_eswitch_owner_vhca_id_valid[0x1];
Eli Britstein1b115492018-12-10 13:15:14 -08001292 u8 packet_reformat[0x1];
1293 u8 reserved_at_22[0xe];
Shahar Kleinb17f7fc2018-03-22 12:32:12 +02001294 u8 destination_eswitch_owner_vhca_id[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001295};
1296
Amir Vadai9dc0b282016-05-13 12:55:39 +00001297struct mlx5_ifc_flow_counter_list_bits {
Rabie Louloua8ffcc72017-07-09 13:39:30 +03001298 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00001299
1300 u8 reserved_at_20[0x20];
1301};
1302
Eli Britstein1b115492018-12-10 13:15:14 -08001303struct mlx5_ifc_extended_dest_format_bits {
1304 struct mlx5_ifc_dest_format_struct_bits destination_entry;
1305
1306 u8 packet_reformat_id[0x20];
1307
1308 u8 reserved_at_60[0x20];
1309};
1310
Amir Vadai9dc0b282016-05-13 12:55:39 +00001311union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits {
1312 struct mlx5_ifc_dest_format_struct_bits dest_format_struct;
1313 struct mlx5_ifc_flow_counter_list_bits flow_counter_list;
1314 u8 reserved_at_0[0x40];
1315};
1316
Saeed Mahameede2816822015-05-28 22:28:40 +03001317struct mlx5_ifc_fte_match_param_bits {
1318 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
1319
1320 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
1321
1322 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
1323
Ariel Levkovich71c6e862018-05-13 14:33:34 +03001324 struct mlx5_ifc_fte_match_set_misc2_bits misc_parameters_2;
1325
1326 u8 reserved_at_800[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03001327};
1328
1329enum {
1330 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
1331 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
1332 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
1333 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
1334 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
1335};
1336
1337struct mlx5_ifc_rx_hash_field_select_bits {
1338 u8 l3_prot_type[0x1];
1339 u8 l4_prot_type[0x1];
1340 u8 selected_fields[0x1e];
1341};
1342
1343enum {
1344 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
1345 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
1346};
1347
1348enum {
1349 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
1350 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
1351};
1352
1353struct mlx5_ifc_wq_bits {
1354 u8 wq_type[0x4];
1355 u8 wq_signature[0x1];
1356 u8 end_padding_mode[0x2];
1357 u8 cd_slave[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001358 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001359
1360 u8 hds_skip_first_sge[0x1];
1361 u8 log2_hds_buf_size[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001362 u8 reserved_at_24[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03001363 u8 page_offset[0x5];
1364 u8 lwm[0x10];
1365
Matan Barakb4ff3a32016-02-09 14:57:42 +02001366 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001367 u8 pd[0x18];
1368
Matan Barakb4ff3a32016-02-09 14:57:42 +02001369 u8 reserved_at_60[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001370 u8 uar_page[0x18];
1371
1372 u8 dbr_addr[0x40];
1373
1374 u8 hw_counter[0x20];
1375
1376 u8 sw_counter[0x20];
1377
Matan Barakb4ff3a32016-02-09 14:57:42 +02001378 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001379 u8 log_wq_stride[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001380 u8 reserved_at_110[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001381 u8 log_wq_pg_sz[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001382 u8 reserved_at_118[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001383 u8 log_wq_sz[0x5];
1384
Leon Romanovskybd371972018-09-20 21:35:26 +03001385 u8 dbr_umem_valid[0x1];
1386 u8 wq_umem_valid[0x1];
1387 u8 reserved_at_122[0x1];
Or Gerlitz4d533e02018-01-04 12:26:21 +02001388 u8 log_hairpin_num_packets[0x5];
1389 u8 reserved_at_128[0x3];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001390 u8 log_hairpin_data_sz[0x5];
Or Gerlitz40817cd2017-06-25 12:38:45 +03001391
Tariq Toukan619a8f2a2018-02-07 14:41:25 +02001392 u8 reserved_at_130[0x4];
1393 u8 log_wqe_num_of_strides[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001394 u8 two_byte_shift_en[0x1];
1395 u8 reserved_at_139[0x4];
1396 u8 log_wqe_stride_size[0x3];
1397
1398 u8 reserved_at_140[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001399
1400 struct mlx5_ifc_cmd_pas_bits pas[0];
1401};
1402
1403struct mlx5_ifc_rq_num_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001404 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001405 u8 rq_num[0x18];
1406};
1407
1408struct mlx5_ifc_mac_address_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001409 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001410 u8 mac_addr_47_32[0x10];
1411
1412 u8 mac_addr_31_0[0x20];
1413};
1414
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001415struct mlx5_ifc_vlan_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001416 u8 reserved_at_0[0x14];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001417 u8 vlan[0x0c];
1418
Matan Barakb4ff3a32016-02-09 14:57:42 +02001419 u8 reserved_at_20[0x20];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001420};
1421
Saeed Mahameede2816822015-05-28 22:28:40 +03001422struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001423 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001424
1425 u8 min_time_between_cnps[0x20];
1426
Matan Barakb4ff3a32016-02-09 14:57:42 +02001427 u8 reserved_at_c0[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03001428 u8 cnp_dscp[0x6];
Parav Pandit4a2da0b2017-05-30 10:05:15 +03001429 u8 reserved_at_d8[0x4];
1430 u8 cnp_prio_mode[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001431 u8 cnp_802p_prio[0x3];
1432
Matan Barakb4ff3a32016-02-09 14:57:42 +02001433 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +03001434};
1435
1436struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001437 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001438
Matan Barakb4ff3a32016-02-09 14:57:42 +02001439 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001440 u8 clamp_tgt_rate[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001441 u8 reserved_at_65[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001442 u8 clamp_tgt_rate_after_time_inc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001443 u8 reserved_at_69[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03001444
Matan Barakb4ff3a32016-02-09 14:57:42 +02001445 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001446
1447 u8 rpg_time_reset[0x20];
1448
1449 u8 rpg_byte_reset[0x20];
1450
1451 u8 rpg_threshold[0x20];
1452
1453 u8 rpg_max_rate[0x20];
1454
1455 u8 rpg_ai_rate[0x20];
1456
1457 u8 rpg_hai_rate[0x20];
1458
1459 u8 rpg_gd[0x20];
1460
1461 u8 rpg_min_dec_fac[0x20];
1462
1463 u8 rpg_min_rate[0x20];
1464
Matan Barakb4ff3a32016-02-09 14:57:42 +02001465 u8 reserved_at_1c0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001466
1467 u8 rate_to_set_on_first_cnp[0x20];
1468
1469 u8 dce_tcp_g[0x20];
1470
1471 u8 dce_tcp_rtt[0x20];
1472
1473 u8 rate_reduce_monitor_period[0x20];
1474
Matan Barakb4ff3a32016-02-09 14:57:42 +02001475 u8 reserved_at_320[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001476
1477 u8 initial_alpha_value[0x20];
1478
Matan Barakb4ff3a32016-02-09 14:57:42 +02001479 u8 reserved_at_360[0x4a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001480};
1481
1482struct mlx5_ifc_cong_control_802_1qau_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001483 u8 reserved_at_0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001484
1485 u8 rppp_max_rps[0x20];
1486
1487 u8 rpg_time_reset[0x20];
1488
1489 u8 rpg_byte_reset[0x20];
1490
1491 u8 rpg_threshold[0x20];
1492
1493 u8 rpg_max_rate[0x20];
1494
1495 u8 rpg_ai_rate[0x20];
1496
1497 u8 rpg_hai_rate[0x20];
1498
1499 u8 rpg_gd[0x20];
1500
1501 u8 rpg_min_dec_fac[0x20];
1502
1503 u8 rpg_min_rate[0x20];
1504
Matan Barakb4ff3a32016-02-09 14:57:42 +02001505 u8 reserved_at_1c0[0x640];
Saeed Mahameede2816822015-05-28 22:28:40 +03001506};
1507
1508enum {
1509 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1510 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1511 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1512};
1513
1514struct mlx5_ifc_resize_field_select_bits {
1515 u8 resize_field_select[0x20];
1516};
1517
1518enum {
1519 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1520 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1521 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1522 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1523};
1524
1525struct mlx5_ifc_modify_field_select_bits {
1526 u8 modify_field_select[0x20];
1527};
1528
1529struct mlx5_ifc_field_select_r_roce_np_bits {
1530 u8 field_select_r_roce_np[0x20];
1531};
1532
1533struct mlx5_ifc_field_select_r_roce_rp_bits {
1534 u8 field_select_r_roce_rp[0x20];
1535};
1536
1537enum {
1538 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1539 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1540 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1541 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1542 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1543 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1544 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1545 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1546 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1547 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1548};
1549
1550struct mlx5_ifc_field_select_802_1qau_rp_bits {
1551 u8 field_select_8021qaurp[0x20];
1552};
1553
1554struct mlx5_ifc_phys_layer_cntrs_bits {
1555 u8 time_since_last_clear_high[0x20];
1556
1557 u8 time_since_last_clear_low[0x20];
1558
1559 u8 symbol_errors_high[0x20];
1560
1561 u8 symbol_errors_low[0x20];
1562
1563 u8 sync_headers_errors_high[0x20];
1564
1565 u8 sync_headers_errors_low[0x20];
1566
1567 u8 edpl_bip_errors_lane0_high[0x20];
1568
1569 u8 edpl_bip_errors_lane0_low[0x20];
1570
1571 u8 edpl_bip_errors_lane1_high[0x20];
1572
1573 u8 edpl_bip_errors_lane1_low[0x20];
1574
1575 u8 edpl_bip_errors_lane2_high[0x20];
1576
1577 u8 edpl_bip_errors_lane2_low[0x20];
1578
1579 u8 edpl_bip_errors_lane3_high[0x20];
1580
1581 u8 edpl_bip_errors_lane3_low[0x20];
1582
1583 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1584
1585 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1586
1587 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1588
1589 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1590
1591 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1592
1593 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1594
1595 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1596
1597 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1598
1599 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1600
1601 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1602
1603 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1604
1605 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1606
1607 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1608
1609 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1610
1611 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1612
1613 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1614
1615 u8 rs_fec_corrected_blocks_high[0x20];
1616
1617 u8 rs_fec_corrected_blocks_low[0x20];
1618
1619 u8 rs_fec_uncorrectable_blocks_high[0x20];
1620
1621 u8 rs_fec_uncorrectable_blocks_low[0x20];
1622
1623 u8 rs_fec_no_errors_blocks_high[0x20];
1624
1625 u8 rs_fec_no_errors_blocks_low[0x20];
1626
1627 u8 rs_fec_single_error_blocks_high[0x20];
1628
1629 u8 rs_fec_single_error_blocks_low[0x20];
1630
1631 u8 rs_fec_corrected_symbols_total_high[0x20];
1632
1633 u8 rs_fec_corrected_symbols_total_low[0x20];
1634
1635 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1636
1637 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1638
1639 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1640
1641 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1642
1643 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1644
1645 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1646
1647 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1648
1649 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1650
1651 u8 link_down_events[0x20];
1652
1653 u8 successful_recovery_events[0x20];
1654
Matan Barakb4ff3a32016-02-09 14:57:42 +02001655 u8 reserved_at_640[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03001656};
1657
Gal Pressmand8dc0502016-09-27 17:04:51 +03001658struct mlx5_ifc_phys_layer_statistical_cntrs_bits {
1659 u8 time_since_last_clear_high[0x20];
1660
1661 u8 time_since_last_clear_low[0x20];
1662
1663 u8 phy_received_bits_high[0x20];
1664
1665 u8 phy_received_bits_low[0x20];
1666
1667 u8 phy_symbol_errors_high[0x20];
1668
1669 u8 phy_symbol_errors_low[0x20];
1670
1671 u8 phy_corrected_bits_high[0x20];
1672
1673 u8 phy_corrected_bits_low[0x20];
1674
1675 u8 phy_corrected_bits_lane0_high[0x20];
1676
1677 u8 phy_corrected_bits_lane0_low[0x20];
1678
1679 u8 phy_corrected_bits_lane1_high[0x20];
1680
1681 u8 phy_corrected_bits_lane1_low[0x20];
1682
1683 u8 phy_corrected_bits_lane2_high[0x20];
1684
1685 u8 phy_corrected_bits_lane2_low[0x20];
1686
1687 u8 phy_corrected_bits_lane3_high[0x20];
1688
1689 u8 phy_corrected_bits_lane3_low[0x20];
1690
1691 u8 reserved_at_200[0x5c0];
1692};
1693
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001694struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits {
1695 u8 symbol_error_counter[0x10];
1696
1697 u8 link_error_recovery_counter[0x8];
1698
1699 u8 link_downed_counter[0x8];
1700
1701 u8 port_rcv_errors[0x10];
1702
1703 u8 port_rcv_remote_physical_errors[0x10];
1704
1705 u8 port_rcv_switch_relay_errors[0x10];
1706
1707 u8 port_xmit_discards[0x10];
1708
1709 u8 port_xmit_constraint_errors[0x8];
1710
1711 u8 port_rcv_constraint_errors[0x8];
1712
1713 u8 reserved_at_70[0x8];
1714
1715 u8 link_overrun_errors[0x8];
1716
1717 u8 reserved_at_80[0x10];
1718
1719 u8 vl_15_dropped[0x10];
1720
Tim Wright133bea02017-05-01 17:30:08 +01001721 u8 reserved_at_a0[0x80];
1722
1723 u8 port_xmit_wait[0x20];
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001724};
1725
Saeed Mahameede2816822015-05-28 22:28:40 +03001726struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1727 u8 transmit_queue_high[0x20];
1728
1729 u8 transmit_queue_low[0x20];
1730
Matan Barakb4ff3a32016-02-09 14:57:42 +02001731 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001732};
1733
1734struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1735 u8 rx_octets_high[0x20];
1736
1737 u8 rx_octets_low[0x20];
1738
Matan Barakb4ff3a32016-02-09 14:57:42 +02001739 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001740
1741 u8 rx_frames_high[0x20];
1742
1743 u8 rx_frames_low[0x20];
1744
1745 u8 tx_octets_high[0x20];
1746
1747 u8 tx_octets_low[0x20];
1748
Matan Barakb4ff3a32016-02-09 14:57:42 +02001749 u8 reserved_at_180[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001750
1751 u8 tx_frames_high[0x20];
1752
1753 u8 tx_frames_low[0x20];
1754
1755 u8 rx_pause_high[0x20];
1756
1757 u8 rx_pause_low[0x20];
1758
1759 u8 rx_pause_duration_high[0x20];
1760
1761 u8 rx_pause_duration_low[0x20];
1762
1763 u8 tx_pause_high[0x20];
1764
1765 u8 tx_pause_low[0x20];
1766
1767 u8 tx_pause_duration_high[0x20];
1768
1769 u8 tx_pause_duration_low[0x20];
1770
1771 u8 rx_pause_transition_high[0x20];
1772
1773 u8 rx_pause_transition_low[0x20];
1774
Inbar Karmy2fcb12d2017-08-17 16:39:47 +03001775 u8 reserved_at_3c0[0x40];
1776
1777 u8 device_stall_minor_watermark_cnt_high[0x20];
1778
1779 u8 device_stall_minor_watermark_cnt_low[0x20];
1780
1781 u8 device_stall_critical_watermark_cnt_high[0x20];
1782
1783 u8 device_stall_critical_watermark_cnt_low[0x20];
1784
1785 u8 reserved_at_480[0x340];
Saeed Mahameede2816822015-05-28 22:28:40 +03001786};
1787
1788struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1789 u8 port_transmit_wait_high[0x20];
1790
1791 u8 port_transmit_wait_low[0x20];
1792
Gal Pressman2dba0792017-06-18 14:56:45 +03001793 u8 reserved_at_40[0x100];
1794
1795 u8 rx_buffer_almost_full_high[0x20];
1796
1797 u8 rx_buffer_almost_full_low[0x20];
1798
1799 u8 rx_buffer_full_high[0x20];
1800
1801 u8 rx_buffer_full_low[0x20];
1802
Talat Batheesh0af51072018-05-17 11:14:18 +03001803 u8 rx_icrc_encapsulated_high[0x20];
1804
1805 u8 rx_icrc_encapsulated_low[0x20];
1806
1807 u8 reserved_at_200[0x5c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001808};
1809
1810struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1811 u8 dot3stats_alignment_errors_high[0x20];
1812
1813 u8 dot3stats_alignment_errors_low[0x20];
1814
1815 u8 dot3stats_fcs_errors_high[0x20];
1816
1817 u8 dot3stats_fcs_errors_low[0x20];
1818
1819 u8 dot3stats_single_collision_frames_high[0x20];
1820
1821 u8 dot3stats_single_collision_frames_low[0x20];
1822
1823 u8 dot3stats_multiple_collision_frames_high[0x20];
1824
1825 u8 dot3stats_multiple_collision_frames_low[0x20];
1826
1827 u8 dot3stats_sqe_test_errors_high[0x20];
1828
1829 u8 dot3stats_sqe_test_errors_low[0x20];
1830
1831 u8 dot3stats_deferred_transmissions_high[0x20];
1832
1833 u8 dot3stats_deferred_transmissions_low[0x20];
1834
1835 u8 dot3stats_late_collisions_high[0x20];
1836
1837 u8 dot3stats_late_collisions_low[0x20];
1838
1839 u8 dot3stats_excessive_collisions_high[0x20];
1840
1841 u8 dot3stats_excessive_collisions_low[0x20];
1842
1843 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1844
1845 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1846
1847 u8 dot3stats_carrier_sense_errors_high[0x20];
1848
1849 u8 dot3stats_carrier_sense_errors_low[0x20];
1850
1851 u8 dot3stats_frame_too_longs_high[0x20];
1852
1853 u8 dot3stats_frame_too_longs_low[0x20];
1854
1855 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1856
1857 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1858
1859 u8 dot3stats_symbol_errors_high[0x20];
1860
1861 u8 dot3stats_symbol_errors_low[0x20];
1862
1863 u8 dot3control_in_unknown_opcodes_high[0x20];
1864
1865 u8 dot3control_in_unknown_opcodes_low[0x20];
1866
1867 u8 dot3in_pause_frames_high[0x20];
1868
1869 u8 dot3in_pause_frames_low[0x20];
1870
1871 u8 dot3out_pause_frames_high[0x20];
1872
1873 u8 dot3out_pause_frames_low[0x20];
1874
Matan Barakb4ff3a32016-02-09 14:57:42 +02001875 u8 reserved_at_400[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001876};
1877
1878struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1879 u8 ether_stats_drop_events_high[0x20];
1880
1881 u8 ether_stats_drop_events_low[0x20];
1882
1883 u8 ether_stats_octets_high[0x20];
1884
1885 u8 ether_stats_octets_low[0x20];
1886
1887 u8 ether_stats_pkts_high[0x20];
1888
1889 u8 ether_stats_pkts_low[0x20];
1890
1891 u8 ether_stats_broadcast_pkts_high[0x20];
1892
1893 u8 ether_stats_broadcast_pkts_low[0x20];
1894
1895 u8 ether_stats_multicast_pkts_high[0x20];
1896
1897 u8 ether_stats_multicast_pkts_low[0x20];
1898
1899 u8 ether_stats_crc_align_errors_high[0x20];
1900
1901 u8 ether_stats_crc_align_errors_low[0x20];
1902
1903 u8 ether_stats_undersize_pkts_high[0x20];
1904
1905 u8 ether_stats_undersize_pkts_low[0x20];
1906
1907 u8 ether_stats_oversize_pkts_high[0x20];
1908
1909 u8 ether_stats_oversize_pkts_low[0x20];
1910
1911 u8 ether_stats_fragments_high[0x20];
1912
1913 u8 ether_stats_fragments_low[0x20];
1914
1915 u8 ether_stats_jabbers_high[0x20];
1916
1917 u8 ether_stats_jabbers_low[0x20];
1918
1919 u8 ether_stats_collisions_high[0x20];
1920
1921 u8 ether_stats_collisions_low[0x20];
1922
1923 u8 ether_stats_pkts64octets_high[0x20];
1924
1925 u8 ether_stats_pkts64octets_low[0x20];
1926
1927 u8 ether_stats_pkts65to127octets_high[0x20];
1928
1929 u8 ether_stats_pkts65to127octets_low[0x20];
1930
1931 u8 ether_stats_pkts128to255octets_high[0x20];
1932
1933 u8 ether_stats_pkts128to255octets_low[0x20];
1934
1935 u8 ether_stats_pkts256to511octets_high[0x20];
1936
1937 u8 ether_stats_pkts256to511octets_low[0x20];
1938
1939 u8 ether_stats_pkts512to1023octets_high[0x20];
1940
1941 u8 ether_stats_pkts512to1023octets_low[0x20];
1942
1943 u8 ether_stats_pkts1024to1518octets_high[0x20];
1944
1945 u8 ether_stats_pkts1024to1518octets_low[0x20];
1946
1947 u8 ether_stats_pkts1519to2047octets_high[0x20];
1948
1949 u8 ether_stats_pkts1519to2047octets_low[0x20];
1950
1951 u8 ether_stats_pkts2048to4095octets_high[0x20];
1952
1953 u8 ether_stats_pkts2048to4095octets_low[0x20];
1954
1955 u8 ether_stats_pkts4096to8191octets_high[0x20];
1956
1957 u8 ether_stats_pkts4096to8191octets_low[0x20];
1958
1959 u8 ether_stats_pkts8192to10239octets_high[0x20];
1960
1961 u8 ether_stats_pkts8192to10239octets_low[0x20];
1962
Matan Barakb4ff3a32016-02-09 14:57:42 +02001963 u8 reserved_at_540[0x280];
Saeed Mahameede2816822015-05-28 22:28:40 +03001964};
1965
1966struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1967 u8 if_in_octets_high[0x20];
1968
1969 u8 if_in_octets_low[0x20];
1970
1971 u8 if_in_ucast_pkts_high[0x20];
1972
1973 u8 if_in_ucast_pkts_low[0x20];
1974
1975 u8 if_in_discards_high[0x20];
1976
1977 u8 if_in_discards_low[0x20];
1978
1979 u8 if_in_errors_high[0x20];
1980
1981 u8 if_in_errors_low[0x20];
1982
1983 u8 if_in_unknown_protos_high[0x20];
1984
1985 u8 if_in_unknown_protos_low[0x20];
1986
1987 u8 if_out_octets_high[0x20];
1988
1989 u8 if_out_octets_low[0x20];
1990
1991 u8 if_out_ucast_pkts_high[0x20];
1992
1993 u8 if_out_ucast_pkts_low[0x20];
1994
1995 u8 if_out_discards_high[0x20];
1996
1997 u8 if_out_discards_low[0x20];
1998
1999 u8 if_out_errors_high[0x20];
2000
2001 u8 if_out_errors_low[0x20];
2002
2003 u8 if_in_multicast_pkts_high[0x20];
2004
2005 u8 if_in_multicast_pkts_low[0x20];
2006
2007 u8 if_in_broadcast_pkts_high[0x20];
2008
2009 u8 if_in_broadcast_pkts_low[0x20];
2010
2011 u8 if_out_multicast_pkts_high[0x20];
2012
2013 u8 if_out_multicast_pkts_low[0x20];
2014
2015 u8 if_out_broadcast_pkts_high[0x20];
2016
2017 u8 if_out_broadcast_pkts_low[0x20];
2018
Matan Barakb4ff3a32016-02-09 14:57:42 +02002019 u8 reserved_at_340[0x480];
Saeed Mahameede2816822015-05-28 22:28:40 +03002020};
2021
2022struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
2023 u8 a_frames_transmitted_ok_high[0x20];
2024
2025 u8 a_frames_transmitted_ok_low[0x20];
2026
2027 u8 a_frames_received_ok_high[0x20];
2028
2029 u8 a_frames_received_ok_low[0x20];
2030
2031 u8 a_frame_check_sequence_errors_high[0x20];
2032
2033 u8 a_frame_check_sequence_errors_low[0x20];
2034
2035 u8 a_alignment_errors_high[0x20];
2036
2037 u8 a_alignment_errors_low[0x20];
2038
2039 u8 a_octets_transmitted_ok_high[0x20];
2040
2041 u8 a_octets_transmitted_ok_low[0x20];
2042
2043 u8 a_octets_received_ok_high[0x20];
2044
2045 u8 a_octets_received_ok_low[0x20];
2046
2047 u8 a_multicast_frames_xmitted_ok_high[0x20];
2048
2049 u8 a_multicast_frames_xmitted_ok_low[0x20];
2050
2051 u8 a_broadcast_frames_xmitted_ok_high[0x20];
2052
2053 u8 a_broadcast_frames_xmitted_ok_low[0x20];
2054
2055 u8 a_multicast_frames_received_ok_high[0x20];
2056
2057 u8 a_multicast_frames_received_ok_low[0x20];
2058
2059 u8 a_broadcast_frames_received_ok_high[0x20];
2060
2061 u8 a_broadcast_frames_received_ok_low[0x20];
2062
2063 u8 a_in_range_length_errors_high[0x20];
2064
2065 u8 a_in_range_length_errors_low[0x20];
2066
2067 u8 a_out_of_range_length_field_high[0x20];
2068
2069 u8 a_out_of_range_length_field_low[0x20];
2070
2071 u8 a_frame_too_long_errors_high[0x20];
2072
2073 u8 a_frame_too_long_errors_low[0x20];
2074
2075 u8 a_symbol_error_during_carrier_high[0x20];
2076
2077 u8 a_symbol_error_during_carrier_low[0x20];
2078
2079 u8 a_mac_control_frames_transmitted_high[0x20];
2080
2081 u8 a_mac_control_frames_transmitted_low[0x20];
2082
2083 u8 a_mac_control_frames_received_high[0x20];
2084
2085 u8 a_mac_control_frames_received_low[0x20];
2086
2087 u8 a_unsupported_opcodes_received_high[0x20];
2088
2089 u8 a_unsupported_opcodes_received_low[0x20];
2090
2091 u8 a_pause_mac_ctrl_frames_received_high[0x20];
2092
2093 u8 a_pause_mac_ctrl_frames_received_low[0x20];
2094
2095 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
2096
2097 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
2098
Matan Barakb4ff3a32016-02-09 14:57:42 +02002099 u8 reserved_at_4c0[0x300];
Saeed Mahameede2816822015-05-28 22:28:40 +03002100};
2101
Gal Pressman8ed1a632016-11-17 13:46:01 +02002102struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits {
2103 u8 life_time_counter_high[0x20];
2104
2105 u8 life_time_counter_low[0x20];
2106
2107 u8 rx_errors[0x20];
2108
2109 u8 tx_errors[0x20];
2110
2111 u8 l0_to_recovery_eieos[0x20];
2112
2113 u8 l0_to_recovery_ts[0x20];
2114
2115 u8 l0_to_recovery_framing[0x20];
2116
2117 u8 l0_to_recovery_retrain[0x20];
2118
2119 u8 crc_error_dllp[0x20];
2120
2121 u8 crc_error_tlp[0x20];
2122
Eran Ben Elishaefae7f72017-05-12 02:47:02 +03002123 u8 tx_overflow_buffer_pkt_high[0x20];
2124
2125 u8 tx_overflow_buffer_pkt_low[0x20];
Gal Pressman5405fa22017-06-15 18:29:23 +03002126
2127 u8 outbound_stalled_reads[0x20];
2128
2129 u8 outbound_stalled_writes[0x20];
2130
2131 u8 outbound_stalled_reads_events[0x20];
2132
2133 u8 outbound_stalled_writes_events[0x20];
2134
2135 u8 reserved_at_200[0x5c0];
Gal Pressman8ed1a632016-11-17 13:46:01 +02002136};
2137
Saeed Mahameede2816822015-05-28 22:28:40 +03002138struct mlx5_ifc_cmd_inter_comp_event_bits {
2139 u8 command_completion_vector[0x20];
2140
Matan Barakb4ff3a32016-02-09 14:57:42 +02002141 u8 reserved_at_20[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002142};
2143
2144struct mlx5_ifc_stall_vl_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002145 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002146 u8 port_num[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002147 u8 reserved_at_19[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002148 u8 vl[0x4];
2149
Matan Barakb4ff3a32016-02-09 14:57:42 +02002150 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002151};
2152
2153struct mlx5_ifc_db_bf_congestion_event_bits {
2154 u8 event_subtype[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002155 u8 reserved_at_8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002156 u8 congestion_level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002157 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002158
Matan Barakb4ff3a32016-02-09 14:57:42 +02002159 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002160};
2161
2162struct mlx5_ifc_gpio_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002163 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002164
2165 u8 gpio_event_hi[0x20];
2166
2167 u8 gpio_event_lo[0x20];
2168
Matan Barakb4ff3a32016-02-09 14:57:42 +02002169 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002170};
2171
2172struct mlx5_ifc_port_state_change_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002173 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002174
2175 u8 port_num[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002176 u8 reserved_at_44[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002177
Matan Barakb4ff3a32016-02-09 14:57:42 +02002178 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002179};
2180
2181struct mlx5_ifc_dropped_packet_logged_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002182 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002183};
2184
2185enum {
2186 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
2187 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
2188};
2189
2190struct mlx5_ifc_cq_error_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002191 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002192 u8 cqn[0x18];
2193
Matan Barakb4ff3a32016-02-09 14:57:42 +02002194 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002195
Matan Barakb4ff3a32016-02-09 14:57:42 +02002196 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002197 u8 syndrome[0x8];
2198
Matan Barakb4ff3a32016-02-09 14:57:42 +02002199 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002200};
2201
2202struct mlx5_ifc_rdma_page_fault_event_bits {
2203 u8 bytes_committed[0x20];
2204
2205 u8 r_key[0x20];
2206
Matan Barakb4ff3a32016-02-09 14:57:42 +02002207 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002208 u8 packet_len[0x10];
2209
2210 u8 rdma_op_len[0x20];
2211
2212 u8 rdma_va[0x40];
2213
Matan Barakb4ff3a32016-02-09 14:57:42 +02002214 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002215 u8 rdma[0x1];
2216 u8 write[0x1];
2217 u8 requestor[0x1];
2218 u8 qp_number[0x18];
2219};
2220
2221struct mlx5_ifc_wqe_associated_page_fault_event_bits {
2222 u8 bytes_committed[0x20];
2223
Matan Barakb4ff3a32016-02-09 14:57:42 +02002224 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002225 u8 wqe_index[0x10];
2226
Matan Barakb4ff3a32016-02-09 14:57:42 +02002227 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002228 u8 len[0x10];
2229
Matan Barakb4ff3a32016-02-09 14:57:42 +02002230 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002231
Matan Barakb4ff3a32016-02-09 14:57:42 +02002232 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002233 u8 rdma[0x1];
2234 u8 write_read[0x1];
2235 u8 requestor[0x1];
2236 u8 qpn[0x18];
2237};
2238
2239struct mlx5_ifc_qp_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002240 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002241
2242 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002243 u8 reserved_at_a8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002244
Matan Barakb4ff3a32016-02-09 14:57:42 +02002245 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002246 u8 qpn_rqn_sqn[0x18];
2247};
2248
2249struct mlx5_ifc_dct_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002250 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002251
Matan Barakb4ff3a32016-02-09 14:57:42 +02002252 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002253 u8 dct_number[0x18];
2254};
2255
2256struct mlx5_ifc_comp_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002257 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002258
Matan Barakb4ff3a32016-02-09 14:57:42 +02002259 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002260 u8 cq_number[0x18];
2261};
2262
2263enum {
2264 MLX5_QPC_STATE_RST = 0x0,
2265 MLX5_QPC_STATE_INIT = 0x1,
2266 MLX5_QPC_STATE_RTR = 0x2,
2267 MLX5_QPC_STATE_RTS = 0x3,
2268 MLX5_QPC_STATE_SQER = 0x4,
2269 MLX5_QPC_STATE_ERR = 0x6,
2270 MLX5_QPC_STATE_SQD = 0x7,
2271 MLX5_QPC_STATE_SUSPENDED = 0x9,
2272};
2273
2274enum {
2275 MLX5_QPC_ST_RC = 0x0,
2276 MLX5_QPC_ST_UC = 0x1,
2277 MLX5_QPC_ST_UD = 0x2,
2278 MLX5_QPC_ST_XRC = 0x3,
2279 MLX5_QPC_ST_DCI = 0x5,
2280 MLX5_QPC_ST_QP0 = 0x7,
2281 MLX5_QPC_ST_QP1 = 0x8,
2282 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
2283 MLX5_QPC_ST_REG_UMR = 0xc,
2284};
2285
2286enum {
2287 MLX5_QPC_PM_STATE_ARMED = 0x0,
2288 MLX5_QPC_PM_STATE_REARM = 0x1,
2289 MLX5_QPC_PM_STATE_RESERVED = 0x2,
2290 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
2291};
2292
2293enum {
Artemy Kovalyov6e446362017-08-15 11:59:02 +03002294 MLX5_QPC_OFFLOAD_TYPE_RNDV = 0x1,
2295};
2296
2297enum {
Saeed Mahameede2816822015-05-28 22:28:40 +03002298 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
2299 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
2300};
2301
2302enum {
2303 MLX5_QPC_MTU_256_BYTES = 0x1,
2304 MLX5_QPC_MTU_512_BYTES = 0x2,
2305 MLX5_QPC_MTU_1K_BYTES = 0x3,
2306 MLX5_QPC_MTU_2K_BYTES = 0x4,
2307 MLX5_QPC_MTU_4K_BYTES = 0x5,
2308 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
2309};
2310
2311enum {
2312 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
2313 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
2314 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
2315 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
2316 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
2317 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
2318 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
2319 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
2320};
2321
2322enum {
2323 MLX5_QPC_CS_REQ_DISABLE = 0x0,
2324 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
2325 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
2326};
2327
2328enum {
2329 MLX5_QPC_CS_RES_DISABLE = 0x0,
2330 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
2331 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
2332};
2333
2334struct mlx5_ifc_qpc_bits {
2335 u8 state[0x4];
Aviv Heller84df61e2016-05-10 13:47:50 +03002336 u8 lag_tx_port_affinity[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002337 u8 st[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002338 u8 reserved_at_10[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002339 u8 pm_state[0x2];
Danit Goldberg3fd3c802018-11-30 13:22:04 +02002340 u8 reserved_at_15[0x1];
2341 u8 req_e2e_credit_mode[0x2];
Artemy Kovalyov6e446362017-08-15 11:59:02 +03002342 u8 offload_type[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002343 u8 end_padding_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002344 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002345
2346 u8 wq_signature[0x1];
2347 u8 block_lb_mc[0x1];
2348 u8 atomic_like_write_en[0x1];
2349 u8 latency_sensitive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002350 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002351 u8 drain_sigerr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002352 u8 reserved_at_26[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002353 u8 pd[0x18];
2354
2355 u8 mtu[0x3];
2356 u8 log_msg_max[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002357 u8 reserved_at_48[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002358 u8 log_rq_size[0x4];
2359 u8 log_rq_stride[0x3];
2360 u8 no_sq[0x1];
2361 u8 log_sq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002362 u8 reserved_at_55[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002363 u8 rlky[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02002364 u8 ulp_stateless_offload_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002365
2366 u8 counter_set_id[0x8];
2367 u8 uar_page[0x18];
2368
Matan Barakb4ff3a32016-02-09 14:57:42 +02002369 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002370 u8 user_index[0x18];
2371
Matan Barakb4ff3a32016-02-09 14:57:42 +02002372 u8 reserved_at_a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002373 u8 log_page_size[0x5];
2374 u8 remote_qpn[0x18];
2375
2376 struct mlx5_ifc_ads_bits primary_address_path;
2377
2378 struct mlx5_ifc_ads_bits secondary_address_path;
2379
2380 u8 log_ack_req_freq[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002381 u8 reserved_at_384[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002382 u8 log_sra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002383 u8 reserved_at_38b[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002384 u8 retry_count[0x3];
2385 u8 rnr_retry[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002386 u8 reserved_at_393[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002387 u8 fre[0x1];
2388 u8 cur_rnr_retry[0x3];
2389 u8 cur_retry_count[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002390 u8 reserved_at_39b[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002391
Matan Barakb4ff3a32016-02-09 14:57:42 +02002392 u8 reserved_at_3a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002393
Matan Barakb4ff3a32016-02-09 14:57:42 +02002394 u8 reserved_at_3c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002395 u8 next_send_psn[0x18];
2396
Matan Barakb4ff3a32016-02-09 14:57:42 +02002397 u8 reserved_at_3e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002398 u8 cqn_snd[0x18];
2399
Saeed Mahameed09a7d9e2016-07-19 01:17:59 +03002400 u8 reserved_at_400[0x8];
2401 u8 deth_sqpn[0x18];
2402
2403 u8 reserved_at_420[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002404
Matan Barakb4ff3a32016-02-09 14:57:42 +02002405 u8 reserved_at_440[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002406 u8 last_acked_psn[0x18];
2407
Matan Barakb4ff3a32016-02-09 14:57:42 +02002408 u8 reserved_at_460[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002409 u8 ssn[0x18];
2410
Matan Barakb4ff3a32016-02-09 14:57:42 +02002411 u8 reserved_at_480[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002412 u8 log_rra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002413 u8 reserved_at_48b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002414 u8 atomic_mode[0x4];
2415 u8 rre[0x1];
2416 u8 rwe[0x1];
2417 u8 rae[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002418 u8 reserved_at_493[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002419 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002420 u8 reserved_at_49a[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002421 u8 cd_slave_receive[0x1];
2422 u8 cd_slave_send[0x1];
2423 u8 cd_master[0x1];
2424
Matan Barakb4ff3a32016-02-09 14:57:42 +02002425 u8 reserved_at_4a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002426 u8 min_rnr_nak[0x5];
2427 u8 next_rcv_psn[0x18];
2428
Matan Barakb4ff3a32016-02-09 14:57:42 +02002429 u8 reserved_at_4c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002430 u8 xrcd[0x18];
2431
Matan Barakb4ff3a32016-02-09 14:57:42 +02002432 u8 reserved_at_4e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002433 u8 cqn_rcv[0x18];
2434
2435 u8 dbr_addr[0x40];
2436
2437 u8 q_key[0x20];
2438
Matan Barakb4ff3a32016-02-09 14:57:42 +02002439 u8 reserved_at_560[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002440 u8 rq_type[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03002441 u8 srqn_rmpn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002442
Matan Barakb4ff3a32016-02-09 14:57:42 +02002443 u8 reserved_at_580[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002444 u8 rmsn[0x18];
2445
2446 u8 hw_sq_wqebb_counter[0x10];
2447 u8 sw_sq_wqebb_counter[0x10];
2448
2449 u8 hw_rq_counter[0x20];
2450
2451 u8 sw_rq_counter[0x20];
2452
Matan Barakb4ff3a32016-02-09 14:57:42 +02002453 u8 reserved_at_600[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002454
Matan Barakb4ff3a32016-02-09 14:57:42 +02002455 u8 reserved_at_620[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03002456 u8 cgs[0x1];
2457 u8 cs_req[0x8];
2458 u8 cs_res[0x8];
2459
2460 u8 dc_access_key[0x40];
2461
Leon Romanovskybd371972018-09-20 21:35:26 +03002462 u8 reserved_at_680[0x3];
2463 u8 dbr_umem_valid[0x1];
2464
2465 u8 reserved_at_684[0xbc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002466};
2467
2468struct mlx5_ifc_roce_addr_layout_bits {
2469 u8 source_l3_address[16][0x8];
2470
Matan Barakb4ff3a32016-02-09 14:57:42 +02002471 u8 reserved_at_80[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002472 u8 vlan_valid[0x1];
2473 u8 vlan_id[0xc];
2474 u8 source_mac_47_32[0x10];
2475
2476 u8 source_mac_31_0[0x20];
2477
Matan Barakb4ff3a32016-02-09 14:57:42 +02002478 u8 reserved_at_c0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002479 u8 roce_l3_type[0x4];
2480 u8 roce_version[0x8];
2481
Matan Barakb4ff3a32016-02-09 14:57:42 +02002482 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002483};
2484
2485union mlx5_ifc_hca_cap_union_bits {
2486 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
2487 struct mlx5_ifc_odp_cap_bits odp_cap;
2488 struct mlx5_ifc_atomic_caps_bits atomic_caps;
2489 struct mlx5_ifc_roce_cap_bits roce_cap;
2490 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
2491 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
Saeed Mahameed495716b2015-12-01 18:03:19 +02002492 struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap;
Saeed Mahameedd6666752015-12-01 18:03:22 +02002493 struct mlx5_ifc_e_switch_cap_bits e_switch_cap;
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02002494 struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap;
Saeed Mahameed74862162016-06-09 15:11:34 +03002495 struct mlx5_ifc_qos_cap_bits qos_cap;
Ilan Tayarie29341f2017-03-13 20:05:45 +02002496 struct mlx5_ifc_fpga_cap_bits fpga_cap;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002497 u8 reserved_at_0[0x8000];
Saeed Mahameede2816822015-05-28 22:28:40 +03002498};
2499
2500enum {
2501 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
2502 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
2503 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
Amir Vadai9dc0b282016-05-13 12:55:39 +00002504 MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8,
Mark Bloch60786f02018-08-28 14:18:46 +03002505 MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT = 0x10,
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002506 MLX5_FLOW_CONTEXT_ACTION_DECAP = 0x20,
Or Gerlitz2a69cb92017-01-19 19:31:25 +02002507 MLX5_FLOW_CONTEXT_ACTION_MOD_HDR = 0x40,
Or Gerlitz0c068972018-01-28 20:14:20 +02002508 MLX5_FLOW_CONTEXT_ACTION_VLAN_POP = 0x80,
2509 MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH = 0x100,
Jianbo Liu8da6fe22018-07-16 18:35:32 -07002510 MLX5_FLOW_CONTEXT_ACTION_VLAN_POP_2 = 0x400,
2511 MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH_2 = 0x800,
Or Gerlitz0c068972018-01-28 20:14:20 +02002512};
2513
2514struct mlx5_ifc_vlan_bits {
2515 u8 ethtype[0x10];
2516 u8 prio[0x3];
2517 u8 cfi[0x1];
2518 u8 vid[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002519};
2520
2521struct mlx5_ifc_flow_context_bits {
Or Gerlitz0c068972018-01-28 20:14:20 +02002522 struct mlx5_ifc_vlan_bits push_vlan;
Saeed Mahameede2816822015-05-28 22:28:40 +03002523
2524 u8 group_id[0x20];
2525
Matan Barakb4ff3a32016-02-09 14:57:42 +02002526 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002527 u8 flow_tag[0x18];
2528
Matan Barakb4ff3a32016-02-09 14:57:42 +02002529 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002530 u8 action[0x10];
2531
Eli Britstein1b115492018-12-10 13:15:14 -08002532 u8 extended_destination[0x1];
2533 u8 reserved_at_80[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03002534 u8 destination_list_size[0x18];
2535
Amir Vadai9dc0b282016-05-13 12:55:39 +00002536 u8 reserved_at_a0[0x8];
2537 u8 flow_counter_list_size[0x18];
2538
Mark Bloch60786f02018-08-28 14:18:46 +03002539 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002540
Or Gerlitz2a69cb92017-01-19 19:31:25 +02002541 u8 modify_header_id[0x20];
2542
Jianbo Liu8da6fe22018-07-16 18:35:32 -07002543 struct mlx5_ifc_vlan_bits push_vlan_2;
2544
2545 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002546
2547 struct mlx5_ifc_fte_match_param_bits match_value;
2548
Matan Barakb4ff3a32016-02-09 14:57:42 +02002549 u8 reserved_at_1200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03002550
Amir Vadai9dc0b282016-05-13 12:55:39 +00002551 union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits destination[0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002552};
2553
2554enum {
2555 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
2556 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
2557};
2558
2559struct mlx5_ifc_xrc_srqc_bits {
2560 u8 state[0x4];
2561 u8 log_xrc_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002562 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002563
2564 u8 wq_signature[0x1];
2565 u8 cont_srq[0x1];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02002566 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002567 u8 rlky[0x1];
2568 u8 basic_cyclic_rcv_wqe[0x1];
2569 u8 log_rq_stride[0x3];
2570 u8 xrcd[0x18];
2571
2572 u8 page_offset[0x6];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02002573 u8 reserved_at_46[0x1];
2574 u8 dbr_umem_valid[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002575 u8 cqn[0x18];
2576
Matan Barakb4ff3a32016-02-09 14:57:42 +02002577 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002578
2579 u8 user_index_equal_xrc_srqn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002580 u8 reserved_at_81[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002581 u8 log_page_size[0x6];
2582 u8 user_index[0x18];
2583
Matan Barakb4ff3a32016-02-09 14:57:42 +02002584 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002585
Matan Barakb4ff3a32016-02-09 14:57:42 +02002586 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002587 u8 pd[0x18];
2588
2589 u8 lwm[0x10];
2590 u8 wqe_cnt[0x10];
2591
Matan Barakb4ff3a32016-02-09 14:57:42 +02002592 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002593
2594 u8 db_record_addr_h[0x20];
2595
2596 u8 db_record_addr_l[0x1e];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002597 u8 reserved_at_17e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002598
Matan Barakb4ff3a32016-02-09 14:57:42 +02002599 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002600};
2601
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +02002602struct mlx5_ifc_vnic_diagnostic_statistics_bits {
2603 u8 counter_error_queues[0x20];
2604
2605 u8 total_error_queues[0x20];
2606
2607 u8 send_queue_priority_update_flow[0x20];
2608
2609 u8 reserved_at_60[0x20];
2610
2611 u8 nic_receive_steering_discard[0x40];
2612
2613 u8 receive_discard_vport_down[0x40];
2614
2615 u8 transmit_discard_vport_down[0x40];
2616
2617 u8 reserved_at_140[0xec0];
2618};
2619
Saeed Mahameede2816822015-05-28 22:28:40 +03002620struct mlx5_ifc_traffic_counter_bits {
2621 u8 packets[0x40];
2622
2623 u8 octets[0x40];
2624};
2625
2626struct mlx5_ifc_tisc_bits {
Aviv Heller84df61e2016-05-10 13:47:50 +03002627 u8 strict_lag_tx_port_affinity[0x1];
2628 u8 reserved_at_1[0x3];
2629 u8 lag_tx_port_affinity[0x04];
2630
2631 u8 reserved_at_8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002632 u8 prio[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002633 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002634
Matan Barakb4ff3a32016-02-09 14:57:42 +02002635 u8 reserved_at_20[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03002636
Matan Barakb4ff3a32016-02-09 14:57:42 +02002637 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002638 u8 transport_domain[0x18];
2639
Erez Shitrit500a3d02017-04-13 06:36:51 +03002640 u8 reserved_at_140[0x8];
2641 u8 underlay_qpn[0x18];
2642 u8 reserved_at_160[0x3a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002643};
2644
2645enum {
2646 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
2647 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
2648};
2649
2650enum {
2651 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
2652 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
2653};
2654
2655enum {
Saeed Mahameed2be69672015-07-23 23:35:56 +03002656 MLX5_RX_HASH_FN_NONE = 0x0,
2657 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
2658 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002659};
2660
2661enum {
Mark Bloch5d773ff2018-09-17 13:30:46 +03002662 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST = 0x1,
2663 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002664};
2665
2666struct mlx5_ifc_tirc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002667 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002668
2669 u8 disp_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002670 u8 reserved_at_24[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002671
Matan Barakb4ff3a32016-02-09 14:57:42 +02002672 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002673
Matan Barakb4ff3a32016-02-09 14:57:42 +02002674 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002675 u8 lro_timeout_period_usecs[0x10];
2676 u8 lro_enable_mask[0x4];
2677 u8 lro_max_ip_payload_size[0x8];
2678
Matan Barakb4ff3a32016-02-09 14:57:42 +02002679 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002680
Matan Barakb4ff3a32016-02-09 14:57:42 +02002681 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002682 u8 inline_rqn[0x18];
2683
2684 u8 rx_hash_symmetric[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002685 u8 reserved_at_101[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002686 u8 tunneled_offload_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002687 u8 reserved_at_103[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002688 u8 indirect_table[0x18];
2689
2690 u8 rx_hash_fn[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002691 u8 reserved_at_124[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002692 u8 self_lb_block[0x2];
2693 u8 transport_domain[0x18];
2694
2695 u8 rx_hash_toeplitz_key[10][0x20];
2696
2697 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
2698
2699 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
2700
Matan Barakb4ff3a32016-02-09 14:57:42 +02002701 u8 reserved_at_2c0[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002702};
2703
2704enum {
2705 MLX5_SRQC_STATE_GOOD = 0x0,
2706 MLX5_SRQC_STATE_ERROR = 0x1,
2707};
2708
2709struct mlx5_ifc_srqc_bits {
2710 u8 state[0x4];
2711 u8 log_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002712 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002713
2714 u8 wq_signature[0x1];
2715 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002716 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002717 u8 rlky[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002718 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002719 u8 log_rq_stride[0x3];
2720 u8 xrcd[0x18];
2721
2722 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002723 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002724 u8 cqn[0x18];
2725
Matan Barakb4ff3a32016-02-09 14:57:42 +02002726 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002727
Matan Barakb4ff3a32016-02-09 14:57:42 +02002728 u8 reserved_at_80[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002729 u8 log_page_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002730 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002731
Matan Barakb4ff3a32016-02-09 14:57:42 +02002732 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002733
Matan Barakb4ff3a32016-02-09 14:57:42 +02002734 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002735 u8 pd[0x18];
2736
2737 u8 lwm[0x10];
2738 u8 wqe_cnt[0x10];
2739
Matan Barakb4ff3a32016-02-09 14:57:42 +02002740 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002741
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03002742 u8 dbr_addr[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002743
Matan Barakb4ff3a32016-02-09 14:57:42 +02002744 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002745};
2746
2747enum {
2748 MLX5_SQC_STATE_RST = 0x0,
2749 MLX5_SQC_STATE_RDY = 0x1,
2750 MLX5_SQC_STATE_ERR = 0x3,
2751};
2752
2753struct mlx5_ifc_sqc_bits {
2754 u8 rlky[0x1];
2755 u8 cd_master[0x1];
2756 u8 fre[0x1];
2757 u8 flush_in_error_en[0x1];
Bodong Wang795b6092017-08-17 15:52:34 +03002758 u8 allow_multi_pkt_send_wqe[0x1];
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002759 u8 min_wqe_inline_mode[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002760 u8 state[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002761 u8 reg_umr[0x1];
Ilan Tayari547eede2017-04-18 16:04:28 +03002762 u8 allow_swp[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03002763 u8 hairpin[0x1];
2764 u8 reserved_at_f[0x11];
Saeed Mahameede2816822015-05-28 22:28:40 +03002765
Matan Barakb4ff3a32016-02-09 14:57:42 +02002766 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002767 u8 user_index[0x18];
2768
Matan Barakb4ff3a32016-02-09 14:57:42 +02002769 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002770 u8 cqn[0x18];
2771
Or Gerlitz40817cd2017-06-25 12:38:45 +03002772 u8 reserved_at_60[0x8];
2773 u8 hairpin_peer_rq[0x18];
2774
2775 u8 reserved_at_80[0x10];
2776 u8 hairpin_peer_vhca[0x10];
2777
2778 u8 reserved_at_a0[0x50];
Saeed Mahameede2816822015-05-28 22:28:40 +03002779
Saeed Mahameed74862162016-06-09 15:11:34 +03002780 u8 packet_pacing_rate_limit_index[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002781 u8 tis_lst_sz[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002782 u8 reserved_at_110[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002783
Matan Barakb4ff3a32016-02-09 14:57:42 +02002784 u8 reserved_at_120[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002785
Matan Barakb4ff3a32016-02-09 14:57:42 +02002786 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002787 u8 tis_num_0[0x18];
2788
2789 struct mlx5_ifc_wq_bits wq;
2790};
2791
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03002792enum {
2793 SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR = 0x0,
2794 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT = 0x1,
2795 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT_TC = 0x2,
2796 SCHEDULING_CONTEXT_ELEMENT_TYPE_PARA_VPORT_TC = 0x3,
2797};
2798
2799struct mlx5_ifc_scheduling_context_bits {
2800 u8 element_type[0x8];
2801 u8 reserved_at_8[0x18];
2802
2803 u8 element_attributes[0x20];
2804
2805 u8 parent_element_id[0x20];
2806
2807 u8 reserved_at_60[0x40];
2808
2809 u8 bw_share[0x20];
2810
2811 u8 max_average_bw[0x20];
2812
2813 u8 reserved_at_e0[0x120];
2814};
2815
Saeed Mahameede2816822015-05-28 22:28:40 +03002816struct mlx5_ifc_rqtc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002817 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002818
Matan Barakb4ff3a32016-02-09 14:57:42 +02002819 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002820 u8 rqt_max_size[0x10];
2821
Matan Barakb4ff3a32016-02-09 14:57:42 +02002822 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002823 u8 rqt_actual_size[0x10];
2824
Matan Barakb4ff3a32016-02-09 14:57:42 +02002825 u8 reserved_at_e0[0x6a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002826
2827 struct mlx5_ifc_rq_num_bits rq_num[0];
2828};
2829
2830enum {
2831 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2832 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2833};
2834
2835enum {
2836 MLX5_RQC_STATE_RST = 0x0,
2837 MLX5_RQC_STATE_RDY = 0x1,
2838 MLX5_RQC_STATE_ERR = 0x3,
2839};
2840
2841struct mlx5_ifc_rqc_bits {
2842 u8 rlky[0x1];
Maor Gottlieb03404e82017-05-30 10:29:13 +03002843 u8 delay_drop_en[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002844 u8 scatter_fcs[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002845 u8 vsd[0x1];
2846 u8 mem_rq_type[0x4];
2847 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002848 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002849 u8 flush_in_error_en[0x1];
Or Gerlitz40817cd2017-06-25 12:38:45 +03002850 u8 hairpin[0x1];
2851 u8 reserved_at_f[0x11];
Saeed Mahameede2816822015-05-28 22:28:40 +03002852
Matan Barakb4ff3a32016-02-09 14:57:42 +02002853 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002854 u8 user_index[0x18];
2855
Matan Barakb4ff3a32016-02-09 14:57:42 +02002856 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002857 u8 cqn[0x18];
2858
2859 u8 counter_set_id[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002860 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002861
Matan Barakb4ff3a32016-02-09 14:57:42 +02002862 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002863 u8 rmpn[0x18];
2864
Or Gerlitz40817cd2017-06-25 12:38:45 +03002865 u8 reserved_at_a0[0x8];
2866 u8 hairpin_peer_sq[0x18];
2867
2868 u8 reserved_at_c0[0x10];
2869 u8 hairpin_peer_vhca[0x10];
2870
2871 u8 reserved_at_e0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002872
2873 struct mlx5_ifc_wq_bits wq;
2874};
2875
2876enum {
2877 MLX5_RMPC_STATE_RDY = 0x1,
2878 MLX5_RMPC_STATE_ERR = 0x3,
2879};
2880
2881struct mlx5_ifc_rmpc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002882 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002883 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002884 u8 reserved_at_c[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002885
2886 u8 basic_cyclic_rcv_wqe[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002887 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03002888
Matan Barakb4ff3a32016-02-09 14:57:42 +02002889 u8 reserved_at_40[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03002890
2891 struct mlx5_ifc_wq_bits wq;
2892};
2893
Saeed Mahameede2816822015-05-28 22:28:40 +03002894struct mlx5_ifc_nic_vport_context_bits {
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002895 u8 reserved_at_0[0x5];
2896 u8 min_wqe_inline_mode[0x3];
Huy Nguyenbded7472017-05-30 09:42:53 +03002897 u8 reserved_at_8[0x15];
2898 u8 disable_mc_local_lb[0x1];
2899 u8 disable_uc_local_lb[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002900 u8 roce_en[0x1];
2901
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002902 u8 arm_change_event[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002903 u8 reserved_at_21[0x1a];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002904 u8 event_on_mtu[0x1];
2905 u8 event_on_promisc_change[0x1];
2906 u8 event_on_vlan_change[0x1];
2907 u8 event_on_mc_address_change[0x1];
2908 u8 event_on_uc_address_change[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002909
Daniel Jurgens32f69e42018-01-04 17:25:36 +02002910 u8 reserved_at_40[0xc];
2911
2912 u8 affiliation_criteria[0x4];
2913 u8 affiliated_vhca_id[0x10];
2914
2915 u8 reserved_at_60[0xd0];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002916
2917 u8 mtu[0x10];
2918
Achiad Shochat9efa7522015-12-23 18:47:20 +02002919 u8 system_image_guid[0x40];
2920 u8 port_guid[0x40];
2921 u8 node_guid[0x40];
2922
Matan Barakb4ff3a32016-02-09 14:57:42 +02002923 u8 reserved_at_200[0x140];
Achiad Shochat9efa7522015-12-23 18:47:20 +02002924 u8 qkey_violation_counter[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002925 u8 reserved_at_350[0x430];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002926
2927 u8 promisc_uc[0x1];
2928 u8 promisc_mc[0x1];
2929 u8 promisc_all[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002930 u8 reserved_at_783[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002931 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002932 u8 reserved_at_788[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002933 u8 allowed_list_size[0xc];
2934
2935 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2936
Matan Barakb4ff3a32016-02-09 14:57:42 +02002937 u8 reserved_at_7e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002938
2939 u8 current_uc_mac_address[0][0x40];
2940};
2941
2942enum {
2943 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2944 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2945 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02002946 MLX5_MKC_ACCESS_MODE_KSM = 0x3,
Ariel Levkovich9fba2b92019-03-31 19:44:43 +03002947 MLX5_MKC_ACCESS_MODE_SW_ICM = 0x4,
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002948 MLX5_MKC_ACCESS_MODE_MEMIC = 0x5,
Saeed Mahameede2816822015-05-28 22:28:40 +03002949};
2950
2951struct mlx5_ifc_mkc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002952 u8 reserved_at_0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002953 u8 free[0x1];
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002954 u8 reserved_at_2[0x1];
2955 u8 access_mode_4_2[0x3];
2956 u8 reserved_at_6[0x7];
2957 u8 relaxed_ordering_write[0x1];
2958 u8 reserved_at_e[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002959 u8 small_fence_on_rdma_read_response[0x1];
2960 u8 umr_en[0x1];
2961 u8 a[0x1];
2962 u8 rw[0x1];
2963 u8 rr[0x1];
2964 u8 lw[0x1];
2965 u8 lr[0x1];
Ariel Levkovichcdbd0d22018-04-05 18:53:28 +03002966 u8 access_mode_1_0[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002967 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002968
2969 u8 qpn[0x18];
2970 u8 mkey_7_0[0x8];
2971
Matan Barakb4ff3a32016-02-09 14:57:42 +02002972 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002973
2974 u8 length64[0x1];
2975 u8 bsf_en[0x1];
2976 u8 sync_umr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002977 u8 reserved_at_63[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002978 u8 expected_sigerr_count[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002979 u8 reserved_at_66[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002980 u8 en_rinval[0x1];
2981 u8 pd[0x18];
2982
2983 u8 start_addr[0x40];
2984
2985 u8 len[0x40];
2986
2987 u8 bsf_octword_size[0x20];
2988
Matan Barakb4ff3a32016-02-09 14:57:42 +02002989 u8 reserved_at_120[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002990
2991 u8 translations_octword_size[0x20];
2992
Matan Barakb4ff3a32016-02-09 14:57:42 +02002993 u8 reserved_at_1c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +03002994 u8 log_page_size[0x5];
2995
Matan Barakb4ff3a32016-02-09 14:57:42 +02002996 u8 reserved_at_1e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002997};
2998
2999struct mlx5_ifc_pkey_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003000 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003001 u8 pkey[0x10];
3002};
3003
3004struct mlx5_ifc_array128_auto_bits {
3005 u8 array128_auto[16][0x8];
3006};
3007
3008struct mlx5_ifc_hca_vport_context_bits {
3009 u8 field_select[0x20];
3010
Matan Barakb4ff3a32016-02-09 14:57:42 +02003011 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003012
3013 u8 sm_virt_aware[0x1];
3014 u8 has_smi[0x1];
3015 u8 has_raw[0x1];
3016 u8 grh_required[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003017 u8 reserved_at_104[0xc];
Majd Dibbiny707c4602015-06-04 19:30:41 +03003018 u8 port_physical_state[0x4];
3019 u8 vport_state_policy[0x4];
3020 u8 port_state[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003021 u8 vport_state[0x4];
3022
Matan Barakb4ff3a32016-02-09 14:57:42 +02003023 u8 reserved_at_120[0x20];
Majd Dibbiny707c4602015-06-04 19:30:41 +03003024
3025 u8 system_image_guid[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003026
3027 u8 port_guid[0x40];
3028
3029 u8 node_guid[0x40];
3030
3031 u8 cap_mask1[0x20];
3032
3033 u8 cap_mask1_field_select[0x20];
3034
3035 u8 cap_mask2[0x20];
3036
3037 u8 cap_mask2_field_select[0x20];
3038
Matan Barakb4ff3a32016-02-09 14:57:42 +02003039 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003040
3041 u8 lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003042 u8 reserved_at_310[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003043 u8 init_type_reply[0x4];
3044 u8 lmc[0x3];
3045 u8 subnet_timeout[0x5];
3046
3047 u8 sm_lid[0x10];
3048 u8 sm_sl[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003049 u8 reserved_at_334[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03003050
3051 u8 qkey_violation_counter[0x10];
3052 u8 pkey_violation_counter[0x10];
3053
Matan Barakb4ff3a32016-02-09 14:57:42 +02003054 u8 reserved_at_360[0xca0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003055};
3056
Saeed Mahameedd6666752015-12-01 18:03:22 +02003057struct mlx5_ifc_esw_vport_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003058 u8 reserved_at_0[0x3];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003059 u8 vport_svlan_strip[0x1];
3060 u8 vport_cvlan_strip[0x1];
3061 u8 vport_svlan_insert[0x1];
3062 u8 vport_cvlan_insert[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003063 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003064
Matan Barakb4ff3a32016-02-09 14:57:42 +02003065 u8 reserved_at_20[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003066
3067 u8 svlan_cfi[0x1];
3068 u8 svlan_pcp[0x3];
3069 u8 svlan_id[0xc];
3070 u8 cvlan_cfi[0x1];
3071 u8 cvlan_pcp[0x3];
3072 u8 cvlan_id[0xc];
3073
Matan Barakb4ff3a32016-02-09 14:57:42 +02003074 u8 reserved_at_60[0x7a0];
Saeed Mahameedd6666752015-12-01 18:03:22 +02003075};
3076
Saeed Mahameede2816822015-05-28 22:28:40 +03003077enum {
3078 MLX5_EQC_STATUS_OK = 0x0,
3079 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
3080};
3081
3082enum {
3083 MLX5_EQC_ST_ARMED = 0x9,
3084 MLX5_EQC_ST_FIRED = 0xa,
3085};
3086
3087struct mlx5_ifc_eqc_bits {
3088 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003089 u8 reserved_at_4[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03003090 u8 ec[0x1];
3091 u8 oi[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003092 u8 reserved_at_f[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003093 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003094 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003095
Matan Barakb4ff3a32016-02-09 14:57:42 +02003096 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003097
Matan Barakb4ff3a32016-02-09 14:57:42 +02003098 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003099 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003100 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003101
Matan Barakb4ff3a32016-02-09 14:57:42 +02003102 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003103 u8 log_eq_size[0x5];
3104 u8 uar_page[0x18];
3105
Matan Barakb4ff3a32016-02-09 14:57:42 +02003106 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003107
Matan Barakb4ff3a32016-02-09 14:57:42 +02003108 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003109 u8 intr[0x8];
3110
Matan Barakb4ff3a32016-02-09 14:57:42 +02003111 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003112 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003113 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003114
Matan Barakb4ff3a32016-02-09 14:57:42 +02003115 u8 reserved_at_e0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003116
Matan Barakb4ff3a32016-02-09 14:57:42 +02003117 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003118 u8 consumer_counter[0x18];
3119
Matan Barakb4ff3a32016-02-09 14:57:42 +02003120 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003121 u8 producer_counter[0x18];
3122
Matan Barakb4ff3a32016-02-09 14:57:42 +02003123 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003124};
3125
3126enum {
3127 MLX5_DCTC_STATE_ACTIVE = 0x0,
3128 MLX5_DCTC_STATE_DRAINING = 0x1,
3129 MLX5_DCTC_STATE_DRAINED = 0x2,
3130};
3131
3132enum {
3133 MLX5_DCTC_CS_RES_DISABLE = 0x0,
3134 MLX5_DCTC_CS_RES_NA = 0x1,
3135 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
3136};
3137
3138enum {
3139 MLX5_DCTC_MTU_256_BYTES = 0x1,
3140 MLX5_DCTC_MTU_512_BYTES = 0x2,
3141 MLX5_DCTC_MTU_1K_BYTES = 0x3,
3142 MLX5_DCTC_MTU_2K_BYTES = 0x4,
3143 MLX5_DCTC_MTU_4K_BYTES = 0x5,
3144};
3145
3146struct mlx5_ifc_dctc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003147 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003148 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003149 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003150
Matan Barakb4ff3a32016-02-09 14:57:42 +02003151 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003152 u8 user_index[0x18];
3153
Matan Barakb4ff3a32016-02-09 14:57:42 +02003154 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003155 u8 cqn[0x18];
3156
3157 u8 counter_set_id[0x8];
3158 u8 atomic_mode[0x4];
3159 u8 rre[0x1];
3160 u8 rwe[0x1];
3161 u8 rae[0x1];
3162 u8 atomic_like_write_en[0x1];
3163 u8 latency_sensitive[0x1];
3164 u8 rlky[0x1];
3165 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003166 u8 reserved_at_73[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03003167
Matan Barakb4ff3a32016-02-09 14:57:42 +02003168 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003169 u8 cs_res[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003170 u8 reserved_at_90[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003171 u8 min_rnr_nak[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003172 u8 reserved_at_98[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003173
Matan Barakb4ff3a32016-02-09 14:57:42 +02003174 u8 reserved_at_a0[0x8];
Saeed Mahameed74862162016-06-09 15:11:34 +03003175 u8 srqn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003176
Matan Barakb4ff3a32016-02-09 14:57:42 +02003177 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003178 u8 pd[0x18];
3179
3180 u8 tclass[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003181 u8 reserved_at_e8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003182 u8 flow_label[0x14];
3183
3184 u8 dc_access_key[0x40];
3185
Matan Barakb4ff3a32016-02-09 14:57:42 +02003186 u8 reserved_at_140[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003187 u8 mtu[0x3];
3188 u8 port[0x8];
3189 u8 pkey_index[0x10];
3190
Matan Barakb4ff3a32016-02-09 14:57:42 +02003191 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003192 u8 my_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003193 u8 reserved_at_170[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003194 u8 hop_limit[0x8];
3195
3196 u8 dc_access_key_violation_count[0x20];
3197
Matan Barakb4ff3a32016-02-09 14:57:42 +02003198 u8 reserved_at_1a0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003199 u8 dei_cfi[0x1];
3200 u8 eth_prio[0x3];
3201 u8 ecn[0x2];
3202 u8 dscp[0x6];
3203
Matan Barakb4ff3a32016-02-09 14:57:42 +02003204 u8 reserved_at_1c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003205};
3206
3207enum {
3208 MLX5_CQC_STATUS_OK = 0x0,
3209 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
3210 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
3211};
3212
3213enum {
3214 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
3215 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
3216};
3217
3218enum {
3219 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
3220 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
3221 MLX5_CQC_ST_FIRED = 0xa,
3222};
3223
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003224enum {
3225 MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0,
3226 MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1,
Saeed Mahameed74862162016-06-09 15:11:34 +03003227 MLX5_CQ_PERIOD_NUM_MODES
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003228};
3229
Saeed Mahameede2816822015-05-28 22:28:40 +03003230struct mlx5_ifc_cqc_bits {
3231 u8 status[0x4];
Leon Romanovskybd371972018-09-20 21:35:26 +03003232 u8 reserved_at_4[0x2];
3233 u8 dbr_umem_valid[0x1];
3234 u8 reserved_at_7[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003235 u8 cqe_sz[0x3];
3236 u8 cc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003237 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003238 u8 scqe_break_moderation_en[0x1];
3239 u8 oi[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003240 u8 cq_period_mode[0x2];
3241 u8 cqe_comp_en[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003242 u8 mini_cqe_res_format[0x2];
3243 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003244 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003245
Matan Barakb4ff3a32016-02-09 14:57:42 +02003246 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003247
Matan Barakb4ff3a32016-02-09 14:57:42 +02003248 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03003249 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003250 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003251
Matan Barakb4ff3a32016-02-09 14:57:42 +02003252 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003253 u8 log_cq_size[0x5];
3254 u8 uar_page[0x18];
3255
Matan Barakb4ff3a32016-02-09 14:57:42 +02003256 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003257 u8 cq_period[0xc];
3258 u8 cq_max_count[0x10];
3259
Matan Barakb4ff3a32016-02-09 14:57:42 +02003260 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003261 u8 c_eqn[0x8];
3262
Matan Barakb4ff3a32016-02-09 14:57:42 +02003263 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03003264 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003265 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003266
Matan Barakb4ff3a32016-02-09 14:57:42 +02003267 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003268
Matan Barakb4ff3a32016-02-09 14:57:42 +02003269 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003270 u8 last_notified_index[0x18];
3271
Matan Barakb4ff3a32016-02-09 14:57:42 +02003272 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003273 u8 last_solicit_index[0x18];
3274
Matan Barakb4ff3a32016-02-09 14:57:42 +02003275 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003276 u8 consumer_counter[0x18];
3277
Matan Barakb4ff3a32016-02-09 14:57:42 +02003278 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003279 u8 producer_counter[0x18];
3280
Matan Barakb4ff3a32016-02-09 14:57:42 +02003281 u8 reserved_at_180[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003282
3283 u8 dbr_addr[0x40];
3284};
3285
3286union mlx5_ifc_cong_control_roce_ecn_auto_bits {
3287 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
3288 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
3289 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003290 u8 reserved_at_0[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03003291};
3292
3293struct mlx5_ifc_query_adapter_param_block_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003294 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003295
Matan Barakb4ff3a32016-02-09 14:57:42 +02003296 u8 reserved_at_c0[0x8];
Majd Dibbiny211e6c82015-06-04 19:30:42 +03003297 u8 ieee_vendor_id[0x18];
3298
Matan Barakb4ff3a32016-02-09 14:57:42 +02003299 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003300 u8 vsd_vendor_id[0x10];
3301
3302 u8 vsd[208][0x8];
3303
3304 u8 vsd_contd_psid[16][0x8];
3305};
3306
Saeed Mahameed74862162016-06-09 15:11:34 +03003307enum {
3308 MLX5_XRQC_STATE_GOOD = 0x0,
3309 MLX5_XRQC_STATE_ERROR = 0x1,
3310};
3311
3312enum {
3313 MLX5_XRQC_TOPOLOGY_NO_SPECIAL_TOPOLOGY = 0x0,
3314 MLX5_XRQC_TOPOLOGY_TAG_MATCHING = 0x1,
3315};
3316
3317enum {
3318 MLX5_XRQC_OFFLOAD_RNDV = 0x1,
3319};
3320
3321struct mlx5_ifc_tag_matching_topology_context_bits {
3322 u8 log_matching_list_sz[0x4];
3323 u8 reserved_at_4[0xc];
3324 u8 append_next_index[0x10];
3325
3326 u8 sw_phase_cnt[0x10];
3327 u8 hw_phase_cnt[0x10];
3328
3329 u8 reserved_at_40[0x40];
3330};
3331
3332struct mlx5_ifc_xrqc_bits {
3333 u8 state[0x4];
3334 u8 rlkey[0x1];
3335 u8 reserved_at_5[0xf];
3336 u8 topology[0x4];
3337 u8 reserved_at_18[0x4];
3338 u8 offload[0x4];
3339
3340 u8 reserved_at_20[0x8];
3341 u8 user_index[0x18];
3342
3343 u8 reserved_at_40[0x8];
3344 u8 cqn[0x18];
3345
3346 u8 reserved_at_60[0xa0];
3347
3348 struct mlx5_ifc_tag_matching_topology_context_bits tag_matching_topology_context;
3349
Artemy Kovalyov6e446362017-08-15 11:59:02 +03003350 u8 reserved_at_180[0x280];
Saeed Mahameed74862162016-06-09 15:11:34 +03003351
3352 struct mlx5_ifc_wq_bits wq;
3353};
3354
Saeed Mahameede2816822015-05-28 22:28:40 +03003355union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
3356 struct mlx5_ifc_modify_field_select_bits modify_field_select;
3357 struct mlx5_ifc_resize_field_select_bits resize_field_select;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003358 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003359};
3360
3361union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
3362 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
3363 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
3364 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003365 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003366};
3367
3368union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
3369 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
3370 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
3371 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
3372 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
3373 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
3374 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
3375 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02003376 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03003377 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
Gal Pressmand8dc0502016-09-27 17:04:51 +03003378 struct mlx5_ifc_phys_layer_statistical_cntrs_bits phys_layer_statistical_cntrs;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003379 u8 reserved_at_0[0x7c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003380};
3381
Gal Pressman8ed1a632016-11-17 13:46:01 +02003382union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits {
3383 struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits pcie_perf_cntrs_grp_data_layout;
3384 u8 reserved_at_0[0x7c0];
3385};
3386
Saeed Mahameede2816822015-05-28 22:28:40 +03003387union mlx5_ifc_event_auto_bits {
3388 struct mlx5_ifc_comp_event_bits comp_event;
3389 struct mlx5_ifc_dct_events_bits dct_events;
3390 struct mlx5_ifc_qp_events_bits qp_events;
3391 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
3392 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
3393 struct mlx5_ifc_cq_error_bits cq_error;
3394 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
3395 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
3396 struct mlx5_ifc_gpio_event_bits gpio_event;
3397 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
3398 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
3399 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003400 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003401};
3402
3403struct mlx5_ifc_health_buffer_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003404 u8 reserved_at_0[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03003405
3406 u8 assert_existptr[0x20];
3407
3408 u8 assert_callra[0x20];
3409
Matan Barakb4ff3a32016-02-09 14:57:42 +02003410 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003411
3412 u8 fw_version[0x20];
3413
3414 u8 hw_id[0x20];
3415
Matan Barakb4ff3a32016-02-09 14:57:42 +02003416 u8 reserved_at_1c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003417
3418 u8 irisc_index[0x8];
3419 u8 synd[0x8];
3420 u8 ext_synd[0x10];
3421};
3422
3423struct mlx5_ifc_register_loopback_control_bits {
3424 u8 no_lb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003425 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03003426 u8 port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003427 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003428
Matan Barakb4ff3a32016-02-09 14:57:42 +02003429 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003430};
3431
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03003432struct mlx5_ifc_vport_tc_element_bits {
3433 u8 traffic_class[0x4];
3434 u8 reserved_at_4[0xc];
3435 u8 vport_number[0x10];
3436};
3437
3438struct mlx5_ifc_vport_element_bits {
3439 u8 reserved_at_0[0x10];
3440 u8 vport_number[0x10];
3441};
3442
3443enum {
3444 TSAR_ELEMENT_TSAR_TYPE_DWRR = 0x0,
3445 TSAR_ELEMENT_TSAR_TYPE_ROUND_ROBIN = 0x1,
3446 TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2,
3447};
3448
3449struct mlx5_ifc_tsar_element_bits {
3450 u8 reserved_at_0[0x8];
3451 u8 tsar_type[0x8];
3452 u8 reserved_at_10[0x10];
3453};
3454
Majd Dibbiny8812c242017-02-09 14:20:12 +02003455enum {
3456 MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_SUCCESS = 0x0,
3457 MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_FAIL = 0x1,
3458};
3459
Saeed Mahameede2816822015-05-28 22:28:40 +03003460struct mlx5_ifc_teardown_hca_out_bits {
3461 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003462 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003463
3464 u8 syndrome[0x20];
3465
Majd Dibbiny8812c242017-02-09 14:20:12 +02003466 u8 reserved_at_40[0x3f];
3467
Feras Daoudfcd29ad2018-08-09 09:55:21 +03003468 u8 state[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03003469};
3470
3471enum {
3472 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
Majd Dibbiny8812c242017-02-09 14:20:12 +02003473 MLX5_TEARDOWN_HCA_IN_PROFILE_FORCE_CLOSE = 0x1,
Feras Daoudfcd29ad2018-08-09 09:55:21 +03003474 MLX5_TEARDOWN_HCA_IN_PROFILE_PREPARE_FAST_TEARDOWN = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03003475};
3476
3477struct mlx5_ifc_teardown_hca_in_bits {
3478 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003479 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003480
Matan Barakb4ff3a32016-02-09 14:57:42 +02003481 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003482 u8 op_mod[0x10];
3483
Matan Barakb4ff3a32016-02-09 14:57:42 +02003484 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003485 u8 profile[0x10];
3486
Matan Barakb4ff3a32016-02-09 14:57:42 +02003487 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003488};
3489
3490struct mlx5_ifc_sqerr2rts_qp_out_bits {
3491 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003492 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003493
3494 u8 syndrome[0x20];
3495
Matan Barakb4ff3a32016-02-09 14:57:42 +02003496 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003497};
3498
3499struct mlx5_ifc_sqerr2rts_qp_in_bits {
3500 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003501 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003502
Matan Barakb4ff3a32016-02-09 14:57:42 +02003503 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003504 u8 op_mod[0x10];
3505
Matan Barakb4ff3a32016-02-09 14:57:42 +02003506 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003507 u8 qpn[0x18];
3508
Matan Barakb4ff3a32016-02-09 14:57:42 +02003509 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003510
3511 u8 opt_param_mask[0x20];
3512
Matan Barakb4ff3a32016-02-09 14:57:42 +02003513 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003514
3515 struct mlx5_ifc_qpc_bits qpc;
3516
Matan Barakb4ff3a32016-02-09 14:57:42 +02003517 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003518};
3519
3520struct mlx5_ifc_sqd2rts_qp_out_bits {
3521 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003522 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003523
3524 u8 syndrome[0x20];
3525
Matan Barakb4ff3a32016-02-09 14:57:42 +02003526 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003527};
3528
3529struct mlx5_ifc_sqd2rts_qp_in_bits {
3530 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003531 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003532
Matan Barakb4ff3a32016-02-09 14:57:42 +02003533 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003534 u8 op_mod[0x10];
3535
Matan Barakb4ff3a32016-02-09 14:57:42 +02003536 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003537 u8 qpn[0x18];
3538
Matan Barakb4ff3a32016-02-09 14:57:42 +02003539 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003540
3541 u8 opt_param_mask[0x20];
3542
Matan Barakb4ff3a32016-02-09 14:57:42 +02003543 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003544
3545 struct mlx5_ifc_qpc_bits qpc;
3546
Matan Barakb4ff3a32016-02-09 14:57:42 +02003547 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003548};
3549
3550struct mlx5_ifc_set_roce_address_out_bits {
3551 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003552 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003553
3554 u8 syndrome[0x20];
3555
Matan Barakb4ff3a32016-02-09 14:57:42 +02003556 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003557};
3558
3559struct mlx5_ifc_set_roce_address_in_bits {
3560 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003561 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003562
Matan Barakb4ff3a32016-02-09 14:57:42 +02003563 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003564 u8 op_mod[0x10];
3565
3566 u8 roce_address_index[0x10];
Daniel Jurgens32f69e42018-01-04 17:25:36 +02003567 u8 reserved_at_50[0xc];
3568 u8 vhca_port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003569
Matan Barakb4ff3a32016-02-09 14:57:42 +02003570 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003571
3572 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3573};
3574
3575struct mlx5_ifc_set_mad_demux_out_bits {
3576 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003577 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003578
3579 u8 syndrome[0x20];
3580
Matan Barakb4ff3a32016-02-09 14:57:42 +02003581 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003582};
3583
3584enum {
3585 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
3586 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
3587};
3588
3589struct mlx5_ifc_set_mad_demux_in_bits {
3590 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003591 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003592
Matan Barakb4ff3a32016-02-09 14:57:42 +02003593 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003594 u8 op_mod[0x10];
3595
Matan Barakb4ff3a32016-02-09 14:57:42 +02003596 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003597
Matan Barakb4ff3a32016-02-09 14:57:42 +02003598 u8 reserved_at_60[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003599 u8 demux_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003600 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003601};
3602
3603struct mlx5_ifc_set_l2_table_entry_out_bits {
3604 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003605 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003606
3607 u8 syndrome[0x20];
3608
Matan Barakb4ff3a32016-02-09 14:57:42 +02003609 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003610};
3611
3612struct mlx5_ifc_set_l2_table_entry_in_bits {
3613 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003614 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003615
Matan Barakb4ff3a32016-02-09 14:57:42 +02003616 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003617 u8 op_mod[0x10];
3618
Matan Barakb4ff3a32016-02-09 14:57:42 +02003619 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003620
Matan Barakb4ff3a32016-02-09 14:57:42 +02003621 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003622 u8 table_index[0x18];
3623
Matan Barakb4ff3a32016-02-09 14:57:42 +02003624 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003625
Matan Barakb4ff3a32016-02-09 14:57:42 +02003626 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03003627 u8 vlan_valid[0x1];
3628 u8 vlan[0xc];
3629
3630 struct mlx5_ifc_mac_address_layout_bits mac_address;
3631
Matan Barakb4ff3a32016-02-09 14:57:42 +02003632 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003633};
3634
3635struct mlx5_ifc_set_issi_out_bits {
3636 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003637 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003638
3639 u8 syndrome[0x20];
3640
Matan Barakb4ff3a32016-02-09 14:57:42 +02003641 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003642};
3643
3644struct mlx5_ifc_set_issi_in_bits {
3645 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003646 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003647
Matan Barakb4ff3a32016-02-09 14:57:42 +02003648 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003649 u8 op_mod[0x10];
3650
Matan Barakb4ff3a32016-02-09 14:57:42 +02003651 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003652 u8 current_issi[0x10];
3653
Matan Barakb4ff3a32016-02-09 14:57:42 +02003654 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003655};
3656
3657struct mlx5_ifc_set_hca_cap_out_bits {
3658 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003659 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003660
3661 u8 syndrome[0x20];
3662
Matan Barakb4ff3a32016-02-09 14:57:42 +02003663 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003664};
3665
3666struct mlx5_ifc_set_hca_cap_in_bits {
3667 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003668 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003669
Matan Barakb4ff3a32016-02-09 14:57:42 +02003670 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003671 u8 op_mod[0x10];
3672
Matan Barakb4ff3a32016-02-09 14:57:42 +02003673 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003674
Saeed Mahameede2816822015-05-28 22:28:40 +03003675 union mlx5_ifc_hca_cap_union_bits capability;
3676};
3677
Maor Gottlieb26a81452015-12-10 17:12:39 +02003678enum {
3679 MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0,
3680 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1,
3681 MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2,
3682 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3
3683};
3684
Saeed Mahameede2816822015-05-28 22:28:40 +03003685struct mlx5_ifc_set_fte_out_bits {
3686 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003687 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003688
3689 u8 syndrome[0x20];
3690
Matan Barakb4ff3a32016-02-09 14:57:42 +02003691 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003692};
3693
3694struct mlx5_ifc_set_fte_in_bits {
3695 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003696 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003697
Matan Barakb4ff3a32016-02-09 14:57:42 +02003698 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003699 u8 op_mod[0x10];
3700
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003701 u8 other_vport[0x1];
3702 u8 reserved_at_41[0xf];
3703 u8 vport_number[0x10];
3704
3705 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003706
3707 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003708 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003709
Matan Barakb4ff3a32016-02-09 14:57:42 +02003710 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003711 u8 table_id[0x18];
3712
Matan Barakb4ff3a32016-02-09 14:57:42 +02003713 u8 reserved_at_c0[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +02003714 u8 modify_enable_mask[0x8];
3715
Matan Barakb4ff3a32016-02-09 14:57:42 +02003716 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003717
3718 u8 flow_index[0x20];
3719
Matan Barakb4ff3a32016-02-09 14:57:42 +02003720 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003721
3722 struct mlx5_ifc_flow_context_bits flow_context;
3723};
3724
3725struct mlx5_ifc_rts2rts_qp_out_bits {
3726 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003727 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003728
3729 u8 syndrome[0x20];
3730
Matan Barakb4ff3a32016-02-09 14:57:42 +02003731 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003732};
3733
3734struct mlx5_ifc_rts2rts_qp_in_bits {
3735 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003736 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003737
Matan Barakb4ff3a32016-02-09 14:57:42 +02003738 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003739 u8 op_mod[0x10];
3740
Matan Barakb4ff3a32016-02-09 14:57:42 +02003741 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003742 u8 qpn[0x18];
3743
Matan Barakb4ff3a32016-02-09 14:57:42 +02003744 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003745
3746 u8 opt_param_mask[0x20];
3747
Matan Barakb4ff3a32016-02-09 14:57:42 +02003748 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003749
3750 struct mlx5_ifc_qpc_bits qpc;
3751
Matan Barakb4ff3a32016-02-09 14:57:42 +02003752 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003753};
3754
3755struct mlx5_ifc_rtr2rts_qp_out_bits {
3756 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003757 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003758
3759 u8 syndrome[0x20];
3760
Matan Barakb4ff3a32016-02-09 14:57:42 +02003761 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003762};
3763
3764struct mlx5_ifc_rtr2rts_qp_in_bits {
3765 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003766 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003767
Matan Barakb4ff3a32016-02-09 14:57:42 +02003768 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003769 u8 op_mod[0x10];
3770
Matan Barakb4ff3a32016-02-09 14:57:42 +02003771 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003772 u8 qpn[0x18];
3773
Matan Barakb4ff3a32016-02-09 14:57:42 +02003774 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003775
3776 u8 opt_param_mask[0x20];
3777
Matan Barakb4ff3a32016-02-09 14:57:42 +02003778 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003779
3780 struct mlx5_ifc_qpc_bits qpc;
3781
Matan Barakb4ff3a32016-02-09 14:57:42 +02003782 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003783};
3784
3785struct mlx5_ifc_rst2init_qp_out_bits {
3786 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003787 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003788
3789 u8 syndrome[0x20];
3790
Matan Barakb4ff3a32016-02-09 14:57:42 +02003791 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003792};
3793
3794struct mlx5_ifc_rst2init_qp_in_bits {
3795 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03003796 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003797
Matan Barakb4ff3a32016-02-09 14:57:42 +02003798 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003799 u8 op_mod[0x10];
3800
Matan Barakb4ff3a32016-02-09 14:57:42 +02003801 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003802 u8 qpn[0x18];
3803
Matan Barakb4ff3a32016-02-09 14:57:42 +02003804 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003805
3806 u8 opt_param_mask[0x20];
3807
Matan Barakb4ff3a32016-02-09 14:57:42 +02003808 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003809
3810 struct mlx5_ifc_qpc_bits qpc;
3811
Matan Barakb4ff3a32016-02-09 14:57:42 +02003812 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003813};
3814
Saeed Mahameed74862162016-06-09 15:11:34 +03003815struct mlx5_ifc_query_xrq_out_bits {
3816 u8 status[0x8];
3817 u8 reserved_at_8[0x18];
3818
3819 u8 syndrome[0x20];
3820
3821 u8 reserved_at_40[0x40];
3822
3823 struct mlx5_ifc_xrqc_bits xrq_context;
3824};
3825
3826struct mlx5_ifc_query_xrq_in_bits {
3827 u8 opcode[0x10];
3828 u8 reserved_at_10[0x10];
3829
3830 u8 reserved_at_20[0x10];
3831 u8 op_mod[0x10];
3832
3833 u8 reserved_at_40[0x8];
3834 u8 xrqn[0x18];
3835
3836 u8 reserved_at_60[0x20];
3837};
3838
Saeed Mahameede2816822015-05-28 22:28:40 +03003839struct mlx5_ifc_query_xrc_srq_out_bits {
3840 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003841 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003842
3843 u8 syndrome[0x20];
3844
Matan Barakb4ff3a32016-02-09 14:57:42 +02003845 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003846
3847 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
3848
Matan Barakb4ff3a32016-02-09 14:57:42 +02003849 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003850
3851 u8 pas[0][0x40];
3852};
3853
3854struct mlx5_ifc_query_xrc_srq_in_bits {
3855 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003856 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003857
Matan Barakb4ff3a32016-02-09 14:57:42 +02003858 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003859 u8 op_mod[0x10];
3860
Matan Barakb4ff3a32016-02-09 14:57:42 +02003861 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003862 u8 xrc_srqn[0x18];
3863
Matan Barakb4ff3a32016-02-09 14:57:42 +02003864 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003865};
3866
3867enum {
3868 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
3869 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
3870};
3871
3872struct mlx5_ifc_query_vport_state_out_bits {
3873 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003874 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003875
3876 u8 syndrome[0x20];
3877
Matan Barakb4ff3a32016-02-09 14:57:42 +02003878 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003879
Matan Barakb4ff3a32016-02-09 14:57:42 +02003880 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003881 u8 admin_state[0x4];
3882 u8 state[0x4];
3883};
3884
3885enum {
Eran Ben Elishacc9c82a2018-08-08 16:23:49 -07003886 MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT = 0x0,
3887 MLX5_VPORT_STATE_OP_MOD_ESW_VPORT = 0x1,
Saeed Mahameede2816822015-05-28 22:28:40 +03003888};
3889
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08003890struct mlx5_ifc_arm_monitor_counter_in_bits {
3891 u8 opcode[0x10];
3892 u8 uid[0x10];
3893
3894 u8 reserved_at_20[0x10];
3895 u8 op_mod[0x10];
3896
3897 u8 reserved_at_40[0x20];
3898
3899 u8 reserved_at_60[0x20];
3900};
3901
3902struct mlx5_ifc_arm_monitor_counter_out_bits {
3903 u8 status[0x8];
3904 u8 reserved_at_8[0x18];
3905
3906 u8 syndrome[0x20];
3907
3908 u8 reserved_at_40[0x40];
3909};
3910
3911enum {
3912 MLX5_QUERY_MONITOR_CNT_TYPE_PPCNT = 0x0,
3913 MLX5_QUERY_MONITOR_CNT_TYPE_Q_COUNTER = 0x1,
3914};
3915
3916enum mlx5_monitor_counter_ppcnt {
Saeed Mahameed4c8b8512018-12-12 19:11:36 -08003917 MLX5_QUERY_MONITOR_PPCNT_IN_RANGE_LENGTH_ERRORS = 0x0,
3918 MLX5_QUERY_MONITOR_PPCNT_OUT_OF_RANGE_LENGTH_FIELD = 0x1,
3919 MLX5_QUERY_MONITOR_PPCNT_FRAME_TOO_LONG_ERRORS = 0x2,
3920 MLX5_QUERY_MONITOR_PPCNT_FRAME_CHECK_SEQUENCE_ERRORS = 0x3,
3921 MLX5_QUERY_MONITOR_PPCNT_ALIGNMENT_ERRORS = 0x4,
3922 MLX5_QUERY_MONITOR_PPCNT_IF_OUT_DISCARDS = 0x5,
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08003923};
3924
3925enum {
Saeed Mahameed4c8b8512018-12-12 19:11:36 -08003926 MLX5_QUERY_MONITOR_Q_COUNTER_RX_OUT_OF_BUFFER = 0x4,
Eyal Davidovichfd4572b2018-12-10 13:15:12 -08003927};
3928
3929struct mlx5_ifc_monitor_counter_output_bits {
3930 u8 reserved_at_0[0x4];
3931 u8 type[0x4];
3932 u8 reserved_at_8[0x8];
3933 u8 counter[0x10];
3934
3935 u8 counter_group_id[0x20];
3936};
3937
3938#define MLX5_CMD_SET_MONITOR_NUM_PPCNT_COUNTER_SET1 (6)
3939#define MLX5_CMD_SET_MONITOR_NUM_Q_COUNTERS_SET1 (1)
3940#define MLX5_CMD_SET_MONITOR_NUM_COUNTER (MLX5_CMD_SET_MONITOR_NUM_PPCNT_COUNTER_SET1 +\
3941 MLX5_CMD_SET_MONITOR_NUM_Q_COUNTERS_SET1)
3942
3943struct mlx5_ifc_set_monitor_counter_in_bits {
3944 u8 opcode[0x10];
3945 u8 uid[0x10];
3946
3947 u8 reserved_at_20[0x10];
3948 u8 op_mod[0x10];
3949
3950 u8 reserved_at_40[0x10];
3951 u8 num_of_counters[0x10];
3952
3953 u8 reserved_at_60[0x20];
3954
3955 struct mlx5_ifc_monitor_counter_output_bits monitor_counter[MLX5_CMD_SET_MONITOR_NUM_COUNTER];
3956};
3957
3958struct mlx5_ifc_set_monitor_counter_out_bits {
3959 u8 status[0x8];
3960 u8 reserved_at_8[0x18];
3961
3962 u8 syndrome[0x20];
3963
3964 u8 reserved_at_40[0x40];
3965};
3966
Saeed Mahameede2816822015-05-28 22:28:40 +03003967struct mlx5_ifc_query_vport_state_in_bits {
3968 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003969 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003970
Matan Barakb4ff3a32016-02-09 14:57:42 +02003971 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003972 u8 op_mod[0x10];
3973
3974 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003975 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003976 u8 vport_number[0x10];
3977
Matan Barakb4ff3a32016-02-09 14:57:42 +02003978 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003979};
3980
Moshe Shemesh61c5b5c2018-01-07 16:45:27 +02003981struct mlx5_ifc_query_vnic_env_out_bits {
3982 u8 status[0x8];
3983 u8 reserved_at_8[0x18];
3984
3985 u8 syndrome[0x20];
3986
3987 u8 reserved_at_40[0x40];
3988
3989 struct mlx5_ifc_vnic_diagnostic_statistics_bits vport_env;
3990};
3991
3992enum {
3993 MLX5_QUERY_VNIC_ENV_IN_OP_MOD_VPORT_DIAG_STATISTICS = 0x0,
3994};
3995
3996struct mlx5_ifc_query_vnic_env_in_bits {
3997 u8 opcode[0x10];
3998 u8 reserved_at_10[0x10];
3999
4000 u8 reserved_at_20[0x10];
4001 u8 op_mod[0x10];
4002
4003 u8 other_vport[0x1];
4004 u8 reserved_at_41[0xf];
4005 u8 vport_number[0x10];
4006
4007 u8 reserved_at_60[0x20];
4008};
4009
Saeed Mahameede2816822015-05-28 22:28:40 +03004010struct mlx5_ifc_query_vport_counter_out_bits {
4011 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004012 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004013
4014 u8 syndrome[0x20];
4015
Matan Barakb4ff3a32016-02-09 14:57:42 +02004016 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004017
4018 struct mlx5_ifc_traffic_counter_bits received_errors;
4019
4020 struct mlx5_ifc_traffic_counter_bits transmit_errors;
4021
4022 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
4023
4024 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
4025
4026 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
4027
4028 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
4029
4030 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
4031
4032 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
4033
4034 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
4035
4036 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
4037
4038 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
4039
4040 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
4041
Matan Barakb4ff3a32016-02-09 14:57:42 +02004042 u8 reserved_at_680[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +03004043};
4044
4045enum {
4046 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
4047};
4048
4049struct mlx5_ifc_query_vport_counter_in_bits {
4050 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004051 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004052
Matan Barakb4ff3a32016-02-09 14:57:42 +02004053 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004054 u8 op_mod[0x10];
4055
4056 u8 other_vport[0x1];
Meny Yossefib54ba272016-02-18 18:14:59 +02004057 u8 reserved_at_41[0xb];
4058 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004059 u8 vport_number[0x10];
4060
Matan Barakb4ff3a32016-02-09 14:57:42 +02004061 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004062
4063 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004064 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004065
Matan Barakb4ff3a32016-02-09 14:57:42 +02004066 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004067};
4068
4069struct mlx5_ifc_query_tis_out_bits {
4070 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004071 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004072
4073 u8 syndrome[0x20];
4074
Matan Barakb4ff3a32016-02-09 14:57:42 +02004075 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004076
4077 struct mlx5_ifc_tisc_bits tis_context;
4078};
4079
4080struct mlx5_ifc_query_tis_in_bits {
4081 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004082 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004083
Matan Barakb4ff3a32016-02-09 14:57:42 +02004084 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004085 u8 op_mod[0x10];
4086
Matan Barakb4ff3a32016-02-09 14:57:42 +02004087 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004088 u8 tisn[0x18];
4089
Matan Barakb4ff3a32016-02-09 14:57:42 +02004090 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004091};
4092
4093struct mlx5_ifc_query_tir_out_bits {
4094 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004095 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004096
4097 u8 syndrome[0x20];
4098
Matan Barakb4ff3a32016-02-09 14:57:42 +02004099 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004100
4101 struct mlx5_ifc_tirc_bits tir_context;
4102};
4103
4104struct mlx5_ifc_query_tir_in_bits {
4105 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004106 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004107
Matan Barakb4ff3a32016-02-09 14:57:42 +02004108 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004109 u8 op_mod[0x10];
4110
Matan Barakb4ff3a32016-02-09 14:57:42 +02004111 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004112 u8 tirn[0x18];
4113
Matan Barakb4ff3a32016-02-09 14:57:42 +02004114 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004115};
4116
4117struct mlx5_ifc_query_srq_out_bits {
4118 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004119 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004120
4121 u8 syndrome[0x20];
4122
Matan Barakb4ff3a32016-02-09 14:57:42 +02004123 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004124
4125 struct mlx5_ifc_srqc_bits srq_context_entry;
4126
Matan Barakb4ff3a32016-02-09 14:57:42 +02004127 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004128
4129 u8 pas[0][0x40];
4130};
4131
4132struct mlx5_ifc_query_srq_in_bits {
4133 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004134 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004135
Matan Barakb4ff3a32016-02-09 14:57:42 +02004136 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004137 u8 op_mod[0x10];
4138
Matan Barakb4ff3a32016-02-09 14:57:42 +02004139 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004140 u8 srqn[0x18];
4141
Matan Barakb4ff3a32016-02-09 14:57:42 +02004142 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004143};
4144
4145struct mlx5_ifc_query_sq_out_bits {
4146 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004147 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004148
4149 u8 syndrome[0x20];
4150
Matan Barakb4ff3a32016-02-09 14:57:42 +02004151 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004152
4153 struct mlx5_ifc_sqc_bits sq_context;
4154};
4155
4156struct mlx5_ifc_query_sq_in_bits {
4157 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004158 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004159
Matan Barakb4ff3a32016-02-09 14:57:42 +02004160 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004161 u8 op_mod[0x10];
4162
Matan Barakb4ff3a32016-02-09 14:57:42 +02004163 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004164 u8 sqn[0x18];
4165
Matan Barakb4ff3a32016-02-09 14:57:42 +02004166 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004167};
4168
4169struct mlx5_ifc_query_special_contexts_out_bits {
4170 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004171 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004172
4173 u8 syndrome[0x20];
4174
Saeed Mahameedec22eb52016-07-16 06:28:36 +03004175 u8 dump_fill_mkey[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004176
4177 u8 resd_lkey[0x20];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02004178
4179 u8 null_mkey[0x20];
4180
4181 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004182};
4183
4184struct mlx5_ifc_query_special_contexts_in_bits {
4185 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004186 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004187
Matan Barakb4ff3a32016-02-09 14:57:42 +02004188 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004189 u8 op_mod[0x10];
4190
Matan Barakb4ff3a32016-02-09 14:57:42 +02004191 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004192};
4193
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03004194struct mlx5_ifc_query_scheduling_element_out_bits {
4195 u8 opcode[0x10];
4196 u8 reserved_at_10[0x10];
4197
4198 u8 reserved_at_20[0x10];
4199 u8 op_mod[0x10];
4200
4201 u8 reserved_at_40[0xc0];
4202
4203 struct mlx5_ifc_scheduling_context_bits scheduling_context;
4204
4205 u8 reserved_at_300[0x100];
4206};
4207
4208enum {
4209 SCHEDULING_HIERARCHY_E_SWITCH = 0x2,
4210};
4211
4212struct mlx5_ifc_query_scheduling_element_in_bits {
4213 u8 opcode[0x10];
4214 u8 reserved_at_10[0x10];
4215
4216 u8 reserved_at_20[0x10];
4217 u8 op_mod[0x10];
4218
4219 u8 scheduling_hierarchy[0x8];
4220 u8 reserved_at_48[0x18];
4221
4222 u8 scheduling_element_id[0x20];
4223
4224 u8 reserved_at_80[0x180];
4225};
4226
Saeed Mahameede2816822015-05-28 22:28:40 +03004227struct mlx5_ifc_query_rqt_out_bits {
4228 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004229 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004230
4231 u8 syndrome[0x20];
4232
Matan Barakb4ff3a32016-02-09 14:57:42 +02004233 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004234
4235 struct mlx5_ifc_rqtc_bits rqt_context;
4236};
4237
4238struct mlx5_ifc_query_rqt_in_bits {
4239 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004240 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004241
Matan Barakb4ff3a32016-02-09 14:57:42 +02004242 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004243 u8 op_mod[0x10];
4244
Matan Barakb4ff3a32016-02-09 14:57:42 +02004245 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004246 u8 rqtn[0x18];
4247
Matan Barakb4ff3a32016-02-09 14:57:42 +02004248 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004249};
4250
4251struct mlx5_ifc_query_rq_out_bits {
4252 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004253 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004254
4255 u8 syndrome[0x20];
4256
Matan Barakb4ff3a32016-02-09 14:57:42 +02004257 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004258
4259 struct mlx5_ifc_rqc_bits rq_context;
4260};
4261
4262struct mlx5_ifc_query_rq_in_bits {
4263 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004264 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004265
Matan Barakb4ff3a32016-02-09 14:57:42 +02004266 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004267 u8 op_mod[0x10];
4268
Matan Barakb4ff3a32016-02-09 14:57:42 +02004269 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004270 u8 rqn[0x18];
4271
Matan Barakb4ff3a32016-02-09 14:57:42 +02004272 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004273};
4274
4275struct mlx5_ifc_query_roce_address_out_bits {
4276 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004277 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004278
4279 u8 syndrome[0x20];
4280
Matan Barakb4ff3a32016-02-09 14:57:42 +02004281 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004282
4283 struct mlx5_ifc_roce_addr_layout_bits roce_address;
4284};
4285
4286struct mlx5_ifc_query_roce_address_in_bits {
4287 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004288 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004289
Matan Barakb4ff3a32016-02-09 14:57:42 +02004290 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004291 u8 op_mod[0x10];
4292
4293 u8 roce_address_index[0x10];
Daniel Jurgens32f69e42018-01-04 17:25:36 +02004294 u8 reserved_at_50[0xc];
4295 u8 vhca_port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004296
Matan Barakb4ff3a32016-02-09 14:57:42 +02004297 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004298};
4299
4300struct mlx5_ifc_query_rmp_out_bits {
4301 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004302 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004303
4304 u8 syndrome[0x20];
4305
Matan Barakb4ff3a32016-02-09 14:57:42 +02004306 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004307
4308 struct mlx5_ifc_rmpc_bits rmp_context;
4309};
4310
4311struct mlx5_ifc_query_rmp_in_bits {
4312 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004313 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004314
Matan Barakb4ff3a32016-02-09 14:57:42 +02004315 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004316 u8 op_mod[0x10];
4317
Matan Barakb4ff3a32016-02-09 14:57:42 +02004318 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004319 u8 rmpn[0x18];
4320
Matan Barakb4ff3a32016-02-09 14:57:42 +02004321 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004322};
4323
4324struct mlx5_ifc_query_qp_out_bits {
4325 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004326 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004327
4328 u8 syndrome[0x20];
4329
Matan Barakb4ff3a32016-02-09 14:57:42 +02004330 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004331
4332 u8 opt_param_mask[0x20];
4333
Matan Barakb4ff3a32016-02-09 14:57:42 +02004334 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004335
4336 struct mlx5_ifc_qpc_bits qpc;
4337
Matan Barakb4ff3a32016-02-09 14:57:42 +02004338 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004339
4340 u8 pas[0][0x40];
4341};
4342
4343struct mlx5_ifc_query_qp_in_bits {
4344 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004345 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004346
Matan Barakb4ff3a32016-02-09 14:57:42 +02004347 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004348 u8 op_mod[0x10];
4349
Matan Barakb4ff3a32016-02-09 14:57:42 +02004350 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004351 u8 qpn[0x18];
4352
Matan Barakb4ff3a32016-02-09 14:57:42 +02004353 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004354};
4355
4356struct mlx5_ifc_query_q_counter_out_bits {
4357 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004358 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004359
4360 u8 syndrome[0x20];
4361
Matan Barakb4ff3a32016-02-09 14:57:42 +02004362 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004363
4364 u8 rx_write_requests[0x20];
4365
Matan Barakb4ff3a32016-02-09 14:57:42 +02004366 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004367
4368 u8 rx_read_requests[0x20];
4369
Matan Barakb4ff3a32016-02-09 14:57:42 +02004370 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004371
4372 u8 rx_atomic_requests[0x20];
4373
Matan Barakb4ff3a32016-02-09 14:57:42 +02004374 u8 reserved_at_120[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004375
4376 u8 rx_dct_connect[0x20];
4377
Matan Barakb4ff3a32016-02-09 14:57:42 +02004378 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004379
4380 u8 out_of_buffer[0x20];
4381
Matan Barakb4ff3a32016-02-09 14:57:42 +02004382 u8 reserved_at_1a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004383
4384 u8 out_of_sequence[0x20];
4385
Saeed Mahameed74862162016-06-09 15:11:34 +03004386 u8 reserved_at_1e0[0x20];
4387
4388 u8 duplicate_request[0x20];
4389
4390 u8 reserved_at_220[0x20];
4391
4392 u8 rnr_nak_retry_err[0x20];
4393
4394 u8 reserved_at_260[0x20];
4395
4396 u8 packet_seq_err[0x20];
4397
4398 u8 reserved_at_2a0[0x20];
4399
4400 u8 implied_nak_seq_err[0x20];
4401
4402 u8 reserved_at_2e0[0x20];
4403
4404 u8 local_ack_timeout_err[0x20];
4405
Parav Pandit58dcb602017-06-19 07:19:37 +03004406 u8 reserved_at_320[0xa0];
4407
4408 u8 resp_local_length_error[0x20];
4409
4410 u8 req_local_length_error[0x20];
4411
4412 u8 resp_local_qp_error[0x20];
4413
4414 u8 local_operation_error[0x20];
4415
4416 u8 resp_local_protection[0x20];
4417
4418 u8 req_local_protection[0x20];
4419
4420 u8 resp_cqe_error[0x20];
4421
4422 u8 req_cqe_error[0x20];
4423
4424 u8 req_mw_binding[0x20];
4425
4426 u8 req_bad_response[0x20];
4427
4428 u8 req_remote_invalid_request[0x20];
4429
4430 u8 resp_remote_invalid_request[0x20];
4431
4432 u8 req_remote_access_errors[0x20];
4433
4434 u8 resp_remote_access_errors[0x20];
4435
4436 u8 req_remote_operation_errors[0x20];
4437
4438 u8 req_transport_retries_exceeded[0x20];
4439
4440 u8 cq_overflow[0x20];
4441
4442 u8 resp_cqe_flush_error[0x20];
4443
4444 u8 req_cqe_flush_error[0x20];
4445
4446 u8 reserved_at_620[0x1e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004447};
4448
4449struct mlx5_ifc_query_q_counter_in_bits {
4450 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004451 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004452
Matan Barakb4ff3a32016-02-09 14:57:42 +02004453 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004454 u8 op_mod[0x10];
4455
Matan Barakb4ff3a32016-02-09 14:57:42 +02004456 u8 reserved_at_40[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03004457
4458 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004459 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004460
Matan Barakb4ff3a32016-02-09 14:57:42 +02004461 u8 reserved_at_e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004462 u8 counter_set_id[0x8];
4463};
4464
4465struct mlx5_ifc_query_pages_out_bits {
4466 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004467 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004468
4469 u8 syndrome[0x20];
4470
Bodong Wang591905b2019-02-12 22:55:35 -08004471 u8 embedded_cpu_function[0x1];
4472 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004473 u8 function_id[0x10];
4474
4475 u8 num_pages[0x20];
4476};
4477
4478enum {
4479 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
4480 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
4481 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
4482};
4483
4484struct mlx5_ifc_query_pages_in_bits {
4485 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004486 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004487
Matan Barakb4ff3a32016-02-09 14:57:42 +02004488 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004489 u8 op_mod[0x10];
4490
Bodong Wang591905b2019-02-12 22:55:35 -08004491 u8 embedded_cpu_function[0x1];
4492 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004493 u8 function_id[0x10];
4494
Matan Barakb4ff3a32016-02-09 14:57:42 +02004495 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004496};
4497
4498struct mlx5_ifc_query_nic_vport_context_out_bits {
4499 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004500 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004501
4502 u8 syndrome[0x20];
4503
Matan Barakb4ff3a32016-02-09 14:57:42 +02004504 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004505
4506 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
4507};
4508
4509struct mlx5_ifc_query_nic_vport_context_in_bits {
4510 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004511 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004512
Matan Barakb4ff3a32016-02-09 14:57:42 +02004513 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004514 u8 op_mod[0x10];
4515
4516 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004517 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004518 u8 vport_number[0x10];
4519
Matan Barakb4ff3a32016-02-09 14:57:42 +02004520 u8 reserved_at_60[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03004521 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004522 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004523};
4524
4525struct mlx5_ifc_query_mkey_out_bits {
4526 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004527 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004528
4529 u8 syndrome[0x20];
4530
Matan Barakb4ff3a32016-02-09 14:57:42 +02004531 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004532
4533 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
4534
Matan Barakb4ff3a32016-02-09 14:57:42 +02004535 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004536
4537 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
4538
4539 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
4540};
4541
4542struct mlx5_ifc_query_mkey_in_bits {
4543 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004544 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004545
Matan Barakb4ff3a32016-02-09 14:57:42 +02004546 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004547 u8 op_mod[0x10];
4548
Matan Barakb4ff3a32016-02-09 14:57:42 +02004549 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004550 u8 mkey_index[0x18];
4551
4552 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004553 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004554};
4555
4556struct mlx5_ifc_query_mad_demux_out_bits {
4557 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004558 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004559
4560 u8 syndrome[0x20];
4561
Matan Barakb4ff3a32016-02-09 14:57:42 +02004562 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004563
4564 u8 mad_dumux_parameters_block[0x20];
4565};
4566
4567struct mlx5_ifc_query_mad_demux_in_bits {
4568 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004569 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004570
Matan Barakb4ff3a32016-02-09 14:57:42 +02004571 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004572 u8 op_mod[0x10];
4573
Matan Barakb4ff3a32016-02-09 14:57:42 +02004574 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004575};
4576
4577struct mlx5_ifc_query_l2_table_entry_out_bits {
4578 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004579 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004580
4581 u8 syndrome[0x20];
4582
Matan Barakb4ff3a32016-02-09 14:57:42 +02004583 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004584
Matan Barakb4ff3a32016-02-09 14:57:42 +02004585 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03004586 u8 vlan_valid[0x1];
4587 u8 vlan[0xc];
4588
4589 struct mlx5_ifc_mac_address_layout_bits mac_address;
4590
Matan Barakb4ff3a32016-02-09 14:57:42 +02004591 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004592};
4593
4594struct mlx5_ifc_query_l2_table_entry_in_bits {
4595 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004596 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004597
Matan Barakb4ff3a32016-02-09 14:57:42 +02004598 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004599 u8 op_mod[0x10];
4600
Matan Barakb4ff3a32016-02-09 14:57:42 +02004601 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004602
Matan Barakb4ff3a32016-02-09 14:57:42 +02004603 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004604 u8 table_index[0x18];
4605
Matan Barakb4ff3a32016-02-09 14:57:42 +02004606 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004607};
4608
4609struct mlx5_ifc_query_issi_out_bits {
4610 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004611 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004612
4613 u8 syndrome[0x20];
4614
Matan Barakb4ff3a32016-02-09 14:57:42 +02004615 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004616 u8 current_issi[0x10];
4617
Matan Barakb4ff3a32016-02-09 14:57:42 +02004618 u8 reserved_at_60[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004619
Matan Barakb4ff3a32016-02-09 14:57:42 +02004620 u8 reserved_at_100[76][0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004621 u8 supported_issi_dw0[0x20];
4622};
4623
4624struct mlx5_ifc_query_issi_in_bits {
4625 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004626 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004627
Matan Barakb4ff3a32016-02-09 14:57:42 +02004628 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004629 u8 op_mod[0x10];
4630
Matan Barakb4ff3a32016-02-09 14:57:42 +02004631 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004632};
4633
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +02004634struct mlx5_ifc_set_driver_version_out_bits {
4635 u8 status[0x8];
4636 u8 reserved_0[0x18];
4637
4638 u8 syndrome[0x20];
4639 u8 reserved_1[0x40];
4640};
4641
4642struct mlx5_ifc_set_driver_version_in_bits {
4643 u8 opcode[0x10];
4644 u8 reserved_0[0x10];
4645
4646 u8 reserved_1[0x10];
4647 u8 op_mod[0x10];
4648
4649 u8 reserved_2[0x40];
4650 u8 driver_version[64][0x8];
4651};
4652
Saeed Mahameede2816822015-05-28 22:28:40 +03004653struct mlx5_ifc_query_hca_vport_pkey_out_bits {
4654 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004655 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004656
4657 u8 syndrome[0x20];
4658
Matan Barakb4ff3a32016-02-09 14:57:42 +02004659 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004660
4661 struct mlx5_ifc_pkey_bits pkey[0];
4662};
4663
4664struct mlx5_ifc_query_hca_vport_pkey_in_bits {
4665 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004666 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004667
Matan Barakb4ff3a32016-02-09 14:57:42 +02004668 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004669 u8 op_mod[0x10];
4670
4671 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004672 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004673 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004674 u8 vport_number[0x10];
4675
Matan Barakb4ff3a32016-02-09 14:57:42 +02004676 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004677 u8 pkey_index[0x10];
4678};
4679
Eli Coheneff901d2016-03-11 22:58:42 +02004680enum {
4681 MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0,
4682 MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1,
4683 MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2,
4684};
4685
Saeed Mahameede2816822015-05-28 22:28:40 +03004686struct mlx5_ifc_query_hca_vport_gid_out_bits {
4687 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004688 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004689
4690 u8 syndrome[0x20];
4691
Matan Barakb4ff3a32016-02-09 14:57:42 +02004692 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004693
4694 u8 gids_num[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004695 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004696
4697 struct mlx5_ifc_array128_auto_bits gid[0];
4698};
4699
4700struct mlx5_ifc_query_hca_vport_gid_in_bits {
4701 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004702 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004703
Matan Barakb4ff3a32016-02-09 14:57:42 +02004704 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004705 u8 op_mod[0x10];
4706
4707 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004708 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004709 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004710 u8 vport_number[0x10];
4711
Matan Barakb4ff3a32016-02-09 14:57:42 +02004712 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004713 u8 gid_index[0x10];
4714};
4715
4716struct mlx5_ifc_query_hca_vport_context_out_bits {
4717 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004718 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004719
4720 u8 syndrome[0x20];
4721
Matan Barakb4ff3a32016-02-09 14:57:42 +02004722 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004723
4724 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4725};
4726
4727struct mlx5_ifc_query_hca_vport_context_in_bits {
4728 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004729 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004730
Matan Barakb4ff3a32016-02-09 14:57:42 +02004731 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004732 u8 op_mod[0x10];
4733
4734 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004735 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004736 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004737 u8 vport_number[0x10];
4738
Matan Barakb4ff3a32016-02-09 14:57:42 +02004739 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004740};
4741
4742struct mlx5_ifc_query_hca_cap_out_bits {
4743 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004744 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004745
4746 u8 syndrome[0x20];
4747
Matan Barakb4ff3a32016-02-09 14:57:42 +02004748 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004749
4750 union mlx5_ifc_hca_cap_union_bits capability;
Eli Cohenb7755162014-10-02 12:19:44 +03004751};
4752
4753struct mlx5_ifc_query_hca_cap_in_bits {
4754 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004755 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004756
Matan Barakb4ff3a32016-02-09 14:57:42 +02004757 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004758 u8 op_mod[0x10];
4759
Matan Barakb4ff3a32016-02-09 14:57:42 +02004760 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03004761};
4762
Saeed Mahameede2816822015-05-28 22:28:40 +03004763struct mlx5_ifc_query_flow_table_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004764 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004765 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004766
4767 u8 syndrome[0x20];
4768
Matan Barakb4ff3a32016-02-09 14:57:42 +02004769 u8 reserved_at_40[0x80];
Eli Cohenb7755162014-10-02 12:19:44 +03004770
Matan Barakb4ff3a32016-02-09 14:57:42 +02004771 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004772 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004773 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004774 u8 log_size[0x8];
4775
Matan Barakb4ff3a32016-02-09 14:57:42 +02004776 u8 reserved_at_e0[0x120];
Eli Cohenb7755162014-10-02 12:19:44 +03004777};
4778
Saeed Mahameede2816822015-05-28 22:28:40 +03004779struct mlx5_ifc_query_flow_table_in_bits {
4780 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004781 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004782
Matan Barakb4ff3a32016-02-09 14:57:42 +02004783 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004784 u8 op_mod[0x10];
4785
Matan Barakb4ff3a32016-02-09 14:57:42 +02004786 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004787
4788 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004789 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004790
Matan Barakb4ff3a32016-02-09 14:57:42 +02004791 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004792 u8 table_id[0x18];
4793
Matan Barakb4ff3a32016-02-09 14:57:42 +02004794 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004795};
4796
4797struct mlx5_ifc_query_fte_out_bits {
4798 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004799 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004800
4801 u8 syndrome[0x20];
4802
Matan Barakb4ff3a32016-02-09 14:57:42 +02004803 u8 reserved_at_40[0x1c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004804
4805 struct mlx5_ifc_flow_context_bits flow_context;
4806};
4807
4808struct mlx5_ifc_query_fte_in_bits {
4809 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004810 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004811
Matan Barakb4ff3a32016-02-09 14:57:42 +02004812 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004813 u8 op_mod[0x10];
4814
Matan Barakb4ff3a32016-02-09 14:57:42 +02004815 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004816
4817 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004818 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004819
Matan Barakb4ff3a32016-02-09 14:57:42 +02004820 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004821 u8 table_id[0x18];
4822
Matan Barakb4ff3a32016-02-09 14:57:42 +02004823 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004824
4825 u8 flow_index[0x20];
4826
Matan Barakb4ff3a32016-02-09 14:57:42 +02004827 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004828};
4829
4830enum {
4831 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
4832 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
4833 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
Saeed Mahameed4c8b8512018-12-12 19:11:36 -08004834 MLX5_QUERY_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS_2 = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +03004835};
4836
4837struct mlx5_ifc_query_flow_group_out_bits {
4838 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004839 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004840
4841 u8 syndrome[0x20];
4842
Matan Barakb4ff3a32016-02-09 14:57:42 +02004843 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004844
4845 u8 start_flow_index[0x20];
4846
Matan Barakb4ff3a32016-02-09 14:57:42 +02004847 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004848
4849 u8 end_flow_index[0x20];
4850
Matan Barakb4ff3a32016-02-09 14:57:42 +02004851 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004852
Matan Barakb4ff3a32016-02-09 14:57:42 +02004853 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004854 u8 match_criteria_enable[0x8];
4855
4856 struct mlx5_ifc_fte_match_param_bits match_criteria;
4857
Matan Barakb4ff3a32016-02-09 14:57:42 +02004858 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03004859};
4860
4861struct mlx5_ifc_query_flow_group_in_bits {
4862 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004863 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004864
Matan Barakb4ff3a32016-02-09 14:57:42 +02004865 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004866 u8 op_mod[0x10];
4867
Matan Barakb4ff3a32016-02-09 14:57:42 +02004868 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004869
4870 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004871 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004872
Matan Barakb4ff3a32016-02-09 14:57:42 +02004873 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004874 u8 table_id[0x18];
4875
4876 u8 group_id[0x20];
4877
Matan Barakb4ff3a32016-02-09 14:57:42 +02004878 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03004879};
4880
Amir Vadai9dc0b282016-05-13 12:55:39 +00004881struct mlx5_ifc_query_flow_counter_out_bits {
4882 u8 status[0x8];
4883 u8 reserved_at_8[0x18];
4884
4885 u8 syndrome[0x20];
4886
4887 u8 reserved_at_40[0x40];
4888
4889 struct mlx5_ifc_traffic_counter_bits flow_statistics[0];
4890};
4891
4892struct mlx5_ifc_query_flow_counter_in_bits {
4893 u8 opcode[0x10];
4894 u8 reserved_at_10[0x10];
4895
4896 u8 reserved_at_20[0x10];
4897 u8 op_mod[0x10];
4898
4899 u8 reserved_at_40[0x80];
4900
4901 u8 clear[0x1];
4902 u8 reserved_at_c1[0xf];
4903 u8 num_of_counters[0x10];
4904
Rabie Louloua8ffcc72017-07-09 13:39:30 +03004905 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00004906};
4907
Saeed Mahameedd6666752015-12-01 18:03:22 +02004908struct mlx5_ifc_query_esw_vport_context_out_bits {
4909 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004910 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004911
4912 u8 syndrome[0x20];
4913
Matan Barakb4ff3a32016-02-09 14:57:42 +02004914 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004915
4916 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4917};
4918
4919struct mlx5_ifc_query_esw_vport_context_in_bits {
4920 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004921 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004922
Matan Barakb4ff3a32016-02-09 14:57:42 +02004923 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004924 u8 op_mod[0x10];
4925
4926 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004927 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004928 u8 vport_number[0x10];
4929
Matan Barakb4ff3a32016-02-09 14:57:42 +02004930 u8 reserved_at_60[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004931};
4932
4933struct mlx5_ifc_modify_esw_vport_context_out_bits {
4934 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004935 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004936
4937 u8 syndrome[0x20];
4938
Matan Barakb4ff3a32016-02-09 14:57:42 +02004939 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004940};
4941
4942struct mlx5_ifc_esw_vport_context_fields_select_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004943 u8 reserved_at_0[0x1c];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004944 u8 vport_cvlan_insert[0x1];
4945 u8 vport_svlan_insert[0x1];
4946 u8 vport_cvlan_strip[0x1];
4947 u8 vport_svlan_strip[0x1];
4948};
4949
4950struct mlx5_ifc_modify_esw_vport_context_in_bits {
4951 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004952 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004953
Matan Barakb4ff3a32016-02-09 14:57:42 +02004954 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004955 u8 op_mod[0x10];
4956
4957 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004958 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004959 u8 vport_number[0x10];
4960
4961 struct mlx5_ifc_esw_vport_context_fields_select_bits field_select;
4962
4963 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4964};
4965
Saeed Mahameede2816822015-05-28 22:28:40 +03004966struct mlx5_ifc_query_eq_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004967 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004968 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004969
4970 u8 syndrome[0x20];
4971
Matan Barakb4ff3a32016-02-09 14:57:42 +02004972 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004973
4974 struct mlx5_ifc_eqc_bits eq_context_entry;
4975
Matan Barakb4ff3a32016-02-09 14:57:42 +02004976 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004977
4978 u8 event_bitmask[0x40];
4979
Matan Barakb4ff3a32016-02-09 14:57:42 +02004980 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03004981
4982 u8 pas[0][0x40];
4983};
4984
4985struct mlx5_ifc_query_eq_in_bits {
4986 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004987 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004988
Matan Barakb4ff3a32016-02-09 14:57:42 +02004989 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004990 u8 op_mod[0x10];
4991
Matan Barakb4ff3a32016-02-09 14:57:42 +02004992 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004993 u8 eq_number[0x8];
4994
Matan Barakb4ff3a32016-02-09 14:57:42 +02004995 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004996};
4997
Mark Bloch60786f02018-08-28 14:18:46 +03004998struct mlx5_ifc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004999 u8 reserved_at_0[0x5];
Mark Bloch60786f02018-08-28 14:18:46 +03005000 u8 reformat_type[0x3];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005001 u8 reserved_at_8[0xe];
Mark Bloch60786f02018-08-28 14:18:46 +03005002 u8 reformat_data_size[0xa];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005003
5004 u8 reserved_at_20[0x10];
Mark Bloch60786f02018-08-28 14:18:46 +03005005 u8 reformat_data[2][0x8];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005006
Mark Bloch60786f02018-08-28 14:18:46 +03005007 u8 more_reformat_data[0][0x8];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005008};
5009
Mark Bloch60786f02018-08-28 14:18:46 +03005010struct mlx5_ifc_query_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005011 u8 status[0x8];
5012 u8 reserved_at_8[0x18];
5013
5014 u8 syndrome[0x20];
5015
5016 u8 reserved_at_40[0xa0];
5017
Mark Bloch60786f02018-08-28 14:18:46 +03005018 struct mlx5_ifc_packet_reformat_context_in_bits packet_reformat_context[0];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005019};
5020
Mark Bloch60786f02018-08-28 14:18:46 +03005021struct mlx5_ifc_query_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005022 u8 opcode[0x10];
5023 u8 reserved_at_10[0x10];
5024
5025 u8 reserved_at_20[0x10];
5026 u8 op_mod[0x10];
5027
Mark Bloch60786f02018-08-28 14:18:46 +03005028 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005029
5030 u8 reserved_at_60[0xa0];
5031};
5032
Mark Bloch60786f02018-08-28 14:18:46 +03005033struct mlx5_ifc_alloc_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005034 u8 status[0x8];
5035 u8 reserved_at_8[0x18];
5036
5037 u8 syndrome[0x20];
5038
Mark Bloch60786f02018-08-28 14:18:46 +03005039 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005040
5041 u8 reserved_at_60[0x20];
5042};
5043
Mark Bloche0e7a382018-08-28 14:18:45 +03005044enum {
Mark Bloch60786f02018-08-28 14:18:46 +03005045 MLX5_REFORMAT_TYPE_L2_TO_VXLAN = 0x0,
5046 MLX5_REFORMAT_TYPE_L2_TO_NVGRE = 0x1,
Mark Blochbea4e1f2018-08-28 14:18:47 +03005047 MLX5_REFORMAT_TYPE_L2_TO_L2_TUNNEL = 0x2,
5048 MLX5_REFORMAT_TYPE_L3_TUNNEL_TO_L2 = 0x3,
5049 MLX5_REFORMAT_TYPE_L2_TO_L3_TUNNEL = 0x4,
Mark Bloche0e7a382018-08-28 14:18:45 +03005050};
5051
Mark Bloch60786f02018-08-28 14:18:46 +03005052struct mlx5_ifc_alloc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005053 u8 opcode[0x10];
5054 u8 reserved_at_10[0x10];
5055
5056 u8 reserved_at_20[0x10];
5057 u8 op_mod[0x10];
5058
5059 u8 reserved_at_40[0xa0];
5060
Mark Bloch60786f02018-08-28 14:18:46 +03005061 struct mlx5_ifc_packet_reformat_context_in_bits packet_reformat_context;
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005062};
5063
Mark Bloch60786f02018-08-28 14:18:46 +03005064struct mlx5_ifc_dealloc_packet_reformat_context_out_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005065 u8 status[0x8];
5066 u8 reserved_at_8[0x18];
5067
5068 u8 syndrome[0x20];
5069
5070 u8 reserved_at_40[0x40];
5071};
5072
Mark Bloch60786f02018-08-28 14:18:46 +03005073struct mlx5_ifc_dealloc_packet_reformat_context_in_bits {
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005074 u8 opcode[0x10];
5075 u8 reserved_at_10[0x10];
5076
5077 u8 reserved_20[0x10];
5078 u8 op_mod[0x10];
5079
Mark Bloch60786f02018-08-28 14:18:46 +03005080 u8 packet_reformat_id[0x20];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03005081
5082 u8 reserved_60[0x20];
5083};
5084
Or Gerlitz2a69cb92017-01-19 19:31:25 +02005085struct mlx5_ifc_set_action_in_bits {
5086 u8 action_type[0x4];
5087 u8 field[0xc];
5088 u8 reserved_at_10[0x3];
5089 u8 offset[0x5];
5090 u8 reserved_at_18[0x3];
5091 u8 length[0x5];
5092
5093 u8 data[0x20];
5094};
5095
5096struct mlx5_ifc_add_action_in_bits {
5097 u8 action_type[0x4];
5098 u8 field[0xc];
5099 u8 reserved_at_10[0x10];
5100
5101 u8 data[0x20];
5102};
5103
5104union mlx5_ifc_set_action_in_add_action_in_auto_bits {
5105 struct mlx5_ifc_set_action_in_bits set_action_in;
5106 struct mlx5_ifc_add_action_in_bits add_action_in;
5107 u8 reserved_at_0[0x40];
5108};
5109
5110enum {
5111 MLX5_ACTION_TYPE_SET = 0x1,
5112 MLX5_ACTION_TYPE_ADD = 0x2,
5113};
5114
5115enum {
5116 MLX5_ACTION_IN_FIELD_OUT_SMAC_47_16 = 0x1,
5117 MLX5_ACTION_IN_FIELD_OUT_SMAC_15_0 = 0x2,
5118 MLX5_ACTION_IN_FIELD_OUT_ETHERTYPE = 0x3,
5119 MLX5_ACTION_IN_FIELD_OUT_DMAC_47_16 = 0x4,
5120 MLX5_ACTION_IN_FIELD_OUT_DMAC_15_0 = 0x5,
5121 MLX5_ACTION_IN_FIELD_OUT_IP_DSCP = 0x6,
5122 MLX5_ACTION_IN_FIELD_OUT_TCP_FLAGS = 0x7,
5123 MLX5_ACTION_IN_FIELD_OUT_TCP_SPORT = 0x8,
5124 MLX5_ACTION_IN_FIELD_OUT_TCP_DPORT = 0x9,
5125 MLX5_ACTION_IN_FIELD_OUT_IP_TTL = 0xa,
5126 MLX5_ACTION_IN_FIELD_OUT_UDP_SPORT = 0xb,
5127 MLX5_ACTION_IN_FIELD_OUT_UDP_DPORT = 0xc,
5128 MLX5_ACTION_IN_FIELD_OUT_SIPV6_127_96 = 0xd,
5129 MLX5_ACTION_IN_FIELD_OUT_SIPV6_95_64 = 0xe,
5130 MLX5_ACTION_IN_FIELD_OUT_SIPV6_63_32 = 0xf,
5131 MLX5_ACTION_IN_FIELD_OUT_SIPV6_31_0 = 0x10,
5132 MLX5_ACTION_IN_FIELD_OUT_DIPV6_127_96 = 0x11,
5133 MLX5_ACTION_IN_FIELD_OUT_DIPV6_95_64 = 0x12,
5134 MLX5_ACTION_IN_FIELD_OUT_DIPV6_63_32 = 0x13,
5135 MLX5_ACTION_IN_FIELD_OUT_DIPV6_31_0 = 0x14,
5136 MLX5_ACTION_IN_FIELD_OUT_SIPV4 = 0x15,
5137 MLX5_ACTION_IN_FIELD_OUT_DIPV4 = 0x16,
Or Gerlitz0c0316f2017-06-13 11:09:57 +03005138 MLX5_ACTION_IN_FIELD_OUT_IPV6_HOPLIMIT = 0x47,
Or Gerlitz2a69cb92017-01-19 19:31:25 +02005139};
5140
5141struct mlx5_ifc_alloc_modify_header_context_out_bits {
5142 u8 status[0x8];
5143 u8 reserved_at_8[0x18];
5144
5145 u8 syndrome[0x20];
5146
5147 u8 modify_header_id[0x20];
5148
5149 u8 reserved_at_60[0x20];
5150};
5151
5152struct mlx5_ifc_alloc_modify_header_context_in_bits {
5153 u8 opcode[0x10];
5154 u8 reserved_at_10[0x10];
5155
5156 u8 reserved_at_20[0x10];
5157 u8 op_mod[0x10];
5158
5159 u8 reserved_at_40[0x20];
5160
5161 u8 table_type[0x8];
5162 u8 reserved_at_68[0x10];
5163 u8 num_of_actions[0x8];
5164
5165 union mlx5_ifc_set_action_in_add_action_in_auto_bits actions[0];
5166};
5167
5168struct mlx5_ifc_dealloc_modify_header_context_out_bits {
5169 u8 status[0x8];
5170 u8 reserved_at_8[0x18];
5171
5172 u8 syndrome[0x20];
5173
5174 u8 reserved_at_40[0x40];
5175};
5176
5177struct mlx5_ifc_dealloc_modify_header_context_in_bits {
5178 u8 opcode[0x10];
5179 u8 reserved_at_10[0x10];
5180
5181 u8 reserved_at_20[0x10];
5182 u8 op_mod[0x10];
5183
5184 u8 modify_header_id[0x20];
5185
5186 u8 reserved_at_60[0x20];
5187};
5188
Saeed Mahameede2816822015-05-28 22:28:40 +03005189struct mlx5_ifc_query_dct_out_bits {
5190 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005191 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005192
5193 u8 syndrome[0x20];
5194
Matan Barakb4ff3a32016-02-09 14:57:42 +02005195 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005196
5197 struct mlx5_ifc_dctc_bits dct_context_entry;
5198
Matan Barakb4ff3a32016-02-09 14:57:42 +02005199 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03005200};
5201
5202struct mlx5_ifc_query_dct_in_bits {
5203 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005204 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005205
Matan Barakb4ff3a32016-02-09 14:57:42 +02005206 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005207 u8 op_mod[0x10];
5208
Matan Barakb4ff3a32016-02-09 14:57:42 +02005209 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005210 u8 dctn[0x18];
5211
Matan Barakb4ff3a32016-02-09 14:57:42 +02005212 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005213};
5214
5215struct mlx5_ifc_query_cq_out_bits {
5216 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005217 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005218
5219 u8 syndrome[0x20];
5220
Matan Barakb4ff3a32016-02-09 14:57:42 +02005221 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005222
5223 struct mlx5_ifc_cqc_bits cq_context;
5224
Matan Barakb4ff3a32016-02-09 14:57:42 +02005225 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03005226
5227 u8 pas[0][0x40];
5228};
5229
5230struct mlx5_ifc_query_cq_in_bits {
5231 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005232 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005233
Matan Barakb4ff3a32016-02-09 14:57:42 +02005234 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005235 u8 op_mod[0x10];
5236
Matan Barakb4ff3a32016-02-09 14:57:42 +02005237 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005238 u8 cqn[0x18];
5239
Matan Barakb4ff3a32016-02-09 14:57:42 +02005240 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005241};
5242
5243struct mlx5_ifc_query_cong_status_out_bits {
5244 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005245 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005246
5247 u8 syndrome[0x20];
5248
Matan Barakb4ff3a32016-02-09 14:57:42 +02005249 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005250
5251 u8 enable[0x1];
5252 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005253 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03005254};
5255
5256struct mlx5_ifc_query_cong_status_in_bits {
5257 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005258 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005259
Matan Barakb4ff3a32016-02-09 14:57:42 +02005260 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005261 u8 op_mod[0x10];
5262
Matan Barakb4ff3a32016-02-09 14:57:42 +02005263 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005264 u8 priority[0x4];
5265 u8 cong_protocol[0x4];
5266
Matan Barakb4ff3a32016-02-09 14:57:42 +02005267 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005268};
5269
5270struct mlx5_ifc_query_cong_statistics_out_bits {
5271 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005272 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005273
5274 u8 syndrome[0x20];
5275
Matan Barakb4ff3a32016-02-09 14:57:42 +02005276 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005277
Parav Pandite1f24a72017-04-16 07:29:29 +03005278 u8 rp_cur_flows[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005279
5280 u8 sum_flows[0x20];
5281
Parav Pandite1f24a72017-04-16 07:29:29 +03005282 u8 rp_cnp_ignored_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005283
Parav Pandite1f24a72017-04-16 07:29:29 +03005284 u8 rp_cnp_ignored_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005285
Parav Pandite1f24a72017-04-16 07:29:29 +03005286 u8 rp_cnp_handled_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005287
Parav Pandite1f24a72017-04-16 07:29:29 +03005288 u8 rp_cnp_handled_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005289
Matan Barakb4ff3a32016-02-09 14:57:42 +02005290 u8 reserved_at_140[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03005291
5292 u8 time_stamp_high[0x20];
5293
5294 u8 time_stamp_low[0x20];
5295
5296 u8 accumulators_period[0x20];
5297
Parav Pandite1f24a72017-04-16 07:29:29 +03005298 u8 np_ecn_marked_roce_packets_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005299
Parav Pandite1f24a72017-04-16 07:29:29 +03005300 u8 np_ecn_marked_roce_packets_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005301
Parav Pandite1f24a72017-04-16 07:29:29 +03005302 u8 np_cnp_sent_high[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005303
Parav Pandite1f24a72017-04-16 07:29:29 +03005304 u8 np_cnp_sent_low[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005305
Matan Barakb4ff3a32016-02-09 14:57:42 +02005306 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03005307};
5308
5309struct mlx5_ifc_query_cong_statistics_in_bits {
5310 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005311 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005312
Matan Barakb4ff3a32016-02-09 14:57:42 +02005313 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005314 u8 op_mod[0x10];
5315
5316 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005317 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03005318
Matan Barakb4ff3a32016-02-09 14:57:42 +02005319 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005320};
5321
5322struct mlx5_ifc_query_cong_params_out_bits {
5323 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005324 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005325
5326 u8 syndrome[0x20];
5327
Matan Barakb4ff3a32016-02-09 14:57:42 +02005328 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005329
5330 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
5331};
5332
5333struct mlx5_ifc_query_cong_params_in_bits {
5334 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005335 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005336
Matan Barakb4ff3a32016-02-09 14:57:42 +02005337 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005338 u8 op_mod[0x10];
5339
Matan Barakb4ff3a32016-02-09 14:57:42 +02005340 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03005341 u8 cong_protocol[0x4];
5342
Matan Barakb4ff3a32016-02-09 14:57:42 +02005343 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005344};
5345
5346struct mlx5_ifc_query_adapter_out_bits {
5347 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005348 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005349
5350 u8 syndrome[0x20];
5351
Matan Barakb4ff3a32016-02-09 14:57:42 +02005352 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005353
5354 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
5355};
5356
5357struct mlx5_ifc_query_adapter_in_bits {
5358 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005359 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005360
Matan Barakb4ff3a32016-02-09 14:57:42 +02005361 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005362 u8 op_mod[0x10];
5363
Matan Barakb4ff3a32016-02-09 14:57:42 +02005364 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005365};
5366
5367struct mlx5_ifc_qp_2rst_out_bits {
5368 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005369 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005370
5371 u8 syndrome[0x20];
5372
Matan Barakb4ff3a32016-02-09 14:57:42 +02005373 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005374};
5375
5376struct mlx5_ifc_qp_2rst_in_bits {
5377 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005378 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005379
Matan Barakb4ff3a32016-02-09 14:57:42 +02005380 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005381 u8 op_mod[0x10];
5382
Matan Barakb4ff3a32016-02-09 14:57:42 +02005383 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005384 u8 qpn[0x18];
5385
Matan Barakb4ff3a32016-02-09 14:57:42 +02005386 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005387};
5388
5389struct mlx5_ifc_qp_2err_out_bits {
5390 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005391 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005392
5393 u8 syndrome[0x20];
5394
Matan Barakb4ff3a32016-02-09 14:57:42 +02005395 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005396};
5397
5398struct mlx5_ifc_qp_2err_in_bits {
5399 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005400 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005401
Matan Barakb4ff3a32016-02-09 14:57:42 +02005402 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005403 u8 op_mod[0x10];
5404
Matan Barakb4ff3a32016-02-09 14:57:42 +02005405 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005406 u8 qpn[0x18];
5407
Matan Barakb4ff3a32016-02-09 14:57:42 +02005408 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005409};
5410
5411struct mlx5_ifc_page_fault_resume_out_bits {
5412 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005413 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005414
5415 u8 syndrome[0x20];
5416
Matan Barakb4ff3a32016-02-09 14:57:42 +02005417 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005418};
5419
5420struct mlx5_ifc_page_fault_resume_in_bits {
5421 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005422 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005423
Matan Barakb4ff3a32016-02-09 14:57:42 +02005424 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005425 u8 op_mod[0x10];
5426
5427 u8 error[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005428 u8 reserved_at_41[0x4];
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02005429 u8 page_fault_type[0x3];
5430 u8 wq_number[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005431
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02005432 u8 reserved_at_60[0x8];
5433 u8 token[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005434};
5435
5436struct mlx5_ifc_nop_out_bits {
5437 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005438 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005439
5440 u8 syndrome[0x20];
5441
Matan Barakb4ff3a32016-02-09 14:57:42 +02005442 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005443};
5444
5445struct mlx5_ifc_nop_in_bits {
5446 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005447 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005448
Matan Barakb4ff3a32016-02-09 14:57:42 +02005449 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005450 u8 op_mod[0x10];
5451
Matan Barakb4ff3a32016-02-09 14:57:42 +02005452 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005453};
5454
5455struct mlx5_ifc_modify_vport_state_out_bits {
5456 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005457 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005458
5459 u8 syndrome[0x20];
5460
Matan Barakb4ff3a32016-02-09 14:57:42 +02005461 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005462};
5463
5464struct mlx5_ifc_modify_vport_state_in_bits {
5465 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005466 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005467
Matan Barakb4ff3a32016-02-09 14:57:42 +02005468 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005469 u8 op_mod[0x10];
5470
5471 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005472 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005473 u8 vport_number[0x10];
5474
Matan Barakb4ff3a32016-02-09 14:57:42 +02005475 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005476 u8 admin_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005477 u8 reserved_at_7c[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005478};
5479
5480struct mlx5_ifc_modify_tis_out_bits {
5481 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005482 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005483
5484 u8 syndrome[0x20];
5485
Matan Barakb4ff3a32016-02-09 14:57:42 +02005486 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005487};
5488
majd@mellanox.com75850d02016-01-14 19:13:06 +02005489struct mlx5_ifc_modify_tis_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005490 u8 reserved_at_0[0x20];
majd@mellanox.com75850d02016-01-14 19:13:06 +02005491
Aviv Heller84df61e2016-05-10 13:47:50 +03005492 u8 reserved_at_20[0x1d];
5493 u8 lag_tx_port_affinity[0x1];
5494 u8 strict_lag_tx_port_affinity[0x1];
majd@mellanox.com75850d02016-01-14 19:13:06 +02005495 u8 prio[0x1];
5496};
5497
Saeed Mahameede2816822015-05-28 22:28:40 +03005498struct mlx5_ifc_modify_tis_in_bits {
5499 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005500 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005501
Matan Barakb4ff3a32016-02-09 14:57:42 +02005502 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005503 u8 op_mod[0x10];
5504
Matan Barakb4ff3a32016-02-09 14:57:42 +02005505 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005506 u8 tisn[0x18];
5507
Matan Barakb4ff3a32016-02-09 14:57:42 +02005508 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005509
majd@mellanox.com75850d02016-01-14 19:13:06 +02005510 struct mlx5_ifc_modify_tis_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005511
Matan Barakb4ff3a32016-02-09 14:57:42 +02005512 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005513
5514 struct mlx5_ifc_tisc_bits ctx;
5515};
5516
Achiad Shochatd9eea402015-08-04 14:05:42 +03005517struct mlx5_ifc_modify_tir_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005518 u8 reserved_at_0[0x20];
Achiad Shochatd9eea402015-08-04 14:05:42 +03005519
Matan Barakb4ff3a32016-02-09 14:57:42 +02005520 u8 reserved_at_20[0x1b];
Tariq Toukan66189962015-11-12 19:35:26 +02005521 u8 self_lb_en[0x1];
Tariq Toukanbdfc0282016-02-29 21:17:12 +02005522 u8 reserved_at_3c[0x1];
5523 u8 hash[0x1];
5524 u8 reserved_at_3e[0x1];
Achiad Shochatd9eea402015-08-04 14:05:42 +03005525 u8 lro[0x1];
5526};
5527
Saeed Mahameede2816822015-05-28 22:28:40 +03005528struct mlx5_ifc_modify_tir_out_bits {
5529 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005530 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005531
5532 u8 syndrome[0x20];
5533
Matan Barakb4ff3a32016-02-09 14:57:42 +02005534 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005535};
5536
5537struct mlx5_ifc_modify_tir_in_bits {
5538 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005539 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005540
Matan Barakb4ff3a32016-02-09 14:57:42 +02005541 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005542 u8 op_mod[0x10];
5543
Matan Barakb4ff3a32016-02-09 14:57:42 +02005544 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005545 u8 tirn[0x18];
5546
Matan Barakb4ff3a32016-02-09 14:57:42 +02005547 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005548
Achiad Shochatd9eea402015-08-04 14:05:42 +03005549 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005550
Matan Barakb4ff3a32016-02-09 14:57:42 +02005551 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005552
5553 struct mlx5_ifc_tirc_bits ctx;
5554};
5555
5556struct mlx5_ifc_modify_sq_out_bits {
5557 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005558 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005559
5560 u8 syndrome[0x20];
5561
Matan Barakb4ff3a32016-02-09 14:57:42 +02005562 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005563};
5564
5565struct mlx5_ifc_modify_sq_in_bits {
5566 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03005567 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005568
Matan Barakb4ff3a32016-02-09 14:57:42 +02005569 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005570 u8 op_mod[0x10];
5571
5572 u8 sq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005573 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005574 u8 sqn[0x18];
5575
Matan Barakb4ff3a32016-02-09 14:57:42 +02005576 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005577
5578 u8 modify_bitmask[0x40];
5579
Matan Barakb4ff3a32016-02-09 14:57:42 +02005580 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005581
5582 struct mlx5_ifc_sqc_bits ctx;
5583};
5584
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03005585struct mlx5_ifc_modify_scheduling_element_out_bits {
5586 u8 status[0x8];
5587 u8 reserved_at_8[0x18];
5588
5589 u8 syndrome[0x20];
5590
5591 u8 reserved_at_40[0x1c0];
5592};
5593
5594enum {
5595 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE = 0x1,
5596 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW = 0x2,
5597};
5598
5599struct mlx5_ifc_modify_scheduling_element_in_bits {
5600 u8 opcode[0x10];
5601 u8 reserved_at_10[0x10];
5602
5603 u8 reserved_at_20[0x10];
5604 u8 op_mod[0x10];
5605
5606 u8 scheduling_hierarchy[0x8];
5607 u8 reserved_at_48[0x18];
5608
5609 u8 scheduling_element_id[0x20];
5610
5611 u8 reserved_at_80[0x20];
5612
5613 u8 modify_bitmask[0x20];
5614
5615 u8 reserved_at_c0[0x40];
5616
5617 struct mlx5_ifc_scheduling_context_bits scheduling_context;
5618
5619 u8 reserved_at_300[0x100];
5620};
5621
Saeed Mahameede2816822015-05-28 22:28:40 +03005622struct mlx5_ifc_modify_rqt_out_bits {
5623 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005624 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005625
5626 u8 syndrome[0x20];
5627
Matan Barakb4ff3a32016-02-09 14:57:42 +02005628 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005629};
5630
Achiad Shochat5c503682015-08-04 14:05:43 +03005631struct mlx5_ifc_rqt_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005632 u8 reserved_at_0[0x20];
Achiad Shochat5c503682015-08-04 14:05:43 +03005633
Matan Barakb4ff3a32016-02-09 14:57:42 +02005634 u8 reserved_at_20[0x1f];
Achiad Shochat5c503682015-08-04 14:05:43 +03005635 u8 rqn_list[0x1];
5636};
5637
Saeed Mahameede2816822015-05-28 22:28:40 +03005638struct mlx5_ifc_modify_rqt_in_bits {
5639 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03005640 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005641
Matan Barakb4ff3a32016-02-09 14:57:42 +02005642 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005643 u8 op_mod[0x10];
5644
Matan Barakb4ff3a32016-02-09 14:57:42 +02005645 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005646 u8 rqtn[0x18];
5647
Matan Barakb4ff3a32016-02-09 14:57:42 +02005648 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005649
Achiad Shochat5c503682015-08-04 14:05:43 +03005650 struct mlx5_ifc_rqt_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005651
Matan Barakb4ff3a32016-02-09 14:57:42 +02005652 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005653
5654 struct mlx5_ifc_rqtc_bits ctx;
5655};
5656
5657struct mlx5_ifc_modify_rq_out_bits {
5658 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005659 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005660
5661 u8 syndrome[0x20];
5662
Matan Barakb4ff3a32016-02-09 14:57:42 +02005663 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005664};
5665
Alex Vesker83b502a2016-08-04 17:32:02 +03005666enum {
5667 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_VSD = 1ULL << 1,
Guy Ergas102722f2017-02-20 16:18:17 +02005668 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_SCATTER_FCS = 1ULL << 2,
Majd Dibbiny23a69642017-01-18 15:25:10 +02005669 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID = 1ULL << 3,
Alex Vesker83b502a2016-08-04 17:32:02 +03005670};
5671
Saeed Mahameede2816822015-05-28 22:28:40 +03005672struct mlx5_ifc_modify_rq_in_bits {
5673 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03005674 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005675
Matan Barakb4ff3a32016-02-09 14:57:42 +02005676 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005677 u8 op_mod[0x10];
5678
5679 u8 rq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005680 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005681 u8 rqn[0x18];
5682
Matan Barakb4ff3a32016-02-09 14:57:42 +02005683 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005684
5685 u8 modify_bitmask[0x40];
5686
Matan Barakb4ff3a32016-02-09 14:57:42 +02005687 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005688
5689 struct mlx5_ifc_rqc_bits ctx;
5690};
5691
5692struct mlx5_ifc_modify_rmp_out_bits {
5693 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005694 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005695
5696 u8 syndrome[0x20];
5697
Matan Barakb4ff3a32016-02-09 14:57:42 +02005698 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005699};
5700
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005701struct mlx5_ifc_rmp_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005702 u8 reserved_at_0[0x20];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005703
Matan Barakb4ff3a32016-02-09 14:57:42 +02005704 u8 reserved_at_20[0x1f];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005705 u8 lwm[0x1];
5706};
5707
Saeed Mahameede2816822015-05-28 22:28:40 +03005708struct mlx5_ifc_modify_rmp_in_bits {
5709 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03005710 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005711
Matan Barakb4ff3a32016-02-09 14:57:42 +02005712 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005713 u8 op_mod[0x10];
5714
5715 u8 rmp_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005716 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005717 u8 rmpn[0x18];
5718
Matan Barakb4ff3a32016-02-09 14:57:42 +02005719 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005720
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005721 struct mlx5_ifc_rmp_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005722
Matan Barakb4ff3a32016-02-09 14:57:42 +02005723 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005724
5725 struct mlx5_ifc_rmpc_bits ctx;
5726};
5727
5728struct mlx5_ifc_modify_nic_vport_context_out_bits {
5729 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005730 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005731
5732 u8 syndrome[0x20];
5733
Matan Barakb4ff3a32016-02-09 14:57:42 +02005734 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005735};
5736
5737struct mlx5_ifc_modify_nic_vport_field_select_bits {
Daniel Jurgens32f69e42018-01-04 17:25:36 +02005738 u8 reserved_at_0[0x12];
5739 u8 affiliation[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +02005740 u8 reserved_at_13[0x1];
Huy Nguyenbded7472017-05-30 09:42:53 +03005741 u8 disable_uc_local_lb[0x1];
5742 u8 disable_mc_local_lb[0x1];
Noa Osherovich23898c72016-06-10 00:07:37 +03005743 u8 node_guid[0x1];
5744 u8 port_guid[0x1];
Hadar Hen Zion9def7122016-08-03 17:27:30 +03005745 u8 min_inline[0x1];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02005746 u8 mtu[0x1];
5747 u8 change_event[0x1];
5748 u8 promisc[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005749 u8 permanent_address[0x1];
5750 u8 addresses_list[0x1];
5751 u8 roce_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005752 u8 reserved_at_1f[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005753};
5754
5755struct mlx5_ifc_modify_nic_vport_context_in_bits {
5756 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005757 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005758
Matan Barakb4ff3a32016-02-09 14:57:42 +02005759 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005760 u8 op_mod[0x10];
5761
5762 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005763 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005764 u8 vport_number[0x10];
5765
5766 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
5767
Matan Barakb4ff3a32016-02-09 14:57:42 +02005768 u8 reserved_at_80[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03005769
5770 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
5771};
5772
5773struct mlx5_ifc_modify_hca_vport_context_out_bits {
5774 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005775 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005776
5777 u8 syndrome[0x20];
5778
Matan Barakb4ff3a32016-02-09 14:57:42 +02005779 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005780};
5781
5782struct mlx5_ifc_modify_hca_vport_context_in_bits {
5783 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005784 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005785
Matan Barakb4ff3a32016-02-09 14:57:42 +02005786 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005787 u8 op_mod[0x10];
5788
5789 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005790 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03005791 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005792 u8 vport_number[0x10];
5793
Matan Barakb4ff3a32016-02-09 14:57:42 +02005794 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005795
5796 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
5797};
5798
5799struct mlx5_ifc_modify_cq_out_bits {
5800 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005801 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005802
5803 u8 syndrome[0x20];
5804
Matan Barakb4ff3a32016-02-09 14:57:42 +02005805 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005806};
5807
5808enum {
5809 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
5810 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
5811};
5812
5813struct mlx5_ifc_modify_cq_in_bits {
5814 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03005815 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005816
Matan Barakb4ff3a32016-02-09 14:57:42 +02005817 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005818 u8 op_mod[0x10];
5819
Matan Barakb4ff3a32016-02-09 14:57:42 +02005820 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005821 u8 cqn[0x18];
5822
5823 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
5824
5825 struct mlx5_ifc_cqc_bits cq_context;
5826
Leon Romanovskybd371972018-09-20 21:35:26 +03005827 u8 reserved_at_280[0x40];
5828
5829 u8 cq_umem_valid[0x1];
5830 u8 reserved_at_2c1[0x5bf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005831
5832 u8 pas[0][0x40];
5833};
5834
5835struct mlx5_ifc_modify_cong_status_out_bits {
5836 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005837 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005838
5839 u8 syndrome[0x20];
5840
Matan Barakb4ff3a32016-02-09 14:57:42 +02005841 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005842};
5843
5844struct mlx5_ifc_modify_cong_status_in_bits {
5845 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005846 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005847
Matan Barakb4ff3a32016-02-09 14:57:42 +02005848 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005849 u8 op_mod[0x10];
5850
Matan Barakb4ff3a32016-02-09 14:57:42 +02005851 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005852 u8 priority[0x4];
5853 u8 cong_protocol[0x4];
5854
5855 u8 enable[0x1];
5856 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005857 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03005858};
5859
5860struct mlx5_ifc_modify_cong_params_out_bits {
5861 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005862 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005863
5864 u8 syndrome[0x20];
5865
Matan Barakb4ff3a32016-02-09 14:57:42 +02005866 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005867};
5868
5869struct mlx5_ifc_modify_cong_params_in_bits {
5870 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005871 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005872
Matan Barakb4ff3a32016-02-09 14:57:42 +02005873 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005874 u8 op_mod[0x10];
5875
Matan Barakb4ff3a32016-02-09 14:57:42 +02005876 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03005877 u8 cong_protocol[0x4];
5878
5879 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
5880
Matan Barakb4ff3a32016-02-09 14:57:42 +02005881 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005882
5883 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
5884};
5885
5886struct mlx5_ifc_manage_pages_out_bits {
5887 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005888 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005889
5890 u8 syndrome[0x20];
5891
5892 u8 output_num_entries[0x20];
5893
Matan Barakb4ff3a32016-02-09 14:57:42 +02005894 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005895
5896 u8 pas[0][0x40];
5897};
5898
5899enum {
5900 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
5901 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
5902 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
5903};
5904
5905struct mlx5_ifc_manage_pages_in_bits {
5906 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005907 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005908
Matan Barakb4ff3a32016-02-09 14:57:42 +02005909 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005910 u8 op_mod[0x10];
5911
Bodong Wang591905b2019-02-12 22:55:35 -08005912 u8 embedded_cpu_function[0x1];
5913 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005914 u8 function_id[0x10];
5915
5916 u8 input_num_entries[0x20];
5917
5918 u8 pas[0][0x40];
5919};
5920
5921struct mlx5_ifc_mad_ifc_out_bits {
5922 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005923 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005924
5925 u8 syndrome[0x20];
5926
Matan Barakb4ff3a32016-02-09 14:57:42 +02005927 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005928
5929 u8 response_mad_packet[256][0x8];
5930};
5931
5932struct mlx5_ifc_mad_ifc_in_bits {
5933 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005934 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005935
Matan Barakb4ff3a32016-02-09 14:57:42 +02005936 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005937 u8 op_mod[0x10];
5938
5939 u8 remote_lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005940 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005941 u8 port[0x8];
5942
Matan Barakb4ff3a32016-02-09 14:57:42 +02005943 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005944
5945 u8 mad[256][0x8];
5946};
5947
5948struct mlx5_ifc_init_hca_out_bits {
5949 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005950 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005951
5952 u8 syndrome[0x20];
5953
Matan Barakb4ff3a32016-02-09 14:57:42 +02005954 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005955};
5956
5957struct mlx5_ifc_init_hca_in_bits {
5958 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005959 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005960
Matan Barakb4ff3a32016-02-09 14:57:42 +02005961 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005962 u8 op_mod[0x10];
5963
Matan Barakb4ff3a32016-02-09 14:57:42 +02005964 u8 reserved_at_40[0x40];
Daniel Jurgens8737f812018-01-04 17:25:32 +02005965 u8 sw_owner_id[4][0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005966};
5967
5968struct mlx5_ifc_init2rtr_qp_out_bits {
5969 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005970 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005971
5972 u8 syndrome[0x20];
5973
Matan Barakb4ff3a32016-02-09 14:57:42 +02005974 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005975};
5976
5977struct mlx5_ifc_init2rtr_qp_in_bits {
5978 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03005979 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005980
Matan Barakb4ff3a32016-02-09 14:57:42 +02005981 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005982 u8 op_mod[0x10];
5983
Matan Barakb4ff3a32016-02-09 14:57:42 +02005984 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005985 u8 qpn[0x18];
5986
Matan Barakb4ff3a32016-02-09 14:57:42 +02005987 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005988
5989 u8 opt_param_mask[0x20];
5990
Matan Barakb4ff3a32016-02-09 14:57:42 +02005991 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005992
5993 struct mlx5_ifc_qpc_bits qpc;
5994
Matan Barakb4ff3a32016-02-09 14:57:42 +02005995 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005996};
5997
5998struct mlx5_ifc_init2init_qp_out_bits {
5999 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006000 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006001
6002 u8 syndrome[0x20];
6003
Matan Barakb4ff3a32016-02-09 14:57:42 +02006004 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006005};
6006
6007struct mlx5_ifc_init2init_qp_in_bits {
6008 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03006009 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006010
Matan Barakb4ff3a32016-02-09 14:57:42 +02006011 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006012 u8 op_mod[0x10];
6013
Matan Barakb4ff3a32016-02-09 14:57:42 +02006014 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006015 u8 qpn[0x18];
6016
Matan Barakb4ff3a32016-02-09 14:57:42 +02006017 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006018
6019 u8 opt_param_mask[0x20];
6020
Matan Barakb4ff3a32016-02-09 14:57:42 +02006021 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006022
6023 struct mlx5_ifc_qpc_bits qpc;
6024
Matan Barakb4ff3a32016-02-09 14:57:42 +02006025 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006026};
6027
6028struct mlx5_ifc_get_dropped_packet_log_out_bits {
6029 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006030 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006031
6032 u8 syndrome[0x20];
6033
Matan Barakb4ff3a32016-02-09 14:57:42 +02006034 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006035
6036 u8 packet_headers_log[128][0x8];
6037
6038 u8 packet_syndrome[64][0x8];
6039};
6040
6041struct mlx5_ifc_get_dropped_packet_log_in_bits {
6042 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006043 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006044
Matan Barakb4ff3a32016-02-09 14:57:42 +02006045 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006046 u8 op_mod[0x10];
6047
Matan Barakb4ff3a32016-02-09 14:57:42 +02006048 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006049};
6050
6051struct mlx5_ifc_gen_eqe_in_bits {
6052 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006053 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006054
Matan Barakb4ff3a32016-02-09 14:57:42 +02006055 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006056 u8 op_mod[0x10];
6057
Matan Barakb4ff3a32016-02-09 14:57:42 +02006058 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006059 u8 eq_number[0x8];
6060
Matan Barakb4ff3a32016-02-09 14:57:42 +02006061 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006062
6063 u8 eqe[64][0x8];
6064};
6065
6066struct mlx5_ifc_gen_eq_out_bits {
6067 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006068 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006069
6070 u8 syndrome[0x20];
6071
Matan Barakb4ff3a32016-02-09 14:57:42 +02006072 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006073};
6074
6075struct mlx5_ifc_enable_hca_out_bits {
6076 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006077 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006078
6079 u8 syndrome[0x20];
6080
Matan Barakb4ff3a32016-02-09 14:57:42 +02006081 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006082};
6083
6084struct mlx5_ifc_enable_hca_in_bits {
6085 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006086 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006087
Matan Barakb4ff3a32016-02-09 14:57:42 +02006088 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006089 u8 op_mod[0x10];
6090
Bodong Wang22e939a2019-02-12 22:55:36 -08006091 u8 embedded_cpu_function[0x1];
6092 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03006093 u8 function_id[0x10];
6094
Matan Barakb4ff3a32016-02-09 14:57:42 +02006095 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006096};
6097
6098struct mlx5_ifc_drain_dct_out_bits {
6099 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006100 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006101
6102 u8 syndrome[0x20];
6103
Matan Barakb4ff3a32016-02-09 14:57:42 +02006104 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006105};
6106
6107struct mlx5_ifc_drain_dct_in_bits {
6108 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03006109 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006110
Matan Barakb4ff3a32016-02-09 14:57:42 +02006111 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006112 u8 op_mod[0x10];
6113
Matan Barakb4ff3a32016-02-09 14:57:42 +02006114 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006115 u8 dctn[0x18];
6116
Matan Barakb4ff3a32016-02-09 14:57:42 +02006117 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006118};
6119
6120struct mlx5_ifc_disable_hca_out_bits {
6121 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006122 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006123
6124 u8 syndrome[0x20];
6125
Matan Barakb4ff3a32016-02-09 14:57:42 +02006126 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006127};
6128
6129struct mlx5_ifc_disable_hca_in_bits {
6130 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006131 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006132
Matan Barakb4ff3a32016-02-09 14:57:42 +02006133 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006134 u8 op_mod[0x10];
6135
Bodong Wang22e939a2019-02-12 22:55:36 -08006136 u8 embedded_cpu_function[0x1];
6137 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03006138 u8 function_id[0x10];
6139
Matan Barakb4ff3a32016-02-09 14:57:42 +02006140 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006141};
6142
6143struct mlx5_ifc_detach_from_mcg_out_bits {
6144 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006145 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006146
6147 u8 syndrome[0x20];
6148
Matan Barakb4ff3a32016-02-09 14:57:42 +02006149 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006150};
6151
6152struct mlx5_ifc_detach_from_mcg_in_bits {
6153 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006154 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006155
Matan Barakb4ff3a32016-02-09 14:57:42 +02006156 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006157 u8 op_mod[0x10];
6158
Matan Barakb4ff3a32016-02-09 14:57:42 +02006159 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006160 u8 qpn[0x18];
6161
Matan Barakb4ff3a32016-02-09 14:57:42 +02006162 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006163
6164 u8 multicast_gid[16][0x8];
6165};
6166
Saeed Mahameed74862162016-06-09 15:11:34 +03006167struct mlx5_ifc_destroy_xrq_out_bits {
6168 u8 status[0x8];
6169 u8 reserved_at_8[0x18];
6170
6171 u8 syndrome[0x20];
6172
6173 u8 reserved_at_40[0x40];
6174};
6175
6176struct mlx5_ifc_destroy_xrq_in_bits {
6177 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006178 u8 uid[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +03006179
6180 u8 reserved_at_20[0x10];
6181 u8 op_mod[0x10];
6182
6183 u8 reserved_at_40[0x8];
6184 u8 xrqn[0x18];
6185
6186 u8 reserved_at_60[0x20];
6187};
6188
Saeed Mahameede2816822015-05-28 22:28:40 +03006189struct mlx5_ifc_destroy_xrc_srq_out_bits {
6190 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006191 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006192
6193 u8 syndrome[0x20];
6194
Matan Barakb4ff3a32016-02-09 14:57:42 +02006195 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006196};
6197
6198struct mlx5_ifc_destroy_xrc_srq_in_bits {
6199 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006200 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006201
Matan Barakb4ff3a32016-02-09 14:57:42 +02006202 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006203 u8 op_mod[0x10];
6204
Matan Barakb4ff3a32016-02-09 14:57:42 +02006205 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006206 u8 xrc_srqn[0x18];
6207
Matan Barakb4ff3a32016-02-09 14:57:42 +02006208 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006209};
6210
6211struct mlx5_ifc_destroy_tis_out_bits {
6212 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006213 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006214
6215 u8 syndrome[0x20];
6216
Matan Barakb4ff3a32016-02-09 14:57:42 +02006217 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006218};
6219
6220struct mlx5_ifc_destroy_tis_in_bits {
6221 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006222 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006223
Matan Barakb4ff3a32016-02-09 14:57:42 +02006224 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006225 u8 op_mod[0x10];
6226
Matan Barakb4ff3a32016-02-09 14:57:42 +02006227 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006228 u8 tisn[0x18];
6229
Matan Barakb4ff3a32016-02-09 14:57:42 +02006230 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006231};
6232
6233struct mlx5_ifc_destroy_tir_out_bits {
6234 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006235 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006236
6237 u8 syndrome[0x20];
6238
Matan Barakb4ff3a32016-02-09 14:57:42 +02006239 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006240};
6241
6242struct mlx5_ifc_destroy_tir_in_bits {
6243 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006244 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006245
Matan Barakb4ff3a32016-02-09 14:57:42 +02006246 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006247 u8 op_mod[0x10];
6248
Matan Barakb4ff3a32016-02-09 14:57:42 +02006249 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006250 u8 tirn[0x18];
6251
Matan Barakb4ff3a32016-02-09 14:57:42 +02006252 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006253};
6254
6255struct mlx5_ifc_destroy_srq_out_bits {
6256 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006257 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006258
6259 u8 syndrome[0x20];
6260
Matan Barakb4ff3a32016-02-09 14:57:42 +02006261 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006262};
6263
6264struct mlx5_ifc_destroy_srq_in_bits {
6265 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006266 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006267
Matan Barakb4ff3a32016-02-09 14:57:42 +02006268 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006269 u8 op_mod[0x10];
6270
Matan Barakb4ff3a32016-02-09 14:57:42 +02006271 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006272 u8 srqn[0x18];
6273
Matan Barakb4ff3a32016-02-09 14:57:42 +02006274 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006275};
6276
6277struct mlx5_ifc_destroy_sq_out_bits {
6278 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006279 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006280
6281 u8 syndrome[0x20];
6282
Matan Barakb4ff3a32016-02-09 14:57:42 +02006283 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006284};
6285
6286struct mlx5_ifc_destroy_sq_in_bits {
6287 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03006288 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006289
Matan Barakb4ff3a32016-02-09 14:57:42 +02006290 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006291 u8 op_mod[0x10];
6292
Matan Barakb4ff3a32016-02-09 14:57:42 +02006293 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006294 u8 sqn[0x18];
6295
Matan Barakb4ff3a32016-02-09 14:57:42 +02006296 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006297};
6298
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03006299struct mlx5_ifc_destroy_scheduling_element_out_bits {
6300 u8 status[0x8];
6301 u8 reserved_at_8[0x18];
6302
6303 u8 syndrome[0x20];
6304
6305 u8 reserved_at_40[0x1c0];
6306};
6307
6308struct mlx5_ifc_destroy_scheduling_element_in_bits {
6309 u8 opcode[0x10];
6310 u8 reserved_at_10[0x10];
6311
6312 u8 reserved_at_20[0x10];
6313 u8 op_mod[0x10];
6314
6315 u8 scheduling_hierarchy[0x8];
6316 u8 reserved_at_48[0x18];
6317
6318 u8 scheduling_element_id[0x20];
6319
6320 u8 reserved_at_80[0x180];
6321};
6322
Saeed Mahameede2816822015-05-28 22:28:40 +03006323struct mlx5_ifc_destroy_rqt_out_bits {
6324 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006325 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006326
6327 u8 syndrome[0x20];
6328
Matan Barakb4ff3a32016-02-09 14:57:42 +02006329 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006330};
6331
6332struct mlx5_ifc_destroy_rqt_in_bits {
6333 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006334 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006335
Matan Barakb4ff3a32016-02-09 14:57:42 +02006336 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006337 u8 op_mod[0x10];
6338
Matan Barakb4ff3a32016-02-09 14:57:42 +02006339 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006340 u8 rqtn[0x18];
6341
Matan Barakb4ff3a32016-02-09 14:57:42 +02006342 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006343};
6344
6345struct mlx5_ifc_destroy_rq_out_bits {
6346 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006347 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006348
6349 u8 syndrome[0x20];
6350
Matan Barakb4ff3a32016-02-09 14:57:42 +02006351 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006352};
6353
6354struct mlx5_ifc_destroy_rq_in_bits {
6355 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03006356 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006357
Matan Barakb4ff3a32016-02-09 14:57:42 +02006358 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006359 u8 op_mod[0x10];
6360
Matan Barakb4ff3a32016-02-09 14:57:42 +02006361 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006362 u8 rqn[0x18];
6363
Matan Barakb4ff3a32016-02-09 14:57:42 +02006364 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006365};
6366
Maor Gottliebc1e0bfc2017-05-30 10:29:11 +03006367struct mlx5_ifc_set_delay_drop_params_in_bits {
6368 u8 opcode[0x10];
6369 u8 reserved_at_10[0x10];
6370
6371 u8 reserved_at_20[0x10];
6372 u8 op_mod[0x10];
6373
6374 u8 reserved_at_40[0x20];
6375
6376 u8 reserved_at_60[0x10];
6377 u8 delay_drop_timeout[0x10];
6378};
6379
6380struct mlx5_ifc_set_delay_drop_params_out_bits {
6381 u8 status[0x8];
6382 u8 reserved_at_8[0x18];
6383
6384 u8 syndrome[0x20];
6385
6386 u8 reserved_at_40[0x40];
6387};
6388
Saeed Mahameede2816822015-05-28 22:28:40 +03006389struct mlx5_ifc_destroy_rmp_out_bits {
6390 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006391 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006392
6393 u8 syndrome[0x20];
6394
Matan Barakb4ff3a32016-02-09 14:57:42 +02006395 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006396};
6397
6398struct mlx5_ifc_destroy_rmp_in_bits {
6399 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006400 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006401
Matan Barakb4ff3a32016-02-09 14:57:42 +02006402 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006403 u8 op_mod[0x10];
6404
Matan Barakb4ff3a32016-02-09 14:57:42 +02006405 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006406 u8 rmpn[0x18];
6407
Matan Barakb4ff3a32016-02-09 14:57:42 +02006408 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006409};
6410
6411struct mlx5_ifc_destroy_qp_out_bits {
6412 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006413 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006414
6415 u8 syndrome[0x20];
6416
Matan Barakb4ff3a32016-02-09 14:57:42 +02006417 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006418};
6419
6420struct mlx5_ifc_destroy_qp_in_bits {
6421 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03006422 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006423
Matan Barakb4ff3a32016-02-09 14:57:42 +02006424 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006425 u8 op_mod[0x10];
6426
Matan Barakb4ff3a32016-02-09 14:57:42 +02006427 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006428 u8 qpn[0x18];
6429
Matan Barakb4ff3a32016-02-09 14:57:42 +02006430 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006431};
6432
6433struct mlx5_ifc_destroy_psv_out_bits {
6434 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006435 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006436
6437 u8 syndrome[0x20];
6438
Matan Barakb4ff3a32016-02-09 14:57:42 +02006439 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006440};
6441
6442struct mlx5_ifc_destroy_psv_in_bits {
6443 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006444 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006445
Matan Barakb4ff3a32016-02-09 14:57:42 +02006446 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006447 u8 op_mod[0x10];
6448
Matan Barakb4ff3a32016-02-09 14:57:42 +02006449 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006450 u8 psvn[0x18];
6451
Matan Barakb4ff3a32016-02-09 14:57:42 +02006452 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006453};
6454
6455struct mlx5_ifc_destroy_mkey_out_bits {
6456 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006457 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006458
6459 u8 syndrome[0x20];
6460
Matan Barakb4ff3a32016-02-09 14:57:42 +02006461 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006462};
6463
6464struct mlx5_ifc_destroy_mkey_in_bits {
6465 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006466 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006467
Matan Barakb4ff3a32016-02-09 14:57:42 +02006468 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006469 u8 op_mod[0x10];
6470
Matan Barakb4ff3a32016-02-09 14:57:42 +02006471 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006472 u8 mkey_index[0x18];
6473
Matan Barakb4ff3a32016-02-09 14:57:42 +02006474 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006475};
6476
6477struct mlx5_ifc_destroy_flow_table_out_bits {
6478 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006479 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006480
6481 u8 syndrome[0x20];
6482
Matan Barakb4ff3a32016-02-09 14:57:42 +02006483 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006484};
6485
6486struct mlx5_ifc_destroy_flow_table_in_bits {
6487 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006488 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006489
Matan Barakb4ff3a32016-02-09 14:57:42 +02006490 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006491 u8 op_mod[0x10];
6492
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006493 u8 other_vport[0x1];
6494 u8 reserved_at_41[0xf];
6495 u8 vport_number[0x10];
6496
6497 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006498
6499 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006500 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006501
Matan Barakb4ff3a32016-02-09 14:57:42 +02006502 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006503 u8 table_id[0x18];
6504
Matan Barakb4ff3a32016-02-09 14:57:42 +02006505 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03006506};
6507
6508struct mlx5_ifc_destroy_flow_group_out_bits {
6509 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006510 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006511
6512 u8 syndrome[0x20];
6513
Matan Barakb4ff3a32016-02-09 14:57:42 +02006514 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006515};
6516
6517struct mlx5_ifc_destroy_flow_group_in_bits {
6518 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006519 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006520
Matan Barakb4ff3a32016-02-09 14:57:42 +02006521 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006522 u8 op_mod[0x10];
6523
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006524 u8 other_vport[0x1];
6525 u8 reserved_at_41[0xf];
6526 u8 vport_number[0x10];
6527
6528 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006529
6530 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006531 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006532
Matan Barakb4ff3a32016-02-09 14:57:42 +02006533 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006534 u8 table_id[0x18];
6535
6536 u8 group_id[0x20];
6537
Matan Barakb4ff3a32016-02-09 14:57:42 +02006538 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03006539};
6540
6541struct mlx5_ifc_destroy_eq_out_bits {
6542 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006543 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006544
6545 u8 syndrome[0x20];
6546
Matan Barakb4ff3a32016-02-09 14:57:42 +02006547 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006548};
6549
6550struct mlx5_ifc_destroy_eq_in_bits {
6551 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006552 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006553
Matan Barakb4ff3a32016-02-09 14:57:42 +02006554 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006555 u8 op_mod[0x10];
6556
Matan Barakb4ff3a32016-02-09 14:57:42 +02006557 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006558 u8 eq_number[0x8];
6559
Matan Barakb4ff3a32016-02-09 14:57:42 +02006560 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006561};
6562
6563struct mlx5_ifc_destroy_dct_out_bits {
6564 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006565 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006566
6567 u8 syndrome[0x20];
6568
Matan Barakb4ff3a32016-02-09 14:57:42 +02006569 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006570};
6571
6572struct mlx5_ifc_destroy_dct_in_bits {
6573 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03006574 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006575
Matan Barakb4ff3a32016-02-09 14:57:42 +02006576 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006577 u8 op_mod[0x10];
6578
Matan Barakb4ff3a32016-02-09 14:57:42 +02006579 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006580 u8 dctn[0x18];
6581
Matan Barakb4ff3a32016-02-09 14:57:42 +02006582 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006583};
6584
6585struct mlx5_ifc_destroy_cq_out_bits {
6586 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006587 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006588
6589 u8 syndrome[0x20];
6590
Matan Barakb4ff3a32016-02-09 14:57:42 +02006591 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006592};
6593
6594struct mlx5_ifc_destroy_cq_in_bits {
6595 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03006596 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006597
Matan Barakb4ff3a32016-02-09 14:57:42 +02006598 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006599 u8 op_mod[0x10];
6600
Matan Barakb4ff3a32016-02-09 14:57:42 +02006601 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006602 u8 cqn[0x18];
6603
Matan Barakb4ff3a32016-02-09 14:57:42 +02006604 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006605};
6606
6607struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
6608 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006609 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006610
6611 u8 syndrome[0x20];
6612
Matan Barakb4ff3a32016-02-09 14:57:42 +02006613 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006614};
6615
6616struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
6617 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006618 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006619
Matan Barakb4ff3a32016-02-09 14:57:42 +02006620 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006621 u8 op_mod[0x10];
6622
Matan Barakb4ff3a32016-02-09 14:57:42 +02006623 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006624
Matan Barakb4ff3a32016-02-09 14:57:42 +02006625 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006626 u8 vxlan_udp_port[0x10];
6627};
6628
6629struct mlx5_ifc_delete_l2_table_entry_out_bits {
6630 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006631 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006632
6633 u8 syndrome[0x20];
6634
Matan Barakb4ff3a32016-02-09 14:57:42 +02006635 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006636};
6637
6638struct mlx5_ifc_delete_l2_table_entry_in_bits {
6639 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006640 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006641
Matan Barakb4ff3a32016-02-09 14:57:42 +02006642 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006643 u8 op_mod[0x10];
6644
Matan Barakb4ff3a32016-02-09 14:57:42 +02006645 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03006646
Matan Barakb4ff3a32016-02-09 14:57:42 +02006647 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006648 u8 table_index[0x18];
6649
Matan Barakb4ff3a32016-02-09 14:57:42 +02006650 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03006651};
6652
6653struct mlx5_ifc_delete_fte_out_bits {
6654 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006655 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006656
6657 u8 syndrome[0x20];
6658
Matan Barakb4ff3a32016-02-09 14:57:42 +02006659 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006660};
6661
6662struct mlx5_ifc_delete_fte_in_bits {
6663 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006664 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006665
Matan Barakb4ff3a32016-02-09 14:57:42 +02006666 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006667 u8 op_mod[0x10];
6668
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006669 u8 other_vport[0x1];
6670 u8 reserved_at_41[0xf];
6671 u8 vport_number[0x10];
6672
6673 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006674
6675 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006676 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006677
Matan Barakb4ff3a32016-02-09 14:57:42 +02006678 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006679 u8 table_id[0x18];
6680
Matan Barakb4ff3a32016-02-09 14:57:42 +02006681 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006682
6683 u8 flow_index[0x20];
6684
Matan Barakb4ff3a32016-02-09 14:57:42 +02006685 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006686};
6687
6688struct mlx5_ifc_dealloc_xrcd_out_bits {
6689 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006690 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006691
6692 u8 syndrome[0x20];
6693
Matan Barakb4ff3a32016-02-09 14:57:42 +02006694 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006695};
6696
6697struct mlx5_ifc_dealloc_xrcd_in_bits {
6698 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006699 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006700
Matan Barakb4ff3a32016-02-09 14:57:42 +02006701 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006702 u8 op_mod[0x10];
6703
Matan Barakb4ff3a32016-02-09 14:57:42 +02006704 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006705 u8 xrcd[0x18];
6706
Matan Barakb4ff3a32016-02-09 14:57:42 +02006707 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006708};
6709
6710struct mlx5_ifc_dealloc_uar_out_bits {
6711 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006712 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006713
6714 u8 syndrome[0x20];
6715
Matan Barakb4ff3a32016-02-09 14:57:42 +02006716 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006717};
6718
6719struct mlx5_ifc_dealloc_uar_in_bits {
6720 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006721 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006722
Matan Barakb4ff3a32016-02-09 14:57:42 +02006723 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006724 u8 op_mod[0x10];
6725
Matan Barakb4ff3a32016-02-09 14:57:42 +02006726 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006727 u8 uar[0x18];
6728
Matan Barakb4ff3a32016-02-09 14:57:42 +02006729 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006730};
6731
6732struct mlx5_ifc_dealloc_transport_domain_out_bits {
6733 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006734 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006735
6736 u8 syndrome[0x20];
6737
Matan Barakb4ff3a32016-02-09 14:57:42 +02006738 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006739};
6740
6741struct mlx5_ifc_dealloc_transport_domain_in_bits {
6742 u8 opcode[0x10];
Yishai Hadas71bef2f2018-12-19 16:28:10 +02006743 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006744
Matan Barakb4ff3a32016-02-09 14:57:42 +02006745 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006746 u8 op_mod[0x10];
6747
Matan Barakb4ff3a32016-02-09 14:57:42 +02006748 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006749 u8 transport_domain[0x18];
6750
Matan Barakb4ff3a32016-02-09 14:57:42 +02006751 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006752};
6753
6754struct mlx5_ifc_dealloc_q_counter_out_bits {
6755 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006756 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006757
6758 u8 syndrome[0x20];
6759
Matan Barakb4ff3a32016-02-09 14:57:42 +02006760 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006761};
6762
6763struct mlx5_ifc_dealloc_q_counter_in_bits {
6764 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006765 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006766
Matan Barakb4ff3a32016-02-09 14:57:42 +02006767 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006768 u8 op_mod[0x10];
6769
Matan Barakb4ff3a32016-02-09 14:57:42 +02006770 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006771 u8 counter_set_id[0x8];
6772
Matan Barakb4ff3a32016-02-09 14:57:42 +02006773 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006774};
6775
6776struct mlx5_ifc_dealloc_pd_out_bits {
6777 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006778 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006779
6780 u8 syndrome[0x20];
6781
Matan Barakb4ff3a32016-02-09 14:57:42 +02006782 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006783};
6784
6785struct mlx5_ifc_dealloc_pd_in_bits {
6786 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006787 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006788
Matan Barakb4ff3a32016-02-09 14:57:42 +02006789 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006790 u8 op_mod[0x10];
6791
Matan Barakb4ff3a32016-02-09 14:57:42 +02006792 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006793 u8 pd[0x18];
6794
Matan Barakb4ff3a32016-02-09 14:57:42 +02006795 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006796};
6797
Amir Vadai9dc0b282016-05-13 12:55:39 +00006798struct mlx5_ifc_dealloc_flow_counter_out_bits {
6799 u8 status[0x8];
6800 u8 reserved_at_8[0x18];
6801
6802 u8 syndrome[0x20];
6803
6804 u8 reserved_at_40[0x40];
6805};
6806
6807struct mlx5_ifc_dealloc_flow_counter_in_bits {
6808 u8 opcode[0x10];
6809 u8 reserved_at_10[0x10];
6810
6811 u8 reserved_at_20[0x10];
6812 u8 op_mod[0x10];
6813
Rabie Louloua8ffcc72017-07-09 13:39:30 +03006814 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00006815
6816 u8 reserved_at_60[0x20];
6817};
6818
Saeed Mahameed74862162016-06-09 15:11:34 +03006819struct mlx5_ifc_create_xrq_out_bits {
6820 u8 status[0x8];
6821 u8 reserved_at_8[0x18];
6822
6823 u8 syndrome[0x20];
6824
6825 u8 reserved_at_40[0x8];
6826 u8 xrqn[0x18];
6827
6828 u8 reserved_at_60[0x20];
6829};
6830
6831struct mlx5_ifc_create_xrq_in_bits {
6832 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006833 u8 uid[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +03006834
6835 u8 reserved_at_20[0x10];
6836 u8 op_mod[0x10];
6837
6838 u8 reserved_at_40[0x40];
6839
6840 struct mlx5_ifc_xrqc_bits xrq_context;
6841};
6842
Saeed Mahameede2816822015-05-28 22:28:40 +03006843struct mlx5_ifc_create_xrc_srq_out_bits {
6844 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006845 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006846
6847 u8 syndrome[0x20];
6848
Matan Barakb4ff3a32016-02-09 14:57:42 +02006849 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006850 u8 xrc_srqn[0x18];
6851
Matan Barakb4ff3a32016-02-09 14:57:42 +02006852 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006853};
6854
6855struct mlx5_ifc_create_xrc_srq_in_bits {
6856 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006857 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006858
Matan Barakb4ff3a32016-02-09 14:57:42 +02006859 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006860 u8 op_mod[0x10];
6861
Matan Barakb4ff3a32016-02-09 14:57:42 +02006862 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006863
6864 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
6865
Yishai Hadas99b77fe2018-10-31 12:20:28 +02006866 u8 reserved_at_280[0x60];
6867
Leon Romanovskybd371972018-09-20 21:35:26 +03006868 u8 xrc_srq_umem_valid[0x1];
Yishai Hadas99b77fe2018-10-31 12:20:28 +02006869 u8 reserved_at_2e1[0x1f];
6870
6871 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03006872
6873 u8 pas[0][0x40];
6874};
6875
6876struct mlx5_ifc_create_tis_out_bits {
6877 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006878 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006879
6880 u8 syndrome[0x20];
6881
Matan Barakb4ff3a32016-02-09 14:57:42 +02006882 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006883 u8 tisn[0x18];
6884
Matan Barakb4ff3a32016-02-09 14:57:42 +02006885 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006886};
6887
6888struct mlx5_ifc_create_tis_in_bits {
6889 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006890 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006891
Matan Barakb4ff3a32016-02-09 14:57:42 +02006892 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006893 u8 op_mod[0x10];
6894
Matan Barakb4ff3a32016-02-09 14:57:42 +02006895 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006896
6897 struct mlx5_ifc_tisc_bits ctx;
6898};
6899
6900struct mlx5_ifc_create_tir_out_bits {
6901 u8 status[0x8];
Ariel Levkovich3e070472019-03-31 19:44:48 +03006902 u8 icm_address_63_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006903
6904 u8 syndrome[0x20];
6905
Ariel Levkovich3e070472019-03-31 19:44:48 +03006906 u8 icm_address_39_32[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006907 u8 tirn[0x18];
6908
Ariel Levkovich3e070472019-03-31 19:44:48 +03006909 u8 icm_address_31_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006910};
6911
6912struct mlx5_ifc_create_tir_in_bits {
6913 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03006914 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006915
Matan Barakb4ff3a32016-02-09 14:57:42 +02006916 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006917 u8 op_mod[0x10];
6918
Matan Barakb4ff3a32016-02-09 14:57:42 +02006919 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006920
6921 struct mlx5_ifc_tirc_bits ctx;
6922};
6923
6924struct mlx5_ifc_create_srq_out_bits {
6925 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006926 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006927
6928 u8 syndrome[0x20];
6929
Matan Barakb4ff3a32016-02-09 14:57:42 +02006930 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006931 u8 srqn[0x18];
6932
Matan Barakb4ff3a32016-02-09 14:57:42 +02006933 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006934};
6935
6936struct mlx5_ifc_create_srq_in_bits {
6937 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03006938 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006939
Matan Barakb4ff3a32016-02-09 14:57:42 +02006940 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006941 u8 op_mod[0x10];
6942
Matan Barakb4ff3a32016-02-09 14:57:42 +02006943 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006944
6945 struct mlx5_ifc_srqc_bits srq_context_entry;
6946
Matan Barakb4ff3a32016-02-09 14:57:42 +02006947 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006948
6949 u8 pas[0][0x40];
6950};
6951
6952struct mlx5_ifc_create_sq_out_bits {
6953 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006954 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006955
6956 u8 syndrome[0x20];
6957
Matan Barakb4ff3a32016-02-09 14:57:42 +02006958 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006959 u8 sqn[0x18];
6960
Matan Barakb4ff3a32016-02-09 14:57:42 +02006961 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006962};
6963
6964struct mlx5_ifc_create_sq_in_bits {
6965 u8 opcode[0x10];
Yishai Hadas430ae0d52018-09-20 21:35:23 +03006966 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006967
Matan Barakb4ff3a32016-02-09 14:57:42 +02006968 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006969 u8 op_mod[0x10];
6970
Matan Barakb4ff3a32016-02-09 14:57:42 +02006971 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006972
6973 struct mlx5_ifc_sqc_bits ctx;
6974};
6975
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03006976struct mlx5_ifc_create_scheduling_element_out_bits {
6977 u8 status[0x8];
6978 u8 reserved_at_8[0x18];
6979
6980 u8 syndrome[0x20];
6981
6982 u8 reserved_at_40[0x40];
6983
6984 u8 scheduling_element_id[0x20];
6985
6986 u8 reserved_at_a0[0x160];
6987};
6988
6989struct mlx5_ifc_create_scheduling_element_in_bits {
6990 u8 opcode[0x10];
6991 u8 reserved_at_10[0x10];
6992
6993 u8 reserved_at_20[0x10];
6994 u8 op_mod[0x10];
6995
6996 u8 scheduling_hierarchy[0x8];
6997 u8 reserved_at_48[0x18];
6998
6999 u8 reserved_at_60[0xa0];
7000
7001 struct mlx5_ifc_scheduling_context_bits scheduling_context;
7002
7003 u8 reserved_at_300[0x100];
7004};
7005
Saeed Mahameede2816822015-05-28 22:28:40 +03007006struct mlx5_ifc_create_rqt_out_bits {
7007 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007008 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007009
7010 u8 syndrome[0x20];
7011
Matan Barakb4ff3a32016-02-09 14:57:42 +02007012 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007013 u8 rqtn[0x18];
7014
Matan Barakb4ff3a32016-02-09 14:57:42 +02007015 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007016};
7017
7018struct mlx5_ifc_create_rqt_in_bits {
7019 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007020 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007021
Matan Barakb4ff3a32016-02-09 14:57:42 +02007022 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007023 u8 op_mod[0x10];
7024
Matan Barakb4ff3a32016-02-09 14:57:42 +02007025 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007026
7027 struct mlx5_ifc_rqtc_bits rqt_context;
7028};
7029
7030struct mlx5_ifc_create_rq_out_bits {
7031 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007032 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007033
7034 u8 syndrome[0x20];
7035
Matan Barakb4ff3a32016-02-09 14:57:42 +02007036 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007037 u8 rqn[0x18];
7038
Matan Barakb4ff3a32016-02-09 14:57:42 +02007039 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007040};
7041
7042struct mlx5_ifc_create_rq_in_bits {
7043 u8 opcode[0x10];
Yishai Hadasd269b3a2018-09-20 21:35:22 +03007044 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007045
Matan Barakb4ff3a32016-02-09 14:57:42 +02007046 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007047 u8 op_mod[0x10];
7048
Matan Barakb4ff3a32016-02-09 14:57:42 +02007049 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007050
7051 struct mlx5_ifc_rqc_bits ctx;
7052};
7053
7054struct mlx5_ifc_create_rmp_out_bits {
7055 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007056 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007057
7058 u8 syndrome[0x20];
7059
Matan Barakb4ff3a32016-02-09 14:57:42 +02007060 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007061 u8 rmpn[0x18];
7062
Matan Barakb4ff3a32016-02-09 14:57:42 +02007063 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007064};
7065
7066struct mlx5_ifc_create_rmp_in_bits {
7067 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007068 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007069
Matan Barakb4ff3a32016-02-09 14:57:42 +02007070 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007071 u8 op_mod[0x10];
7072
Matan Barakb4ff3a32016-02-09 14:57:42 +02007073 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007074
7075 struct mlx5_ifc_rmpc_bits ctx;
7076};
7077
7078struct mlx5_ifc_create_qp_out_bits {
7079 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007080 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007081
7082 u8 syndrome[0x20];
7083
Matan Barakb4ff3a32016-02-09 14:57:42 +02007084 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007085 u8 qpn[0x18];
7086
Matan Barakb4ff3a32016-02-09 14:57:42 +02007087 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007088};
7089
7090struct mlx5_ifc_create_qp_in_bits {
7091 u8 opcode[0x10];
Yishai Hadas4ac63ec2018-09-20 21:35:21 +03007092 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007093
Matan Barakb4ff3a32016-02-09 14:57:42 +02007094 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007095 u8 op_mod[0x10];
7096
Matan Barakb4ff3a32016-02-09 14:57:42 +02007097 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007098
7099 u8 opt_param_mask[0x20];
7100
Matan Barakb4ff3a32016-02-09 14:57:42 +02007101 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007102
7103 struct mlx5_ifc_qpc_bits qpc;
7104
Leon Romanovskybd371972018-09-20 21:35:26 +03007105 u8 reserved_at_800[0x60];
7106
7107 u8 wq_umem_valid[0x1];
7108 u8 reserved_at_861[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007109
7110 u8 pas[0][0x40];
7111};
7112
7113struct mlx5_ifc_create_psv_out_bits {
7114 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007115 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007116
7117 u8 syndrome[0x20];
7118
Matan Barakb4ff3a32016-02-09 14:57:42 +02007119 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007120
Matan Barakb4ff3a32016-02-09 14:57:42 +02007121 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007122 u8 psv0_index[0x18];
7123
Matan Barakb4ff3a32016-02-09 14:57:42 +02007124 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007125 u8 psv1_index[0x18];
7126
Matan Barakb4ff3a32016-02-09 14:57:42 +02007127 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007128 u8 psv2_index[0x18];
7129
Matan Barakb4ff3a32016-02-09 14:57:42 +02007130 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007131 u8 psv3_index[0x18];
7132};
7133
7134struct mlx5_ifc_create_psv_in_bits {
7135 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007136 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007137
Matan Barakb4ff3a32016-02-09 14:57:42 +02007138 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007139 u8 op_mod[0x10];
7140
7141 u8 num_psv[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007142 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007143 u8 pd[0x18];
7144
Matan Barakb4ff3a32016-02-09 14:57:42 +02007145 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007146};
7147
7148struct mlx5_ifc_create_mkey_out_bits {
7149 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007150 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007151
7152 u8 syndrome[0x20];
7153
Matan Barakb4ff3a32016-02-09 14:57:42 +02007154 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007155 u8 mkey_index[0x18];
7156
Matan Barakb4ff3a32016-02-09 14:57:42 +02007157 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007158};
7159
7160struct mlx5_ifc_create_mkey_in_bits {
7161 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007162 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007163
Matan Barakb4ff3a32016-02-09 14:57:42 +02007164 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007165 u8 op_mod[0x10];
7166
Matan Barakb4ff3a32016-02-09 14:57:42 +02007167 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007168
7169 u8 pg_access[0x1];
Leon Romanovskybd371972018-09-20 21:35:26 +03007170 u8 mkey_umem_valid[0x1];
7171 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03007172
7173 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
7174
Matan Barakb4ff3a32016-02-09 14:57:42 +02007175 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007176
7177 u8 translations_octword_actual_size[0x20];
7178
Matan Barakb4ff3a32016-02-09 14:57:42 +02007179 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03007180
7181 u8 klm_pas_mtt[0][0x20];
7182};
7183
7184struct mlx5_ifc_create_flow_table_out_bits {
7185 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007186 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007187
7188 u8 syndrome[0x20];
7189
Matan Barakb4ff3a32016-02-09 14:57:42 +02007190 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007191 u8 table_id[0x18];
7192
Matan Barakb4ff3a32016-02-09 14:57:42 +02007193 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007194};
7195
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007196struct mlx5_ifc_flow_table_context_bits {
Mark Bloch60786f02018-08-28 14:18:46 +03007197 u8 reformat_en[0x1];
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007198 u8 decap_en[0x1];
7199 u8 reserved_at_2[0x2];
7200 u8 table_miss_action[0x4];
7201 u8 level[0x8];
7202 u8 reserved_at_10[0x8];
7203 u8 log_size[0x8];
7204
7205 u8 reserved_at_20[0x8];
7206 u8 table_miss_id[0x18];
7207
7208 u8 reserved_at_40[0x8];
7209 u8 lag_master_next_table_id[0x18];
7210
7211 u8 reserved_at_60[0xe0];
7212};
7213
Saeed Mahameede2816822015-05-28 22:28:40 +03007214struct mlx5_ifc_create_flow_table_in_bits {
7215 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007216 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007217
Matan Barakb4ff3a32016-02-09 14:57:42 +02007218 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007219 u8 op_mod[0x10];
7220
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007221 u8 other_vport[0x1];
7222 u8 reserved_at_41[0xf];
7223 u8 vport_number[0x10];
7224
7225 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007226
7227 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007228 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007229
Matan Barakb4ff3a32016-02-09 14:57:42 +02007230 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007231
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02007232 struct mlx5_ifc_flow_table_context_bits flow_table_context;
Saeed Mahameede2816822015-05-28 22:28:40 +03007233};
7234
7235struct mlx5_ifc_create_flow_group_out_bits {
7236 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007237 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007238
7239 u8 syndrome[0x20];
7240
Matan Barakb4ff3a32016-02-09 14:57:42 +02007241 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007242 u8 group_id[0x18];
7243
Matan Barakb4ff3a32016-02-09 14:57:42 +02007244 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007245};
7246
7247enum {
Ariel Levkovich71c6e862018-05-13 14:33:34 +03007248 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
7249 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
7250 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
7251 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS_2 = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +03007252};
7253
7254struct mlx5_ifc_create_flow_group_in_bits {
7255 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007256 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007257
Matan Barakb4ff3a32016-02-09 14:57:42 +02007258 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007259 u8 op_mod[0x10];
7260
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007261 u8 other_vport[0x1];
7262 u8 reserved_at_41[0xf];
7263 u8 vport_number[0x10];
7264
7265 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007266
7267 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007268 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007269
Matan Barakb4ff3a32016-02-09 14:57:42 +02007270 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007271 u8 table_id[0x18];
7272
Shahar Klein3e99df82018-03-18 09:02:06 +02007273 u8 source_eswitch_owner_vhca_id_valid[0x1];
7274
7275 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007276
7277 u8 start_flow_index[0x20];
7278
Matan Barakb4ff3a32016-02-09 14:57:42 +02007279 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007280
7281 u8 end_flow_index[0x20];
7282
Matan Barakb4ff3a32016-02-09 14:57:42 +02007283 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007284
Matan Barakb4ff3a32016-02-09 14:57:42 +02007285 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007286 u8 match_criteria_enable[0x8];
7287
7288 struct mlx5_ifc_fte_match_param_bits match_criteria;
7289
Matan Barakb4ff3a32016-02-09 14:57:42 +02007290 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03007291};
7292
7293struct mlx5_ifc_create_eq_out_bits {
7294 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007295 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007296
7297 u8 syndrome[0x20];
7298
Matan Barakb4ff3a32016-02-09 14:57:42 +02007299 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007300 u8 eq_number[0x8];
7301
Matan Barakb4ff3a32016-02-09 14:57:42 +02007302 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007303};
7304
7305struct mlx5_ifc_create_eq_in_bits {
7306 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007307 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007308
Matan Barakb4ff3a32016-02-09 14:57:42 +02007309 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007310 u8 op_mod[0x10];
7311
Matan Barakb4ff3a32016-02-09 14:57:42 +02007312 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007313
7314 struct mlx5_ifc_eqc_bits eq_context_entry;
7315
Matan Barakb4ff3a32016-02-09 14:57:42 +02007316 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007317
7318 u8 event_bitmask[0x40];
7319
Matan Barakb4ff3a32016-02-09 14:57:42 +02007320 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03007321
7322 u8 pas[0][0x40];
7323};
7324
7325struct mlx5_ifc_create_dct_out_bits {
7326 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007327 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007328
7329 u8 syndrome[0x20];
7330
Matan Barakb4ff3a32016-02-09 14:57:42 +02007331 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007332 u8 dctn[0x18];
7333
Matan Barakb4ff3a32016-02-09 14:57:42 +02007334 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007335};
7336
7337struct mlx5_ifc_create_dct_in_bits {
7338 u8 opcode[0x10];
Yishai Hadas774ea6e2018-09-20 21:35:25 +03007339 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007340
Matan Barakb4ff3a32016-02-09 14:57:42 +02007341 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007342 u8 op_mod[0x10];
7343
Matan Barakb4ff3a32016-02-09 14:57:42 +02007344 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007345
7346 struct mlx5_ifc_dctc_bits dct_context_entry;
7347
Matan Barakb4ff3a32016-02-09 14:57:42 +02007348 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03007349};
7350
7351struct mlx5_ifc_create_cq_out_bits {
7352 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007353 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007354
7355 u8 syndrome[0x20];
7356
Matan Barakb4ff3a32016-02-09 14:57:42 +02007357 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007358 u8 cqn[0x18];
7359
Matan Barakb4ff3a32016-02-09 14:57:42 +02007360 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007361};
7362
7363struct mlx5_ifc_create_cq_in_bits {
7364 u8 opcode[0x10];
Yishai Hadas9ba481e2eb2018-09-20 21:35:20 +03007365 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007366
Matan Barakb4ff3a32016-02-09 14:57:42 +02007367 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007368 u8 op_mod[0x10];
7369
Matan Barakb4ff3a32016-02-09 14:57:42 +02007370 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007371
7372 struct mlx5_ifc_cqc_bits cq_context;
7373
Leon Romanovskybd371972018-09-20 21:35:26 +03007374 u8 reserved_at_280[0x60];
7375
7376 u8 cq_umem_valid[0x1];
7377 u8 reserved_at_2e1[0x59f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007378
7379 u8 pas[0][0x40];
7380};
7381
7382struct mlx5_ifc_config_int_moderation_out_bits {
7383 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007384 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007385
7386 u8 syndrome[0x20];
7387
Matan Barakb4ff3a32016-02-09 14:57:42 +02007388 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007389 u8 min_delay[0xc];
7390 u8 int_vector[0x10];
7391
Matan Barakb4ff3a32016-02-09 14:57:42 +02007392 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007393};
7394
7395enum {
7396 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
7397 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
7398};
7399
7400struct mlx5_ifc_config_int_moderation_in_bits {
7401 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007402 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007403
Matan Barakb4ff3a32016-02-09 14:57:42 +02007404 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007405 u8 op_mod[0x10];
7406
Matan Barakb4ff3a32016-02-09 14:57:42 +02007407 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007408 u8 min_delay[0xc];
7409 u8 int_vector[0x10];
7410
Matan Barakb4ff3a32016-02-09 14:57:42 +02007411 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007412};
7413
7414struct mlx5_ifc_attach_to_mcg_out_bits {
7415 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007416 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007417
7418 u8 syndrome[0x20];
7419
Matan Barakb4ff3a32016-02-09 14:57:42 +02007420 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007421};
7422
7423struct mlx5_ifc_attach_to_mcg_in_bits {
7424 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007425 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007426
Matan Barakb4ff3a32016-02-09 14:57:42 +02007427 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007428 u8 op_mod[0x10];
7429
Matan Barakb4ff3a32016-02-09 14:57:42 +02007430 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007431 u8 qpn[0x18];
7432
Matan Barakb4ff3a32016-02-09 14:57:42 +02007433 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007434
7435 u8 multicast_gid[16][0x8];
7436};
7437
Saeed Mahameed74862162016-06-09 15:11:34 +03007438struct mlx5_ifc_arm_xrq_out_bits {
7439 u8 status[0x8];
7440 u8 reserved_at_8[0x18];
7441
7442 u8 syndrome[0x20];
7443
7444 u8 reserved_at_40[0x40];
7445};
7446
7447struct mlx5_ifc_arm_xrq_in_bits {
7448 u8 opcode[0x10];
7449 u8 reserved_at_10[0x10];
7450
7451 u8 reserved_at_20[0x10];
7452 u8 op_mod[0x10];
7453
7454 u8 reserved_at_40[0x8];
7455 u8 xrqn[0x18];
7456
7457 u8 reserved_at_60[0x10];
7458 u8 lwm[0x10];
7459};
7460
Saeed Mahameede2816822015-05-28 22:28:40 +03007461struct mlx5_ifc_arm_xrc_srq_out_bits {
7462 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007463 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007464
7465 u8 syndrome[0x20];
7466
Matan Barakb4ff3a32016-02-09 14:57:42 +02007467 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007468};
7469
7470enum {
7471 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
7472};
7473
7474struct mlx5_ifc_arm_xrc_srq_in_bits {
7475 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007476 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007477
Matan Barakb4ff3a32016-02-09 14:57:42 +02007478 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007479 u8 op_mod[0x10];
7480
Matan Barakb4ff3a32016-02-09 14:57:42 +02007481 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007482 u8 xrc_srqn[0x18];
7483
Matan Barakb4ff3a32016-02-09 14:57:42 +02007484 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007485 u8 lwm[0x10];
7486};
7487
7488struct mlx5_ifc_arm_rq_out_bits {
7489 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007490 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007491
7492 u8 syndrome[0x20];
7493
Matan Barakb4ff3a32016-02-09 14:57:42 +02007494 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007495};
7496
7497enum {
Saeed Mahameed74862162016-06-09 15:11:34 +03007498 MLX5_ARM_RQ_IN_OP_MOD_SRQ = 0x1,
7499 MLX5_ARM_RQ_IN_OP_MOD_XRQ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03007500};
7501
7502struct mlx5_ifc_arm_rq_in_bits {
7503 u8 opcode[0x10];
Yishai Hadasa0d8c052018-09-20 21:35:24 +03007504 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007505
Matan Barakb4ff3a32016-02-09 14:57:42 +02007506 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007507 u8 op_mod[0x10];
7508
Matan Barakb4ff3a32016-02-09 14:57:42 +02007509 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007510 u8 srq_number[0x18];
7511
Matan Barakb4ff3a32016-02-09 14:57:42 +02007512 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007513 u8 lwm[0x10];
7514};
7515
7516struct mlx5_ifc_arm_dct_out_bits {
7517 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007518 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007519
7520 u8 syndrome[0x20];
7521
Matan Barakb4ff3a32016-02-09 14:57:42 +02007522 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007523};
7524
7525struct mlx5_ifc_arm_dct_in_bits {
7526 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007527 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007528
Matan Barakb4ff3a32016-02-09 14:57:42 +02007529 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007530 u8 op_mod[0x10];
7531
Matan Barakb4ff3a32016-02-09 14:57:42 +02007532 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007533 u8 dct_number[0x18];
7534
Matan Barakb4ff3a32016-02-09 14:57:42 +02007535 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007536};
7537
7538struct mlx5_ifc_alloc_xrcd_out_bits {
7539 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007540 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007541
7542 u8 syndrome[0x20];
7543
Matan Barakb4ff3a32016-02-09 14:57:42 +02007544 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007545 u8 xrcd[0x18];
7546
Matan Barakb4ff3a32016-02-09 14:57:42 +02007547 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007548};
7549
7550struct mlx5_ifc_alloc_xrcd_in_bits {
7551 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007552 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007553
Matan Barakb4ff3a32016-02-09 14:57:42 +02007554 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007555 u8 op_mod[0x10];
7556
Matan Barakb4ff3a32016-02-09 14:57:42 +02007557 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007558};
7559
7560struct mlx5_ifc_alloc_uar_out_bits {
7561 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007562 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007563
7564 u8 syndrome[0x20];
7565
Matan Barakb4ff3a32016-02-09 14:57:42 +02007566 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007567 u8 uar[0x18];
7568
Matan Barakb4ff3a32016-02-09 14:57:42 +02007569 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007570};
7571
7572struct mlx5_ifc_alloc_uar_in_bits {
7573 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007574 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007575
Matan Barakb4ff3a32016-02-09 14:57:42 +02007576 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007577 u8 op_mod[0x10];
7578
Matan Barakb4ff3a32016-02-09 14:57:42 +02007579 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007580};
7581
7582struct mlx5_ifc_alloc_transport_domain_out_bits {
7583 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007584 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007585
7586 u8 syndrome[0x20];
7587
Matan Barakb4ff3a32016-02-09 14:57:42 +02007588 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007589 u8 transport_domain[0x18];
7590
Matan Barakb4ff3a32016-02-09 14:57:42 +02007591 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007592};
7593
7594struct mlx5_ifc_alloc_transport_domain_in_bits {
7595 u8 opcode[0x10];
Yishai Hadas71bef2f2018-12-19 16:28:10 +02007596 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007597
Matan Barakb4ff3a32016-02-09 14:57:42 +02007598 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007599 u8 op_mod[0x10];
7600
Matan Barakb4ff3a32016-02-09 14:57:42 +02007601 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007602};
7603
7604struct mlx5_ifc_alloc_q_counter_out_bits {
7605 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007606 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007607
7608 u8 syndrome[0x20];
7609
Matan Barakb4ff3a32016-02-09 14:57:42 +02007610 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007611 u8 counter_set_id[0x8];
7612
Matan Barakb4ff3a32016-02-09 14:57:42 +02007613 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007614};
7615
7616struct mlx5_ifc_alloc_q_counter_in_bits {
7617 u8 opcode[0x10];
Leon Romanovsky2acc7952018-12-06 14:40:11 +02007618 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007619
Matan Barakb4ff3a32016-02-09 14:57:42 +02007620 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007621 u8 op_mod[0x10];
7622
Matan Barakb4ff3a32016-02-09 14:57:42 +02007623 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007624};
7625
7626struct mlx5_ifc_alloc_pd_out_bits {
7627 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007628 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007629
7630 u8 syndrome[0x20];
7631
Matan Barakb4ff3a32016-02-09 14:57:42 +02007632 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007633 u8 pd[0x18];
7634
Matan Barakb4ff3a32016-02-09 14:57:42 +02007635 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007636};
7637
7638struct mlx5_ifc_alloc_pd_in_bits {
7639 u8 opcode[0x10];
Leon Romanovskybd371972018-09-20 21:35:26 +03007640 u8 uid[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007641
Matan Barakb4ff3a32016-02-09 14:57:42 +02007642 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007643 u8 op_mod[0x10];
7644
Matan Barakb4ff3a32016-02-09 14:57:42 +02007645 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007646};
7647
Amir Vadai9dc0b282016-05-13 12:55:39 +00007648struct mlx5_ifc_alloc_flow_counter_out_bits {
7649 u8 status[0x8];
7650 u8 reserved_at_8[0x18];
7651
7652 u8 syndrome[0x20];
7653
Rabie Louloua8ffcc72017-07-09 13:39:30 +03007654 u8 flow_counter_id[0x20];
Amir Vadai9dc0b282016-05-13 12:55:39 +00007655
7656 u8 reserved_at_60[0x20];
7657};
7658
7659struct mlx5_ifc_alloc_flow_counter_in_bits {
7660 u8 opcode[0x10];
7661 u8 reserved_at_10[0x10];
7662
7663 u8 reserved_at_20[0x10];
7664 u8 op_mod[0x10];
7665
7666 u8 reserved_at_40[0x40];
7667};
7668
Saeed Mahameede2816822015-05-28 22:28:40 +03007669struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
7670 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007671 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007672
7673 u8 syndrome[0x20];
7674
Matan Barakb4ff3a32016-02-09 14:57:42 +02007675 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007676};
7677
7678struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
7679 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007680 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007681
Matan Barakb4ff3a32016-02-09 14:57:42 +02007682 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007683 u8 op_mod[0x10];
7684
Matan Barakb4ff3a32016-02-09 14:57:42 +02007685 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007686
Matan Barakb4ff3a32016-02-09 14:57:42 +02007687 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007688 u8 vxlan_udp_port[0x10];
7689};
7690
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007691struct mlx5_ifc_set_pp_rate_limit_out_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +03007692 u8 status[0x8];
7693 u8 reserved_at_8[0x18];
7694
7695 u8 syndrome[0x20];
7696
7697 u8 reserved_at_40[0x40];
7698};
7699
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007700struct mlx5_ifc_set_pp_rate_limit_in_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +03007701 u8 opcode[0x10];
7702 u8 reserved_at_10[0x10];
7703
7704 u8 reserved_at_20[0x10];
7705 u8 op_mod[0x10];
7706
7707 u8 reserved_at_40[0x10];
7708 u8 rate_limit_index[0x10];
7709
7710 u8 reserved_at_60[0x20];
7711
7712 u8 rate_limit[0x20];
Eran Ben Elisha37e92a92017-11-13 10:11:27 +02007713
Bodong Wang05d3ac92018-03-19 15:10:29 +02007714 u8 burst_upper_bound[0x20];
7715
7716 u8 reserved_at_c0[0x10];
7717 u8 typical_packet_size[0x10];
7718
7719 u8 reserved_at_e0[0x120];
Saeed Mahameed74862162016-06-09 15:11:34 +03007720};
7721
Saeed Mahameede2816822015-05-28 22:28:40 +03007722struct mlx5_ifc_access_register_out_bits {
7723 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007724 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007725
7726 u8 syndrome[0x20];
7727
Matan Barakb4ff3a32016-02-09 14:57:42 +02007728 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007729
7730 u8 register_data[0][0x20];
7731};
7732
7733enum {
7734 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
7735 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
7736};
7737
7738struct mlx5_ifc_access_register_in_bits {
7739 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007740 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007741
Matan Barakb4ff3a32016-02-09 14:57:42 +02007742 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007743 u8 op_mod[0x10];
7744
Matan Barakb4ff3a32016-02-09 14:57:42 +02007745 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007746 u8 register_id[0x10];
7747
7748 u8 argument[0x20];
7749
7750 u8 register_data[0][0x20];
7751};
7752
7753struct mlx5_ifc_sltp_reg_bits {
7754 u8 status[0x4];
7755 u8 version[0x4];
7756 u8 local_port[0x8];
7757 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007758 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007759 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007760 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007761
Matan Barakb4ff3a32016-02-09 14:57:42 +02007762 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007763
Matan Barakb4ff3a32016-02-09 14:57:42 +02007764 u8 reserved_at_40[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007765 u8 polarity[0x1];
7766 u8 ob_tap0[0x8];
7767 u8 ob_tap1[0x8];
7768 u8 ob_tap2[0x8];
7769
Matan Barakb4ff3a32016-02-09 14:57:42 +02007770 u8 reserved_at_60[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007771 u8 ob_preemp_mode[0x4];
7772 u8 ob_reg[0x8];
7773 u8 ob_bias[0x8];
7774
Matan Barakb4ff3a32016-02-09 14:57:42 +02007775 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007776};
7777
7778struct mlx5_ifc_slrg_reg_bits {
7779 u8 status[0x4];
7780 u8 version[0x4];
7781 u8 local_port[0x8];
7782 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007783 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007784 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007785 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007786
7787 u8 time_to_link_up[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007788 u8 reserved_at_30[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007789 u8 grade_lane_speed[0x4];
7790
7791 u8 grade_version[0x8];
7792 u8 grade[0x18];
7793
Matan Barakb4ff3a32016-02-09 14:57:42 +02007794 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007795 u8 height_grade_type[0x4];
7796 u8 height_grade[0x18];
7797
7798 u8 height_dz[0x10];
7799 u8 height_dv[0x10];
7800
Matan Barakb4ff3a32016-02-09 14:57:42 +02007801 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007802 u8 height_sigma[0x10];
7803
Matan Barakb4ff3a32016-02-09 14:57:42 +02007804 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007805
Matan Barakb4ff3a32016-02-09 14:57:42 +02007806 u8 reserved_at_e0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007807 u8 phase_grade_type[0x4];
7808 u8 phase_grade[0x18];
7809
Matan Barakb4ff3a32016-02-09 14:57:42 +02007810 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007811 u8 phase_eo_pos[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007812 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007813 u8 phase_eo_neg[0x8];
7814
7815 u8 ffe_set_tested[0x10];
7816 u8 test_errors_per_lane[0x10];
7817};
7818
7819struct mlx5_ifc_pvlc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007820 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007821 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007822 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007823
Matan Barakb4ff3a32016-02-09 14:57:42 +02007824 u8 reserved_at_20[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007825 u8 vl_hw_cap[0x4];
7826
Matan Barakb4ff3a32016-02-09 14:57:42 +02007827 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007828 u8 vl_admin[0x4];
7829
Matan Barakb4ff3a32016-02-09 14:57:42 +02007830 u8 reserved_at_60[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007831 u8 vl_operational[0x4];
7832};
7833
7834struct mlx5_ifc_pude_reg_bits {
7835 u8 swid[0x8];
7836 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007837 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007838 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007839 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007840 u8 oper_status[0x4];
7841
Matan Barakb4ff3a32016-02-09 14:57:42 +02007842 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007843};
7844
7845struct mlx5_ifc_ptys_reg_bits {
Bodong Wange7e31ca2016-09-07 19:07:58 +03007846 u8 reserved_at_0[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03007847 u8 an_disable_admin[0x1];
Bodong Wange7e31ca2016-09-07 19:07:58 +03007848 u8 an_disable_cap[0x1];
7849 u8 reserved_at_3[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007850 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007851 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03007852 u8 proto_mask[0x3];
7853
Saeed Mahameed74862162016-06-09 15:11:34 +03007854 u8 an_status[0x4];
Aya Levina0a89982019-02-12 22:55:44 -08007855 u8 reserved_at_24[0x1c];
7856
7857 u8 ext_eth_proto_capability[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007858
7859 u8 eth_proto_capability[0x20];
7860
7861 u8 ib_link_width_capability[0x10];
7862 u8 ib_proto_capability[0x10];
7863
Aya Levina0a89982019-02-12 22:55:44 -08007864 u8 ext_eth_proto_admin[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007865
7866 u8 eth_proto_admin[0x20];
7867
7868 u8 ib_link_width_admin[0x10];
7869 u8 ib_proto_admin[0x10];
7870
Aya Levina0a89982019-02-12 22:55:44 -08007871 u8 ext_eth_proto_oper[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007872
7873 u8 eth_proto_oper[0x20];
7874
7875 u8 ib_link_width_oper[0x10];
7876 u8 ib_proto_oper[0x10];
7877
Eran Ben Elisha5b4793f2017-02-13 14:00:59 +02007878 u8 reserved_at_160[0x1c];
7879 u8 connector_type[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007880
7881 u8 eth_proto_lp_advertise[0x20];
7882
Matan Barakb4ff3a32016-02-09 14:57:42 +02007883 u8 reserved_at_1a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007884};
7885
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007886struct mlx5_ifc_mlcr_reg_bits {
7887 u8 reserved_at_0[0x8];
7888 u8 local_port[0x8];
7889 u8 reserved_at_10[0x20];
7890
7891 u8 beacon_duration[0x10];
7892 u8 reserved_at_40[0x10];
7893
7894 u8 beacon_remain[0x10];
7895};
7896
Saeed Mahameede2816822015-05-28 22:28:40 +03007897struct mlx5_ifc_ptas_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007898 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007899
7900 u8 algorithm_options[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007901 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007902 u8 repetitions_mode[0x4];
7903 u8 num_of_repetitions[0x8];
7904
7905 u8 grade_version[0x8];
7906 u8 height_grade_type[0x4];
7907 u8 phase_grade_type[0x4];
7908 u8 height_grade_weight[0x8];
7909 u8 phase_grade_weight[0x8];
7910
7911 u8 gisim_measure_bits[0x10];
7912 u8 adaptive_tap_measure_bits[0x10];
7913
7914 u8 ber_bath_high_error_threshold[0x10];
7915 u8 ber_bath_mid_error_threshold[0x10];
7916
7917 u8 ber_bath_low_error_threshold[0x10];
7918 u8 one_ratio_high_threshold[0x10];
7919
7920 u8 one_ratio_high_mid_threshold[0x10];
7921 u8 one_ratio_low_mid_threshold[0x10];
7922
7923 u8 one_ratio_low_threshold[0x10];
7924 u8 ndeo_error_threshold[0x10];
7925
7926 u8 mixer_offset_step_size[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007927 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007928 u8 mix90_phase_for_voltage_bath[0x8];
7929
7930 u8 mixer_offset_start[0x10];
7931 u8 mixer_offset_end[0x10];
7932
Matan Barakb4ff3a32016-02-09 14:57:42 +02007933 u8 reserved_at_140[0x15];
Saeed Mahameede2816822015-05-28 22:28:40 +03007934 u8 ber_test_time[0xb];
7935};
7936
7937struct mlx5_ifc_pspa_reg_bits {
7938 u8 swid[0x8];
7939 u8 local_port[0x8];
7940 u8 sub_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007941 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007942
Matan Barakb4ff3a32016-02-09 14:57:42 +02007943 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007944};
7945
7946struct mlx5_ifc_pqdr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007947 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007948 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007949 u8 reserved_at_10[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007950 u8 prio[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007951 u8 reserved_at_18[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007952 u8 mode[0x2];
7953
Matan Barakb4ff3a32016-02-09 14:57:42 +02007954 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007955
Matan Barakb4ff3a32016-02-09 14:57:42 +02007956 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007957 u8 min_threshold[0x10];
7958
Matan Barakb4ff3a32016-02-09 14:57:42 +02007959 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007960 u8 max_threshold[0x10];
7961
Matan Barakb4ff3a32016-02-09 14:57:42 +02007962 u8 reserved_at_80[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007963 u8 mark_probability_denominator[0x10];
7964
Matan Barakb4ff3a32016-02-09 14:57:42 +02007965 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007966};
7967
7968struct mlx5_ifc_ppsc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007969 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007970 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007971 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007972
Matan Barakb4ff3a32016-02-09 14:57:42 +02007973 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007974
Matan Barakb4ff3a32016-02-09 14:57:42 +02007975 u8 reserved_at_80[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007976 u8 wrps_admin[0x4];
7977
Matan Barakb4ff3a32016-02-09 14:57:42 +02007978 u8 reserved_at_a0[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007979 u8 wrps_status[0x4];
7980
Matan Barakb4ff3a32016-02-09 14:57:42 +02007981 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007982 u8 up_threshold[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007983 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007984 u8 down_threshold[0x8];
7985
Matan Barakb4ff3a32016-02-09 14:57:42 +02007986 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007987
Matan Barakb4ff3a32016-02-09 14:57:42 +02007988 u8 reserved_at_100[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007989 u8 srps_admin[0x4];
7990
Matan Barakb4ff3a32016-02-09 14:57:42 +02007991 u8 reserved_at_120[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007992 u8 srps_status[0x4];
7993
Matan Barakb4ff3a32016-02-09 14:57:42 +02007994 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007995};
7996
7997struct mlx5_ifc_pplr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007998 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007999 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008000 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008001
Matan Barakb4ff3a32016-02-09 14:57:42 +02008002 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008003 u8 lb_cap[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008004 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008005 u8 lb_en[0x8];
8006};
8007
8008struct mlx5_ifc_pplm_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008009 u8 reserved_at_0[0x8];
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008010 u8 local_port[0x8];
8011 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008012
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008013 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008014
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008015 u8 port_profile_mode[0x8];
8016 u8 static_port_profile[0x8];
8017 u8 active_port_profile[0x8];
8018 u8 reserved_at_58[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008019
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008020 u8 retransmission_active[0x8];
8021 u8 fec_mode_active[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008022
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008023 u8 rs_fec_correction_bypass_cap[0x4];
8024 u8 reserved_at_84[0x8];
8025 u8 fec_override_cap_56g[0x4];
8026 u8 fec_override_cap_100g[0x4];
8027 u8 fec_override_cap_50g[0x4];
8028 u8 fec_override_cap_25g[0x4];
8029 u8 fec_override_cap_10g_40g[0x4];
8030
8031 u8 rs_fec_correction_bypass_admin[0x4];
8032 u8 reserved_at_a4[0x8];
8033 u8 fec_override_admin_56g[0x4];
8034 u8 fec_override_admin_100g[0x4];
8035 u8 fec_override_admin_50g[0x4];
8036 u8 fec_override_admin_25g[0x4];
8037 u8 fec_override_admin_10g_40g[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008038};
8039
8040struct mlx5_ifc_ppcnt_reg_bits {
8041 u8 swid[0x8];
8042 u8 local_port[0x8];
8043 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008044 u8 reserved_at_12[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008045 u8 grp[0x6];
8046
8047 u8 clr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008048 u8 reserved_at_21[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03008049 u8 prio_tc[0x3];
8050
8051 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
8052};
8053
Aya Levin40390492019-03-29 15:38:03 -07008054struct mlx5_ifc_mpein_reg_bits {
8055 u8 reserved_at_0[0x2];
8056 u8 depth[0x6];
8057 u8 pcie_index[0x8];
8058 u8 node[0x8];
8059 u8 reserved_at_18[0x8];
8060
8061 u8 capability_mask[0x20];
8062
8063 u8 reserved_at_40[0x8];
8064 u8 link_width_enabled[0x8];
8065 u8 link_speed_enabled[0x10];
8066
8067 u8 lane0_physical_position[0x8];
8068 u8 link_width_active[0x8];
8069 u8 link_speed_active[0x10];
8070
8071 u8 num_of_pfs[0x10];
8072 u8 num_of_vfs[0x10];
8073
8074 u8 bdf0[0x10];
8075 u8 reserved_at_b0[0x10];
8076
8077 u8 max_read_request_size[0x4];
8078 u8 max_payload_size[0x4];
8079 u8 reserved_at_c8[0x5];
8080 u8 pwr_status[0x3];
8081 u8 port_type[0x4];
8082 u8 reserved_at_d4[0xb];
8083 u8 lane_reversal[0x1];
8084
8085 u8 reserved_at_e0[0x14];
8086 u8 pci_power[0xc];
8087
8088 u8 reserved_at_100[0x20];
8089
8090 u8 device_status[0x10];
8091 u8 port_state[0x8];
8092 u8 reserved_at_138[0x8];
8093
8094 u8 reserved_at_140[0x10];
8095 u8 receiver_detect_result[0x10];
8096
8097 u8 reserved_at_160[0x20];
8098};
8099
Gal Pressman8ed1a632016-11-17 13:46:01 +02008100struct mlx5_ifc_mpcnt_reg_bits {
8101 u8 reserved_at_0[0x8];
8102 u8 pcie_index[0x8];
8103 u8 reserved_at_10[0xa];
8104 u8 grp[0x6];
8105
8106 u8 clr[0x1];
8107 u8 reserved_at_21[0x1f];
8108
8109 union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits counter_set;
8110};
8111
Saeed Mahameede2816822015-05-28 22:28:40 +03008112struct mlx5_ifc_ppad_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008113 u8 reserved_at_0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03008114 u8 single_mac[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008115 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008116 u8 local_port[0x8];
8117 u8 mac_47_32[0x10];
8118
8119 u8 mac_31_0[0x20];
8120
Matan Barakb4ff3a32016-02-09 14:57:42 +02008121 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008122};
8123
8124struct mlx5_ifc_pmtu_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008125 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008126 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008127 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008128
8129 u8 max_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008130 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008131
8132 u8 admin_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008133 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008134
8135 u8 oper_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008136 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008137};
8138
8139struct mlx5_ifc_pmpr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008140 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008141 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008142 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008143
Matan Barakb4ff3a32016-02-09 14:57:42 +02008144 u8 reserved_at_20[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008145 u8 attenuation_5g[0x8];
8146
Matan Barakb4ff3a32016-02-09 14:57:42 +02008147 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008148 u8 attenuation_7g[0x8];
8149
Matan Barakb4ff3a32016-02-09 14:57:42 +02008150 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008151 u8 attenuation_12g[0x8];
8152};
8153
8154struct mlx5_ifc_pmpe_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008155 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008156 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008157 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008158 u8 module_status[0x4];
8159
Matan Barakb4ff3a32016-02-09 14:57:42 +02008160 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008161};
8162
8163struct mlx5_ifc_pmpc_reg_bits {
8164 u8 module_state_updated[32][0x8];
8165};
8166
8167struct mlx5_ifc_pmlpn_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008168 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008169 u8 mlpn_status[0x4];
8170 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008171 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008172
8173 u8 e[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008174 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008175};
8176
8177struct mlx5_ifc_pmlp_reg_bits {
8178 u8 rxtx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008179 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008180 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008181 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008182 u8 width[0x8];
8183
8184 u8 lane0_module_mapping[0x20];
8185
8186 u8 lane1_module_mapping[0x20];
8187
8188 u8 lane2_module_mapping[0x20];
8189
8190 u8 lane3_module_mapping[0x20];
8191
Matan Barakb4ff3a32016-02-09 14:57:42 +02008192 u8 reserved_at_a0[0x160];
Saeed Mahameede2816822015-05-28 22:28:40 +03008193};
8194
8195struct mlx5_ifc_pmaos_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008196 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008197 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008198 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008199 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008200 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008201 u8 oper_status[0x4];
8202
8203 u8 ase[0x1];
8204 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008205 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03008206 u8 e[0x2];
8207
Matan Barakb4ff3a32016-02-09 14:57:42 +02008208 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008209};
8210
8211struct mlx5_ifc_plpc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008212 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008213 u8 profile_id[0xc];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008214 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008215 u8 proto_mask[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008216 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008217
Matan Barakb4ff3a32016-02-09 14:57:42 +02008218 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008219 u8 lane_speed[0x10];
8220
Matan Barakb4ff3a32016-02-09 14:57:42 +02008221 u8 reserved_at_40[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03008222 u8 lpbf[0x1];
8223 u8 fec_mode_policy[0x8];
8224
8225 u8 retransmission_capability[0x8];
8226 u8 fec_mode_capability[0x18];
8227
8228 u8 retransmission_support_admin[0x8];
8229 u8 fec_mode_support_admin[0x18];
8230
8231 u8 retransmission_request_admin[0x8];
8232 u8 fec_mode_request_admin[0x18];
8233
Matan Barakb4ff3a32016-02-09 14:57:42 +02008234 u8 reserved_at_c0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03008235};
8236
8237struct mlx5_ifc_plib_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008238 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008239 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008240 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008241 u8 ib_port[0x8];
8242
Matan Barakb4ff3a32016-02-09 14:57:42 +02008243 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008244};
8245
8246struct mlx5_ifc_plbf_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008247 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008248 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008249 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03008250 u8 lbf_mode[0x3];
8251
Matan Barakb4ff3a32016-02-09 14:57:42 +02008252 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008253};
8254
8255struct mlx5_ifc_pipg_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008256 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008257 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008258 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008259
8260 u8 dic[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008261 u8 reserved_at_21[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +03008262 u8 ipg[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008263 u8 reserved_at_3e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008264};
8265
8266struct mlx5_ifc_pifr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008267 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008268 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008269 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008270
Matan Barakb4ff3a32016-02-09 14:57:42 +02008271 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008272
8273 u8 port_filter[8][0x20];
8274
8275 u8 port_filter_update_en[8][0x20];
8276};
8277
8278struct mlx5_ifc_pfcc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008279 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008280 u8 local_port[0x8];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008281 u8 reserved_at_10[0xb];
8282 u8 ppan_mask_n[0x1];
8283 u8 minor_stall_mask[0x1];
8284 u8 critical_stall_mask[0x1];
8285 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008286
8287 u8 ppan[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008288 u8 reserved_at_24[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008289 u8 prio_mask_tx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008290 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008291 u8 prio_mask_rx[0x8];
8292
8293 u8 pptx[0x1];
8294 u8 aptx[0x1];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008295 u8 pptx_mask_n[0x1];
8296 u8 reserved_at_43[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03008297 u8 pfctx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008298 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008299
8300 u8 pprx[0x1];
8301 u8 aprx[0x1];
Inbar Karmy2afa6092017-11-20 18:06:20 +02008302 u8 pprx_mask_n[0x1];
8303 u8 reserved_at_63[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03008304 u8 pfcrx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008305 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008306
Inbar Karmy2afa6092017-11-20 18:06:20 +02008307 u8 device_stall_minor_watermark[0x10];
8308 u8 device_stall_critical_watermark[0x10];
8309
8310 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008311};
8312
8313struct mlx5_ifc_pelc_reg_bits {
8314 u8 op[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008315 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008316 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008317 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008318
8319 u8 op_admin[0x8];
8320 u8 op_capability[0x8];
8321 u8 op_request[0x8];
8322 u8 op_active[0x8];
8323
8324 u8 admin[0x40];
8325
8326 u8 capability[0x40];
8327
8328 u8 request[0x40];
8329
8330 u8 active[0x40];
8331
Matan Barakb4ff3a32016-02-09 14:57:42 +02008332 u8 reserved_at_140[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03008333};
8334
8335struct mlx5_ifc_peir_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008336 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008337 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008338 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008339
Matan Barakb4ff3a32016-02-09 14:57:42 +02008340 u8 reserved_at_20[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008341 u8 error_count[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008342 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008343
Matan Barakb4ff3a32016-02-09 14:57:42 +02008344 u8 reserved_at_40[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008345 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008346 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008347 u8 error_type[0x8];
8348};
8349
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008350struct mlx5_ifc_mpegc_reg_bits {
8351 u8 reserved_at_0[0x30];
8352 u8 field_select[0x10];
8353
8354 u8 tx_overflow_sense[0x1];
8355 u8 mark_cqe[0x1];
8356 u8 mark_cnp[0x1];
8357 u8 reserved_at_43[0x1b];
8358 u8 tx_lossy_overflow_oper[0x2];
8359
8360 u8 reserved_at_60[0x100];
8361};
8362
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008363struct mlx5_ifc_pcam_enhanced_features_bits {
Talat Batheesh0af51072018-05-17 11:14:18 +03008364 u8 reserved_at_0[0x6d];
8365 u8 rx_icrc_encapsulated_counter[0x1];
Aya Levina0a89982019-02-12 22:55:44 -08008366 u8 reserved_at_6e[0x4];
8367 u8 ptys_extended_ethernet[0x1];
8368 u8 reserved_at_73[0x3];
Inbar Karmy2fcb12d2017-08-17 16:39:47 +03008369 u8 pfcc_mask[0x1];
Shay Agroskin67daf112018-09-30 09:58:08 +03008370 u8 reserved_at_77[0x3];
8371 u8 per_lane_error_counters[0x1];
Gal Pressman2dba0792017-06-18 14:56:45 +03008372 u8 rx_buffer_fullness_counters[0x1];
Eran Ben Elisha5b4793f2017-02-13 14:00:59 +02008373 u8 ptys_connector_type[0x1];
8374 u8 reserved_at_7d[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008375 u8 ppcnt_discard_group[0x1];
8376 u8 ppcnt_statistical_group[0x1];
8377};
8378
Huy Nguyendf5f1362018-02-28 14:16:47 -06008379struct mlx5_ifc_pcam_regs_5000_to_507f_bits {
8380 u8 port_access_reg_cap_mask_127_to_96[0x20];
8381 u8 port_access_reg_cap_mask_95_to_64[0x20];
Shay Agroskin4b5b9c72018-10-09 14:16:43 +03008382
8383 u8 port_access_reg_cap_mask_63_to_36[0x1c];
8384 u8 pplm[0x1];
8385 u8 port_access_reg_cap_mask_34_to_32[0x3];
Huy Nguyendf5f1362018-02-28 14:16:47 -06008386
8387 u8 port_access_reg_cap_mask_31_to_13[0x13];
8388 u8 pbmc[0x1];
8389 u8 pptb[0x1];
Eyal Davidovich75370eb2018-10-07 15:18:37 +03008390 u8 port_access_reg_cap_mask_10_to_09[0x2];
8391 u8 ppcnt[0x1];
8392 u8 port_access_reg_cap_mask_07_to_00[0x8];
Huy Nguyendf5f1362018-02-28 14:16:47 -06008393};
8394
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008395struct mlx5_ifc_pcam_reg_bits {
8396 u8 reserved_at_0[0x8];
8397 u8 feature_group[0x8];
8398 u8 reserved_at_10[0x8];
8399 u8 access_reg_group[0x8];
8400
8401 u8 reserved_at_20[0x20];
8402
8403 union {
Huy Nguyendf5f1362018-02-28 14:16:47 -06008404 struct mlx5_ifc_pcam_regs_5000_to_507f_bits regs_5000_to_507f;
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008405 u8 reserved_at_0[0x80];
8406 } port_access_reg_cap_mask;
8407
8408 u8 reserved_at_c0[0x80];
8409
8410 union {
8411 struct mlx5_ifc_pcam_enhanced_features_bits enhanced_features;
8412 u8 reserved_at_0[0x80];
8413 } feature_cap_mask;
8414
8415 u8 reserved_at_1c0[0xc0];
8416};
8417
8418struct mlx5_ifc_mcam_enhanced_features_bits {
Aya Levin40390492019-03-29 15:38:03 -07008419 u8 reserved_at_0[0x6e];
8420 u8 pci_status_and_power[0x1];
8421 u8 reserved_at_6f[0x5];
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008422 u8 mark_tx_action_cnp[0x1];
8423 u8 mark_tx_action_cqe[0x1];
8424 u8 dynamic_tx_overflow[0x1];
8425 u8 reserved_at_77[0x4];
Gal Pressman5405fa22017-06-15 18:29:23 +03008426 u8 pcie_outbound_stalled[0x1];
Eran Ben Elishaefae7f72017-05-12 02:47:02 +03008427 u8 tx_overflow_buffer_pkt[0x1];
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008428 u8 mtpps_enh_out_per_adj[0x1];
8429 u8 mtpps_fs[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008430 u8 pcie_performance_group[0x1];
8431};
8432
Or Gerlitz0ab87742017-06-11 15:25:38 +03008433struct mlx5_ifc_mcam_access_reg_bits {
8434 u8 reserved_at_0[0x1c];
8435 u8 mcda[0x1];
8436 u8 mcc[0x1];
8437 u8 mcqi[0x1];
8438 u8 reserved_at_1f[0x1];
8439
Eran Ben Elisha5e022dd2018-07-16 18:35:31 -07008440 u8 regs_95_to_87[0x9];
8441 u8 mpegc[0x1];
8442 u8 regs_85_to_68[0x12];
Feras Daoudeff8ea82018-07-16 18:35:30 -07008443 u8 tracer_registers[0x4];
8444
Or Gerlitz0ab87742017-06-11 15:25:38 +03008445 u8 regs_63_to_32[0x20];
8446 u8 regs_31_to_0[0x20];
8447};
8448
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008449struct mlx5_ifc_mcam_reg_bits {
8450 u8 reserved_at_0[0x8];
8451 u8 feature_group[0x8];
8452 u8 reserved_at_10[0x8];
8453 u8 access_reg_group[0x8];
8454
8455 u8 reserved_at_20[0x20];
8456
8457 union {
Or Gerlitz0ab87742017-06-11 15:25:38 +03008458 struct mlx5_ifc_mcam_access_reg_bits access_regs;
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02008459 u8 reserved_at_0[0x80];
8460 } mng_access_reg_cap_mask;
8461
8462 u8 reserved_at_c0[0x80];
8463
8464 union {
8465 struct mlx5_ifc_mcam_enhanced_features_bits enhanced_features;
8466 u8 reserved_at_0[0x80];
8467 } mng_feature_cap_mask;
8468
8469 u8 reserved_at_1c0[0x80];
8470};
8471
Huy Nguyenc02762e2017-07-18 16:03:17 -05008472struct mlx5_ifc_qcam_access_reg_cap_mask {
8473 u8 qcam_access_reg_cap_mask_127_to_20[0x6C];
8474 u8 qpdpm[0x1];
8475 u8 qcam_access_reg_cap_mask_18_to_4[0x0F];
8476 u8 qdpm[0x1];
8477 u8 qpts[0x1];
8478 u8 qcap[0x1];
8479 u8 qcam_access_reg_cap_mask_0[0x1];
8480};
8481
8482struct mlx5_ifc_qcam_qos_feature_cap_mask {
8483 u8 qcam_qos_feature_cap_mask_127_to_1[0x7F];
8484 u8 qpts_trust_both[0x1];
8485};
8486
8487struct mlx5_ifc_qcam_reg_bits {
8488 u8 reserved_at_0[0x8];
8489 u8 feature_group[0x8];
8490 u8 reserved_at_10[0x8];
8491 u8 access_reg_group[0x8];
8492 u8 reserved_at_20[0x20];
8493
8494 union {
8495 struct mlx5_ifc_qcam_access_reg_cap_mask reg_cap;
8496 u8 reserved_at_0[0x80];
8497 } qos_access_reg_cap_mask;
8498
8499 u8 reserved_at_c0[0x80];
8500
8501 union {
8502 struct mlx5_ifc_qcam_qos_feature_cap_mask feature_cap;
8503 u8 reserved_at_0[0x80];
8504 } qos_feature_cap_mask;
8505
8506 u8 reserved_at_1c0[0x80];
8507};
8508
Saeed Mahameede2816822015-05-28 22:28:40 +03008509struct mlx5_ifc_pcap_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008510 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008511 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008512 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008513
8514 u8 port_capability_mask[4][0x20];
8515};
8516
8517struct mlx5_ifc_paos_reg_bits {
8518 u8 swid[0x8];
8519 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008520 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008521 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008522 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008523 u8 oper_status[0x4];
8524
8525 u8 ase[0x1];
8526 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008527 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03008528 u8 e[0x2];
8529
Matan Barakb4ff3a32016-02-09 14:57:42 +02008530 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008531};
8532
8533struct mlx5_ifc_pamp_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008534 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008535 u8 opamp_group[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008536 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008537 u8 opamp_group_type[0x4];
8538
8539 u8 start_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008540 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008541 u8 num_of_indices[0xc];
8542
8543 u8 index_data[18][0x10];
8544};
8545
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008546struct mlx5_ifc_pcmr_reg_bits {
8547 u8 reserved_at_0[0x8];
8548 u8 local_port[0x8];
Eli Britstein0dcaafc2019-01-20 22:33:19 +02008549 u8 reserved_at_10[0x10];
8550 u8 entropy_force_cap[0x1];
8551 u8 entropy_calc_cap[0x1];
8552 u8 entropy_gre_calc_cap[0x1];
8553 u8 reserved_at_23[0x1b];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008554 u8 fcs_cap[0x1];
Eli Britstein0dcaafc2019-01-20 22:33:19 +02008555 u8 reserved_at_3f[0x1];
8556 u8 entropy_force[0x1];
8557 u8 entropy_calc[0x1];
8558 u8 entropy_gre_calc[0x1];
8559 u8 reserved_at_43[0x1b];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008560 u8 fcs_chk[0x1];
8561 u8 reserved_at_5f[0x1];
8562};
8563
Saeed Mahameede2816822015-05-28 22:28:40 +03008564struct mlx5_ifc_lane_2_module_mapping_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008565 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008566 u8 rx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008567 u8 reserved_at_8[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008568 u8 tx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008569 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008570 u8 module[0x8];
8571};
8572
8573struct mlx5_ifc_bufferx_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008574 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008575 u8 lossy[0x1];
8576 u8 epsb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008577 u8 reserved_at_8[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03008578 u8 size[0xc];
8579
8580 u8 xoff_threshold[0x10];
8581 u8 xon_threshold[0x10];
8582};
8583
8584struct mlx5_ifc_set_node_in_bits {
8585 u8 node_description[64][0x8];
8586};
8587
8588struct mlx5_ifc_register_power_settings_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008589 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008590 u8 power_settings_level[0x8];
8591
Matan Barakb4ff3a32016-02-09 14:57:42 +02008592 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008593};
8594
8595struct mlx5_ifc_register_host_endianness_bits {
8596 u8 he[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008597 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008598
Matan Barakb4ff3a32016-02-09 14:57:42 +02008599 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03008600};
8601
8602struct mlx5_ifc_umr_pointer_desc_argument_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008603 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008604
8605 u8 mkey[0x20];
8606
8607 u8 addressh_63_32[0x20];
8608
8609 u8 addressl_31_0[0x20];
8610};
8611
8612struct mlx5_ifc_ud_adrs_vector_bits {
8613 u8 dc_key[0x40];
8614
8615 u8 ext[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008616 u8 reserved_at_41[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008617 u8 destination_qp_dct[0x18];
8618
8619 u8 static_rate[0x4];
8620 u8 sl_eth_prio[0x4];
8621 u8 fl[0x1];
8622 u8 mlid[0x7];
8623 u8 rlid_udp_sport[0x10];
8624
Matan Barakb4ff3a32016-02-09 14:57:42 +02008625 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03008626
8627 u8 rmac_47_16[0x20];
8628
8629 u8 rmac_15_0[0x10];
8630 u8 tclass[0x8];
8631 u8 hop_limit[0x8];
8632
Matan Barakb4ff3a32016-02-09 14:57:42 +02008633 u8 reserved_at_e0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03008634 u8 grh[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008635 u8 reserved_at_e2[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008636 u8 src_addr_index[0x8];
8637 u8 flow_label[0x14];
8638
8639 u8 rgid_rip[16][0x8];
8640};
8641
8642struct mlx5_ifc_pages_req_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008643 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008644 u8 function_id[0x10];
8645
8646 u8 num_pages[0x20];
8647
Matan Barakb4ff3a32016-02-09 14:57:42 +02008648 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008649};
8650
8651struct mlx5_ifc_eqe_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02008652 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008653 u8 event_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008654 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008655 u8 event_sub_type[0x8];
8656
Matan Barakb4ff3a32016-02-09 14:57:42 +02008657 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008658
8659 union mlx5_ifc_event_auto_bits event_data;
8660
Matan Barakb4ff3a32016-02-09 14:57:42 +02008661 u8 reserved_at_1e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008662 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008663 u8 reserved_at_1f8[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03008664 u8 owner[0x1];
8665};
8666
8667enum {
8668 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
8669};
8670
8671struct mlx5_ifc_cmd_queue_entry_bits {
8672 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008673 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008674
8675 u8 input_length[0x20];
8676
8677 u8 input_mailbox_pointer_63_32[0x20];
8678
8679 u8 input_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008680 u8 reserved_at_77[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03008681
8682 u8 command_input_inline_data[16][0x8];
8683
8684 u8 command_output_inline_data[16][0x8];
8685
8686 u8 output_mailbox_pointer_63_32[0x20];
8687
8688 u8 output_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008689 u8 reserved_at_1b7[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03008690
8691 u8 output_length[0x20];
8692
8693 u8 token[0x8];
8694 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008695 u8 reserved_at_1f0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008696 u8 status[0x7];
8697 u8 ownership[0x1];
8698};
8699
8700struct mlx5_ifc_cmd_out_bits {
8701 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008702 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03008703
8704 u8 syndrome[0x20];
8705
8706 u8 command_output[0x20];
8707};
8708
8709struct mlx5_ifc_cmd_in_bits {
8710 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008711 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008712
Matan Barakb4ff3a32016-02-09 14:57:42 +02008713 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03008714 u8 op_mod[0x10];
8715
8716 u8 command[0][0x20];
8717};
8718
8719struct mlx5_ifc_cmd_if_box_bits {
8720 u8 mailbox_data[512][0x8];
8721
Matan Barakb4ff3a32016-02-09 14:57:42 +02008722 u8 reserved_at_1000[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03008723
8724 u8 next_pointer_63_32[0x20];
8725
8726 u8 next_pointer_31_10[0x16];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008727 u8 reserved_at_11b6[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +03008728
8729 u8 block_number[0x20];
8730
Matan Barakb4ff3a32016-02-09 14:57:42 +02008731 u8 reserved_at_11e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03008732 u8 token[0x8];
8733 u8 ctrl_signature[0x8];
8734 u8 signature[0x8];
8735};
8736
8737struct mlx5_ifc_mtt_bits {
8738 u8 ptag_63_32[0x20];
8739
8740 u8 ptag_31_8[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008741 u8 reserved_at_38[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03008742 u8 wr_en[0x1];
8743 u8 rd_en[0x1];
8744};
8745
Tariq Toukan928cfe82016-02-22 18:17:29 +02008746struct mlx5_ifc_query_wol_rol_out_bits {
8747 u8 status[0x8];
8748 u8 reserved_at_8[0x18];
8749
8750 u8 syndrome[0x20];
8751
8752 u8 reserved_at_40[0x10];
8753 u8 rol_mode[0x8];
8754 u8 wol_mode[0x8];
8755
8756 u8 reserved_at_60[0x20];
8757};
8758
8759struct mlx5_ifc_query_wol_rol_in_bits {
8760 u8 opcode[0x10];
8761 u8 reserved_at_10[0x10];
8762
8763 u8 reserved_at_20[0x10];
8764 u8 op_mod[0x10];
8765
8766 u8 reserved_at_40[0x40];
8767};
8768
8769struct mlx5_ifc_set_wol_rol_out_bits {
8770 u8 status[0x8];
8771 u8 reserved_at_8[0x18];
8772
8773 u8 syndrome[0x20];
8774
8775 u8 reserved_at_40[0x40];
8776};
8777
8778struct mlx5_ifc_set_wol_rol_in_bits {
8779 u8 opcode[0x10];
8780 u8 reserved_at_10[0x10];
8781
8782 u8 reserved_at_20[0x10];
8783 u8 op_mod[0x10];
8784
8785 u8 rol_mode_valid[0x1];
8786 u8 wol_mode_valid[0x1];
8787 u8 reserved_at_42[0xe];
8788 u8 rol_mode[0x8];
8789 u8 wol_mode[0x8];
8790
8791 u8 reserved_at_60[0x20];
8792};
8793
Saeed Mahameede2816822015-05-28 22:28:40 +03008794enum {
8795 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
8796 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
8797 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
8798};
8799
8800enum {
8801 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
8802 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
8803 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
8804};
8805
8806enum {
8807 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
8808 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
8809 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
8810 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
8811 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
8812 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
8813 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
8814 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
8815 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
8816 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
8817 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
8818};
8819
8820struct mlx5_ifc_initial_seg_bits {
8821 u8 fw_rev_minor[0x10];
8822 u8 fw_rev_major[0x10];
8823
8824 u8 cmd_interface_rev[0x10];
8825 u8 fw_rev_subminor[0x10];
8826
Matan Barakb4ff3a32016-02-09 14:57:42 +02008827 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008828
8829 u8 cmdq_phy_addr_63_32[0x20];
8830
8831 u8 cmdq_phy_addr_31_12[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008832 u8 reserved_at_b4[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03008833 u8 nic_interface[0x2];
8834 u8 log_cmdq_size[0x4];
8835 u8 log_cmdq_stride[0x4];
8836
8837 u8 command_doorbell_vector[0x20];
8838
Matan Barakb4ff3a32016-02-09 14:57:42 +02008839 u8 reserved_at_e0[0xf00];
Saeed Mahameede2816822015-05-28 22:28:40 +03008840
8841 u8 initializing[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008842 u8 reserved_at_fe1[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03008843 u8 nic_interface_supported[0x3];
Bodong Wang591905b2019-02-12 22:55:35 -08008844 u8 embedded_cpu[0x1];
8845 u8 reserved_at_fe9[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03008846
8847 struct mlx5_ifc_health_buffer_bits health_buffer;
8848
8849 u8 no_dram_nic_offset[0x20];
8850
Matan Barakb4ff3a32016-02-09 14:57:42 +02008851 u8 reserved_at_1220[0x6e40];
Saeed Mahameede2816822015-05-28 22:28:40 +03008852
Matan Barakb4ff3a32016-02-09 14:57:42 +02008853 u8 reserved_at_8060[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03008854 u8 clear_int[0x1];
8855
8856 u8 health_syndrome[0x8];
8857 u8 health_counter[0x18];
8858
Matan Barakb4ff3a32016-02-09 14:57:42 +02008859 u8 reserved_at_80a0[0x17fc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008860};
8861
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008862struct mlx5_ifc_mtpps_reg_bits {
8863 u8 reserved_at_0[0xc];
8864 u8 cap_number_of_pps_pins[0x4];
8865 u8 reserved_at_10[0x4];
8866 u8 cap_max_num_of_pps_in_pins[0x4];
8867 u8 reserved_at_18[0x4];
8868 u8 cap_max_num_of_pps_out_pins[0x4];
8869
8870 u8 reserved_at_20[0x24];
8871 u8 cap_pin_3_mode[0x4];
8872 u8 reserved_at_48[0x4];
8873 u8 cap_pin_2_mode[0x4];
8874 u8 reserved_at_50[0x4];
8875 u8 cap_pin_1_mode[0x4];
8876 u8 reserved_at_58[0x4];
8877 u8 cap_pin_0_mode[0x4];
8878
8879 u8 reserved_at_60[0x4];
8880 u8 cap_pin_7_mode[0x4];
8881 u8 reserved_at_68[0x4];
8882 u8 cap_pin_6_mode[0x4];
8883 u8 reserved_at_70[0x4];
8884 u8 cap_pin_5_mode[0x4];
8885 u8 reserved_at_78[0x4];
8886 u8 cap_pin_4_mode[0x4];
8887
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008888 u8 field_select[0x20];
8889 u8 reserved_at_a0[0x60];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008890
8891 u8 enable[0x1];
8892 u8 reserved_at_101[0xb];
8893 u8 pattern[0x4];
8894 u8 reserved_at_110[0x4];
8895 u8 pin_mode[0x4];
8896 u8 pin[0x8];
8897
8898 u8 reserved_at_120[0x20];
8899
8900 u8 time_stamp[0x40];
8901
8902 u8 out_pulse_duration[0x10];
8903 u8 out_periodic_adjustment[0x10];
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008904 u8 enhanced_out_periodic_adjustment[0x20];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008905
Eugenia Emantayevfa367682017-05-25 16:09:34 +03008906 u8 reserved_at_1c0[0x20];
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008907};
8908
8909struct mlx5_ifc_mtppse_reg_bits {
8910 u8 reserved_at_0[0x18];
8911 u8 pin[0x8];
8912 u8 event_arm[0x1];
8913 u8 reserved_at_21[0x1b];
8914 u8 event_generation_mode[0x4];
8915 u8 reserved_at_40[0x40];
8916};
8917
Or Gerlitz47176282017-04-18 13:35:39 +03008918struct mlx5_ifc_mcqi_cap_bits {
8919 u8 supported_info_bitmask[0x20];
8920
8921 u8 component_size[0x20];
8922
8923 u8 max_component_size[0x20];
8924
8925 u8 log_mcda_word_size[0x4];
8926 u8 reserved_at_64[0xc];
8927 u8 mcda_max_write_size[0x10];
8928
8929 u8 rd_en[0x1];
8930 u8 reserved_at_81[0x1];
8931 u8 match_chip_id[0x1];
8932 u8 match_psid[0x1];
8933 u8 check_user_timestamp[0x1];
8934 u8 match_base_guid_mac[0x1];
8935 u8 reserved_at_86[0x1a];
8936};
8937
8938struct mlx5_ifc_mcqi_reg_bits {
8939 u8 read_pending_component[0x1];
8940 u8 reserved_at_1[0xf];
8941 u8 component_index[0x10];
8942
8943 u8 reserved_at_20[0x20];
8944
8945 u8 reserved_at_40[0x1b];
8946 u8 info_type[0x5];
8947
8948 u8 info_size[0x20];
8949
8950 u8 offset[0x20];
8951
8952 u8 reserved_at_a0[0x10];
8953 u8 data_size[0x10];
8954
8955 u8 data[0][0x20];
8956};
8957
8958struct mlx5_ifc_mcc_reg_bits {
8959 u8 reserved_at_0[0x4];
8960 u8 time_elapsed_since_last_cmd[0xc];
8961 u8 reserved_at_10[0x8];
8962 u8 instruction[0x8];
8963
8964 u8 reserved_at_20[0x10];
8965 u8 component_index[0x10];
8966
8967 u8 reserved_at_40[0x8];
8968 u8 update_handle[0x18];
8969
8970 u8 handle_owner_type[0x4];
8971 u8 handle_owner_host_id[0x4];
8972 u8 reserved_at_68[0x1];
8973 u8 control_progress[0x7];
8974 u8 error_code[0x8];
8975 u8 reserved_at_78[0x4];
8976 u8 control_state[0x4];
8977
8978 u8 component_size[0x20];
8979
8980 u8 reserved_at_a0[0x60];
8981};
8982
8983struct mlx5_ifc_mcda_reg_bits {
8984 u8 reserved_at_0[0x8];
8985 u8 update_handle[0x18];
8986
8987 u8 offset[0x20];
8988
8989 u8 reserved_at_40[0x10];
8990 u8 size[0x10];
8991
8992 u8 reserved_at_60[0x20];
8993
8994 u8 data[0][0x20];
8995};
8996
Saeed Mahameede2816822015-05-28 22:28:40 +03008997union mlx5_ifc_ports_control_registers_document_bits {
8998 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
8999 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
9000 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
9001 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
9002 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
9003 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
9004 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
9005 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
9006 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
9007 struct mlx5_ifc_pamp_reg_bits pamp_reg;
9008 struct mlx5_ifc_paos_reg_bits paos_reg;
9009 struct mlx5_ifc_pcap_reg_bits pcap_reg;
9010 struct mlx5_ifc_peir_reg_bits peir_reg;
9011 struct mlx5_ifc_pelc_reg_bits pelc_reg;
9012 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02009013 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03009014 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
9015 struct mlx5_ifc_pifr_reg_bits pifr_reg;
9016 struct mlx5_ifc_pipg_reg_bits pipg_reg;
9017 struct mlx5_ifc_plbf_reg_bits plbf_reg;
9018 struct mlx5_ifc_plib_reg_bits plib_reg;
9019 struct mlx5_ifc_plpc_reg_bits plpc_reg;
9020 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
9021 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
9022 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
9023 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
9024 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
9025 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
9026 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
9027 struct mlx5_ifc_ppad_reg_bits ppad_reg;
9028 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
Aya Levin40390492019-03-29 15:38:03 -07009029 struct mlx5_ifc_mpein_reg_bits mpein_reg;
Gal Pressman8ed1a632016-11-17 13:46:01 +02009030 struct mlx5_ifc_mpcnt_reg_bits mpcnt_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03009031 struct mlx5_ifc_pplm_reg_bits pplm_reg;
9032 struct mlx5_ifc_pplr_reg_bits pplr_reg;
9033 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
9034 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
9035 struct mlx5_ifc_pspa_reg_bits pspa_reg;
9036 struct mlx5_ifc_ptas_reg_bits ptas_reg;
9037 struct mlx5_ifc_ptys_reg_bits ptys_reg;
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009038 struct mlx5_ifc_mlcr_reg_bits mlcr_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03009039 struct mlx5_ifc_pude_reg_bits pude_reg;
9040 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
9041 struct mlx5_ifc_slrg_reg_bits slrg_reg;
9042 struct mlx5_ifc_sltp_reg_bits sltp_reg;
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03009043 struct mlx5_ifc_mtpps_reg_bits mtpps_reg;
9044 struct mlx5_ifc_mtppse_reg_bits mtppse_reg;
Ilan Tayaria9956d32017-04-18 13:10:41 +03009045 struct mlx5_ifc_fpga_access_reg_bits fpga_access_reg;
Ilan Tayarie29341f2017-03-13 20:05:45 +02009046 struct mlx5_ifc_fpga_ctrl_bits fpga_ctrl_bits;
9047 struct mlx5_ifc_fpga_cap_bits fpga_cap_bits;
Or Gerlitz47176282017-04-18 13:35:39 +03009048 struct mlx5_ifc_mcqi_reg_bits mcqi_reg;
9049 struct mlx5_ifc_mcc_reg_bits mcc_reg;
9050 struct mlx5_ifc_mcda_reg_bits mcda_reg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02009051 u8 reserved_at_0[0x60e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03009052};
9053
9054union mlx5_ifc_debug_enhancements_document_bits {
9055 struct mlx5_ifc_health_buffer_bits health_buffer;
Matan Barakb4ff3a32016-02-09 14:57:42 +02009056 u8 reserved_at_0[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +03009057};
9058
9059union mlx5_ifc_uplink_pci_interface_document_bits {
9060 struct mlx5_ifc_initial_seg_bits initial_seg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02009061 u8 reserved_at_0[0x20060];
Eli Cohenb7755162014-10-02 12:19:44 +03009062};
9063
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009064struct mlx5_ifc_set_flow_table_root_out_bits {
9065 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009066 u8 reserved_at_8[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009067
9068 u8 syndrome[0x20];
9069
Matan Barakb4ff3a32016-02-09 14:57:42 +02009070 u8 reserved_at_40[0x40];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009071};
9072
9073struct mlx5_ifc_set_flow_table_root_in_bits {
9074 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009075 u8 reserved_at_10[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009076
Matan Barakb4ff3a32016-02-09 14:57:42 +02009077 u8 reserved_at_20[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009078 u8 op_mod[0x10];
9079
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009080 u8 other_vport[0x1];
9081 u8 reserved_at_41[0xf];
9082 u8 vport_number[0x10];
9083
9084 u8 reserved_at_60[0x20];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009085
9086 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009087 u8 reserved_at_88[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009088
Matan Barakb4ff3a32016-02-09 14:57:42 +02009089 u8 reserved_at_a0[0x8];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009090 u8 table_id[0x18];
9091
Erez Shitrit500a3d02017-04-13 06:36:51 +03009092 u8 reserved_at_c0[0x8];
9093 u8 underlay_qpn[0x18];
9094 u8 reserved_at_e0[0x120];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02009095};
9096
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009097enum {
Aviv Heller84df61e2016-05-10 13:47:50 +03009098 MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = (1UL << 0),
9099 MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID = (1UL << 15),
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009100};
9101
9102struct mlx5_ifc_modify_flow_table_out_bits {
9103 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009104 u8 reserved_at_8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009105
9106 u8 syndrome[0x20];
9107
Matan Barakb4ff3a32016-02-09 14:57:42 +02009108 u8 reserved_at_40[0x40];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009109};
9110
9111struct mlx5_ifc_modify_flow_table_in_bits {
9112 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009113 u8 reserved_at_10[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009114
Matan Barakb4ff3a32016-02-09 14:57:42 +02009115 u8 reserved_at_20[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009116 u8 op_mod[0x10];
9117
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009118 u8 other_vport[0x1];
9119 u8 reserved_at_41[0xf];
9120 u8 vport_number[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009121
Matan Barakb4ff3a32016-02-09 14:57:42 +02009122 u8 reserved_at_60[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009123 u8 modify_field_select[0x10];
9124
9125 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02009126 u8 reserved_at_88[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009127
Matan Barakb4ff3a32016-02-09 14:57:42 +02009128 u8 reserved_at_a0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009129 u8 table_id[0x18];
9130
Maor Gottlieb0c90e9c2017-03-12 11:35:23 +02009131 struct mlx5_ifc_flow_table_context_bits flow_table_context;
Maor Gottlieb34a40e62016-01-11 10:26:00 +02009132};
9133
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02009134struct mlx5_ifc_ets_tcn_config_reg_bits {
9135 u8 g[0x1];
9136 u8 b[0x1];
9137 u8 r[0x1];
9138 u8 reserved_at_3[0x9];
9139 u8 group[0x4];
9140 u8 reserved_at_10[0x9];
9141 u8 bw_allocation[0x7];
9142
9143 u8 reserved_at_20[0xc];
9144 u8 max_bw_units[0x4];
9145 u8 reserved_at_30[0x8];
9146 u8 max_bw_value[0x8];
9147};
9148
9149struct mlx5_ifc_ets_global_config_reg_bits {
9150 u8 reserved_at_0[0x2];
9151 u8 r[0x1];
9152 u8 reserved_at_3[0x1d];
9153
9154 u8 reserved_at_20[0xc];
9155 u8 max_bw_units[0x4];
9156 u8 reserved_at_30[0x8];
9157 u8 max_bw_value[0x8];
9158};
9159
9160struct mlx5_ifc_qetc_reg_bits {
9161 u8 reserved_at_0[0x8];
9162 u8 port_number[0x8];
9163 u8 reserved_at_10[0x30];
9164
9165 struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8];
9166 struct mlx5_ifc_ets_global_config_reg_bits global_configuration;
9167};
9168
Huy Nguyen415a64a2017-07-18 16:08:46 -05009169struct mlx5_ifc_qpdpm_dscp_reg_bits {
9170 u8 e[0x1];
9171 u8 reserved_at_01[0x0b];
9172 u8 prio[0x04];
9173};
9174
9175struct mlx5_ifc_qpdpm_reg_bits {
9176 u8 reserved_at_0[0x8];
9177 u8 local_port[0x8];
9178 u8 reserved_at_10[0x10];
9179 struct mlx5_ifc_qpdpm_dscp_reg_bits dscp[64];
9180};
9181
9182struct mlx5_ifc_qpts_reg_bits {
9183 u8 reserved_at_0[0x8];
9184 u8 local_port[0x8];
9185 u8 reserved_at_10[0x2d];
9186 u8 trust_state[0x3];
9187};
9188
Huy Nguyen50b4a3c2018-03-02 15:47:01 -06009189struct mlx5_ifc_pptb_reg_bits {
9190 u8 reserved_at_0[0x2];
9191 u8 mm[0x2];
9192 u8 reserved_at_4[0x4];
9193 u8 local_port[0x8];
9194 u8 reserved_at_10[0x6];
9195 u8 cm[0x1];
9196 u8 um[0x1];
9197 u8 pm[0x8];
9198
9199 u8 prio_x_buff[0x20];
9200
9201 u8 pm_msb[0x8];
9202 u8 reserved_at_48[0x10];
9203 u8 ctrl_buff[0x4];
9204 u8 untagged_buff[0x4];
9205};
9206
9207struct mlx5_ifc_pbmc_reg_bits {
9208 u8 reserved_at_0[0x8];
9209 u8 local_port[0x8];
9210 u8 reserved_at_10[0x10];
9211
9212 u8 xoff_timer_value[0x10];
9213 u8 xoff_refresh[0x10];
9214
9215 u8 reserved_at_40[0x9];
9216 u8 fullness_threshold[0x7];
9217 u8 port_buffer_size[0x10];
9218
9219 struct mlx5_ifc_bufferx_reg_bits buffer[10];
9220
9221 u8 reserved_at_2e0[0x40];
9222};
9223
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02009224struct mlx5_ifc_qtct_reg_bits {
9225 u8 reserved_at_0[0x8];
9226 u8 port_number[0x8];
9227 u8 reserved_at_10[0xd];
9228 u8 prio[0x3];
9229
9230 u8 reserved_at_20[0x1d];
9231 u8 tclass[0x3];
9232};
9233
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03009234struct mlx5_ifc_mcia_reg_bits {
9235 u8 l[0x1];
9236 u8 reserved_at_1[0x7];
9237 u8 module[0x8];
9238 u8 reserved_at_10[0x8];
9239 u8 status[0x8];
9240
9241 u8 i2c_device_address[0x8];
9242 u8 page_number[0x8];
9243 u8 device_address[0x10];
9244
9245 u8 reserved_at_40[0x10];
9246 u8 size[0x10];
9247
9248 u8 reserved_at_60[0x20];
9249
9250 u8 dword_0[0x20];
9251 u8 dword_1[0x20];
9252 u8 dword_2[0x20];
9253 u8 dword_3[0x20];
9254 u8 dword_4[0x20];
9255 u8 dword_5[0x20];
9256 u8 dword_6[0x20];
9257 u8 dword_7[0x20];
9258 u8 dword_8[0x20];
9259 u8 dword_9[0x20];
9260 u8 dword_10[0x20];
9261 u8 dword_11[0x20];
9262};
9263
Saeed Mahameed74862162016-06-09 15:11:34 +03009264struct mlx5_ifc_dcbx_param_bits {
9265 u8 dcbx_cee_cap[0x1];
9266 u8 dcbx_ieee_cap[0x1];
9267 u8 dcbx_standby_cap[0x1];
Gal Pressmanc74d90c2018-11-07 20:31:37 +02009268 u8 reserved_at_3[0x5];
Saeed Mahameed74862162016-06-09 15:11:34 +03009269 u8 port_number[0x8];
9270 u8 reserved_at_10[0xa];
9271 u8 max_application_table_size[6];
9272 u8 reserved_at_20[0x15];
9273 u8 version_oper[0x3];
9274 u8 reserved_at_38[5];
9275 u8 version_admin[0x3];
9276 u8 willing_admin[0x1];
9277 u8 reserved_at_41[0x3];
9278 u8 pfc_cap_oper[0x4];
9279 u8 reserved_at_48[0x4];
9280 u8 pfc_cap_admin[0x4];
9281 u8 reserved_at_50[0x4];
9282 u8 num_of_tc_oper[0x4];
9283 u8 reserved_at_58[0x4];
9284 u8 num_of_tc_admin[0x4];
9285 u8 remote_willing[0x1];
9286 u8 reserved_at_61[3];
9287 u8 remote_pfc_cap[4];
9288 u8 reserved_at_68[0x14];
9289 u8 remote_num_of_tc[0x4];
9290 u8 reserved_at_80[0x18];
9291 u8 error[0x8];
9292 u8 reserved_at_a0[0x160];
9293};
Aviv Heller84df61e2016-05-10 13:47:50 +03009294
9295struct mlx5_ifc_lagc_bits {
9296 u8 reserved_at_0[0x1d];
9297 u8 lag_state[0x3];
9298
9299 u8 reserved_at_20[0x14];
9300 u8 tx_remap_affinity_2[0x4];
9301 u8 reserved_at_38[0x4];
9302 u8 tx_remap_affinity_1[0x4];
9303};
9304
9305struct mlx5_ifc_create_lag_out_bits {
9306 u8 status[0x8];
9307 u8 reserved_at_8[0x18];
9308
9309 u8 syndrome[0x20];
9310
9311 u8 reserved_at_40[0x40];
9312};
9313
9314struct mlx5_ifc_create_lag_in_bits {
9315 u8 opcode[0x10];
9316 u8 reserved_at_10[0x10];
9317
9318 u8 reserved_at_20[0x10];
9319 u8 op_mod[0x10];
9320
9321 struct mlx5_ifc_lagc_bits ctx;
9322};
9323
9324struct mlx5_ifc_modify_lag_out_bits {
9325 u8 status[0x8];
9326 u8 reserved_at_8[0x18];
9327
9328 u8 syndrome[0x20];
9329
9330 u8 reserved_at_40[0x40];
9331};
9332
9333struct mlx5_ifc_modify_lag_in_bits {
9334 u8 opcode[0x10];
9335 u8 reserved_at_10[0x10];
9336
9337 u8 reserved_at_20[0x10];
9338 u8 op_mod[0x10];
9339
9340 u8 reserved_at_40[0x20];
9341 u8 field_select[0x20];
9342
9343 struct mlx5_ifc_lagc_bits ctx;
9344};
9345
9346struct mlx5_ifc_query_lag_out_bits {
9347 u8 status[0x8];
9348 u8 reserved_at_8[0x18];
9349
9350 u8 syndrome[0x20];
9351
9352 u8 reserved_at_40[0x40];
9353
9354 struct mlx5_ifc_lagc_bits ctx;
9355};
9356
9357struct mlx5_ifc_query_lag_in_bits {
9358 u8 opcode[0x10];
9359 u8 reserved_at_10[0x10];
9360
9361 u8 reserved_at_20[0x10];
9362 u8 op_mod[0x10];
9363
9364 u8 reserved_at_40[0x40];
9365};
9366
9367struct mlx5_ifc_destroy_lag_out_bits {
9368 u8 status[0x8];
9369 u8 reserved_at_8[0x18];
9370
9371 u8 syndrome[0x20];
9372
9373 u8 reserved_at_40[0x40];
9374};
9375
9376struct mlx5_ifc_destroy_lag_in_bits {
9377 u8 opcode[0x10];
9378 u8 reserved_at_10[0x10];
9379
9380 u8 reserved_at_20[0x10];
9381 u8 op_mod[0x10];
9382
9383 u8 reserved_at_40[0x40];
9384};
9385
9386struct mlx5_ifc_create_vport_lag_out_bits {
9387 u8 status[0x8];
9388 u8 reserved_at_8[0x18];
9389
9390 u8 syndrome[0x20];
9391
9392 u8 reserved_at_40[0x40];
9393};
9394
9395struct mlx5_ifc_create_vport_lag_in_bits {
9396 u8 opcode[0x10];
9397 u8 reserved_at_10[0x10];
9398
9399 u8 reserved_at_20[0x10];
9400 u8 op_mod[0x10];
9401
9402 u8 reserved_at_40[0x40];
9403};
9404
9405struct mlx5_ifc_destroy_vport_lag_out_bits {
9406 u8 status[0x8];
9407 u8 reserved_at_8[0x18];
9408
9409 u8 syndrome[0x20];
9410
9411 u8 reserved_at_40[0x40];
9412};
9413
9414struct mlx5_ifc_destroy_vport_lag_in_bits {
9415 u8 opcode[0x10];
9416 u8 reserved_at_10[0x10];
9417
9418 u8 reserved_at_20[0x10];
9419 u8 op_mod[0x10];
9420
9421 u8 reserved_at_40[0x40];
9422};
9423
Ariel Levkovich24da0012018-04-05 18:53:27 +03009424struct mlx5_ifc_alloc_memic_in_bits {
9425 u8 opcode[0x10];
9426 u8 reserved_at_10[0x10];
9427
9428 u8 reserved_at_20[0x10];
9429 u8 op_mod[0x10];
9430
9431 u8 reserved_at_30[0x20];
9432
9433 u8 reserved_at_40[0x18];
9434 u8 log_memic_addr_alignment[0x8];
9435
9436 u8 range_start_addr[0x40];
9437
9438 u8 range_size[0x20];
9439
9440 u8 memic_size[0x20];
9441};
9442
9443struct mlx5_ifc_alloc_memic_out_bits {
9444 u8 status[0x8];
9445 u8 reserved_at_8[0x18];
9446
9447 u8 syndrome[0x20];
9448
9449 u8 memic_start_addr[0x40];
9450};
9451
9452struct mlx5_ifc_dealloc_memic_in_bits {
9453 u8 opcode[0x10];
9454 u8 reserved_at_10[0x10];
9455
9456 u8 reserved_at_20[0x10];
9457 u8 op_mod[0x10];
9458
9459 u8 reserved_at_40[0x40];
9460
9461 u8 memic_start_addr[0x40];
9462
9463 u8 memic_size[0x20];
9464
9465 u8 reserved_at_e0[0x20];
9466};
9467
9468struct mlx5_ifc_dealloc_memic_out_bits {
9469 u8 status[0x8];
9470 u8 reserved_at_8[0x18];
9471
9472 u8 syndrome[0x20];
9473
9474 u8 reserved_at_40[0x40];
9475};
9476
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009477struct mlx5_ifc_general_obj_in_cmd_hdr_bits {
9478 u8 opcode[0x10];
9479 u8 uid[0x10];
9480
9481 u8 reserved_at_20[0x10];
9482 u8 obj_type[0x10];
9483
9484 u8 obj_id[0x20];
9485
9486 u8 reserved_at_60[0x20];
9487};
9488
9489struct mlx5_ifc_general_obj_out_cmd_hdr_bits {
9490 u8 status[0x8];
9491 u8 reserved_at_8[0x18];
9492
9493 u8 syndrome[0x20];
9494
9495 u8 obj_id[0x20];
9496
9497 u8 reserved_at_60[0x20];
9498};
9499
9500struct mlx5_ifc_umem_bits {
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009501 u8 reserved_at_0[0x80];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009502
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009503 u8 reserved_at_80[0x1b];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009504 u8 log_page_size[0x5];
9505
9506 u8 page_offset[0x20];
9507
9508 u8 num_of_mtt[0x40];
9509
9510 struct mlx5_ifc_mtt_bits mtt[0];
9511};
9512
9513struct mlx5_ifc_uctx_bits {
Yishai Hadas9d43faa2018-11-26 08:28:32 +02009514 u8 cap[0x20];
9515
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009516 u8 reserved_at_20[0x160];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009517};
9518
Ariel Levkovich9fba2b92019-03-31 19:44:43 +03009519struct mlx5_ifc_sw_icm_bits {
9520 u8 modify_field_select[0x40];
9521
9522 u8 reserved_at_40[0x18];
9523 u8 log_sw_icm_size[0x8];
9524
9525 u8 reserved_at_60[0x20];
9526
9527 u8 sw_icm_start_addr[0x40];
9528
9529 u8 reserved_at_c0[0x140];
9530};
9531
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009532struct mlx5_ifc_create_umem_in_bits {
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009533 u8 opcode[0x10];
9534 u8 uid[0x10];
9535
9536 u8 reserved_at_20[0x10];
9537 u8 op_mod[0x10];
9538
9539 u8 reserved_at_40[0x40];
9540
9541 struct mlx5_ifc_umem_bits umem;
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009542};
9543
9544struct mlx5_ifc_create_uctx_in_bits {
Yishai Hadas6e3722b2018-12-19 16:28:15 +02009545 u8 opcode[0x10];
9546 u8 reserved_at_10[0x10];
9547
9548 u8 reserved_at_20[0x10];
9549 u8 op_mod[0x10];
9550
9551 u8 reserved_at_40[0x40];
9552
9553 struct mlx5_ifc_uctx_bits uctx;
9554};
9555
9556struct mlx5_ifc_destroy_uctx_in_bits {
9557 u8 opcode[0x10];
9558 u8 reserved_at_10[0x10];
9559
9560 u8 reserved_at_20[0x10];
9561 u8 op_mod[0x10];
9562
9563 u8 reserved_at_40[0x10];
9564 u8 uid[0x10];
9565
9566 u8 reserved_at_60[0x20];
Yishai Hadas38b7ca92018-03-08 14:36:27 +02009567};
9568
Ariel Levkovich9fba2b92019-03-31 19:44:43 +03009569struct mlx5_ifc_create_sw_icm_in_bits {
9570 struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
9571 struct mlx5_ifc_sw_icm_bits sw_icm;
9572};
9573
Feras Daoudeff8ea82018-07-16 18:35:30 -07009574struct mlx5_ifc_mtrc_string_db_param_bits {
9575 u8 string_db_base_address[0x20];
9576
9577 u8 reserved_at_20[0x8];
9578 u8 string_db_size[0x18];
9579};
9580
9581struct mlx5_ifc_mtrc_cap_bits {
9582 u8 trace_owner[0x1];
9583 u8 trace_to_memory[0x1];
9584 u8 reserved_at_2[0x4];
9585 u8 trc_ver[0x2];
9586 u8 reserved_at_8[0x14];
9587 u8 num_string_db[0x4];
9588
9589 u8 first_string_trace[0x8];
9590 u8 num_string_trace[0x8];
9591 u8 reserved_at_30[0x28];
9592
9593 u8 log_max_trace_buffer_size[0x8];
9594
9595 u8 reserved_at_60[0x20];
9596
9597 struct mlx5_ifc_mtrc_string_db_param_bits string_db_param[8];
9598
9599 u8 reserved_at_280[0x180];
9600};
9601
9602struct mlx5_ifc_mtrc_conf_bits {
9603 u8 reserved_at_0[0x1c];
9604 u8 trace_mode[0x4];
9605 u8 reserved_at_20[0x18];
9606 u8 log_trace_buffer_size[0x8];
9607 u8 trace_mkey[0x20];
9608 u8 reserved_at_60[0x3a0];
9609};
9610
9611struct mlx5_ifc_mtrc_stdb_bits {
9612 u8 string_db_index[0x4];
9613 u8 reserved_at_4[0x4];
9614 u8 read_size[0x18];
9615 u8 start_offset[0x20];
9616 u8 string_db_data[0];
9617};
9618
9619struct mlx5_ifc_mtrc_ctrl_bits {
9620 u8 trace_status[0x2];
9621 u8 reserved_at_2[0x2];
9622 u8 arm_event[0x1];
9623 u8 reserved_at_5[0xb];
9624 u8 modify_field_select[0x10];
9625 u8 reserved_at_20[0x2b];
9626 u8 current_timestamp52_32[0x15];
9627 u8 current_timestamp31_0[0x20];
9628 u8 reserved_at_80[0x180];
9629};
9630
Bodong Wangc3a4e9f2019-02-12 22:55:37 -08009631struct mlx5_ifc_host_params_context_bits {
9632 u8 host_number[0x8];
9633 u8 reserved_at_8[0x8];
9634 u8 host_num_of_vfs[0x10];
9635
9636 u8 reserved_at_20[0x10];
9637 u8 host_pci_bus[0x10];
9638
9639 u8 reserved_at_40[0x10];
9640 u8 host_pci_device[0x10];
9641
9642 u8 reserved_at_60[0x10];
9643 u8 host_pci_function[0x10];
9644
9645 u8 reserved_at_80[0x180];
9646};
9647
9648struct mlx5_ifc_query_host_params_in_bits {
9649 u8 opcode[0x10];
9650 u8 reserved_at_10[0x10];
9651
9652 u8 reserved_at_20[0x10];
9653 u8 op_mod[0x10];
9654
9655 u8 reserved_at_40[0x40];
9656};
9657
9658struct mlx5_ifc_query_host_params_out_bits {
9659 u8 status[0x8];
9660 u8 reserved_at_8[0x18];
9661
9662 u8 syndrome[0x20];
9663
9664 u8 reserved_at_40[0x40];
9665
9666 struct mlx5_ifc_host_params_context_bits host_params_context;
9667
9668 u8 reserved_at_280[0x180];
9669};
9670
Eli Cohend29b7962014-10-02 12:19:43 +03009671#endif /* MLX5_IFC_H */