blob: d96ebc319d63a3b2a846fe8a987b7bafb796d380 [file] [log] [blame]
Eli Cohend29b7962014-10-02 12:19:43 +03001/*
Saeed Mahameede2816822015-05-28 22:28:40 +03002 * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved.
Eli Cohend29b7962014-10-02 12:19:43 +03003 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:
9 *
10 * Redistribution and use in source and binary forms, with or
11 * without modification, are permitted provided that the following
12 * conditions are met:
13 *
14 * - Redistributions of source code must retain the above
15 * copyright notice, this list of conditions and the following
16 * disclaimer.
17 *
18 * - Redistributions in binary form must reproduce the above
19 * copyright notice, this list of conditions and the following
20 * disclaimer in the documentation and/or other materials
21 * provided with the distribution.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
Saeed Mahameede2816822015-05-28 22:28:40 +030031*/
Eli Cohend29b7962014-10-02 12:19:43 +030032#ifndef MLX5_IFC_H
33#define MLX5_IFC_H
34
35enum {
Saeed Mahameede2816822015-05-28 22:28:40 +030036 MLX5_EVENT_TYPE_CODING_COMPLETION_EVENTS = 0x0,
37 MLX5_EVENT_TYPE_CODING_PATH_MIGRATED_SUCCEEDED = 0x1,
38 MLX5_EVENT_TYPE_CODING_COMMUNICATION_ESTABLISHED = 0x2,
39 MLX5_EVENT_TYPE_CODING_SEND_QUEUE_DRAINED = 0x3,
40 MLX5_EVENT_TYPE_CODING_LAST_WQE_REACHED = 0x13,
41 MLX5_EVENT_TYPE_CODING_SRQ_LIMIT = 0x14,
42 MLX5_EVENT_TYPE_CODING_DCT_ALL_CONNECTIONS_CLOSED = 0x1c,
43 MLX5_EVENT_TYPE_CODING_DCT_ACCESS_KEY_VIOLATION = 0x1d,
44 MLX5_EVENT_TYPE_CODING_CQ_ERROR = 0x4,
45 MLX5_EVENT_TYPE_CODING_LOCAL_WQ_CATASTROPHIC_ERROR = 0x5,
46 MLX5_EVENT_TYPE_CODING_PATH_MIGRATION_FAILED = 0x7,
47 MLX5_EVENT_TYPE_CODING_PAGE_FAULT_EVENT = 0xc,
48 MLX5_EVENT_TYPE_CODING_INVALID_REQUEST_LOCAL_WQ_ERROR = 0x10,
49 MLX5_EVENT_TYPE_CODING_LOCAL_ACCESS_VIOLATION_WQ_ERROR = 0x11,
50 MLX5_EVENT_TYPE_CODING_LOCAL_SRQ_CATASTROPHIC_ERROR = 0x12,
51 MLX5_EVENT_TYPE_CODING_INTERNAL_ERROR = 0x8,
52 MLX5_EVENT_TYPE_CODING_PORT_STATE_CHANGE = 0x9,
53 MLX5_EVENT_TYPE_CODING_GPIO_EVENT = 0x15,
54 MLX5_EVENT_TYPE_CODING_REMOTE_CONFIGURATION_PROTOCOL_EVENT = 0x19,
55 MLX5_EVENT_TYPE_CODING_DOORBELL_BLUEFLAME_CONGESTION_EVENT = 0x1a,
56 MLX5_EVENT_TYPE_CODING_STALL_VL_EVENT = 0x1b,
57 MLX5_EVENT_TYPE_CODING_DROPPED_PACKET_LOGGED_EVENT = 0x1f,
58 MLX5_EVENT_TYPE_CODING_COMMAND_INTERFACE_COMPLETION = 0xa,
59 MLX5_EVENT_TYPE_CODING_PAGE_REQUEST = 0xb
60};
61
62enum {
63 MLX5_MODIFY_TIR_BITMASK_LRO = 0x0,
64 MLX5_MODIFY_TIR_BITMASK_INDIRECT_TABLE = 0x1,
65 MLX5_MODIFY_TIR_BITMASK_HASH = 0x2,
66 MLX5_MODIFY_TIR_BITMASK_TUNNELED_OFFLOAD_EN = 0x3
67};
68
69enum {
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +020070 MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE = 0x0,
71 MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3,
72};
73
74enum {
Eli Cohend29b7962014-10-02 12:19:43 +030075 MLX5_CMD_OP_QUERY_HCA_CAP = 0x100,
76 MLX5_CMD_OP_QUERY_ADAPTER = 0x101,
77 MLX5_CMD_OP_INIT_HCA = 0x102,
78 MLX5_CMD_OP_TEARDOWN_HCA = 0x103,
79 MLX5_CMD_OP_ENABLE_HCA = 0x104,
80 MLX5_CMD_OP_DISABLE_HCA = 0x105,
81 MLX5_CMD_OP_QUERY_PAGES = 0x107,
82 MLX5_CMD_OP_MANAGE_PAGES = 0x108,
83 MLX5_CMD_OP_SET_HCA_CAP = 0x109,
Saeed Mahameede2816822015-05-28 22:28:40 +030084 MLX5_CMD_OP_QUERY_ISSI = 0x10a,
85 MLX5_CMD_OP_SET_ISSI = 0x10b,
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +020086 MLX5_CMD_OP_SET_DRIVER_VERSION = 0x10d,
Eli Cohend29b7962014-10-02 12:19:43 +030087 MLX5_CMD_OP_CREATE_MKEY = 0x200,
88 MLX5_CMD_OP_QUERY_MKEY = 0x201,
89 MLX5_CMD_OP_DESTROY_MKEY = 0x202,
90 MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS = 0x203,
91 MLX5_CMD_OP_PAGE_FAULT_RESUME = 0x204,
92 MLX5_CMD_OP_CREATE_EQ = 0x301,
93 MLX5_CMD_OP_DESTROY_EQ = 0x302,
94 MLX5_CMD_OP_QUERY_EQ = 0x303,
95 MLX5_CMD_OP_GEN_EQE = 0x304,
96 MLX5_CMD_OP_CREATE_CQ = 0x400,
97 MLX5_CMD_OP_DESTROY_CQ = 0x401,
98 MLX5_CMD_OP_QUERY_CQ = 0x402,
99 MLX5_CMD_OP_MODIFY_CQ = 0x403,
100 MLX5_CMD_OP_CREATE_QP = 0x500,
101 MLX5_CMD_OP_DESTROY_QP = 0x501,
102 MLX5_CMD_OP_RST2INIT_QP = 0x502,
103 MLX5_CMD_OP_INIT2RTR_QP = 0x503,
104 MLX5_CMD_OP_RTR2RTS_QP = 0x504,
105 MLX5_CMD_OP_RTS2RTS_QP = 0x505,
106 MLX5_CMD_OP_SQERR2RTS_QP = 0x506,
107 MLX5_CMD_OP_2ERR_QP = 0x507,
108 MLX5_CMD_OP_2RST_QP = 0x50a,
109 MLX5_CMD_OP_QUERY_QP = 0x50b,
Saeed Mahameede2816822015-05-28 22:28:40 +0300110 MLX5_CMD_OP_SQD_RTS_QP = 0x50c,
Eli Cohend29b7962014-10-02 12:19:43 +0300111 MLX5_CMD_OP_INIT2INIT_QP = 0x50e,
112 MLX5_CMD_OP_CREATE_PSV = 0x600,
113 MLX5_CMD_OP_DESTROY_PSV = 0x601,
114 MLX5_CMD_OP_CREATE_SRQ = 0x700,
115 MLX5_CMD_OP_DESTROY_SRQ = 0x701,
116 MLX5_CMD_OP_QUERY_SRQ = 0x702,
117 MLX5_CMD_OP_ARM_RQ = 0x703,
Saeed Mahameede2816822015-05-28 22:28:40 +0300118 MLX5_CMD_OP_CREATE_XRC_SRQ = 0x705,
119 MLX5_CMD_OP_DESTROY_XRC_SRQ = 0x706,
120 MLX5_CMD_OP_QUERY_XRC_SRQ = 0x707,
121 MLX5_CMD_OP_ARM_XRC_SRQ = 0x708,
Eli Cohend29b7962014-10-02 12:19:43 +0300122 MLX5_CMD_OP_CREATE_DCT = 0x710,
123 MLX5_CMD_OP_DESTROY_DCT = 0x711,
124 MLX5_CMD_OP_DRAIN_DCT = 0x712,
125 MLX5_CMD_OP_QUERY_DCT = 0x713,
126 MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION = 0x714,
Saeed Mahameed74862162016-06-09 15:11:34 +0300127 MLX5_CMD_OP_CREATE_XRQ = 0x717,
128 MLX5_CMD_OP_DESTROY_XRQ = 0x718,
129 MLX5_CMD_OP_QUERY_XRQ = 0x719,
130 MLX5_CMD_OP_ARM_XRQ = 0x71a,
Eli Cohend29b7962014-10-02 12:19:43 +0300131 MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750,
132 MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751,
133 MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752,
134 MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT = 0x753,
135 MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT = 0x754,
136 MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT = 0x755,
Saeed Mahameede2816822015-05-28 22:28:40 +0300137 MLX5_CMD_OP_QUERY_ROCE_ADDRESS = 0x760,
Eli Cohend29b7962014-10-02 12:19:43 +0300138 MLX5_CMD_OP_SET_ROCE_ADDRESS = 0x761,
Saeed Mahameede2816822015-05-28 22:28:40 +0300139 MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT = 0x762,
140 MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT = 0x763,
141 MLX5_CMD_OP_QUERY_HCA_VPORT_GID = 0x764,
142 MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY = 0x765,
Eli Cohend29b7962014-10-02 12:19:43 +0300143 MLX5_CMD_OP_QUERY_VPORT_COUNTER = 0x770,
144 MLX5_CMD_OP_ALLOC_Q_COUNTER = 0x771,
145 MLX5_CMD_OP_DEALLOC_Q_COUNTER = 0x772,
146 MLX5_CMD_OP_QUERY_Q_COUNTER = 0x773,
Saeed Mahameed74862162016-06-09 15:11:34 +0300147 MLX5_CMD_OP_SET_RATE_LIMIT = 0x780,
148 MLX5_CMD_OP_QUERY_RATE_LIMIT = 0x781,
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300149 MLX5_CMD_OP_CREATE_SCHEDULING_ELEMENT = 0x782,
150 MLX5_CMD_OP_DESTROY_SCHEDULING_ELEMENT = 0x783,
151 MLX5_CMD_OP_QUERY_SCHEDULING_ELEMENT = 0x784,
152 MLX5_CMD_OP_MODIFY_SCHEDULING_ELEMENT = 0x785,
153 MLX5_CMD_OP_CREATE_QOS_PARA_VPORT = 0x786,
154 MLX5_CMD_OP_DESTROY_QOS_PARA_VPORT = 0x787,
Eli Cohend29b7962014-10-02 12:19:43 +0300155 MLX5_CMD_OP_ALLOC_PD = 0x800,
156 MLX5_CMD_OP_DEALLOC_PD = 0x801,
157 MLX5_CMD_OP_ALLOC_UAR = 0x802,
158 MLX5_CMD_OP_DEALLOC_UAR = 0x803,
159 MLX5_CMD_OP_CONFIG_INT_MODERATION = 0x804,
160 MLX5_CMD_OP_ACCESS_REG = 0x805,
161 MLX5_CMD_OP_ATTACH_TO_MCG = 0x806,
Saeed Mahameed20bb5662016-07-17 02:01:45 +0300162 MLX5_CMD_OP_DETACH_FROM_MCG = 0x807,
Eli Cohend29b7962014-10-02 12:19:43 +0300163 MLX5_CMD_OP_GET_DROPPED_PACKET_LOG = 0x80a,
164 MLX5_CMD_OP_MAD_IFC = 0x50d,
165 MLX5_CMD_OP_QUERY_MAD_DEMUX = 0x80b,
166 MLX5_CMD_OP_SET_MAD_DEMUX = 0x80c,
167 MLX5_CMD_OP_NOP = 0x80d,
168 MLX5_CMD_OP_ALLOC_XRCD = 0x80e,
169 MLX5_CMD_OP_DEALLOC_XRCD = 0x80f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300170 MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN = 0x816,
171 MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN = 0x817,
172 MLX5_CMD_OP_QUERY_CONG_STATUS = 0x822,
173 MLX5_CMD_OP_MODIFY_CONG_STATUS = 0x823,
174 MLX5_CMD_OP_QUERY_CONG_PARAMS = 0x824,
175 MLX5_CMD_OP_MODIFY_CONG_PARAMS = 0x825,
176 MLX5_CMD_OP_QUERY_CONG_STATISTICS = 0x826,
177 MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT = 0x827,
178 MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT = 0x828,
179 MLX5_CMD_OP_SET_L2_TABLE_ENTRY = 0x829,
180 MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY = 0x82a,
181 MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY = 0x82b,
Tariq Toukan928cfe82016-02-22 18:17:29 +0200182 MLX5_CMD_OP_SET_WOL_ROL = 0x830,
183 MLX5_CMD_OP_QUERY_WOL_ROL = 0x831,
Aviv Heller84df61e2016-05-10 13:47:50 +0300184 MLX5_CMD_OP_CREATE_LAG = 0x840,
185 MLX5_CMD_OP_MODIFY_LAG = 0x841,
186 MLX5_CMD_OP_QUERY_LAG = 0x842,
187 MLX5_CMD_OP_DESTROY_LAG = 0x843,
188 MLX5_CMD_OP_CREATE_VPORT_LAG = 0x844,
189 MLX5_CMD_OP_DESTROY_VPORT_LAG = 0x845,
Eli Cohend29b7962014-10-02 12:19:43 +0300190 MLX5_CMD_OP_CREATE_TIR = 0x900,
191 MLX5_CMD_OP_MODIFY_TIR = 0x901,
192 MLX5_CMD_OP_DESTROY_TIR = 0x902,
193 MLX5_CMD_OP_QUERY_TIR = 0x903,
Eli Cohend29b7962014-10-02 12:19:43 +0300194 MLX5_CMD_OP_CREATE_SQ = 0x904,
195 MLX5_CMD_OP_MODIFY_SQ = 0x905,
196 MLX5_CMD_OP_DESTROY_SQ = 0x906,
197 MLX5_CMD_OP_QUERY_SQ = 0x907,
198 MLX5_CMD_OP_CREATE_RQ = 0x908,
199 MLX5_CMD_OP_MODIFY_RQ = 0x909,
200 MLX5_CMD_OP_DESTROY_RQ = 0x90a,
201 MLX5_CMD_OP_QUERY_RQ = 0x90b,
202 MLX5_CMD_OP_CREATE_RMP = 0x90c,
203 MLX5_CMD_OP_MODIFY_RMP = 0x90d,
204 MLX5_CMD_OP_DESTROY_RMP = 0x90e,
205 MLX5_CMD_OP_QUERY_RMP = 0x90f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300206 MLX5_CMD_OP_CREATE_TIS = 0x912,
207 MLX5_CMD_OP_MODIFY_TIS = 0x913,
208 MLX5_CMD_OP_DESTROY_TIS = 0x914,
209 MLX5_CMD_OP_QUERY_TIS = 0x915,
210 MLX5_CMD_OP_CREATE_RQT = 0x916,
211 MLX5_CMD_OP_MODIFY_RQT = 0x917,
212 MLX5_CMD_OP_DESTROY_RQT = 0x918,
213 MLX5_CMD_OP_QUERY_RQT = 0x919,
Maor Gottlieb2cc43b42016-01-11 10:25:59 +0200214 MLX5_CMD_OP_SET_FLOW_TABLE_ROOT = 0x92f,
Saeed Mahameede2816822015-05-28 22:28:40 +0300215 MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930,
216 MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931,
217 MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932,
218 MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933,
219 MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934,
220 MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935,
221 MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936,
222 MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937,
Maor Gottlieb34a40e62016-01-11 10:26:00 +0200223 MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938,
Amir Vadai9dc0b282016-05-13 12:55:39 +0000224 MLX5_CMD_OP_ALLOC_FLOW_COUNTER = 0x939,
225 MLX5_CMD_OP_DEALLOC_FLOW_COUNTER = 0x93a,
226 MLX5_CMD_OP_QUERY_FLOW_COUNTER = 0x93b,
Shahar Klein86d56a12016-06-10 00:07:30 +0300227 MLX5_CMD_OP_MODIFY_FLOW_TABLE = 0x93c,
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300228 MLX5_CMD_OP_ALLOC_ENCAP_HEADER = 0x93d,
229 MLX5_CMD_OP_DEALLOC_ENCAP_HEADER = 0x93e,
Shahar Klein86d56a12016-06-10 00:07:30 +0300230 MLX5_CMD_OP_MAX
Saeed Mahameede2816822015-05-28 22:28:40 +0300231};
232
233struct mlx5_ifc_flow_table_fields_supported_bits {
234 u8 outer_dmac[0x1];
235 u8 outer_smac[0x1];
236 u8 outer_ether_type[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200237 u8 reserved_at_3[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300238 u8 outer_first_prio[0x1];
239 u8 outer_first_cfi[0x1];
240 u8 outer_first_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200241 u8 reserved_at_7[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300242 u8 outer_second_prio[0x1];
243 u8 outer_second_cfi[0x1];
244 u8 outer_second_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200245 u8 reserved_at_b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300246 u8 outer_sip[0x1];
247 u8 outer_dip[0x1];
248 u8 outer_frag[0x1];
249 u8 outer_ip_protocol[0x1];
250 u8 outer_ip_ecn[0x1];
251 u8 outer_ip_dscp[0x1];
252 u8 outer_udp_sport[0x1];
253 u8 outer_udp_dport[0x1];
254 u8 outer_tcp_sport[0x1];
255 u8 outer_tcp_dport[0x1];
256 u8 outer_tcp_flags[0x1];
257 u8 outer_gre_protocol[0x1];
258 u8 outer_gre_key[0x1];
259 u8 outer_vxlan_vni[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200260 u8 reserved_at_1a[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +0300261 u8 source_eswitch_port[0x1];
262
263 u8 inner_dmac[0x1];
264 u8 inner_smac[0x1];
265 u8 inner_ether_type[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200266 u8 reserved_at_23[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300267 u8 inner_first_prio[0x1];
268 u8 inner_first_cfi[0x1];
269 u8 inner_first_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200270 u8 reserved_at_27[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300271 u8 inner_second_prio[0x1];
272 u8 inner_second_cfi[0x1];
273 u8 inner_second_vid[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200274 u8 reserved_at_2b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300275 u8 inner_sip[0x1];
276 u8 inner_dip[0x1];
277 u8 inner_frag[0x1];
278 u8 inner_ip_protocol[0x1];
279 u8 inner_ip_ecn[0x1];
280 u8 inner_ip_dscp[0x1];
281 u8 inner_udp_sport[0x1];
282 u8 inner_udp_dport[0x1];
283 u8 inner_tcp_sport[0x1];
284 u8 inner_tcp_dport[0x1];
285 u8 inner_tcp_flags[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200286 u8 reserved_at_37[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +0300287
Matan Barakb4ff3a32016-02-09 14:57:42 +0200288 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300289};
290
291struct mlx5_ifc_flow_table_prop_layout_bits {
292 u8 ft_support[0x1];
Amir Vadai9dc0b282016-05-13 12:55:39 +0000293 u8 reserved_at_1[0x1];
294 u8 flow_counter[0x1];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200295 u8 flow_modify_en[0x1];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +0200296 u8 modify_root[0x1];
Maor Gottlieb34a40e62016-01-11 10:26:00 +0200297 u8 identified_miss_table_mode[0x1];
298 u8 flow_table_modify[0x1];
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300299 u8 encap[0x1];
300 u8 decap[0x1];
301 u8 reserved_at_9[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +0300302
Matan Barakb4ff3a32016-02-09 14:57:42 +0200303 u8 reserved_at_20[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300304 u8 log_max_ft_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200305 u8 reserved_at_28[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300306 u8 max_ft_level[0x8];
307
Matan Barakb4ff3a32016-02-09 14:57:42 +0200308 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300309
Matan Barakb4ff3a32016-02-09 14:57:42 +0200310 u8 reserved_at_60[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200311 u8 log_max_ft_num[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300312
Matan Barakb4ff3a32016-02-09 14:57:42 +0200313 u8 reserved_at_80[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +0200314 u8 log_max_destination[0x8];
315
Matan Barakb4ff3a32016-02-09 14:57:42 +0200316 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +0300317 u8 log_max_flow[0x8];
318
Matan Barakb4ff3a32016-02-09 14:57:42 +0200319 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300320
321 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support;
322
323 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support;
324};
325
326struct mlx5_ifc_odp_per_transport_service_cap_bits {
327 u8 send[0x1];
328 u8 receive[0x1];
329 u8 write[0x1];
330 u8 read[0x1];
Artemy Kovalyov17d2f882017-01-02 11:37:47 +0200331 u8 atomic[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300332 u8 srq_receive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200333 u8 reserved_at_6[0x1a];
Saeed Mahameede2816822015-05-28 22:28:40 +0300334};
335
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200336struct mlx5_ifc_ipv4_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200337 u8 reserved_at_0[0x60];
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200338
339 u8 ipv4[0x20];
340};
341
342struct mlx5_ifc_ipv6_layout_bits {
343 u8 ipv6[16][0x8];
344};
345
346union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits {
347 struct mlx5_ifc_ipv6_layout_bits ipv6_layout;
348 struct mlx5_ifc_ipv4_layout_bits ipv4_layout;
Matan Barakb4ff3a32016-02-09 14:57:42 +0200349 u8 reserved_at_0[0x80];
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200350};
351
Saeed Mahameede2816822015-05-28 22:28:40 +0300352struct mlx5_ifc_fte_match_set_lyr_2_4_bits {
353 u8 smac_47_16[0x20];
354
355 u8 smac_15_0[0x10];
356 u8 ethertype[0x10];
357
358 u8 dmac_47_16[0x20];
359
360 u8 dmac_15_0[0x10];
361 u8 first_prio[0x3];
362 u8 first_cfi[0x1];
363 u8 first_vid[0xc];
364
365 u8 ip_protocol[0x8];
366 u8 ip_dscp[0x6];
367 u8 ip_ecn[0x2];
Mohamad Haj Yahia10543362016-10-09 16:25:43 +0300368 u8 cvlan_tag[0x1];
369 u8 svlan_tag[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300370 u8 frag[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200371 u8 reserved_at_93[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300372 u8 tcp_flags[0x9];
373
374 u8 tcp_sport[0x10];
375 u8 tcp_dport[0x10];
376
Matan Barakb4ff3a32016-02-09 14:57:42 +0200377 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300378
379 u8 udp_sport[0x10];
380 u8 udp_dport[0x10];
381
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200382 union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits src_ipv4_src_ipv6;
Saeed Mahameede2816822015-05-28 22:28:40 +0300383
Maor Gottliebb4d1f032016-01-11 10:26:05 +0200384 union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits dst_ipv4_dst_ipv6;
Saeed Mahameede2816822015-05-28 22:28:40 +0300385};
386
387struct mlx5_ifc_fte_match_set_misc_bits {
Saeed Mahameed74862162016-06-09 15:11:34 +0300388 u8 reserved_at_0[0x8];
389 u8 source_sqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +0300390
Matan Barakb4ff3a32016-02-09 14:57:42 +0200391 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300392 u8 source_port[0x10];
393
394 u8 outer_second_prio[0x3];
395 u8 outer_second_cfi[0x1];
396 u8 outer_second_vid[0xc];
397 u8 inner_second_prio[0x3];
398 u8 inner_second_cfi[0x1];
399 u8 inner_second_vid[0xc];
400
Mohamad Haj Yahia10543362016-10-09 16:25:43 +0300401 u8 outer_second_cvlan_tag[0x1];
402 u8 inner_second_cvlan_tag[0x1];
403 u8 outer_second_svlan_tag[0x1];
404 u8 inner_second_svlan_tag[0x1];
405 u8 reserved_at_64[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300406 u8 gre_protocol[0x10];
407
408 u8 gre_key_h[0x18];
409 u8 gre_key_l[0x8];
410
411 u8 vxlan_vni[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200412 u8 reserved_at_b8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300413
Matan Barakb4ff3a32016-02-09 14:57:42 +0200414 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300415
Matan Barakb4ff3a32016-02-09 14:57:42 +0200416 u8 reserved_at_e0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300417 u8 outer_ipv6_flow_label[0x14];
418
Matan Barakb4ff3a32016-02-09 14:57:42 +0200419 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300420 u8 inner_ipv6_flow_label[0x14];
421
Matan Barakb4ff3a32016-02-09 14:57:42 +0200422 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +0300423};
424
425struct mlx5_ifc_cmd_pas_bits {
426 u8 pa_h[0x20];
427
428 u8 pa_l[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200429 u8 reserved_at_34[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300430};
431
432struct mlx5_ifc_uint64_bits {
433 u8 hi[0x20];
434
435 u8 lo[0x20];
436};
437
438enum {
439 MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0,
440 MLX5_ADS_STAT_RATE_2_5GBPS = 0x7,
441 MLX5_ADS_STAT_RATE_10GBPS = 0x8,
442 MLX5_ADS_STAT_RATE_30GBPS = 0x9,
443 MLX5_ADS_STAT_RATE_5GBPS = 0xa,
444 MLX5_ADS_STAT_RATE_20GBPS = 0xb,
445 MLX5_ADS_STAT_RATE_40GBPS = 0xc,
446 MLX5_ADS_STAT_RATE_60GBPS = 0xd,
447 MLX5_ADS_STAT_RATE_80GBPS = 0xe,
448 MLX5_ADS_STAT_RATE_120GBPS = 0xf,
449};
450
451struct mlx5_ifc_ads_bits {
452 u8 fl[0x1];
453 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200454 u8 reserved_at_2[0xe];
Saeed Mahameede2816822015-05-28 22:28:40 +0300455 u8 pkey_index[0x10];
456
Matan Barakb4ff3a32016-02-09 14:57:42 +0200457 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300458 u8 grh[0x1];
459 u8 mlid[0x7];
460 u8 rlid[0x10];
461
462 u8 ack_timeout[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200463 u8 reserved_at_45[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300464 u8 src_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200465 u8 reserved_at_50[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300466 u8 stat_rate[0x4];
467 u8 hop_limit[0x8];
468
Matan Barakb4ff3a32016-02-09 14:57:42 +0200469 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300470 u8 tclass[0x8];
471 u8 flow_label[0x14];
472
473 u8 rgid_rip[16][0x8];
474
Matan Barakb4ff3a32016-02-09 14:57:42 +0200475 u8 reserved_at_100[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +0300476 u8 f_dscp[0x1];
477 u8 f_ecn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200478 u8 reserved_at_106[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300479 u8 f_eth_prio[0x1];
480 u8 ecn[0x2];
481 u8 dscp[0x6];
482 u8 udp_sport[0x10];
483
484 u8 dei_cfi[0x1];
485 u8 eth_prio[0x3];
486 u8 sl[0x4];
487 u8 port[0x8];
488 u8 rmac_47_32[0x10];
489
490 u8 rmac_31_0[0x20];
491};
492
493struct mlx5_ifc_flow_table_nic_cap_bits {
Maor Gottliebb3638e12016-03-07 18:51:46 +0200494 u8 nic_rx_multi_path_tirs[0x1];
Maor Gottliebcea824d2016-05-31 14:09:09 +0300495 u8 nic_rx_multi_path_tirs_fts[0x1];
496 u8 allow_sniffer_and_nic_rx_shared_tir[0x1];
497 u8 reserved_at_3[0x1fd];
Saeed Mahameede2816822015-05-28 22:28:40 +0300498
499 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;
500
Matan Barakb4ff3a32016-02-09 14:57:42 +0200501 u8 reserved_at_400[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300502
503 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;
504
505 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit;
506
Matan Barakb4ff3a32016-02-09 14:57:42 +0200507 u8 reserved_at_a00[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300508
509 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer;
510
Matan Barakb4ff3a32016-02-09 14:57:42 +0200511 u8 reserved_at_e00[0x7200];
Saeed Mahameede2816822015-05-28 22:28:40 +0300512};
513
Saeed Mahameed495716b2015-12-01 18:03:19 +0200514struct mlx5_ifc_flow_table_eswitch_cap_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200515 u8 reserved_at_0[0x200];
Saeed Mahameed495716b2015-12-01 18:03:19 +0200516
517 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb;
518
519 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress;
520
521 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress;
522
Matan Barakb4ff3a32016-02-09 14:57:42 +0200523 u8 reserved_at_800[0x7800];
Saeed Mahameed495716b2015-12-01 18:03:19 +0200524};
525
Saeed Mahameedd6666752015-12-01 18:03:22 +0200526struct mlx5_ifc_e_switch_cap_bits {
527 u8 vport_svlan_strip[0x1];
528 u8 vport_cvlan_strip[0x1];
529 u8 vport_svlan_insert[0x1];
530 u8 vport_cvlan_insert_if_not_exist[0x1];
531 u8 vport_cvlan_insert_overwrite[0x1];
Noa Osherovich23898c72016-06-10 00:07:37 +0300532 u8 reserved_at_5[0x19];
533 u8 nic_vport_node_guid_modify[0x1];
534 u8 nic_vport_port_guid_modify[0x1];
Saeed Mahameedd6666752015-12-01 18:03:22 +0200535
Hadar Hen Zion7adbde22016-08-03 15:08:33 +0300536 u8 vxlan_encap_decap[0x1];
537 u8 nvgre_encap_decap[0x1];
538 u8 reserved_at_22[0x9];
539 u8 log_max_encap_headers[0x5];
540 u8 reserved_2b[0x6];
541 u8 max_encap_header_size[0xa];
542
543 u8 reserved_40[0x7c0];
544
Saeed Mahameedd6666752015-12-01 18:03:22 +0200545};
546
Saeed Mahameed74862162016-06-09 15:11:34 +0300547struct mlx5_ifc_qos_cap_bits {
548 u8 packet_pacing[0x1];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300549 u8 esw_scheduling[0x1];
550 u8 reserved_at_2[0x1e];
551
552 u8 reserved_at_20[0x20];
553
Saeed Mahameed74862162016-06-09 15:11:34 +0300554 u8 packet_pacing_max_rate[0x20];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300555
Saeed Mahameed74862162016-06-09 15:11:34 +0300556 u8 packet_pacing_min_rate[0x20];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300557
558 u8 reserved_at_80[0x10];
Saeed Mahameed74862162016-06-09 15:11:34 +0300559 u8 packet_pacing_rate_table_size[0x10];
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +0300560
561 u8 esw_element_type[0x10];
562 u8 esw_tsar_type[0x10];
563
564 u8 reserved_at_c0[0x10];
565 u8 max_qos_para_vport[0x10];
566
567 u8 max_tsar_bw_share[0x20];
568
569 u8 reserved_at_100[0x700];
Saeed Mahameed74862162016-06-09 15:11:34 +0300570};
571
Saeed Mahameede2816822015-05-28 22:28:40 +0300572struct mlx5_ifc_per_protocol_networking_offload_caps_bits {
573 u8 csum_cap[0x1];
574 u8 vlan_cap[0x1];
575 u8 lro_cap[0x1];
576 u8 lro_psh_flag[0x1];
577 u8 lro_time_stamp[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200578 u8 reserved_at_5[0x3];
Tariq Toukan66189962015-11-12 19:35:26 +0200579 u8 self_lb_en_modifiable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200580 u8 reserved_at_9[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300581 u8 max_lso_cap[0x5];
Leon Romanovskyc226dc22016-10-31 12:15:20 +0200582 u8 multi_pkt_send_wqe[0x2];
Hadar Hen Zioncff92d72016-07-24 16:12:40 +0300583 u8 wqe_inline_mode[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300584 u8 rss_ind_tbl_cap[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300585 u8 reg_umr_sq[0x1];
586 u8 scatter_fcs[0x1];
587 u8 reserved_at_1a[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300588 u8 tunnel_lso_const_out_ip_id[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200589 u8 reserved_at_1c[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300590 u8 tunnel_statless_gre[0x1];
591 u8 tunnel_stateless_vxlan[0x1];
592
Matan Barakb4ff3a32016-02-09 14:57:42 +0200593 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300594
Matan Barakb4ff3a32016-02-09 14:57:42 +0200595 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300596 u8 lro_min_mss_size[0x10];
597
Matan Barakb4ff3a32016-02-09 14:57:42 +0200598 u8 reserved_at_60[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +0300599
600 u8 lro_timer_supported_periods[4][0x20];
601
Matan Barakb4ff3a32016-02-09 14:57:42 +0200602 u8 reserved_at_200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +0300603};
604
605struct mlx5_ifc_roce_cap_bits {
606 u8 roce_apm[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200607 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +0300608
Matan Barakb4ff3a32016-02-09 14:57:42 +0200609 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +0300610
Matan Barakb4ff3a32016-02-09 14:57:42 +0200611 u8 reserved_at_80[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300612 u8 l3_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200613 u8 reserved_at_90[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +0300614 u8 roce_version[0x8];
615
Matan Barakb4ff3a32016-02-09 14:57:42 +0200616 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300617 u8 r_roce_dest_udp_port[0x10];
618
619 u8 r_roce_max_src_udp_port[0x10];
620 u8 r_roce_min_src_udp_port[0x10];
621
Matan Barakb4ff3a32016-02-09 14:57:42 +0200622 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300623 u8 roce_address_table_size[0x10];
624
Matan Barakb4ff3a32016-02-09 14:57:42 +0200625 u8 reserved_at_100[0x700];
Saeed Mahameede2816822015-05-28 22:28:40 +0300626};
627
628enum {
629 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0,
630 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2,
631 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4,
632 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8,
633 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10,
634 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20,
635 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40,
636 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80,
637 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100,
638};
639
640enum {
641 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1,
642 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2,
643 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4,
644 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8,
645 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10,
646 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20,
647 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40,
648 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80,
649 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100,
650};
651
652struct mlx5_ifc_atomic_caps_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200653 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300654
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200655 u8 atomic_req_8B_endianess_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200656 u8 reserved_at_42[0x4];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200657 u8 supported_atomic_req_8B_endianess_mode_1[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300658
Matan Barakb4ff3a32016-02-09 14:57:42 +0200659 u8 reserved_at_47[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +0300660
Matan Barakb4ff3a32016-02-09 14:57:42 +0200661 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300662
Matan Barakb4ff3a32016-02-09 14:57:42 +0200663 u8 reserved_at_80[0x10];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200664 u8 atomic_operations[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300665
Matan Barakb4ff3a32016-02-09 14:57:42 +0200666 u8 reserved_at_a0[0x10];
Eran Ben Elishaf91e6d82015-12-14 16:34:09 +0200667 u8 atomic_size_qp[0x10];
668
Matan Barakb4ff3a32016-02-09 14:57:42 +0200669 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +0300670 u8 atomic_size_dc[0x10];
671
Matan Barakb4ff3a32016-02-09 14:57:42 +0200672 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +0300673};
674
675struct mlx5_ifc_odp_cap_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200676 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +0300677
678 u8 sig[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200679 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +0300680
Matan Barakb4ff3a32016-02-09 14:57:42 +0200681 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +0300682
683 struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps;
684
685 struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps;
686
687 struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps;
688
Matan Barakb4ff3a32016-02-09 14:57:42 +0200689 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +0300690};
691
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200692struct mlx5_ifc_calc_op {
693 u8 reserved_at_0[0x10];
694 u8 reserved_at_10[0x9];
695 u8 op_swap_endianness[0x1];
696 u8 op_min[0x1];
697 u8 op_xor[0x1];
698 u8 op_or[0x1];
699 u8 op_and[0x1];
700 u8 op_max[0x1];
701 u8 op_add[0x1];
702};
703
704struct mlx5_ifc_vector_calc_cap_bits {
705 u8 calc_matrix[0x1];
706 u8 reserved_at_1[0x1f];
707 u8 reserved_at_20[0x8];
708 u8 max_vec_count[0x8];
709 u8 reserved_at_30[0xd];
710 u8 max_chunk_size[0x3];
711 struct mlx5_ifc_calc_op calc0;
712 struct mlx5_ifc_calc_op calc1;
713 struct mlx5_ifc_calc_op calc2;
714 struct mlx5_ifc_calc_op calc3;
715
716 u8 reserved_at_e0[0x720];
717};
718
Saeed Mahameede2816822015-05-28 22:28:40 +0300719enum {
720 MLX5_WQ_TYPE_LINKED_LIST = 0x0,
721 MLX5_WQ_TYPE_CYCLIC = 0x1,
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300722 MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +0300723};
724
725enum {
726 MLX5_WQ_END_PAD_MODE_NONE = 0x0,
727 MLX5_WQ_END_PAD_MODE_ALIGN = 0x1,
728};
729
730enum {
731 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0,
732 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1,
733 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2,
734 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3,
735 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4,
736};
737
738enum {
739 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0,
740 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1,
741 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2,
742 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3,
743 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4,
744 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5,
745};
746
747enum {
748 MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0,
749 MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1,
750};
751
752enum {
753 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0,
754 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1,
755 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3,
756};
757
758enum {
759 MLX5_CAP_PORT_TYPE_IB = 0x0,
760 MLX5_CAP_PORT_TYPE_ETH = 0x1,
Eli Cohend29b7962014-10-02 12:19:43 +0300761};
762
Eli Cohenb7755162014-10-02 12:19:44 +0300763struct mlx5_ifc_cmd_hca_cap_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +0200764 u8 reserved_at_0[0x80];
Eli Cohenb7755162014-10-02 12:19:44 +0300765
766 u8 log_max_srq_sz[0x8];
767 u8 log_max_qp_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200768 u8 reserved_at_90[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300769 u8 log_max_qp[0x5];
770
Matan Barakb4ff3a32016-02-09 14:57:42 +0200771 u8 reserved_at_a0[0xb];
Saeed Mahameede2816822015-05-28 22:28:40 +0300772 u8 log_max_srq[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200773 u8 reserved_at_b0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300774
Matan Barakb4ff3a32016-02-09 14:57:42 +0200775 u8 reserved_at_c0[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300776 u8 log_max_cq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200777 u8 reserved_at_d0[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300778 u8 log_max_cq[0x5];
779
780 u8 log_max_eq_sz[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200781 u8 reserved_at_e8[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300782 u8 log_max_mkey[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200783 u8 reserved_at_f0[0xc];
Eli Cohenb7755162014-10-02 12:19:44 +0300784 u8 log_max_eq[0x4];
785
786 u8 max_indirection[0x8];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +0200787 u8 fixed_buffer_size[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300788 u8 log_max_mrw_sz[0x7];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200789 u8 reserved_at_110[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300790 u8 log_max_bsf_list_size[0x6];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +0200791 u8 umr_extended_translation_offset[0x1];
792 u8 null_mkey[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300793 u8 log_max_klm_list_size[0x6];
794
Matan Barakb4ff3a32016-02-09 14:57:42 +0200795 u8 reserved_at_120[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300796 u8 log_max_ra_req_dc[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200797 u8 reserved_at_130[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300798 u8 log_max_ra_res_dc[0x6];
799
Matan Barakb4ff3a32016-02-09 14:57:42 +0200800 u8 reserved_at_140[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300801 u8 log_max_ra_req_qp[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200802 u8 reserved_at_150[0xa];
Eli Cohenb7755162014-10-02 12:19:44 +0300803 u8 log_max_ra_res_qp[0x6];
804
805 u8 pad_cap[0x1];
806 u8 cc_query_allowed[0x1];
807 u8 cc_modify_allowed[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200808 u8 reserved_at_163[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +0300809 u8 gid_table_size[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300810
Saeed Mahameede2816822015-05-28 22:28:40 +0300811 u8 out_of_seq_cnt[0x1];
812 u8 vport_counters[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +0300813 u8 retransmission_q_counters[0x1];
Alex Vesker83b502a2016-08-04 17:32:02 +0300814 u8 reserved_at_183[0x1];
815 u8 modify_rq_counter_set_id[0x1];
816 u8 reserved_at_185[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300817 u8 max_qp_cnt[0xa];
818 u8 pkey_table_size[0x10];
819
Saeed Mahameede2816822015-05-28 22:28:40 +0300820 u8 vport_group_manager[0x1];
821 u8 vhca_group_manager[0x1];
822 u8 ib_virt[0x1];
823 u8 eth_virt[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +0200824 u8 reserved_at_1a4[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300825 u8 ets[0x1];
826 u8 nic_flow_table[0x1];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200827 u8 eswitch_flow_table[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300828 u8 early_vf_enable[0x1];
Gal Pressmancfdcbcea2016-12-08 15:52:00 +0200829 u8 mcam_reg[0x1];
830 u8 pcam_reg[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300831 u8 local_ca_ack_delay[0x5];
Huy Nguyen4ce3bf22016-11-17 13:45:56 +0200832 u8 port_module_event[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +0200833 u8 reserved_at_1b1[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300834 u8 ports_check[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +0200835 u8 reserved_at_1b3[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300836 u8 disable_link_up[0x1];
837 u8 beacon_led[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300838 u8 port_type[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300839 u8 num_ports[0x8];
840
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +0300841 u8 reserved_at_1c0[0x1];
842 u8 pps[0x1];
843 u8 pps_modify[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300844 u8 log_max_msg[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300845 u8 reserved_at_1c8[0x4];
Saeed Mahameed4f3961e2016-02-22 18:17:25 +0200846 u8 max_tc[0x4];
Saeed Mahameed74862162016-06-09 15:11:34 +0300847 u8 reserved_at_1d0[0x1];
848 u8 dcbx[0x1];
849 u8 reserved_at_1d2[0x4];
Tariq Toukan928cfe82016-02-22 18:17:29 +0200850 u8 rol_s[0x1];
851 u8 rol_g[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300852 u8 reserved_at_1d8[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +0200853 u8 wol_s[0x1];
854 u8 wol_g[0x1];
855 u8 wol_a[0x1];
856 u8 wol_b[0x1];
857 u8 wol_m[0x1];
858 u8 wol_u[0x1];
859 u8 wol_p[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300860
861 u8 stat_rate_support[0x10];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300862 u8 reserved_at_1f0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300863 u8 cqe_version[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300864
Saeed Mahameede2816822015-05-28 22:28:40 +0300865 u8 compact_address_vector[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300866 u8 striding_rq[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +0200867 u8 reserved_at_202[0x2];
Erez Shitrit1015c2e2016-02-21 16:27:16 +0200868 u8 ipoib_basic_offloads[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300869 u8 reserved_at_205[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +0300870 u8 drain_sigerr[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300871 u8 cmdif_checksum[0x2];
872 u8 sigerr_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300873 u8 reserved_at_213[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300874 u8 wq_signature[0x1];
875 u8 sctr_data_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300876 u8 reserved_at_216[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300877 u8 sho[0x1];
878 u8 tph[0x1];
879 u8 rf[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300880 u8 dct[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +0300881 u8 qos[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300882 u8 eth_net_offloads[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300883 u8 roce[0x1];
884 u8 atomic[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300885 u8 reserved_at_21f[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300886
887 u8 cq_oi[0x1];
888 u8 cq_resize[0x1];
889 u8 cq_moderation[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300890 u8 reserved_at_223[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300891 u8 cq_eq_remap[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300892 u8 pg[0x1];
893 u8 block_lb_mc[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300894 u8 reserved_at_229[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300895 u8 scqe_break_moderation[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300896 u8 cq_period_start_from_cqe[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300897 u8 cd[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300898 u8 reserved_at_22d[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300899 u8 apm[0x1];
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200900 u8 vector_calc[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300901 u8 umr_ptr_rlky[0x1];
Matan Barakd2370e02016-02-29 18:05:30 +0200902 u8 imaicl[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300903 u8 reserved_at_232[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300904 u8 qkv[0x1];
905 u8 pkv[0x1];
Haggai Eranb11a4f92016-02-29 15:45:03 +0200906 u8 set_deth_sqpn[0x1];
907 u8 reserved_at_239[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300908 u8 xrc[0x1];
909 u8 ud[0x1];
910 u8 uc[0x1];
911 u8 rc[0x1];
912
Eli Cohena6d51b62017-01-03 23:55:23 +0200913 u8 uar_4k[0x1];
914 u8 reserved_at_241[0x9];
Eli Cohenb7755162014-10-02 12:19:44 +0300915 u8 uar_sz[0x6];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300916 u8 reserved_at_250[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300917 u8 log_pg_sz[0x8];
918
919 u8 bf[0x1];
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +0200920 u8 driver_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300921 u8 pad_tx_eth_packet[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300922 u8 reserved_at_263[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300923 u8 log_bf_reg_size[0x5];
Aviv Heller84df61e2016-05-10 13:47:50 +0300924
925 u8 reserved_at_270[0xb];
926 u8 lag_master[0x1];
927 u8 num_lag_ports[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300928
Tariq Toukane1c9c622016-04-11 23:10:21 +0300929 u8 reserved_at_280[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300930 u8 max_wqe_sz_sq[0x10];
931
Tariq Toukane1c9c622016-04-11 23:10:21 +0300932 u8 reserved_at_2a0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300933 u8 max_wqe_sz_rq[0x10];
934
Tariq Toukane1c9c622016-04-11 23:10:21 +0300935 u8 reserved_at_2c0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300936 u8 max_wqe_sz_sq_dc[0x10];
937
Tariq Toukane1c9c622016-04-11 23:10:21 +0300938 u8 reserved_at_2e0[0x7];
Eli Cohenb7755162014-10-02 12:19:44 +0300939 u8 max_qp_mcg[0x19];
940
Tariq Toukane1c9c622016-04-11 23:10:21 +0300941 u8 reserved_at_300[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +0300942 u8 log_max_mcg[0x8];
943
Tariq Toukane1c9c622016-04-11 23:10:21 +0300944 u8 reserved_at_320[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300945 u8 log_max_transport_domain[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300946 u8 reserved_at_328[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300947 u8 log_max_pd[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300948 u8 reserved_at_330[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300949 u8 log_max_xrcd[0x5];
950
Amir Vadaia351a1b02016-07-14 10:32:38 +0300951 u8 reserved_at_340[0x8];
952 u8 log_max_flow_counter_bulk[0x8];
953 u8 max_flow_counter[0x10];
954
Eli Cohenb7755162014-10-02 12:19:44 +0300955
Tariq Toukane1c9c622016-04-11 23:10:21 +0300956 u8 reserved_at_360[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300957 u8 log_max_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300958 u8 reserved_at_368[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300959 u8 log_max_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300960 u8 reserved_at_370[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300961 u8 log_max_tir[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300962 u8 reserved_at_378[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300963 u8 log_max_tis[0x5];
964
Saeed Mahameede2816822015-05-28 22:28:40 +0300965 u8 basic_cyclic_rcv_wqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300966 u8 reserved_at_381[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300967 u8 log_max_rmp[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300968 u8 reserved_at_388[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300969 u8 log_max_rqt[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300970 u8 reserved_at_390[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300971 u8 log_max_rqt_size[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300972 u8 reserved_at_398[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300973 u8 log_max_tis_per_sq[0x5];
974
Tariq Toukane1c9c622016-04-11 23:10:21 +0300975 u8 reserved_at_3a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300976 u8 log_max_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300977 u8 reserved_at_3a8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300978 u8 log_min_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300979 u8 reserved_at_3b0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300980 u8 log_max_stride_sz_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300981 u8 reserved_at_3b8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300982 u8 log_min_stride_sz_sq[0x5];
Eli Cohenb7755162014-10-02 12:19:44 +0300983
Tariq Toukane1c9c622016-04-11 23:10:21 +0300984 u8 reserved_at_3c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +0300985 u8 log_max_wq_sz[0x5];
986
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200987 u8 nic_vport_change_event[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300988 u8 reserved_at_3e1[0xa];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200989 u8 log_max_vlan_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300990 u8 reserved_at_3f0[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200991 u8 log_max_current_mc_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300992 u8 reserved_at_3f8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200993 u8 log_max_current_uc_list[0x5];
994
Tariq Toukane1c9c622016-04-11 23:10:21 +0300995 u8 reserved_at_400[0x80];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200996
Tariq Toukane1c9c622016-04-11 23:10:21 +0300997 u8 reserved_at_480[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300998 u8 log_max_l2_table[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300999 u8 reserved_at_488[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +03001000 u8 log_uar_page_sz[0x10];
1001
Tariq Toukane1c9c622016-04-11 23:10:21 +03001002 u8 reserved_at_4a0[0x20];
Linus Torvalds048ccca2016-01-23 18:45:06 -08001003 u8 device_frequency_mhz[0x20];
Eran Ben Elishab0844442015-12-29 14:58:30 +02001004 u8 device_frequency_khz[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001005
Eli Cohena6d51b62017-01-03 23:55:23 +02001006 u8 reserved_at_500[0x20];
1007 u8 num_of_uars_per_page[0x20];
1008 u8 reserved_at_540[0x40];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001009
1010 u8 reserved_at_580[0x3f];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001011 u8 cqe_compression[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001012
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001013 u8 cqe_compression_timeout[0x10];
1014 u8 cqe_compression_max_num[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001015
Saeed Mahameed74862162016-06-09 15:11:34 +03001016 u8 reserved_at_5e0[0x10];
1017 u8 tag_matching[0x1];
1018 u8 rndv_offload_rc[0x1];
1019 u8 rndv_offload_dc[0x1];
1020 u8 log_tag_matching_list_sz[0x5];
Max Gurtovoy7b135582017-01-02 11:37:38 +02001021 u8 reserved_at_5f8[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03001022 u8 log_max_xrq[0x5];
1023
Max Gurtovoy7b135582017-01-02 11:37:38 +02001024 u8 reserved_at_600[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +03001025};
1026
Saeed Mahameed81848732015-12-01 18:03:20 +02001027enum mlx5_flow_destination_type {
1028 MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0,
1029 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1,
1030 MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2,
Amir Vadaibd5251db2016-05-13 12:55:40 +00001031
1032 MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100,
Saeed Mahameede2816822015-05-28 22:28:40 +03001033};
1034
1035struct mlx5_ifc_dest_format_struct_bits {
1036 u8 destination_type[0x8];
1037 u8 destination_id[0x18];
1038
Matan Barakb4ff3a32016-02-09 14:57:42 +02001039 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001040};
1041
Amir Vadai9dc0b282016-05-13 12:55:39 +00001042struct mlx5_ifc_flow_counter_list_bits {
Amir Vadaia351a1b02016-07-14 10:32:38 +03001043 u8 clear[0x1];
1044 u8 num_of_counters[0xf];
Amir Vadai9dc0b282016-05-13 12:55:39 +00001045 u8 flow_counter_id[0x10];
1046
1047 u8 reserved_at_20[0x20];
1048};
1049
1050union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits {
1051 struct mlx5_ifc_dest_format_struct_bits dest_format_struct;
1052 struct mlx5_ifc_flow_counter_list_bits flow_counter_list;
1053 u8 reserved_at_0[0x40];
1054};
1055
Saeed Mahameede2816822015-05-28 22:28:40 +03001056struct mlx5_ifc_fte_match_param_bits {
1057 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
1058
1059 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
1060
1061 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
1062
Matan Barakb4ff3a32016-02-09 14:57:42 +02001063 u8 reserved_at_600[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +03001064};
1065
1066enum {
1067 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
1068 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
1069 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
1070 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
1071 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
1072};
1073
1074struct mlx5_ifc_rx_hash_field_select_bits {
1075 u8 l3_prot_type[0x1];
1076 u8 l4_prot_type[0x1];
1077 u8 selected_fields[0x1e];
1078};
1079
1080enum {
1081 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
1082 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
1083};
1084
1085enum {
1086 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
1087 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
1088};
1089
1090struct mlx5_ifc_wq_bits {
1091 u8 wq_type[0x4];
1092 u8 wq_signature[0x1];
1093 u8 end_padding_mode[0x2];
1094 u8 cd_slave[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001095 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001096
1097 u8 hds_skip_first_sge[0x1];
1098 u8 log2_hds_buf_size[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001099 u8 reserved_at_24[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03001100 u8 page_offset[0x5];
1101 u8 lwm[0x10];
1102
Matan Barakb4ff3a32016-02-09 14:57:42 +02001103 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001104 u8 pd[0x18];
1105
Matan Barakb4ff3a32016-02-09 14:57:42 +02001106 u8 reserved_at_60[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001107 u8 uar_page[0x18];
1108
1109 u8 dbr_addr[0x40];
1110
1111 u8 hw_counter[0x20];
1112
1113 u8 sw_counter[0x20];
1114
Matan Barakb4ff3a32016-02-09 14:57:42 +02001115 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001116 u8 log_wq_stride[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001117 u8 reserved_at_110[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001118 u8 log_wq_pg_sz[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001119 u8 reserved_at_118[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001120 u8 log_wq_sz[0x5];
1121
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001122 u8 reserved_at_120[0x15];
1123 u8 log_wqe_num_of_strides[0x3];
1124 u8 two_byte_shift_en[0x1];
1125 u8 reserved_at_139[0x4];
1126 u8 log_wqe_stride_size[0x3];
1127
1128 u8 reserved_at_140[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001129
1130 struct mlx5_ifc_cmd_pas_bits pas[0];
1131};
1132
1133struct mlx5_ifc_rq_num_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001134 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001135 u8 rq_num[0x18];
1136};
1137
1138struct mlx5_ifc_mac_address_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001139 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001140 u8 mac_addr_47_32[0x10];
1141
1142 u8 mac_addr_31_0[0x20];
1143};
1144
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001145struct mlx5_ifc_vlan_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001146 u8 reserved_at_0[0x14];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001147 u8 vlan[0x0c];
1148
Matan Barakb4ff3a32016-02-09 14:57:42 +02001149 u8 reserved_at_20[0x20];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001150};
1151
Saeed Mahameede2816822015-05-28 22:28:40 +03001152struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001153 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001154
1155 u8 min_time_between_cnps[0x20];
1156
Matan Barakb4ff3a32016-02-09 14:57:42 +02001157 u8 reserved_at_c0[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03001158 u8 cnp_dscp[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001159 u8 reserved_at_d8[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001160 u8 cnp_802p_prio[0x3];
1161
Matan Barakb4ff3a32016-02-09 14:57:42 +02001162 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +03001163};
1164
1165struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001166 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001167
Matan Barakb4ff3a32016-02-09 14:57:42 +02001168 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001169 u8 clamp_tgt_rate[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001170 u8 reserved_at_65[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001171 u8 clamp_tgt_rate_after_time_inc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001172 u8 reserved_at_69[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03001173
Matan Barakb4ff3a32016-02-09 14:57:42 +02001174 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001175
1176 u8 rpg_time_reset[0x20];
1177
1178 u8 rpg_byte_reset[0x20];
1179
1180 u8 rpg_threshold[0x20];
1181
1182 u8 rpg_max_rate[0x20];
1183
1184 u8 rpg_ai_rate[0x20];
1185
1186 u8 rpg_hai_rate[0x20];
1187
1188 u8 rpg_gd[0x20];
1189
1190 u8 rpg_min_dec_fac[0x20];
1191
1192 u8 rpg_min_rate[0x20];
1193
Matan Barakb4ff3a32016-02-09 14:57:42 +02001194 u8 reserved_at_1c0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001195
1196 u8 rate_to_set_on_first_cnp[0x20];
1197
1198 u8 dce_tcp_g[0x20];
1199
1200 u8 dce_tcp_rtt[0x20];
1201
1202 u8 rate_reduce_monitor_period[0x20];
1203
Matan Barakb4ff3a32016-02-09 14:57:42 +02001204 u8 reserved_at_320[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001205
1206 u8 initial_alpha_value[0x20];
1207
Matan Barakb4ff3a32016-02-09 14:57:42 +02001208 u8 reserved_at_360[0x4a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001209};
1210
1211struct mlx5_ifc_cong_control_802_1qau_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001212 u8 reserved_at_0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001213
1214 u8 rppp_max_rps[0x20];
1215
1216 u8 rpg_time_reset[0x20];
1217
1218 u8 rpg_byte_reset[0x20];
1219
1220 u8 rpg_threshold[0x20];
1221
1222 u8 rpg_max_rate[0x20];
1223
1224 u8 rpg_ai_rate[0x20];
1225
1226 u8 rpg_hai_rate[0x20];
1227
1228 u8 rpg_gd[0x20];
1229
1230 u8 rpg_min_dec_fac[0x20];
1231
1232 u8 rpg_min_rate[0x20];
1233
Matan Barakb4ff3a32016-02-09 14:57:42 +02001234 u8 reserved_at_1c0[0x640];
Saeed Mahameede2816822015-05-28 22:28:40 +03001235};
1236
1237enum {
1238 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1239 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1240 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1241};
1242
1243struct mlx5_ifc_resize_field_select_bits {
1244 u8 resize_field_select[0x20];
1245};
1246
1247enum {
1248 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1249 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1250 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1251 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1252};
1253
1254struct mlx5_ifc_modify_field_select_bits {
1255 u8 modify_field_select[0x20];
1256};
1257
1258struct mlx5_ifc_field_select_r_roce_np_bits {
1259 u8 field_select_r_roce_np[0x20];
1260};
1261
1262struct mlx5_ifc_field_select_r_roce_rp_bits {
1263 u8 field_select_r_roce_rp[0x20];
1264};
1265
1266enum {
1267 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1268 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1269 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1270 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1271 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1272 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1273 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1274 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1275 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1276 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1277};
1278
1279struct mlx5_ifc_field_select_802_1qau_rp_bits {
1280 u8 field_select_8021qaurp[0x20];
1281};
1282
1283struct mlx5_ifc_phys_layer_cntrs_bits {
1284 u8 time_since_last_clear_high[0x20];
1285
1286 u8 time_since_last_clear_low[0x20];
1287
1288 u8 symbol_errors_high[0x20];
1289
1290 u8 symbol_errors_low[0x20];
1291
1292 u8 sync_headers_errors_high[0x20];
1293
1294 u8 sync_headers_errors_low[0x20];
1295
1296 u8 edpl_bip_errors_lane0_high[0x20];
1297
1298 u8 edpl_bip_errors_lane0_low[0x20];
1299
1300 u8 edpl_bip_errors_lane1_high[0x20];
1301
1302 u8 edpl_bip_errors_lane1_low[0x20];
1303
1304 u8 edpl_bip_errors_lane2_high[0x20];
1305
1306 u8 edpl_bip_errors_lane2_low[0x20];
1307
1308 u8 edpl_bip_errors_lane3_high[0x20];
1309
1310 u8 edpl_bip_errors_lane3_low[0x20];
1311
1312 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1313
1314 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1315
1316 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1317
1318 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1319
1320 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1321
1322 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1323
1324 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1325
1326 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1327
1328 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1329
1330 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1331
1332 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1333
1334 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1335
1336 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1337
1338 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1339
1340 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1341
1342 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1343
1344 u8 rs_fec_corrected_blocks_high[0x20];
1345
1346 u8 rs_fec_corrected_blocks_low[0x20];
1347
1348 u8 rs_fec_uncorrectable_blocks_high[0x20];
1349
1350 u8 rs_fec_uncorrectable_blocks_low[0x20];
1351
1352 u8 rs_fec_no_errors_blocks_high[0x20];
1353
1354 u8 rs_fec_no_errors_blocks_low[0x20];
1355
1356 u8 rs_fec_single_error_blocks_high[0x20];
1357
1358 u8 rs_fec_single_error_blocks_low[0x20];
1359
1360 u8 rs_fec_corrected_symbols_total_high[0x20];
1361
1362 u8 rs_fec_corrected_symbols_total_low[0x20];
1363
1364 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1365
1366 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1367
1368 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1369
1370 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1371
1372 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1373
1374 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1375
1376 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1377
1378 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1379
1380 u8 link_down_events[0x20];
1381
1382 u8 successful_recovery_events[0x20];
1383
Matan Barakb4ff3a32016-02-09 14:57:42 +02001384 u8 reserved_at_640[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03001385};
1386
Gal Pressmand8dc0502016-09-27 17:04:51 +03001387struct mlx5_ifc_phys_layer_statistical_cntrs_bits {
1388 u8 time_since_last_clear_high[0x20];
1389
1390 u8 time_since_last_clear_low[0x20];
1391
1392 u8 phy_received_bits_high[0x20];
1393
1394 u8 phy_received_bits_low[0x20];
1395
1396 u8 phy_symbol_errors_high[0x20];
1397
1398 u8 phy_symbol_errors_low[0x20];
1399
1400 u8 phy_corrected_bits_high[0x20];
1401
1402 u8 phy_corrected_bits_low[0x20];
1403
1404 u8 phy_corrected_bits_lane0_high[0x20];
1405
1406 u8 phy_corrected_bits_lane0_low[0x20];
1407
1408 u8 phy_corrected_bits_lane1_high[0x20];
1409
1410 u8 phy_corrected_bits_lane1_low[0x20];
1411
1412 u8 phy_corrected_bits_lane2_high[0x20];
1413
1414 u8 phy_corrected_bits_lane2_low[0x20];
1415
1416 u8 phy_corrected_bits_lane3_high[0x20];
1417
1418 u8 phy_corrected_bits_lane3_low[0x20];
1419
1420 u8 reserved_at_200[0x5c0];
1421};
1422
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001423struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits {
1424 u8 symbol_error_counter[0x10];
1425
1426 u8 link_error_recovery_counter[0x8];
1427
1428 u8 link_downed_counter[0x8];
1429
1430 u8 port_rcv_errors[0x10];
1431
1432 u8 port_rcv_remote_physical_errors[0x10];
1433
1434 u8 port_rcv_switch_relay_errors[0x10];
1435
1436 u8 port_xmit_discards[0x10];
1437
1438 u8 port_xmit_constraint_errors[0x8];
1439
1440 u8 port_rcv_constraint_errors[0x8];
1441
1442 u8 reserved_at_70[0x8];
1443
1444 u8 link_overrun_errors[0x8];
1445
1446 u8 reserved_at_80[0x10];
1447
1448 u8 vl_15_dropped[0x10];
1449
1450 u8 reserved_at_a0[0xa0];
1451};
1452
Saeed Mahameede2816822015-05-28 22:28:40 +03001453struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1454 u8 transmit_queue_high[0x20];
1455
1456 u8 transmit_queue_low[0x20];
1457
Matan Barakb4ff3a32016-02-09 14:57:42 +02001458 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001459};
1460
1461struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1462 u8 rx_octets_high[0x20];
1463
1464 u8 rx_octets_low[0x20];
1465
Matan Barakb4ff3a32016-02-09 14:57:42 +02001466 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001467
1468 u8 rx_frames_high[0x20];
1469
1470 u8 rx_frames_low[0x20];
1471
1472 u8 tx_octets_high[0x20];
1473
1474 u8 tx_octets_low[0x20];
1475
Matan Barakb4ff3a32016-02-09 14:57:42 +02001476 u8 reserved_at_180[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001477
1478 u8 tx_frames_high[0x20];
1479
1480 u8 tx_frames_low[0x20];
1481
1482 u8 rx_pause_high[0x20];
1483
1484 u8 rx_pause_low[0x20];
1485
1486 u8 rx_pause_duration_high[0x20];
1487
1488 u8 rx_pause_duration_low[0x20];
1489
1490 u8 tx_pause_high[0x20];
1491
1492 u8 tx_pause_low[0x20];
1493
1494 u8 tx_pause_duration_high[0x20];
1495
1496 u8 tx_pause_duration_low[0x20];
1497
1498 u8 rx_pause_transition_high[0x20];
1499
1500 u8 rx_pause_transition_low[0x20];
1501
Matan Barakb4ff3a32016-02-09 14:57:42 +02001502 u8 reserved_at_3c0[0x400];
Saeed Mahameede2816822015-05-28 22:28:40 +03001503};
1504
1505struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1506 u8 port_transmit_wait_high[0x20];
1507
1508 u8 port_transmit_wait_low[0x20];
1509
Matan Barakb4ff3a32016-02-09 14:57:42 +02001510 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001511};
1512
1513struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1514 u8 dot3stats_alignment_errors_high[0x20];
1515
1516 u8 dot3stats_alignment_errors_low[0x20];
1517
1518 u8 dot3stats_fcs_errors_high[0x20];
1519
1520 u8 dot3stats_fcs_errors_low[0x20];
1521
1522 u8 dot3stats_single_collision_frames_high[0x20];
1523
1524 u8 dot3stats_single_collision_frames_low[0x20];
1525
1526 u8 dot3stats_multiple_collision_frames_high[0x20];
1527
1528 u8 dot3stats_multiple_collision_frames_low[0x20];
1529
1530 u8 dot3stats_sqe_test_errors_high[0x20];
1531
1532 u8 dot3stats_sqe_test_errors_low[0x20];
1533
1534 u8 dot3stats_deferred_transmissions_high[0x20];
1535
1536 u8 dot3stats_deferred_transmissions_low[0x20];
1537
1538 u8 dot3stats_late_collisions_high[0x20];
1539
1540 u8 dot3stats_late_collisions_low[0x20];
1541
1542 u8 dot3stats_excessive_collisions_high[0x20];
1543
1544 u8 dot3stats_excessive_collisions_low[0x20];
1545
1546 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1547
1548 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1549
1550 u8 dot3stats_carrier_sense_errors_high[0x20];
1551
1552 u8 dot3stats_carrier_sense_errors_low[0x20];
1553
1554 u8 dot3stats_frame_too_longs_high[0x20];
1555
1556 u8 dot3stats_frame_too_longs_low[0x20];
1557
1558 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1559
1560 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1561
1562 u8 dot3stats_symbol_errors_high[0x20];
1563
1564 u8 dot3stats_symbol_errors_low[0x20];
1565
1566 u8 dot3control_in_unknown_opcodes_high[0x20];
1567
1568 u8 dot3control_in_unknown_opcodes_low[0x20];
1569
1570 u8 dot3in_pause_frames_high[0x20];
1571
1572 u8 dot3in_pause_frames_low[0x20];
1573
1574 u8 dot3out_pause_frames_high[0x20];
1575
1576 u8 dot3out_pause_frames_low[0x20];
1577
Matan Barakb4ff3a32016-02-09 14:57:42 +02001578 u8 reserved_at_400[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001579};
1580
1581struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1582 u8 ether_stats_drop_events_high[0x20];
1583
1584 u8 ether_stats_drop_events_low[0x20];
1585
1586 u8 ether_stats_octets_high[0x20];
1587
1588 u8 ether_stats_octets_low[0x20];
1589
1590 u8 ether_stats_pkts_high[0x20];
1591
1592 u8 ether_stats_pkts_low[0x20];
1593
1594 u8 ether_stats_broadcast_pkts_high[0x20];
1595
1596 u8 ether_stats_broadcast_pkts_low[0x20];
1597
1598 u8 ether_stats_multicast_pkts_high[0x20];
1599
1600 u8 ether_stats_multicast_pkts_low[0x20];
1601
1602 u8 ether_stats_crc_align_errors_high[0x20];
1603
1604 u8 ether_stats_crc_align_errors_low[0x20];
1605
1606 u8 ether_stats_undersize_pkts_high[0x20];
1607
1608 u8 ether_stats_undersize_pkts_low[0x20];
1609
1610 u8 ether_stats_oversize_pkts_high[0x20];
1611
1612 u8 ether_stats_oversize_pkts_low[0x20];
1613
1614 u8 ether_stats_fragments_high[0x20];
1615
1616 u8 ether_stats_fragments_low[0x20];
1617
1618 u8 ether_stats_jabbers_high[0x20];
1619
1620 u8 ether_stats_jabbers_low[0x20];
1621
1622 u8 ether_stats_collisions_high[0x20];
1623
1624 u8 ether_stats_collisions_low[0x20];
1625
1626 u8 ether_stats_pkts64octets_high[0x20];
1627
1628 u8 ether_stats_pkts64octets_low[0x20];
1629
1630 u8 ether_stats_pkts65to127octets_high[0x20];
1631
1632 u8 ether_stats_pkts65to127octets_low[0x20];
1633
1634 u8 ether_stats_pkts128to255octets_high[0x20];
1635
1636 u8 ether_stats_pkts128to255octets_low[0x20];
1637
1638 u8 ether_stats_pkts256to511octets_high[0x20];
1639
1640 u8 ether_stats_pkts256to511octets_low[0x20];
1641
1642 u8 ether_stats_pkts512to1023octets_high[0x20];
1643
1644 u8 ether_stats_pkts512to1023octets_low[0x20];
1645
1646 u8 ether_stats_pkts1024to1518octets_high[0x20];
1647
1648 u8 ether_stats_pkts1024to1518octets_low[0x20];
1649
1650 u8 ether_stats_pkts1519to2047octets_high[0x20];
1651
1652 u8 ether_stats_pkts1519to2047octets_low[0x20];
1653
1654 u8 ether_stats_pkts2048to4095octets_high[0x20];
1655
1656 u8 ether_stats_pkts2048to4095octets_low[0x20];
1657
1658 u8 ether_stats_pkts4096to8191octets_high[0x20];
1659
1660 u8 ether_stats_pkts4096to8191octets_low[0x20];
1661
1662 u8 ether_stats_pkts8192to10239octets_high[0x20];
1663
1664 u8 ether_stats_pkts8192to10239octets_low[0x20];
1665
Matan Barakb4ff3a32016-02-09 14:57:42 +02001666 u8 reserved_at_540[0x280];
Saeed Mahameede2816822015-05-28 22:28:40 +03001667};
1668
1669struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1670 u8 if_in_octets_high[0x20];
1671
1672 u8 if_in_octets_low[0x20];
1673
1674 u8 if_in_ucast_pkts_high[0x20];
1675
1676 u8 if_in_ucast_pkts_low[0x20];
1677
1678 u8 if_in_discards_high[0x20];
1679
1680 u8 if_in_discards_low[0x20];
1681
1682 u8 if_in_errors_high[0x20];
1683
1684 u8 if_in_errors_low[0x20];
1685
1686 u8 if_in_unknown_protos_high[0x20];
1687
1688 u8 if_in_unknown_protos_low[0x20];
1689
1690 u8 if_out_octets_high[0x20];
1691
1692 u8 if_out_octets_low[0x20];
1693
1694 u8 if_out_ucast_pkts_high[0x20];
1695
1696 u8 if_out_ucast_pkts_low[0x20];
1697
1698 u8 if_out_discards_high[0x20];
1699
1700 u8 if_out_discards_low[0x20];
1701
1702 u8 if_out_errors_high[0x20];
1703
1704 u8 if_out_errors_low[0x20];
1705
1706 u8 if_in_multicast_pkts_high[0x20];
1707
1708 u8 if_in_multicast_pkts_low[0x20];
1709
1710 u8 if_in_broadcast_pkts_high[0x20];
1711
1712 u8 if_in_broadcast_pkts_low[0x20];
1713
1714 u8 if_out_multicast_pkts_high[0x20];
1715
1716 u8 if_out_multicast_pkts_low[0x20];
1717
1718 u8 if_out_broadcast_pkts_high[0x20];
1719
1720 u8 if_out_broadcast_pkts_low[0x20];
1721
Matan Barakb4ff3a32016-02-09 14:57:42 +02001722 u8 reserved_at_340[0x480];
Saeed Mahameede2816822015-05-28 22:28:40 +03001723};
1724
1725struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
1726 u8 a_frames_transmitted_ok_high[0x20];
1727
1728 u8 a_frames_transmitted_ok_low[0x20];
1729
1730 u8 a_frames_received_ok_high[0x20];
1731
1732 u8 a_frames_received_ok_low[0x20];
1733
1734 u8 a_frame_check_sequence_errors_high[0x20];
1735
1736 u8 a_frame_check_sequence_errors_low[0x20];
1737
1738 u8 a_alignment_errors_high[0x20];
1739
1740 u8 a_alignment_errors_low[0x20];
1741
1742 u8 a_octets_transmitted_ok_high[0x20];
1743
1744 u8 a_octets_transmitted_ok_low[0x20];
1745
1746 u8 a_octets_received_ok_high[0x20];
1747
1748 u8 a_octets_received_ok_low[0x20];
1749
1750 u8 a_multicast_frames_xmitted_ok_high[0x20];
1751
1752 u8 a_multicast_frames_xmitted_ok_low[0x20];
1753
1754 u8 a_broadcast_frames_xmitted_ok_high[0x20];
1755
1756 u8 a_broadcast_frames_xmitted_ok_low[0x20];
1757
1758 u8 a_multicast_frames_received_ok_high[0x20];
1759
1760 u8 a_multicast_frames_received_ok_low[0x20];
1761
1762 u8 a_broadcast_frames_received_ok_high[0x20];
1763
1764 u8 a_broadcast_frames_received_ok_low[0x20];
1765
1766 u8 a_in_range_length_errors_high[0x20];
1767
1768 u8 a_in_range_length_errors_low[0x20];
1769
1770 u8 a_out_of_range_length_field_high[0x20];
1771
1772 u8 a_out_of_range_length_field_low[0x20];
1773
1774 u8 a_frame_too_long_errors_high[0x20];
1775
1776 u8 a_frame_too_long_errors_low[0x20];
1777
1778 u8 a_symbol_error_during_carrier_high[0x20];
1779
1780 u8 a_symbol_error_during_carrier_low[0x20];
1781
1782 u8 a_mac_control_frames_transmitted_high[0x20];
1783
1784 u8 a_mac_control_frames_transmitted_low[0x20];
1785
1786 u8 a_mac_control_frames_received_high[0x20];
1787
1788 u8 a_mac_control_frames_received_low[0x20];
1789
1790 u8 a_unsupported_opcodes_received_high[0x20];
1791
1792 u8 a_unsupported_opcodes_received_low[0x20];
1793
1794 u8 a_pause_mac_ctrl_frames_received_high[0x20];
1795
1796 u8 a_pause_mac_ctrl_frames_received_low[0x20];
1797
1798 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
1799
1800 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
1801
Matan Barakb4ff3a32016-02-09 14:57:42 +02001802 u8 reserved_at_4c0[0x300];
Saeed Mahameede2816822015-05-28 22:28:40 +03001803};
1804
Gal Pressman8ed1a632016-11-17 13:46:01 +02001805struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits {
1806 u8 life_time_counter_high[0x20];
1807
1808 u8 life_time_counter_low[0x20];
1809
1810 u8 rx_errors[0x20];
1811
1812 u8 tx_errors[0x20];
1813
1814 u8 l0_to_recovery_eieos[0x20];
1815
1816 u8 l0_to_recovery_ts[0x20];
1817
1818 u8 l0_to_recovery_framing[0x20];
1819
1820 u8 l0_to_recovery_retrain[0x20];
1821
1822 u8 crc_error_dllp[0x20];
1823
1824 u8 crc_error_tlp[0x20];
1825
1826 u8 reserved_at_140[0x680];
1827};
1828
Saeed Mahameede2816822015-05-28 22:28:40 +03001829struct mlx5_ifc_cmd_inter_comp_event_bits {
1830 u8 command_completion_vector[0x20];
1831
Matan Barakb4ff3a32016-02-09 14:57:42 +02001832 u8 reserved_at_20[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001833};
1834
1835struct mlx5_ifc_stall_vl_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001836 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001837 u8 port_num[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001838 u8 reserved_at_19[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001839 u8 vl[0x4];
1840
Matan Barakb4ff3a32016-02-09 14:57:42 +02001841 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001842};
1843
1844struct mlx5_ifc_db_bf_congestion_event_bits {
1845 u8 event_subtype[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001846 u8 reserved_at_8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001847 u8 congestion_level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001848 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001849
Matan Barakb4ff3a32016-02-09 14:57:42 +02001850 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001851};
1852
1853struct mlx5_ifc_gpio_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001854 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001855
1856 u8 gpio_event_hi[0x20];
1857
1858 u8 gpio_event_lo[0x20];
1859
Matan Barakb4ff3a32016-02-09 14:57:42 +02001860 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03001861};
1862
1863struct mlx5_ifc_port_state_change_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001864 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03001865
1866 u8 port_num[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001867 u8 reserved_at_44[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03001868
Matan Barakb4ff3a32016-02-09 14:57:42 +02001869 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001870};
1871
1872struct mlx5_ifc_dropped_packet_logged_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001873 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001874};
1875
1876enum {
1877 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
1878 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
1879};
1880
1881struct mlx5_ifc_cq_error_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001882 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001883 u8 cqn[0x18];
1884
Matan Barakb4ff3a32016-02-09 14:57:42 +02001885 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001886
Matan Barakb4ff3a32016-02-09 14:57:42 +02001887 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001888 u8 syndrome[0x8];
1889
Matan Barakb4ff3a32016-02-09 14:57:42 +02001890 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001891};
1892
1893struct mlx5_ifc_rdma_page_fault_event_bits {
1894 u8 bytes_committed[0x20];
1895
1896 u8 r_key[0x20];
1897
Matan Barakb4ff3a32016-02-09 14:57:42 +02001898 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001899 u8 packet_len[0x10];
1900
1901 u8 rdma_op_len[0x20];
1902
1903 u8 rdma_va[0x40];
1904
Matan Barakb4ff3a32016-02-09 14:57:42 +02001905 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001906 u8 rdma[0x1];
1907 u8 write[0x1];
1908 u8 requestor[0x1];
1909 u8 qp_number[0x18];
1910};
1911
1912struct mlx5_ifc_wqe_associated_page_fault_event_bits {
1913 u8 bytes_committed[0x20];
1914
Matan Barakb4ff3a32016-02-09 14:57:42 +02001915 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001916 u8 wqe_index[0x10];
1917
Matan Barakb4ff3a32016-02-09 14:57:42 +02001918 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001919 u8 len[0x10];
1920
Matan Barakb4ff3a32016-02-09 14:57:42 +02001921 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001922
Matan Barakb4ff3a32016-02-09 14:57:42 +02001923 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001924 u8 rdma[0x1];
1925 u8 write_read[0x1];
1926 u8 requestor[0x1];
1927 u8 qpn[0x18];
1928};
1929
1930struct mlx5_ifc_qp_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001931 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001932
1933 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001934 u8 reserved_at_a8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001935
Matan Barakb4ff3a32016-02-09 14:57:42 +02001936 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001937 u8 qpn_rqn_sqn[0x18];
1938};
1939
1940struct mlx5_ifc_dct_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001941 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001942
Matan Barakb4ff3a32016-02-09 14:57:42 +02001943 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001944 u8 dct_number[0x18];
1945};
1946
1947struct mlx5_ifc_comp_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001948 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001949
Matan Barakb4ff3a32016-02-09 14:57:42 +02001950 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001951 u8 cq_number[0x18];
1952};
1953
1954enum {
1955 MLX5_QPC_STATE_RST = 0x0,
1956 MLX5_QPC_STATE_INIT = 0x1,
1957 MLX5_QPC_STATE_RTR = 0x2,
1958 MLX5_QPC_STATE_RTS = 0x3,
1959 MLX5_QPC_STATE_SQER = 0x4,
1960 MLX5_QPC_STATE_ERR = 0x6,
1961 MLX5_QPC_STATE_SQD = 0x7,
1962 MLX5_QPC_STATE_SUSPENDED = 0x9,
1963};
1964
1965enum {
1966 MLX5_QPC_ST_RC = 0x0,
1967 MLX5_QPC_ST_UC = 0x1,
1968 MLX5_QPC_ST_UD = 0x2,
1969 MLX5_QPC_ST_XRC = 0x3,
1970 MLX5_QPC_ST_DCI = 0x5,
1971 MLX5_QPC_ST_QP0 = 0x7,
1972 MLX5_QPC_ST_QP1 = 0x8,
1973 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
1974 MLX5_QPC_ST_REG_UMR = 0xc,
1975};
1976
1977enum {
1978 MLX5_QPC_PM_STATE_ARMED = 0x0,
1979 MLX5_QPC_PM_STATE_REARM = 0x1,
1980 MLX5_QPC_PM_STATE_RESERVED = 0x2,
1981 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
1982};
1983
1984enum {
1985 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
1986 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
1987};
1988
1989enum {
1990 MLX5_QPC_MTU_256_BYTES = 0x1,
1991 MLX5_QPC_MTU_512_BYTES = 0x2,
1992 MLX5_QPC_MTU_1K_BYTES = 0x3,
1993 MLX5_QPC_MTU_2K_BYTES = 0x4,
1994 MLX5_QPC_MTU_4K_BYTES = 0x5,
1995 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
1996};
1997
1998enum {
1999 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
2000 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
2001 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
2002 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
2003 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
2004 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
2005 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
2006 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
2007};
2008
2009enum {
2010 MLX5_QPC_CS_REQ_DISABLE = 0x0,
2011 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
2012 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
2013};
2014
2015enum {
2016 MLX5_QPC_CS_RES_DISABLE = 0x0,
2017 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
2018 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
2019};
2020
2021struct mlx5_ifc_qpc_bits {
2022 u8 state[0x4];
Aviv Heller84df61e2016-05-10 13:47:50 +03002023 u8 lag_tx_port_affinity[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002024 u8 st[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002025 u8 reserved_at_10[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002026 u8 pm_state[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002027 u8 reserved_at_15[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03002028 u8 end_padding_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002029 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002030
2031 u8 wq_signature[0x1];
2032 u8 block_lb_mc[0x1];
2033 u8 atomic_like_write_en[0x1];
2034 u8 latency_sensitive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002035 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002036 u8 drain_sigerr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002037 u8 reserved_at_26[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002038 u8 pd[0x18];
2039
2040 u8 mtu[0x3];
2041 u8 log_msg_max[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002042 u8 reserved_at_48[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002043 u8 log_rq_size[0x4];
2044 u8 log_rq_stride[0x3];
2045 u8 no_sq[0x1];
2046 u8 log_sq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002047 u8 reserved_at_55[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002048 u8 rlky[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02002049 u8 ulp_stateless_offload_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002050
2051 u8 counter_set_id[0x8];
2052 u8 uar_page[0x18];
2053
Matan Barakb4ff3a32016-02-09 14:57:42 +02002054 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002055 u8 user_index[0x18];
2056
Matan Barakb4ff3a32016-02-09 14:57:42 +02002057 u8 reserved_at_a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002058 u8 log_page_size[0x5];
2059 u8 remote_qpn[0x18];
2060
2061 struct mlx5_ifc_ads_bits primary_address_path;
2062
2063 struct mlx5_ifc_ads_bits secondary_address_path;
2064
2065 u8 log_ack_req_freq[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002066 u8 reserved_at_384[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002067 u8 log_sra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002068 u8 reserved_at_38b[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002069 u8 retry_count[0x3];
2070 u8 rnr_retry[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002071 u8 reserved_at_393[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002072 u8 fre[0x1];
2073 u8 cur_rnr_retry[0x3];
2074 u8 cur_retry_count[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002075 u8 reserved_at_39b[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002076
Matan Barakb4ff3a32016-02-09 14:57:42 +02002077 u8 reserved_at_3a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002078
Matan Barakb4ff3a32016-02-09 14:57:42 +02002079 u8 reserved_at_3c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002080 u8 next_send_psn[0x18];
2081
Matan Barakb4ff3a32016-02-09 14:57:42 +02002082 u8 reserved_at_3e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002083 u8 cqn_snd[0x18];
2084
Saeed Mahameed09a7d9e2016-07-19 01:17:59 +03002085 u8 reserved_at_400[0x8];
2086 u8 deth_sqpn[0x18];
2087
2088 u8 reserved_at_420[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002089
Matan Barakb4ff3a32016-02-09 14:57:42 +02002090 u8 reserved_at_440[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002091 u8 last_acked_psn[0x18];
2092
Matan Barakb4ff3a32016-02-09 14:57:42 +02002093 u8 reserved_at_460[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002094 u8 ssn[0x18];
2095
Matan Barakb4ff3a32016-02-09 14:57:42 +02002096 u8 reserved_at_480[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002097 u8 log_rra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002098 u8 reserved_at_48b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002099 u8 atomic_mode[0x4];
2100 u8 rre[0x1];
2101 u8 rwe[0x1];
2102 u8 rae[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002103 u8 reserved_at_493[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002104 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002105 u8 reserved_at_49a[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002106 u8 cd_slave_receive[0x1];
2107 u8 cd_slave_send[0x1];
2108 u8 cd_master[0x1];
2109
Matan Barakb4ff3a32016-02-09 14:57:42 +02002110 u8 reserved_at_4a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002111 u8 min_rnr_nak[0x5];
2112 u8 next_rcv_psn[0x18];
2113
Matan Barakb4ff3a32016-02-09 14:57:42 +02002114 u8 reserved_at_4c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002115 u8 xrcd[0x18];
2116
Matan Barakb4ff3a32016-02-09 14:57:42 +02002117 u8 reserved_at_4e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002118 u8 cqn_rcv[0x18];
2119
2120 u8 dbr_addr[0x40];
2121
2122 u8 q_key[0x20];
2123
Matan Barakb4ff3a32016-02-09 14:57:42 +02002124 u8 reserved_at_560[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002125 u8 rq_type[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03002126 u8 srqn_rmpn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002127
Matan Barakb4ff3a32016-02-09 14:57:42 +02002128 u8 reserved_at_580[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002129 u8 rmsn[0x18];
2130
2131 u8 hw_sq_wqebb_counter[0x10];
2132 u8 sw_sq_wqebb_counter[0x10];
2133
2134 u8 hw_rq_counter[0x20];
2135
2136 u8 sw_rq_counter[0x20];
2137
Matan Barakb4ff3a32016-02-09 14:57:42 +02002138 u8 reserved_at_600[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002139
Matan Barakb4ff3a32016-02-09 14:57:42 +02002140 u8 reserved_at_620[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03002141 u8 cgs[0x1];
2142 u8 cs_req[0x8];
2143 u8 cs_res[0x8];
2144
2145 u8 dc_access_key[0x40];
2146
Matan Barakb4ff3a32016-02-09 14:57:42 +02002147 u8 reserved_at_680[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002148};
2149
2150struct mlx5_ifc_roce_addr_layout_bits {
2151 u8 source_l3_address[16][0x8];
2152
Matan Barakb4ff3a32016-02-09 14:57:42 +02002153 u8 reserved_at_80[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002154 u8 vlan_valid[0x1];
2155 u8 vlan_id[0xc];
2156 u8 source_mac_47_32[0x10];
2157
2158 u8 source_mac_31_0[0x20];
2159
Matan Barakb4ff3a32016-02-09 14:57:42 +02002160 u8 reserved_at_c0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002161 u8 roce_l3_type[0x4];
2162 u8 roce_version[0x8];
2163
Matan Barakb4ff3a32016-02-09 14:57:42 +02002164 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002165};
2166
2167union mlx5_ifc_hca_cap_union_bits {
2168 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
2169 struct mlx5_ifc_odp_cap_bits odp_cap;
2170 struct mlx5_ifc_atomic_caps_bits atomic_caps;
2171 struct mlx5_ifc_roce_cap_bits roce_cap;
2172 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
2173 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
Saeed Mahameed495716b2015-12-01 18:03:19 +02002174 struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap;
Saeed Mahameedd6666752015-12-01 18:03:22 +02002175 struct mlx5_ifc_e_switch_cap_bits e_switch_cap;
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02002176 struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap;
Saeed Mahameed74862162016-06-09 15:11:34 +03002177 struct mlx5_ifc_qos_cap_bits qos_cap;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002178 u8 reserved_at_0[0x8000];
Saeed Mahameede2816822015-05-28 22:28:40 +03002179};
2180
2181enum {
2182 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
2183 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
2184 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
Amir Vadai9dc0b282016-05-13 12:55:39 +00002185 MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8,
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002186 MLX5_FLOW_CONTEXT_ACTION_ENCAP = 0x10,
2187 MLX5_FLOW_CONTEXT_ACTION_DECAP = 0x20,
Saeed Mahameede2816822015-05-28 22:28:40 +03002188};
2189
2190struct mlx5_ifc_flow_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002191 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002192
2193 u8 group_id[0x20];
2194
Matan Barakb4ff3a32016-02-09 14:57:42 +02002195 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002196 u8 flow_tag[0x18];
2197
Matan Barakb4ff3a32016-02-09 14:57:42 +02002198 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002199 u8 action[0x10];
2200
Matan Barakb4ff3a32016-02-09 14:57:42 +02002201 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002202 u8 destination_list_size[0x18];
2203
Amir Vadai9dc0b282016-05-13 12:55:39 +00002204 u8 reserved_at_a0[0x8];
2205 u8 flow_counter_list_size[0x18];
2206
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002207 u8 encap_id[0x20];
2208
2209 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03002210
2211 struct mlx5_ifc_fte_match_param_bits match_value;
2212
Matan Barakb4ff3a32016-02-09 14:57:42 +02002213 u8 reserved_at_1200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03002214
Amir Vadai9dc0b282016-05-13 12:55:39 +00002215 union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits destination[0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002216};
2217
2218enum {
2219 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
2220 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
2221};
2222
2223struct mlx5_ifc_xrc_srqc_bits {
2224 u8 state[0x4];
2225 u8 log_xrc_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002226 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002227
2228 u8 wq_signature[0x1];
2229 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002230 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002231 u8 rlky[0x1];
2232 u8 basic_cyclic_rcv_wqe[0x1];
2233 u8 log_rq_stride[0x3];
2234 u8 xrcd[0x18];
2235
2236 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002237 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002238 u8 cqn[0x18];
2239
Matan Barakb4ff3a32016-02-09 14:57:42 +02002240 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002241
2242 u8 user_index_equal_xrc_srqn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002243 u8 reserved_at_81[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002244 u8 log_page_size[0x6];
2245 u8 user_index[0x18];
2246
Matan Barakb4ff3a32016-02-09 14:57:42 +02002247 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002248
Matan Barakb4ff3a32016-02-09 14:57:42 +02002249 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002250 u8 pd[0x18];
2251
2252 u8 lwm[0x10];
2253 u8 wqe_cnt[0x10];
2254
Matan Barakb4ff3a32016-02-09 14:57:42 +02002255 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002256
2257 u8 db_record_addr_h[0x20];
2258
2259 u8 db_record_addr_l[0x1e];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002260 u8 reserved_at_17e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002261
Matan Barakb4ff3a32016-02-09 14:57:42 +02002262 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002263};
2264
2265struct mlx5_ifc_traffic_counter_bits {
2266 u8 packets[0x40];
2267
2268 u8 octets[0x40];
2269};
2270
2271struct mlx5_ifc_tisc_bits {
Aviv Heller84df61e2016-05-10 13:47:50 +03002272 u8 strict_lag_tx_port_affinity[0x1];
2273 u8 reserved_at_1[0x3];
2274 u8 lag_tx_port_affinity[0x04];
2275
2276 u8 reserved_at_8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002277 u8 prio[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002278 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002279
Matan Barakb4ff3a32016-02-09 14:57:42 +02002280 u8 reserved_at_20[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03002281
Matan Barakb4ff3a32016-02-09 14:57:42 +02002282 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002283 u8 transport_domain[0x18];
2284
Matan Barakb4ff3a32016-02-09 14:57:42 +02002285 u8 reserved_at_140[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002286};
2287
2288enum {
2289 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
2290 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
2291};
2292
2293enum {
2294 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
2295 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
2296};
2297
2298enum {
Saeed Mahameed2be69672015-07-23 23:35:56 +03002299 MLX5_RX_HASH_FN_NONE = 0x0,
2300 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
2301 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002302};
2303
2304enum {
2305 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1,
2306 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2,
2307};
2308
2309struct mlx5_ifc_tirc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002310 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002311
2312 u8 disp_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002313 u8 reserved_at_24[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002314
Matan Barakb4ff3a32016-02-09 14:57:42 +02002315 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002316
Matan Barakb4ff3a32016-02-09 14:57:42 +02002317 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002318 u8 lro_timeout_period_usecs[0x10];
2319 u8 lro_enable_mask[0x4];
2320 u8 lro_max_ip_payload_size[0x8];
2321
Matan Barakb4ff3a32016-02-09 14:57:42 +02002322 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002323
Matan Barakb4ff3a32016-02-09 14:57:42 +02002324 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002325 u8 inline_rqn[0x18];
2326
2327 u8 rx_hash_symmetric[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002328 u8 reserved_at_101[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002329 u8 tunneled_offload_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002330 u8 reserved_at_103[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002331 u8 indirect_table[0x18];
2332
2333 u8 rx_hash_fn[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002334 u8 reserved_at_124[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002335 u8 self_lb_block[0x2];
2336 u8 transport_domain[0x18];
2337
2338 u8 rx_hash_toeplitz_key[10][0x20];
2339
2340 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
2341
2342 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
2343
Matan Barakb4ff3a32016-02-09 14:57:42 +02002344 u8 reserved_at_2c0[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002345};
2346
2347enum {
2348 MLX5_SRQC_STATE_GOOD = 0x0,
2349 MLX5_SRQC_STATE_ERROR = 0x1,
2350};
2351
2352struct mlx5_ifc_srqc_bits {
2353 u8 state[0x4];
2354 u8 log_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002355 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002356
2357 u8 wq_signature[0x1];
2358 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002359 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002360 u8 rlky[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002361 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002362 u8 log_rq_stride[0x3];
2363 u8 xrcd[0x18];
2364
2365 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002366 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002367 u8 cqn[0x18];
2368
Matan Barakb4ff3a32016-02-09 14:57:42 +02002369 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002370
Matan Barakb4ff3a32016-02-09 14:57:42 +02002371 u8 reserved_at_80[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002372 u8 log_page_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002373 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002374
Matan Barakb4ff3a32016-02-09 14:57:42 +02002375 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002376
Matan Barakb4ff3a32016-02-09 14:57:42 +02002377 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002378 u8 pd[0x18];
2379
2380 u8 lwm[0x10];
2381 u8 wqe_cnt[0x10];
2382
Matan Barakb4ff3a32016-02-09 14:57:42 +02002383 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002384
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03002385 u8 dbr_addr[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002386
Matan Barakb4ff3a32016-02-09 14:57:42 +02002387 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002388};
2389
2390enum {
2391 MLX5_SQC_STATE_RST = 0x0,
2392 MLX5_SQC_STATE_RDY = 0x1,
2393 MLX5_SQC_STATE_ERR = 0x3,
2394};
2395
2396struct mlx5_ifc_sqc_bits {
2397 u8 rlky[0x1];
2398 u8 cd_master[0x1];
2399 u8 fre[0x1];
2400 u8 flush_in_error_en[0x1];
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002401 u8 reserved_at_4[0x1];
2402 u8 min_wqe_inline_mode[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002403 u8 state[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002404 u8 reg_umr[0x1];
2405 u8 reserved_at_d[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03002406
Matan Barakb4ff3a32016-02-09 14:57:42 +02002407 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002408 u8 user_index[0x18];
2409
Matan Barakb4ff3a32016-02-09 14:57:42 +02002410 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002411 u8 cqn[0x18];
2412
Saeed Mahameed74862162016-06-09 15:11:34 +03002413 u8 reserved_at_60[0x90];
Saeed Mahameede2816822015-05-28 22:28:40 +03002414
Saeed Mahameed74862162016-06-09 15:11:34 +03002415 u8 packet_pacing_rate_limit_index[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002416 u8 tis_lst_sz[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002417 u8 reserved_at_110[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002418
Matan Barakb4ff3a32016-02-09 14:57:42 +02002419 u8 reserved_at_120[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002420
Matan Barakb4ff3a32016-02-09 14:57:42 +02002421 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002422 u8 tis_num_0[0x18];
2423
2424 struct mlx5_ifc_wq_bits wq;
2425};
2426
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03002427enum {
2428 SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR = 0x0,
2429 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT = 0x1,
2430 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT_TC = 0x2,
2431 SCHEDULING_CONTEXT_ELEMENT_TYPE_PARA_VPORT_TC = 0x3,
2432};
2433
2434struct mlx5_ifc_scheduling_context_bits {
2435 u8 element_type[0x8];
2436 u8 reserved_at_8[0x18];
2437
2438 u8 element_attributes[0x20];
2439
2440 u8 parent_element_id[0x20];
2441
2442 u8 reserved_at_60[0x40];
2443
2444 u8 bw_share[0x20];
2445
2446 u8 max_average_bw[0x20];
2447
2448 u8 reserved_at_e0[0x120];
2449};
2450
Saeed Mahameede2816822015-05-28 22:28:40 +03002451struct mlx5_ifc_rqtc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002452 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002453
Matan Barakb4ff3a32016-02-09 14:57:42 +02002454 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002455 u8 rqt_max_size[0x10];
2456
Matan Barakb4ff3a32016-02-09 14:57:42 +02002457 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002458 u8 rqt_actual_size[0x10];
2459
Matan Barakb4ff3a32016-02-09 14:57:42 +02002460 u8 reserved_at_e0[0x6a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002461
2462 struct mlx5_ifc_rq_num_bits rq_num[0];
2463};
2464
2465enum {
2466 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2467 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2468};
2469
2470enum {
2471 MLX5_RQC_STATE_RST = 0x0,
2472 MLX5_RQC_STATE_RDY = 0x1,
2473 MLX5_RQC_STATE_ERR = 0x3,
2474};
2475
2476struct mlx5_ifc_rqc_bits {
2477 u8 rlky[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002478 u8 reserved_at_1[0x1];
2479 u8 scatter_fcs[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002480 u8 vsd[0x1];
2481 u8 mem_rq_type[0x4];
2482 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002483 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002484 u8 flush_in_error_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002485 u8 reserved_at_e[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03002486
Matan Barakb4ff3a32016-02-09 14:57:42 +02002487 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002488 u8 user_index[0x18];
2489
Matan Barakb4ff3a32016-02-09 14:57:42 +02002490 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002491 u8 cqn[0x18];
2492
2493 u8 counter_set_id[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002494 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002495
Matan Barakb4ff3a32016-02-09 14:57:42 +02002496 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002497 u8 rmpn[0x18];
2498
Matan Barakb4ff3a32016-02-09 14:57:42 +02002499 u8 reserved_at_a0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002500
2501 struct mlx5_ifc_wq_bits wq;
2502};
2503
2504enum {
2505 MLX5_RMPC_STATE_RDY = 0x1,
2506 MLX5_RMPC_STATE_ERR = 0x3,
2507};
2508
2509struct mlx5_ifc_rmpc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002510 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002511 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002512 u8 reserved_at_c[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002513
2514 u8 basic_cyclic_rcv_wqe[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002515 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03002516
Matan Barakb4ff3a32016-02-09 14:57:42 +02002517 u8 reserved_at_40[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03002518
2519 struct mlx5_ifc_wq_bits wq;
2520};
2521
Saeed Mahameede2816822015-05-28 22:28:40 +03002522struct mlx5_ifc_nic_vport_context_bits {
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002523 u8 reserved_at_0[0x5];
2524 u8 min_wqe_inline_mode[0x3];
2525 u8 reserved_at_8[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03002526 u8 roce_en[0x1];
2527
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002528 u8 arm_change_event[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002529 u8 reserved_at_21[0x1a];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002530 u8 event_on_mtu[0x1];
2531 u8 event_on_promisc_change[0x1];
2532 u8 event_on_vlan_change[0x1];
2533 u8 event_on_mc_address_change[0x1];
2534 u8 event_on_uc_address_change[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002535
Matan Barakb4ff3a32016-02-09 14:57:42 +02002536 u8 reserved_at_40[0xf0];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002537
2538 u8 mtu[0x10];
2539
Achiad Shochat9efa7522015-12-23 18:47:20 +02002540 u8 system_image_guid[0x40];
2541 u8 port_guid[0x40];
2542 u8 node_guid[0x40];
2543
Matan Barakb4ff3a32016-02-09 14:57:42 +02002544 u8 reserved_at_200[0x140];
Achiad Shochat9efa7522015-12-23 18:47:20 +02002545 u8 qkey_violation_counter[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002546 u8 reserved_at_350[0x430];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002547
2548 u8 promisc_uc[0x1];
2549 u8 promisc_mc[0x1];
2550 u8 promisc_all[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002551 u8 reserved_at_783[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002552 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002553 u8 reserved_at_788[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002554 u8 allowed_list_size[0xc];
2555
2556 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2557
Matan Barakb4ff3a32016-02-09 14:57:42 +02002558 u8 reserved_at_7e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002559
2560 u8 current_uc_mac_address[0][0x40];
2561};
2562
2563enum {
2564 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2565 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2566 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02002567 MLX5_MKC_ACCESS_MODE_KSM = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +03002568};
2569
2570struct mlx5_ifc_mkc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002571 u8 reserved_at_0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002572 u8 free[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002573 u8 reserved_at_2[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03002574 u8 small_fence_on_rdma_read_response[0x1];
2575 u8 umr_en[0x1];
2576 u8 a[0x1];
2577 u8 rw[0x1];
2578 u8 rr[0x1];
2579 u8 lw[0x1];
2580 u8 lr[0x1];
2581 u8 access_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002582 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002583
2584 u8 qpn[0x18];
2585 u8 mkey_7_0[0x8];
2586
Matan Barakb4ff3a32016-02-09 14:57:42 +02002587 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002588
2589 u8 length64[0x1];
2590 u8 bsf_en[0x1];
2591 u8 sync_umr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002592 u8 reserved_at_63[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002593 u8 expected_sigerr_count[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002594 u8 reserved_at_66[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002595 u8 en_rinval[0x1];
2596 u8 pd[0x18];
2597
2598 u8 start_addr[0x40];
2599
2600 u8 len[0x40];
2601
2602 u8 bsf_octword_size[0x20];
2603
Matan Barakb4ff3a32016-02-09 14:57:42 +02002604 u8 reserved_at_120[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002605
2606 u8 translations_octword_size[0x20];
2607
Matan Barakb4ff3a32016-02-09 14:57:42 +02002608 u8 reserved_at_1c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +03002609 u8 log_page_size[0x5];
2610
Matan Barakb4ff3a32016-02-09 14:57:42 +02002611 u8 reserved_at_1e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002612};
2613
2614struct mlx5_ifc_pkey_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002615 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002616 u8 pkey[0x10];
2617};
2618
2619struct mlx5_ifc_array128_auto_bits {
2620 u8 array128_auto[16][0x8];
2621};
2622
2623struct mlx5_ifc_hca_vport_context_bits {
2624 u8 field_select[0x20];
2625
Matan Barakb4ff3a32016-02-09 14:57:42 +02002626 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002627
2628 u8 sm_virt_aware[0x1];
2629 u8 has_smi[0x1];
2630 u8 has_raw[0x1];
2631 u8 grh_required[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002632 u8 reserved_at_104[0xc];
Majd Dibbiny707c4602015-06-04 19:30:41 +03002633 u8 port_physical_state[0x4];
2634 u8 vport_state_policy[0x4];
2635 u8 port_state[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002636 u8 vport_state[0x4];
2637
Matan Barakb4ff3a32016-02-09 14:57:42 +02002638 u8 reserved_at_120[0x20];
Majd Dibbiny707c4602015-06-04 19:30:41 +03002639
2640 u8 system_image_guid[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002641
2642 u8 port_guid[0x40];
2643
2644 u8 node_guid[0x40];
2645
2646 u8 cap_mask1[0x20];
2647
2648 u8 cap_mask1_field_select[0x20];
2649
2650 u8 cap_mask2[0x20];
2651
2652 u8 cap_mask2_field_select[0x20];
2653
Matan Barakb4ff3a32016-02-09 14:57:42 +02002654 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002655
2656 u8 lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002657 u8 reserved_at_310[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002658 u8 init_type_reply[0x4];
2659 u8 lmc[0x3];
2660 u8 subnet_timeout[0x5];
2661
2662 u8 sm_lid[0x10];
2663 u8 sm_sl[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002664 u8 reserved_at_334[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002665
2666 u8 qkey_violation_counter[0x10];
2667 u8 pkey_violation_counter[0x10];
2668
Matan Barakb4ff3a32016-02-09 14:57:42 +02002669 u8 reserved_at_360[0xca0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002670};
2671
Saeed Mahameedd6666752015-12-01 18:03:22 +02002672struct mlx5_ifc_esw_vport_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002673 u8 reserved_at_0[0x3];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002674 u8 vport_svlan_strip[0x1];
2675 u8 vport_cvlan_strip[0x1];
2676 u8 vport_svlan_insert[0x1];
2677 u8 vport_cvlan_insert[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002678 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002679
Matan Barakb4ff3a32016-02-09 14:57:42 +02002680 u8 reserved_at_20[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002681
2682 u8 svlan_cfi[0x1];
2683 u8 svlan_pcp[0x3];
2684 u8 svlan_id[0xc];
2685 u8 cvlan_cfi[0x1];
2686 u8 cvlan_pcp[0x3];
2687 u8 cvlan_id[0xc];
2688
Matan Barakb4ff3a32016-02-09 14:57:42 +02002689 u8 reserved_at_60[0x7a0];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002690};
2691
Saeed Mahameede2816822015-05-28 22:28:40 +03002692enum {
2693 MLX5_EQC_STATUS_OK = 0x0,
2694 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
2695};
2696
2697enum {
2698 MLX5_EQC_ST_ARMED = 0x9,
2699 MLX5_EQC_ST_FIRED = 0xa,
2700};
2701
2702struct mlx5_ifc_eqc_bits {
2703 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002704 u8 reserved_at_4[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03002705 u8 ec[0x1];
2706 u8 oi[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002707 u8 reserved_at_f[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002708 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002709 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002710
Matan Barakb4ff3a32016-02-09 14:57:42 +02002711 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002712
Matan Barakb4ff3a32016-02-09 14:57:42 +02002713 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002714 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002715 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002716
Matan Barakb4ff3a32016-02-09 14:57:42 +02002717 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002718 u8 log_eq_size[0x5];
2719 u8 uar_page[0x18];
2720
Matan Barakb4ff3a32016-02-09 14:57:42 +02002721 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002722
Matan Barakb4ff3a32016-02-09 14:57:42 +02002723 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002724 u8 intr[0x8];
2725
Matan Barakb4ff3a32016-02-09 14:57:42 +02002726 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002727 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002728 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002729
Matan Barakb4ff3a32016-02-09 14:57:42 +02002730 u8 reserved_at_e0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002731
Matan Barakb4ff3a32016-02-09 14:57:42 +02002732 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002733 u8 consumer_counter[0x18];
2734
Matan Barakb4ff3a32016-02-09 14:57:42 +02002735 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002736 u8 producer_counter[0x18];
2737
Matan Barakb4ff3a32016-02-09 14:57:42 +02002738 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002739};
2740
2741enum {
2742 MLX5_DCTC_STATE_ACTIVE = 0x0,
2743 MLX5_DCTC_STATE_DRAINING = 0x1,
2744 MLX5_DCTC_STATE_DRAINED = 0x2,
2745};
2746
2747enum {
2748 MLX5_DCTC_CS_RES_DISABLE = 0x0,
2749 MLX5_DCTC_CS_RES_NA = 0x1,
2750 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
2751};
2752
2753enum {
2754 MLX5_DCTC_MTU_256_BYTES = 0x1,
2755 MLX5_DCTC_MTU_512_BYTES = 0x2,
2756 MLX5_DCTC_MTU_1K_BYTES = 0x3,
2757 MLX5_DCTC_MTU_2K_BYTES = 0x4,
2758 MLX5_DCTC_MTU_4K_BYTES = 0x5,
2759};
2760
2761struct mlx5_ifc_dctc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002762 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002763 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002764 u8 reserved_at_8[0x18];
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
2772 u8 counter_set_id[0x8];
2773 u8 atomic_mode[0x4];
2774 u8 rre[0x1];
2775 u8 rwe[0x1];
2776 u8 rae[0x1];
2777 u8 atomic_like_write_en[0x1];
2778 u8 latency_sensitive[0x1];
2779 u8 rlky[0x1];
2780 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002781 u8 reserved_at_73[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03002782
Matan Barakb4ff3a32016-02-09 14:57:42 +02002783 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002784 u8 cs_res[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002785 u8 reserved_at_90[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002786 u8 min_rnr_nak[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002787 u8 reserved_at_98[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002788
Matan Barakb4ff3a32016-02-09 14:57:42 +02002789 u8 reserved_at_a0[0x8];
Saeed Mahameed74862162016-06-09 15:11:34 +03002790 u8 srqn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002791
Matan Barakb4ff3a32016-02-09 14:57:42 +02002792 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002793 u8 pd[0x18];
2794
2795 u8 tclass[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002796 u8 reserved_at_e8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002797 u8 flow_label[0x14];
2798
2799 u8 dc_access_key[0x40];
2800
Matan Barakb4ff3a32016-02-09 14:57:42 +02002801 u8 reserved_at_140[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002802 u8 mtu[0x3];
2803 u8 port[0x8];
2804 u8 pkey_index[0x10];
2805
Matan Barakb4ff3a32016-02-09 14:57:42 +02002806 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002807 u8 my_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002808 u8 reserved_at_170[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002809 u8 hop_limit[0x8];
2810
2811 u8 dc_access_key_violation_count[0x20];
2812
Matan Barakb4ff3a32016-02-09 14:57:42 +02002813 u8 reserved_at_1a0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002814 u8 dei_cfi[0x1];
2815 u8 eth_prio[0x3];
2816 u8 ecn[0x2];
2817 u8 dscp[0x6];
2818
Matan Barakb4ff3a32016-02-09 14:57:42 +02002819 u8 reserved_at_1c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002820};
2821
2822enum {
2823 MLX5_CQC_STATUS_OK = 0x0,
2824 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
2825 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
2826};
2827
2828enum {
2829 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
2830 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
2831};
2832
2833enum {
2834 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
2835 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
2836 MLX5_CQC_ST_FIRED = 0xa,
2837};
2838
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002839enum {
2840 MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0,
2841 MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1,
Saeed Mahameed74862162016-06-09 15:11:34 +03002842 MLX5_CQ_PERIOD_NUM_MODES
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002843};
2844
Saeed Mahameede2816822015-05-28 22:28:40 +03002845struct mlx5_ifc_cqc_bits {
2846 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002847 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002848 u8 cqe_sz[0x3];
2849 u8 cc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002850 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002851 u8 scqe_break_moderation_en[0x1];
2852 u8 oi[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002853 u8 cq_period_mode[0x2];
2854 u8 cqe_comp_en[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002855 u8 mini_cqe_res_format[0x2];
2856 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002857 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002858
Matan Barakb4ff3a32016-02-09 14:57:42 +02002859 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002860
Matan Barakb4ff3a32016-02-09 14:57:42 +02002861 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002862 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002863 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002864
Matan Barakb4ff3a32016-02-09 14:57:42 +02002865 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002866 u8 log_cq_size[0x5];
2867 u8 uar_page[0x18];
2868
Matan Barakb4ff3a32016-02-09 14:57:42 +02002869 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002870 u8 cq_period[0xc];
2871 u8 cq_max_count[0x10];
2872
Matan Barakb4ff3a32016-02-09 14:57:42 +02002873 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002874 u8 c_eqn[0x8];
2875
Matan Barakb4ff3a32016-02-09 14:57:42 +02002876 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002877 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002878 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002879
Matan Barakb4ff3a32016-02-09 14:57:42 +02002880 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002881
Matan Barakb4ff3a32016-02-09 14:57:42 +02002882 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002883 u8 last_notified_index[0x18];
2884
Matan Barakb4ff3a32016-02-09 14:57:42 +02002885 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002886 u8 last_solicit_index[0x18];
2887
Matan Barakb4ff3a32016-02-09 14:57:42 +02002888 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002889 u8 consumer_counter[0x18];
2890
Matan Barakb4ff3a32016-02-09 14:57:42 +02002891 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002892 u8 producer_counter[0x18];
2893
Matan Barakb4ff3a32016-02-09 14:57:42 +02002894 u8 reserved_at_180[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002895
2896 u8 dbr_addr[0x40];
2897};
2898
2899union mlx5_ifc_cong_control_roce_ecn_auto_bits {
2900 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
2901 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
2902 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002903 u8 reserved_at_0[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03002904};
2905
2906struct mlx5_ifc_query_adapter_param_block_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002907 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002908
Matan Barakb4ff3a32016-02-09 14:57:42 +02002909 u8 reserved_at_c0[0x8];
Majd Dibbiny211e6c82015-06-04 19:30:42 +03002910 u8 ieee_vendor_id[0x18];
2911
Matan Barakb4ff3a32016-02-09 14:57:42 +02002912 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002913 u8 vsd_vendor_id[0x10];
2914
2915 u8 vsd[208][0x8];
2916
2917 u8 vsd_contd_psid[16][0x8];
2918};
2919
Saeed Mahameed74862162016-06-09 15:11:34 +03002920enum {
2921 MLX5_XRQC_STATE_GOOD = 0x0,
2922 MLX5_XRQC_STATE_ERROR = 0x1,
2923};
2924
2925enum {
2926 MLX5_XRQC_TOPOLOGY_NO_SPECIAL_TOPOLOGY = 0x0,
2927 MLX5_XRQC_TOPOLOGY_TAG_MATCHING = 0x1,
2928};
2929
2930enum {
2931 MLX5_XRQC_OFFLOAD_RNDV = 0x1,
2932};
2933
2934struct mlx5_ifc_tag_matching_topology_context_bits {
2935 u8 log_matching_list_sz[0x4];
2936 u8 reserved_at_4[0xc];
2937 u8 append_next_index[0x10];
2938
2939 u8 sw_phase_cnt[0x10];
2940 u8 hw_phase_cnt[0x10];
2941
2942 u8 reserved_at_40[0x40];
2943};
2944
2945struct mlx5_ifc_xrqc_bits {
2946 u8 state[0x4];
2947 u8 rlkey[0x1];
2948 u8 reserved_at_5[0xf];
2949 u8 topology[0x4];
2950 u8 reserved_at_18[0x4];
2951 u8 offload[0x4];
2952
2953 u8 reserved_at_20[0x8];
2954 u8 user_index[0x18];
2955
2956 u8 reserved_at_40[0x8];
2957 u8 cqn[0x18];
2958
2959 u8 reserved_at_60[0xa0];
2960
2961 struct mlx5_ifc_tag_matching_topology_context_bits tag_matching_topology_context;
2962
Artemy Kovalyov5579e152016-08-31 05:17:54 +00002963 u8 reserved_at_180[0x880];
Saeed Mahameed74862162016-06-09 15:11:34 +03002964
2965 struct mlx5_ifc_wq_bits wq;
2966};
2967
Saeed Mahameede2816822015-05-28 22:28:40 +03002968union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
2969 struct mlx5_ifc_modify_field_select_bits modify_field_select;
2970 struct mlx5_ifc_resize_field_select_bits resize_field_select;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002971 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002972};
2973
2974union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
2975 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
2976 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
2977 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002978 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002979};
2980
2981union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
2982 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
2983 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
2984 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
2985 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
2986 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
2987 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
2988 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02002989 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03002990 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
Gal Pressmand8dc0502016-09-27 17:04:51 +03002991 struct mlx5_ifc_phys_layer_statistical_cntrs_bits phys_layer_statistical_cntrs;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002992 u8 reserved_at_0[0x7c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002993};
2994
Gal Pressman8ed1a632016-11-17 13:46:01 +02002995union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits {
2996 struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits pcie_perf_cntrs_grp_data_layout;
2997 u8 reserved_at_0[0x7c0];
2998};
2999
Saeed Mahameede2816822015-05-28 22:28:40 +03003000union mlx5_ifc_event_auto_bits {
3001 struct mlx5_ifc_comp_event_bits comp_event;
3002 struct mlx5_ifc_dct_events_bits dct_events;
3003 struct mlx5_ifc_qp_events_bits qp_events;
3004 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
3005 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
3006 struct mlx5_ifc_cq_error_bits cq_error;
3007 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
3008 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
3009 struct mlx5_ifc_gpio_event_bits gpio_event;
3010 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
3011 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
3012 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
Matan Barakb4ff3a32016-02-09 14:57:42 +02003013 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003014};
3015
3016struct mlx5_ifc_health_buffer_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02003017 u8 reserved_at_0[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03003018
3019 u8 assert_existptr[0x20];
3020
3021 u8 assert_callra[0x20];
3022
Matan Barakb4ff3a32016-02-09 14:57:42 +02003023 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003024
3025 u8 fw_version[0x20];
3026
3027 u8 hw_id[0x20];
3028
Matan Barakb4ff3a32016-02-09 14:57:42 +02003029 u8 reserved_at_1c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003030
3031 u8 irisc_index[0x8];
3032 u8 synd[0x8];
3033 u8 ext_synd[0x10];
3034};
3035
3036struct mlx5_ifc_register_loopback_control_bits {
3037 u8 no_lb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003038 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03003039 u8 port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003040 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003041
Matan Barakb4ff3a32016-02-09 14:57:42 +02003042 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003043};
3044
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03003045struct mlx5_ifc_vport_tc_element_bits {
3046 u8 traffic_class[0x4];
3047 u8 reserved_at_4[0xc];
3048 u8 vport_number[0x10];
3049};
3050
3051struct mlx5_ifc_vport_element_bits {
3052 u8 reserved_at_0[0x10];
3053 u8 vport_number[0x10];
3054};
3055
3056enum {
3057 TSAR_ELEMENT_TSAR_TYPE_DWRR = 0x0,
3058 TSAR_ELEMENT_TSAR_TYPE_ROUND_ROBIN = 0x1,
3059 TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2,
3060};
3061
3062struct mlx5_ifc_tsar_element_bits {
3063 u8 reserved_at_0[0x8];
3064 u8 tsar_type[0x8];
3065 u8 reserved_at_10[0x10];
3066};
3067
Saeed Mahameede2816822015-05-28 22:28:40 +03003068struct mlx5_ifc_teardown_hca_out_bits {
3069 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003070 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003071
3072 u8 syndrome[0x20];
3073
Matan Barakb4ff3a32016-02-09 14:57:42 +02003074 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003075};
3076
3077enum {
3078 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
3079 MLX5_TEARDOWN_HCA_IN_PROFILE_PANIC_CLOSE = 0x1,
3080};
3081
3082struct mlx5_ifc_teardown_hca_in_bits {
3083 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003084 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003085
Matan Barakb4ff3a32016-02-09 14:57:42 +02003086 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003087 u8 op_mod[0x10];
3088
Matan Barakb4ff3a32016-02-09 14:57:42 +02003089 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003090 u8 profile[0x10];
3091
Matan Barakb4ff3a32016-02-09 14:57:42 +02003092 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003093};
3094
3095struct mlx5_ifc_sqerr2rts_qp_out_bits {
3096 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003097 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003098
3099 u8 syndrome[0x20];
3100
Matan Barakb4ff3a32016-02-09 14:57:42 +02003101 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003102};
3103
3104struct mlx5_ifc_sqerr2rts_qp_in_bits {
3105 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003106 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003107
Matan Barakb4ff3a32016-02-09 14:57:42 +02003108 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003109 u8 op_mod[0x10];
3110
Matan Barakb4ff3a32016-02-09 14:57:42 +02003111 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003112 u8 qpn[0x18];
3113
Matan Barakb4ff3a32016-02-09 14:57:42 +02003114 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003115
3116 u8 opt_param_mask[0x20];
3117
Matan Barakb4ff3a32016-02-09 14:57:42 +02003118 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003119
3120 struct mlx5_ifc_qpc_bits qpc;
3121
Matan Barakb4ff3a32016-02-09 14:57:42 +02003122 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003123};
3124
3125struct mlx5_ifc_sqd2rts_qp_out_bits {
3126 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003127 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003128
3129 u8 syndrome[0x20];
3130
Matan Barakb4ff3a32016-02-09 14:57:42 +02003131 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003132};
3133
3134struct mlx5_ifc_sqd2rts_qp_in_bits {
3135 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003136 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003137
Matan Barakb4ff3a32016-02-09 14:57:42 +02003138 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003139 u8 op_mod[0x10];
3140
Matan Barakb4ff3a32016-02-09 14:57:42 +02003141 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003142 u8 qpn[0x18];
3143
Matan Barakb4ff3a32016-02-09 14:57:42 +02003144 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003145
3146 u8 opt_param_mask[0x20];
3147
Matan Barakb4ff3a32016-02-09 14:57:42 +02003148 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003149
3150 struct mlx5_ifc_qpc_bits qpc;
3151
Matan Barakb4ff3a32016-02-09 14:57:42 +02003152 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003153};
3154
3155struct mlx5_ifc_set_roce_address_out_bits {
3156 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003157 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003158
3159 u8 syndrome[0x20];
3160
Matan Barakb4ff3a32016-02-09 14:57:42 +02003161 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003162};
3163
3164struct mlx5_ifc_set_roce_address_in_bits {
3165 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003166 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003167
Matan Barakb4ff3a32016-02-09 14:57:42 +02003168 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003169 u8 op_mod[0x10];
3170
3171 u8 roce_address_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003172 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003173
Matan Barakb4ff3a32016-02-09 14:57:42 +02003174 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003175
3176 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3177};
3178
3179struct mlx5_ifc_set_mad_demux_out_bits {
3180 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003181 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003182
3183 u8 syndrome[0x20];
3184
Matan Barakb4ff3a32016-02-09 14:57:42 +02003185 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003186};
3187
3188enum {
3189 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
3190 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
3191};
3192
3193struct mlx5_ifc_set_mad_demux_in_bits {
3194 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003195 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003196
Matan Barakb4ff3a32016-02-09 14:57:42 +02003197 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003198 u8 op_mod[0x10];
3199
Matan Barakb4ff3a32016-02-09 14:57:42 +02003200 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003201
Matan Barakb4ff3a32016-02-09 14:57:42 +02003202 u8 reserved_at_60[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003203 u8 demux_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003204 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003205};
3206
3207struct mlx5_ifc_set_l2_table_entry_out_bits {
3208 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003209 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003210
3211 u8 syndrome[0x20];
3212
Matan Barakb4ff3a32016-02-09 14:57:42 +02003213 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003214};
3215
3216struct mlx5_ifc_set_l2_table_entry_in_bits {
3217 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003218 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003219
Matan Barakb4ff3a32016-02-09 14:57:42 +02003220 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003221 u8 op_mod[0x10];
3222
Matan Barakb4ff3a32016-02-09 14:57:42 +02003223 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003224
Matan Barakb4ff3a32016-02-09 14:57:42 +02003225 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003226 u8 table_index[0x18];
3227
Matan Barakb4ff3a32016-02-09 14:57:42 +02003228 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003229
Matan Barakb4ff3a32016-02-09 14:57:42 +02003230 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03003231 u8 vlan_valid[0x1];
3232 u8 vlan[0xc];
3233
3234 struct mlx5_ifc_mac_address_layout_bits mac_address;
3235
Matan Barakb4ff3a32016-02-09 14:57:42 +02003236 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003237};
3238
3239struct mlx5_ifc_set_issi_out_bits {
3240 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003241 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003242
3243 u8 syndrome[0x20];
3244
Matan Barakb4ff3a32016-02-09 14:57:42 +02003245 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003246};
3247
3248struct mlx5_ifc_set_issi_in_bits {
3249 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003250 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003251
Matan Barakb4ff3a32016-02-09 14:57:42 +02003252 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003253 u8 op_mod[0x10];
3254
Matan Barakb4ff3a32016-02-09 14:57:42 +02003255 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003256 u8 current_issi[0x10];
3257
Matan Barakb4ff3a32016-02-09 14:57:42 +02003258 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003259};
3260
3261struct mlx5_ifc_set_hca_cap_out_bits {
3262 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003263 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003264
3265 u8 syndrome[0x20];
3266
Matan Barakb4ff3a32016-02-09 14:57:42 +02003267 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003268};
3269
3270struct mlx5_ifc_set_hca_cap_in_bits {
3271 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003272 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003273
Matan Barakb4ff3a32016-02-09 14:57:42 +02003274 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003275 u8 op_mod[0x10];
3276
Matan Barakb4ff3a32016-02-09 14:57:42 +02003277 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003278
Saeed Mahameede2816822015-05-28 22:28:40 +03003279 union mlx5_ifc_hca_cap_union_bits capability;
3280};
3281
Maor Gottlieb26a81452015-12-10 17:12:39 +02003282enum {
3283 MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0,
3284 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1,
3285 MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2,
3286 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3
3287};
3288
Saeed Mahameede2816822015-05-28 22:28:40 +03003289struct mlx5_ifc_set_fte_out_bits {
3290 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003291 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003292
3293 u8 syndrome[0x20];
3294
Matan Barakb4ff3a32016-02-09 14:57:42 +02003295 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003296};
3297
3298struct mlx5_ifc_set_fte_in_bits {
3299 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003300 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003301
Matan Barakb4ff3a32016-02-09 14:57:42 +02003302 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003303 u8 op_mod[0x10];
3304
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003305 u8 other_vport[0x1];
3306 u8 reserved_at_41[0xf];
3307 u8 vport_number[0x10];
3308
3309 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003310
3311 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003312 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003313
Matan Barakb4ff3a32016-02-09 14:57:42 +02003314 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003315 u8 table_id[0x18];
3316
Matan Barakb4ff3a32016-02-09 14:57:42 +02003317 u8 reserved_at_c0[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +02003318 u8 modify_enable_mask[0x8];
3319
Matan Barakb4ff3a32016-02-09 14:57:42 +02003320 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003321
3322 u8 flow_index[0x20];
3323
Matan Barakb4ff3a32016-02-09 14:57:42 +02003324 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003325
3326 struct mlx5_ifc_flow_context_bits flow_context;
3327};
3328
3329struct mlx5_ifc_rts2rts_qp_out_bits {
3330 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003331 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003332
3333 u8 syndrome[0x20];
3334
Matan Barakb4ff3a32016-02-09 14:57:42 +02003335 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003336};
3337
3338struct mlx5_ifc_rts2rts_qp_in_bits {
3339 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003340 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003341
Matan Barakb4ff3a32016-02-09 14:57:42 +02003342 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003343 u8 op_mod[0x10];
3344
Matan Barakb4ff3a32016-02-09 14:57:42 +02003345 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003346 u8 qpn[0x18];
3347
Matan Barakb4ff3a32016-02-09 14:57:42 +02003348 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003349
3350 u8 opt_param_mask[0x20];
3351
Matan Barakb4ff3a32016-02-09 14:57:42 +02003352 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003353
3354 struct mlx5_ifc_qpc_bits qpc;
3355
Matan Barakb4ff3a32016-02-09 14:57:42 +02003356 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003357};
3358
3359struct mlx5_ifc_rtr2rts_qp_out_bits {
3360 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003361 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003362
3363 u8 syndrome[0x20];
3364
Matan Barakb4ff3a32016-02-09 14:57:42 +02003365 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003366};
3367
3368struct mlx5_ifc_rtr2rts_qp_in_bits {
3369 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003370 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003371
Matan Barakb4ff3a32016-02-09 14:57:42 +02003372 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003373 u8 op_mod[0x10];
3374
Matan Barakb4ff3a32016-02-09 14:57:42 +02003375 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003376 u8 qpn[0x18];
3377
Matan Barakb4ff3a32016-02-09 14:57:42 +02003378 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003379
3380 u8 opt_param_mask[0x20];
3381
Matan Barakb4ff3a32016-02-09 14:57:42 +02003382 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003383
3384 struct mlx5_ifc_qpc_bits qpc;
3385
Matan Barakb4ff3a32016-02-09 14:57:42 +02003386 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003387};
3388
3389struct mlx5_ifc_rst2init_qp_out_bits {
3390 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003391 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003392
3393 u8 syndrome[0x20];
3394
Matan Barakb4ff3a32016-02-09 14:57:42 +02003395 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003396};
3397
3398struct mlx5_ifc_rst2init_qp_in_bits {
3399 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003400 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003401
Matan Barakb4ff3a32016-02-09 14:57:42 +02003402 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003403 u8 op_mod[0x10];
3404
Matan Barakb4ff3a32016-02-09 14:57:42 +02003405 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003406 u8 qpn[0x18];
3407
Matan Barakb4ff3a32016-02-09 14:57:42 +02003408 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003409
3410 u8 opt_param_mask[0x20];
3411
Matan Barakb4ff3a32016-02-09 14:57:42 +02003412 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003413
3414 struct mlx5_ifc_qpc_bits qpc;
3415
Matan Barakb4ff3a32016-02-09 14:57:42 +02003416 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003417};
3418
Saeed Mahameed74862162016-06-09 15:11:34 +03003419struct mlx5_ifc_query_xrq_out_bits {
3420 u8 status[0x8];
3421 u8 reserved_at_8[0x18];
3422
3423 u8 syndrome[0x20];
3424
3425 u8 reserved_at_40[0x40];
3426
3427 struct mlx5_ifc_xrqc_bits xrq_context;
3428};
3429
3430struct mlx5_ifc_query_xrq_in_bits {
3431 u8 opcode[0x10];
3432 u8 reserved_at_10[0x10];
3433
3434 u8 reserved_at_20[0x10];
3435 u8 op_mod[0x10];
3436
3437 u8 reserved_at_40[0x8];
3438 u8 xrqn[0x18];
3439
3440 u8 reserved_at_60[0x20];
3441};
3442
Saeed Mahameede2816822015-05-28 22:28:40 +03003443struct mlx5_ifc_query_xrc_srq_out_bits {
3444 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003445 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003446
3447 u8 syndrome[0x20];
3448
Matan Barakb4ff3a32016-02-09 14:57:42 +02003449 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003450
3451 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
3452
Matan Barakb4ff3a32016-02-09 14:57:42 +02003453 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003454
3455 u8 pas[0][0x40];
3456};
3457
3458struct mlx5_ifc_query_xrc_srq_in_bits {
3459 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003460 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003461
Matan Barakb4ff3a32016-02-09 14:57:42 +02003462 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003463 u8 op_mod[0x10];
3464
Matan Barakb4ff3a32016-02-09 14:57:42 +02003465 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003466 u8 xrc_srqn[0x18];
3467
Matan Barakb4ff3a32016-02-09 14:57:42 +02003468 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003469};
3470
3471enum {
3472 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
3473 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
3474};
3475
3476struct mlx5_ifc_query_vport_state_out_bits {
3477 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003478 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003479
3480 u8 syndrome[0x20];
3481
Matan Barakb4ff3a32016-02-09 14:57:42 +02003482 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003483
Matan Barakb4ff3a32016-02-09 14:57:42 +02003484 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003485 u8 admin_state[0x4];
3486 u8 state[0x4];
3487};
3488
3489enum {
3490 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0,
Saeed Mahameede7546512015-12-01 18:03:13 +02003491 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1,
Saeed Mahameede2816822015-05-28 22:28:40 +03003492};
3493
3494struct mlx5_ifc_query_vport_state_in_bits {
3495 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003496 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003497
Matan Barakb4ff3a32016-02-09 14:57:42 +02003498 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003499 u8 op_mod[0x10];
3500
3501 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003502 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003503 u8 vport_number[0x10];
3504
Matan Barakb4ff3a32016-02-09 14:57:42 +02003505 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003506};
3507
3508struct mlx5_ifc_query_vport_counter_out_bits {
3509 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003510 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003511
3512 u8 syndrome[0x20];
3513
Matan Barakb4ff3a32016-02-09 14:57:42 +02003514 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003515
3516 struct mlx5_ifc_traffic_counter_bits received_errors;
3517
3518 struct mlx5_ifc_traffic_counter_bits transmit_errors;
3519
3520 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
3521
3522 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
3523
3524 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
3525
3526 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
3527
3528 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
3529
3530 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
3531
3532 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
3533
3534 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
3535
3536 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
3537
3538 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
3539
Matan Barakb4ff3a32016-02-09 14:57:42 +02003540 u8 reserved_at_680[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +03003541};
3542
3543enum {
3544 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
3545};
3546
3547struct mlx5_ifc_query_vport_counter_in_bits {
3548 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003549 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003550
Matan Barakb4ff3a32016-02-09 14:57:42 +02003551 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003552 u8 op_mod[0x10];
3553
3554 u8 other_vport[0x1];
Meny Yossefib54ba272016-02-18 18:14:59 +02003555 u8 reserved_at_41[0xb];
3556 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003557 u8 vport_number[0x10];
3558
Matan Barakb4ff3a32016-02-09 14:57:42 +02003559 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003560
3561 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003562 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03003563
Matan Barakb4ff3a32016-02-09 14:57:42 +02003564 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003565};
3566
3567struct mlx5_ifc_query_tis_out_bits {
3568 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003569 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003570
3571 u8 syndrome[0x20];
3572
Matan Barakb4ff3a32016-02-09 14:57:42 +02003573 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003574
3575 struct mlx5_ifc_tisc_bits tis_context;
3576};
3577
3578struct mlx5_ifc_query_tis_in_bits {
3579 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003580 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003581
Matan Barakb4ff3a32016-02-09 14:57:42 +02003582 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003583 u8 op_mod[0x10];
3584
Matan Barakb4ff3a32016-02-09 14:57:42 +02003585 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003586 u8 tisn[0x18];
3587
Matan Barakb4ff3a32016-02-09 14:57:42 +02003588 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003589};
3590
3591struct mlx5_ifc_query_tir_out_bits {
3592 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003593 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003594
3595 u8 syndrome[0x20];
3596
Matan Barakb4ff3a32016-02-09 14:57:42 +02003597 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003598
3599 struct mlx5_ifc_tirc_bits tir_context;
3600};
3601
3602struct mlx5_ifc_query_tir_in_bits {
3603 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003604 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003605
Matan Barakb4ff3a32016-02-09 14:57:42 +02003606 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003607 u8 op_mod[0x10];
3608
Matan Barakb4ff3a32016-02-09 14:57:42 +02003609 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003610 u8 tirn[0x18];
3611
Matan Barakb4ff3a32016-02-09 14:57:42 +02003612 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003613};
3614
3615struct mlx5_ifc_query_srq_out_bits {
3616 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003617 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003618
3619 u8 syndrome[0x20];
3620
Matan Barakb4ff3a32016-02-09 14:57:42 +02003621 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003622
3623 struct mlx5_ifc_srqc_bits srq_context_entry;
3624
Matan Barakb4ff3a32016-02-09 14:57:42 +02003625 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003626
3627 u8 pas[0][0x40];
3628};
3629
3630struct mlx5_ifc_query_srq_in_bits {
3631 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003632 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003633
Matan Barakb4ff3a32016-02-09 14:57:42 +02003634 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003635 u8 op_mod[0x10];
3636
Matan Barakb4ff3a32016-02-09 14:57:42 +02003637 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003638 u8 srqn[0x18];
3639
Matan Barakb4ff3a32016-02-09 14:57:42 +02003640 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003641};
3642
3643struct mlx5_ifc_query_sq_out_bits {
3644 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003645 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003646
3647 u8 syndrome[0x20];
3648
Matan Barakb4ff3a32016-02-09 14:57:42 +02003649 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003650
3651 struct mlx5_ifc_sqc_bits sq_context;
3652};
3653
3654struct mlx5_ifc_query_sq_in_bits {
3655 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003656 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003657
Matan Barakb4ff3a32016-02-09 14:57:42 +02003658 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003659 u8 op_mod[0x10];
3660
Matan Barakb4ff3a32016-02-09 14:57:42 +02003661 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003662 u8 sqn[0x18];
3663
Matan Barakb4ff3a32016-02-09 14:57:42 +02003664 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003665};
3666
3667struct mlx5_ifc_query_special_contexts_out_bits {
3668 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003669 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003670
3671 u8 syndrome[0x20];
3672
Saeed Mahameedec22eb52016-07-16 06:28:36 +03003673 u8 dump_fill_mkey[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003674
3675 u8 resd_lkey[0x20];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02003676
3677 u8 null_mkey[0x20];
3678
3679 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003680};
3681
3682struct mlx5_ifc_query_special_contexts_in_bits {
3683 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003684 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003685
Matan Barakb4ff3a32016-02-09 14:57:42 +02003686 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003687 u8 op_mod[0x10];
3688
Matan Barakb4ff3a32016-02-09 14:57:42 +02003689 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003690};
3691
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03003692struct mlx5_ifc_query_scheduling_element_out_bits {
3693 u8 opcode[0x10];
3694 u8 reserved_at_10[0x10];
3695
3696 u8 reserved_at_20[0x10];
3697 u8 op_mod[0x10];
3698
3699 u8 reserved_at_40[0xc0];
3700
3701 struct mlx5_ifc_scheduling_context_bits scheduling_context;
3702
3703 u8 reserved_at_300[0x100];
3704};
3705
3706enum {
3707 SCHEDULING_HIERARCHY_E_SWITCH = 0x2,
3708};
3709
3710struct mlx5_ifc_query_scheduling_element_in_bits {
3711 u8 opcode[0x10];
3712 u8 reserved_at_10[0x10];
3713
3714 u8 reserved_at_20[0x10];
3715 u8 op_mod[0x10];
3716
3717 u8 scheduling_hierarchy[0x8];
3718 u8 reserved_at_48[0x18];
3719
3720 u8 scheduling_element_id[0x20];
3721
3722 u8 reserved_at_80[0x180];
3723};
3724
Saeed Mahameede2816822015-05-28 22:28:40 +03003725struct mlx5_ifc_query_rqt_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[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003732
3733 struct mlx5_ifc_rqtc_bits rqt_context;
3734};
3735
3736struct mlx5_ifc_query_rqt_in_bits {
3737 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003738 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003739
Matan Barakb4ff3a32016-02-09 14:57:42 +02003740 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003741 u8 op_mod[0x10];
3742
Matan Barakb4ff3a32016-02-09 14:57:42 +02003743 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003744 u8 rqtn[0x18];
3745
Matan Barakb4ff3a32016-02-09 14:57:42 +02003746 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003747};
3748
3749struct mlx5_ifc_query_rq_out_bits {
3750 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003751 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003752
3753 u8 syndrome[0x20];
3754
Matan Barakb4ff3a32016-02-09 14:57:42 +02003755 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003756
3757 struct mlx5_ifc_rqc_bits rq_context;
3758};
3759
3760struct mlx5_ifc_query_rq_in_bits {
3761 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003762 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003763
Matan Barakb4ff3a32016-02-09 14:57:42 +02003764 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003765 u8 op_mod[0x10];
3766
Matan Barakb4ff3a32016-02-09 14:57:42 +02003767 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003768 u8 rqn[0x18];
3769
Matan Barakb4ff3a32016-02-09 14:57:42 +02003770 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003771};
3772
3773struct mlx5_ifc_query_roce_address_out_bits {
3774 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003775 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003776
3777 u8 syndrome[0x20];
3778
Matan Barakb4ff3a32016-02-09 14:57:42 +02003779 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003780
3781 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3782};
3783
3784struct mlx5_ifc_query_roce_address_in_bits {
3785 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003786 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003787
Matan Barakb4ff3a32016-02-09 14:57:42 +02003788 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003789 u8 op_mod[0x10];
3790
3791 u8 roce_address_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003792 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003793
Matan Barakb4ff3a32016-02-09 14:57:42 +02003794 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003795};
3796
3797struct mlx5_ifc_query_rmp_out_bits {
3798 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003799 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003800
3801 u8 syndrome[0x20];
3802
Matan Barakb4ff3a32016-02-09 14:57:42 +02003803 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003804
3805 struct mlx5_ifc_rmpc_bits rmp_context;
3806};
3807
3808struct mlx5_ifc_query_rmp_in_bits {
3809 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003810 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003811
Matan Barakb4ff3a32016-02-09 14:57:42 +02003812 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003813 u8 op_mod[0x10];
3814
Matan Barakb4ff3a32016-02-09 14:57:42 +02003815 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003816 u8 rmpn[0x18];
3817
Matan Barakb4ff3a32016-02-09 14:57:42 +02003818 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003819};
3820
3821struct mlx5_ifc_query_qp_out_bits {
3822 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003823 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003824
3825 u8 syndrome[0x20];
3826
Matan Barakb4ff3a32016-02-09 14:57:42 +02003827 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003828
3829 u8 opt_param_mask[0x20];
3830
Matan Barakb4ff3a32016-02-09 14:57:42 +02003831 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003832
3833 struct mlx5_ifc_qpc_bits qpc;
3834
Matan Barakb4ff3a32016-02-09 14:57:42 +02003835 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003836
3837 u8 pas[0][0x40];
3838};
3839
3840struct mlx5_ifc_query_qp_in_bits {
3841 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003842 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003843
Matan Barakb4ff3a32016-02-09 14:57:42 +02003844 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003845 u8 op_mod[0x10];
3846
Matan Barakb4ff3a32016-02-09 14:57:42 +02003847 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003848 u8 qpn[0x18];
3849
Matan Barakb4ff3a32016-02-09 14:57:42 +02003850 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003851};
3852
3853struct mlx5_ifc_query_q_counter_out_bits {
3854 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003855 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003856
3857 u8 syndrome[0x20];
3858
Matan Barakb4ff3a32016-02-09 14:57:42 +02003859 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003860
3861 u8 rx_write_requests[0x20];
3862
Matan Barakb4ff3a32016-02-09 14:57:42 +02003863 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003864
3865 u8 rx_read_requests[0x20];
3866
Matan Barakb4ff3a32016-02-09 14:57:42 +02003867 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003868
3869 u8 rx_atomic_requests[0x20];
3870
Matan Barakb4ff3a32016-02-09 14:57:42 +02003871 u8 reserved_at_120[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003872
3873 u8 rx_dct_connect[0x20];
3874
Matan Barakb4ff3a32016-02-09 14:57:42 +02003875 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003876
3877 u8 out_of_buffer[0x20];
3878
Matan Barakb4ff3a32016-02-09 14:57:42 +02003879 u8 reserved_at_1a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003880
3881 u8 out_of_sequence[0x20];
3882
Saeed Mahameed74862162016-06-09 15:11:34 +03003883 u8 reserved_at_1e0[0x20];
3884
3885 u8 duplicate_request[0x20];
3886
3887 u8 reserved_at_220[0x20];
3888
3889 u8 rnr_nak_retry_err[0x20];
3890
3891 u8 reserved_at_260[0x20];
3892
3893 u8 packet_seq_err[0x20];
3894
3895 u8 reserved_at_2a0[0x20];
3896
3897 u8 implied_nak_seq_err[0x20];
3898
3899 u8 reserved_at_2e0[0x20];
3900
3901 u8 local_ack_timeout_err[0x20];
3902
3903 u8 reserved_at_320[0x4e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003904};
3905
3906struct mlx5_ifc_query_q_counter_in_bits {
3907 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003908 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003909
Matan Barakb4ff3a32016-02-09 14:57:42 +02003910 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003911 u8 op_mod[0x10];
3912
Matan Barakb4ff3a32016-02-09 14:57:42 +02003913 u8 reserved_at_40[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003914
3915 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003916 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03003917
Matan Barakb4ff3a32016-02-09 14:57:42 +02003918 u8 reserved_at_e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003919 u8 counter_set_id[0x8];
3920};
3921
3922struct mlx5_ifc_query_pages_out_bits {
3923 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003924 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003925
3926 u8 syndrome[0x20];
3927
Matan Barakb4ff3a32016-02-09 14:57:42 +02003928 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003929 u8 function_id[0x10];
3930
3931 u8 num_pages[0x20];
3932};
3933
3934enum {
3935 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
3936 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
3937 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
3938};
3939
3940struct mlx5_ifc_query_pages_in_bits {
3941 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003942 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003943
Matan Barakb4ff3a32016-02-09 14:57:42 +02003944 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003945 u8 op_mod[0x10];
3946
Matan Barakb4ff3a32016-02-09 14:57:42 +02003947 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003948 u8 function_id[0x10];
3949
Matan Barakb4ff3a32016-02-09 14:57:42 +02003950 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003951};
3952
3953struct mlx5_ifc_query_nic_vport_context_out_bits {
3954 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003955 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003956
3957 u8 syndrome[0x20];
3958
Matan Barakb4ff3a32016-02-09 14:57:42 +02003959 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003960
3961 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
3962};
3963
3964struct mlx5_ifc_query_nic_vport_context_in_bits {
3965 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003966 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003967
Matan Barakb4ff3a32016-02-09 14:57:42 +02003968 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003969 u8 op_mod[0x10];
3970
3971 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003972 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003973 u8 vport_number[0x10];
3974
Matan Barakb4ff3a32016-02-09 14:57:42 +02003975 u8 reserved_at_60[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003976 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003977 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003978};
3979
3980struct mlx5_ifc_query_mkey_out_bits {
3981 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003982 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003983
3984 u8 syndrome[0x20];
3985
Matan Barakb4ff3a32016-02-09 14:57:42 +02003986 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003987
3988 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
3989
Matan Barakb4ff3a32016-02-09 14:57:42 +02003990 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003991
3992 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
3993
3994 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
3995};
3996
3997struct mlx5_ifc_query_mkey_in_bits {
3998 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003999 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004000
Matan Barakb4ff3a32016-02-09 14:57:42 +02004001 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004002 u8 op_mod[0x10];
4003
Matan Barakb4ff3a32016-02-09 14:57:42 +02004004 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004005 u8 mkey_index[0x18];
4006
4007 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004008 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004009};
4010
4011struct mlx5_ifc_query_mad_demux_out_bits {
4012 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004013 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004014
4015 u8 syndrome[0x20];
4016
Matan Barakb4ff3a32016-02-09 14:57:42 +02004017 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004018
4019 u8 mad_dumux_parameters_block[0x20];
4020};
4021
4022struct mlx5_ifc_query_mad_demux_in_bits {
4023 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004024 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004025
Matan Barakb4ff3a32016-02-09 14:57:42 +02004026 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004027 u8 op_mod[0x10];
4028
Matan Barakb4ff3a32016-02-09 14:57:42 +02004029 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004030};
4031
4032struct mlx5_ifc_query_l2_table_entry_out_bits {
4033 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004034 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004035
4036 u8 syndrome[0x20];
4037
Matan Barakb4ff3a32016-02-09 14:57:42 +02004038 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004039
Matan Barakb4ff3a32016-02-09 14:57:42 +02004040 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03004041 u8 vlan_valid[0x1];
4042 u8 vlan[0xc];
4043
4044 struct mlx5_ifc_mac_address_layout_bits mac_address;
4045
Matan Barakb4ff3a32016-02-09 14:57:42 +02004046 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004047};
4048
4049struct mlx5_ifc_query_l2_table_entry_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
Matan Barakb4ff3a32016-02-09 14:57:42 +02004056 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03004057
Matan Barakb4ff3a32016-02-09 14:57:42 +02004058 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004059 u8 table_index[0x18];
4060
Matan Barakb4ff3a32016-02-09 14:57:42 +02004061 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004062};
4063
4064struct mlx5_ifc_query_issi_out_bits {
4065 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004066 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004067
4068 u8 syndrome[0x20];
4069
Matan Barakb4ff3a32016-02-09 14:57:42 +02004070 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004071 u8 current_issi[0x10];
4072
Matan Barakb4ff3a32016-02-09 14:57:42 +02004073 u8 reserved_at_60[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004074
Matan Barakb4ff3a32016-02-09 14:57:42 +02004075 u8 reserved_at_100[76][0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004076 u8 supported_issi_dw0[0x20];
4077};
4078
4079struct mlx5_ifc_query_issi_in_bits {
4080 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004081 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004082
Matan Barakb4ff3a32016-02-09 14:57:42 +02004083 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004084 u8 op_mod[0x10];
4085
Matan Barakb4ff3a32016-02-09 14:57:42 +02004086 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004087};
4088
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +02004089struct mlx5_ifc_set_driver_version_out_bits {
4090 u8 status[0x8];
4091 u8 reserved_0[0x18];
4092
4093 u8 syndrome[0x20];
4094 u8 reserved_1[0x40];
4095};
4096
4097struct mlx5_ifc_set_driver_version_in_bits {
4098 u8 opcode[0x10];
4099 u8 reserved_0[0x10];
4100
4101 u8 reserved_1[0x10];
4102 u8 op_mod[0x10];
4103
4104 u8 reserved_2[0x40];
4105 u8 driver_version[64][0x8];
4106};
4107
Saeed Mahameede2816822015-05-28 22:28:40 +03004108struct mlx5_ifc_query_hca_vport_pkey_out_bits {
4109 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004110 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004111
4112 u8 syndrome[0x20];
4113
Matan Barakb4ff3a32016-02-09 14:57:42 +02004114 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004115
4116 struct mlx5_ifc_pkey_bits pkey[0];
4117};
4118
4119struct mlx5_ifc_query_hca_vport_pkey_in_bits {
4120 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004121 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004122
Matan Barakb4ff3a32016-02-09 14:57:42 +02004123 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004124 u8 op_mod[0x10];
4125
4126 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004127 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004128 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004129 u8 vport_number[0x10];
4130
Matan Barakb4ff3a32016-02-09 14:57:42 +02004131 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004132 u8 pkey_index[0x10];
4133};
4134
Eli Coheneff901d2016-03-11 22:58:42 +02004135enum {
4136 MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0,
4137 MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1,
4138 MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2,
4139};
4140
Saeed Mahameede2816822015-05-28 22:28:40 +03004141struct mlx5_ifc_query_hca_vport_gid_out_bits {
4142 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004143 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004144
4145 u8 syndrome[0x20];
4146
Matan Barakb4ff3a32016-02-09 14:57:42 +02004147 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004148
4149 u8 gids_num[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004150 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004151
4152 struct mlx5_ifc_array128_auto_bits gid[0];
4153};
4154
4155struct mlx5_ifc_query_hca_vport_gid_in_bits {
4156 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004157 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004158
Matan Barakb4ff3a32016-02-09 14:57:42 +02004159 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004160 u8 op_mod[0x10];
4161
4162 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004163 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004164 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004165 u8 vport_number[0x10];
4166
Matan Barakb4ff3a32016-02-09 14:57:42 +02004167 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004168 u8 gid_index[0x10];
4169};
4170
4171struct mlx5_ifc_query_hca_vport_context_out_bits {
4172 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004173 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004174
4175 u8 syndrome[0x20];
4176
Matan Barakb4ff3a32016-02-09 14:57:42 +02004177 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004178
4179 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4180};
4181
4182struct mlx5_ifc_query_hca_vport_context_in_bits {
4183 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004184 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004185
Matan Barakb4ff3a32016-02-09 14:57:42 +02004186 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004187 u8 op_mod[0x10];
4188
4189 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004190 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004191 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004192 u8 vport_number[0x10];
4193
Matan Barakb4ff3a32016-02-09 14:57:42 +02004194 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004195};
4196
4197struct mlx5_ifc_query_hca_cap_out_bits {
4198 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004199 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004200
4201 u8 syndrome[0x20];
4202
Matan Barakb4ff3a32016-02-09 14:57:42 +02004203 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004204
4205 union mlx5_ifc_hca_cap_union_bits capability;
Eli Cohenb7755162014-10-02 12:19:44 +03004206};
4207
4208struct mlx5_ifc_query_hca_cap_in_bits {
4209 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004210 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004211
Matan Barakb4ff3a32016-02-09 14:57:42 +02004212 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004213 u8 op_mod[0x10];
4214
Matan Barakb4ff3a32016-02-09 14:57:42 +02004215 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03004216};
4217
Saeed Mahameede2816822015-05-28 22:28:40 +03004218struct mlx5_ifc_query_flow_table_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004219 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004220 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004221
4222 u8 syndrome[0x20];
4223
Matan Barakb4ff3a32016-02-09 14:57:42 +02004224 u8 reserved_at_40[0x80];
Eli Cohenb7755162014-10-02 12:19:44 +03004225
Matan Barakb4ff3a32016-02-09 14:57:42 +02004226 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004227 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004228 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004229 u8 log_size[0x8];
4230
Matan Barakb4ff3a32016-02-09 14:57:42 +02004231 u8 reserved_at_e0[0x120];
Eli Cohenb7755162014-10-02 12:19:44 +03004232};
4233
Saeed Mahameede2816822015-05-28 22:28:40 +03004234struct mlx5_ifc_query_flow_table_in_bits {
4235 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004236 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004237
Matan Barakb4ff3a32016-02-09 14:57:42 +02004238 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004239 u8 op_mod[0x10];
4240
Matan Barakb4ff3a32016-02-09 14:57:42 +02004241 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004242
4243 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004244 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004245
Matan Barakb4ff3a32016-02-09 14:57:42 +02004246 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004247 u8 table_id[0x18];
4248
Matan Barakb4ff3a32016-02-09 14:57:42 +02004249 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004250};
4251
4252struct mlx5_ifc_query_fte_out_bits {
4253 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004254 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004255
4256 u8 syndrome[0x20];
4257
Matan Barakb4ff3a32016-02-09 14:57:42 +02004258 u8 reserved_at_40[0x1c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004259
4260 struct mlx5_ifc_flow_context_bits flow_context;
4261};
4262
4263struct mlx5_ifc_query_fte_in_bits {
4264 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004265 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004266
Matan Barakb4ff3a32016-02-09 14:57:42 +02004267 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004268 u8 op_mod[0x10];
4269
Matan Barakb4ff3a32016-02-09 14:57:42 +02004270 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004271
4272 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004273 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004274
Matan Barakb4ff3a32016-02-09 14:57:42 +02004275 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004276 u8 table_id[0x18];
4277
Matan Barakb4ff3a32016-02-09 14:57:42 +02004278 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004279
4280 u8 flow_index[0x20];
4281
Matan Barakb4ff3a32016-02-09 14:57:42 +02004282 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004283};
4284
4285enum {
4286 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
4287 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
4288 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
4289};
4290
4291struct mlx5_ifc_query_flow_group_out_bits {
4292 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004293 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004294
4295 u8 syndrome[0x20];
4296
Matan Barakb4ff3a32016-02-09 14:57:42 +02004297 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004298
4299 u8 start_flow_index[0x20];
4300
Matan Barakb4ff3a32016-02-09 14:57:42 +02004301 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004302
4303 u8 end_flow_index[0x20];
4304
Matan Barakb4ff3a32016-02-09 14:57:42 +02004305 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004306
Matan Barakb4ff3a32016-02-09 14:57:42 +02004307 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004308 u8 match_criteria_enable[0x8];
4309
4310 struct mlx5_ifc_fte_match_param_bits match_criteria;
4311
Matan Barakb4ff3a32016-02-09 14:57:42 +02004312 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03004313};
4314
4315struct mlx5_ifc_query_flow_group_in_bits {
4316 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004317 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004318
Matan Barakb4ff3a32016-02-09 14:57:42 +02004319 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004320 u8 op_mod[0x10];
4321
Matan Barakb4ff3a32016-02-09 14:57:42 +02004322 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004323
4324 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004325 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004326
Matan Barakb4ff3a32016-02-09 14:57:42 +02004327 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004328 u8 table_id[0x18];
4329
4330 u8 group_id[0x20];
4331
Matan Barakb4ff3a32016-02-09 14:57:42 +02004332 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03004333};
4334
Amir Vadai9dc0b282016-05-13 12:55:39 +00004335struct mlx5_ifc_query_flow_counter_out_bits {
4336 u8 status[0x8];
4337 u8 reserved_at_8[0x18];
4338
4339 u8 syndrome[0x20];
4340
4341 u8 reserved_at_40[0x40];
4342
4343 struct mlx5_ifc_traffic_counter_bits flow_statistics[0];
4344};
4345
4346struct mlx5_ifc_query_flow_counter_in_bits {
4347 u8 opcode[0x10];
4348 u8 reserved_at_10[0x10];
4349
4350 u8 reserved_at_20[0x10];
4351 u8 op_mod[0x10];
4352
4353 u8 reserved_at_40[0x80];
4354
4355 u8 clear[0x1];
4356 u8 reserved_at_c1[0xf];
4357 u8 num_of_counters[0x10];
4358
4359 u8 reserved_at_e0[0x10];
4360 u8 flow_counter_id[0x10];
4361};
4362
Saeed Mahameedd6666752015-12-01 18:03:22 +02004363struct mlx5_ifc_query_esw_vport_context_out_bits {
4364 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004365 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004366
4367 u8 syndrome[0x20];
4368
Matan Barakb4ff3a32016-02-09 14:57:42 +02004369 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004370
4371 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4372};
4373
4374struct mlx5_ifc_query_esw_vport_context_in_bits {
4375 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004376 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004377
Matan Barakb4ff3a32016-02-09 14:57:42 +02004378 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004379 u8 op_mod[0x10];
4380
4381 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004382 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004383 u8 vport_number[0x10];
4384
Matan Barakb4ff3a32016-02-09 14:57:42 +02004385 u8 reserved_at_60[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004386};
4387
4388struct mlx5_ifc_modify_esw_vport_context_out_bits {
4389 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004390 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004391
4392 u8 syndrome[0x20];
4393
Matan Barakb4ff3a32016-02-09 14:57:42 +02004394 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004395};
4396
4397struct mlx5_ifc_esw_vport_context_fields_select_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004398 u8 reserved_at_0[0x1c];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004399 u8 vport_cvlan_insert[0x1];
4400 u8 vport_svlan_insert[0x1];
4401 u8 vport_cvlan_strip[0x1];
4402 u8 vport_svlan_strip[0x1];
4403};
4404
4405struct mlx5_ifc_modify_esw_vport_context_in_bits {
4406 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004407 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004408
Matan Barakb4ff3a32016-02-09 14:57:42 +02004409 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004410 u8 op_mod[0x10];
4411
4412 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004413 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004414 u8 vport_number[0x10];
4415
4416 struct mlx5_ifc_esw_vport_context_fields_select_bits field_select;
4417
4418 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4419};
4420
Saeed Mahameede2816822015-05-28 22:28:40 +03004421struct mlx5_ifc_query_eq_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004422 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004423 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004424
4425 u8 syndrome[0x20];
4426
Matan Barakb4ff3a32016-02-09 14:57:42 +02004427 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004428
4429 struct mlx5_ifc_eqc_bits eq_context_entry;
4430
Matan Barakb4ff3a32016-02-09 14:57:42 +02004431 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004432
4433 u8 event_bitmask[0x40];
4434
Matan Barakb4ff3a32016-02-09 14:57:42 +02004435 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03004436
4437 u8 pas[0][0x40];
4438};
4439
4440struct mlx5_ifc_query_eq_in_bits {
4441 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004442 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004443
Matan Barakb4ff3a32016-02-09 14:57:42 +02004444 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004445 u8 op_mod[0x10];
4446
Matan Barakb4ff3a32016-02-09 14:57:42 +02004447 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004448 u8 eq_number[0x8];
4449
Matan Barakb4ff3a32016-02-09 14:57:42 +02004450 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004451};
4452
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004453struct mlx5_ifc_encap_header_in_bits {
4454 u8 reserved_at_0[0x5];
4455 u8 header_type[0x3];
4456 u8 reserved_at_8[0xe];
4457 u8 encap_header_size[0xa];
4458
4459 u8 reserved_at_20[0x10];
4460 u8 encap_header[2][0x8];
4461
4462 u8 more_encap_header[0][0x8];
4463};
4464
4465struct mlx5_ifc_query_encap_header_out_bits {
4466 u8 status[0x8];
4467 u8 reserved_at_8[0x18];
4468
4469 u8 syndrome[0x20];
4470
4471 u8 reserved_at_40[0xa0];
4472
4473 struct mlx5_ifc_encap_header_in_bits encap_header[0];
4474};
4475
4476struct mlx5_ifc_query_encap_header_in_bits {
4477 u8 opcode[0x10];
4478 u8 reserved_at_10[0x10];
4479
4480 u8 reserved_at_20[0x10];
4481 u8 op_mod[0x10];
4482
4483 u8 encap_id[0x20];
4484
4485 u8 reserved_at_60[0xa0];
4486};
4487
4488struct mlx5_ifc_alloc_encap_header_out_bits {
4489 u8 status[0x8];
4490 u8 reserved_at_8[0x18];
4491
4492 u8 syndrome[0x20];
4493
4494 u8 encap_id[0x20];
4495
4496 u8 reserved_at_60[0x20];
4497};
4498
4499struct mlx5_ifc_alloc_encap_header_in_bits {
4500 u8 opcode[0x10];
4501 u8 reserved_at_10[0x10];
4502
4503 u8 reserved_at_20[0x10];
4504 u8 op_mod[0x10];
4505
4506 u8 reserved_at_40[0xa0];
4507
4508 struct mlx5_ifc_encap_header_in_bits encap_header;
4509};
4510
4511struct mlx5_ifc_dealloc_encap_header_out_bits {
4512 u8 status[0x8];
4513 u8 reserved_at_8[0x18];
4514
4515 u8 syndrome[0x20];
4516
4517 u8 reserved_at_40[0x40];
4518};
4519
4520struct mlx5_ifc_dealloc_encap_header_in_bits {
4521 u8 opcode[0x10];
4522 u8 reserved_at_10[0x10];
4523
4524 u8 reserved_20[0x10];
4525 u8 op_mod[0x10];
4526
4527 u8 encap_id[0x20];
4528
4529 u8 reserved_60[0x20];
4530};
4531
Saeed Mahameede2816822015-05-28 22:28:40 +03004532struct mlx5_ifc_query_dct_out_bits {
4533 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004534 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004535
4536 u8 syndrome[0x20];
4537
Matan Barakb4ff3a32016-02-09 14:57:42 +02004538 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004539
4540 struct mlx5_ifc_dctc_bits dct_context_entry;
4541
Matan Barakb4ff3a32016-02-09 14:57:42 +02004542 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03004543};
4544
4545struct mlx5_ifc_query_dct_in_bits {
4546 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004547 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004548
Matan Barakb4ff3a32016-02-09 14:57:42 +02004549 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004550 u8 op_mod[0x10];
4551
Matan Barakb4ff3a32016-02-09 14:57:42 +02004552 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004553 u8 dctn[0x18];
4554
Matan Barakb4ff3a32016-02-09 14:57:42 +02004555 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004556};
4557
4558struct mlx5_ifc_query_cq_out_bits {
4559 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004560 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004561
4562 u8 syndrome[0x20];
4563
Matan Barakb4ff3a32016-02-09 14:57:42 +02004564 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004565
4566 struct mlx5_ifc_cqc_bits cq_context;
4567
Matan Barakb4ff3a32016-02-09 14:57:42 +02004568 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004569
4570 u8 pas[0][0x40];
4571};
4572
4573struct mlx5_ifc_query_cq_in_bits {
4574 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004575 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004576
Matan Barakb4ff3a32016-02-09 14:57:42 +02004577 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004578 u8 op_mod[0x10];
4579
Matan Barakb4ff3a32016-02-09 14:57:42 +02004580 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004581 u8 cqn[0x18];
4582
Matan Barakb4ff3a32016-02-09 14:57:42 +02004583 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004584};
4585
4586struct mlx5_ifc_query_cong_status_out_bits {
4587 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004588 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004589
4590 u8 syndrome[0x20];
4591
Matan Barakb4ff3a32016-02-09 14:57:42 +02004592 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004593
4594 u8 enable[0x1];
4595 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004596 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03004597};
4598
4599struct mlx5_ifc_query_cong_status_in_bits {
4600 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004601 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004602
Matan Barakb4ff3a32016-02-09 14:57:42 +02004603 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004604 u8 op_mod[0x10];
4605
Matan Barakb4ff3a32016-02-09 14:57:42 +02004606 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004607 u8 priority[0x4];
4608 u8 cong_protocol[0x4];
4609
Matan Barakb4ff3a32016-02-09 14:57:42 +02004610 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004611};
4612
4613struct mlx5_ifc_query_cong_statistics_out_bits {
4614 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004615 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004616
4617 u8 syndrome[0x20];
4618
Matan Barakb4ff3a32016-02-09 14:57:42 +02004619 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004620
4621 u8 cur_flows[0x20];
4622
4623 u8 sum_flows[0x20];
4624
4625 u8 cnp_ignored_high[0x20];
4626
4627 u8 cnp_ignored_low[0x20];
4628
4629 u8 cnp_handled_high[0x20];
4630
4631 u8 cnp_handled_low[0x20];
4632
Matan Barakb4ff3a32016-02-09 14:57:42 +02004633 u8 reserved_at_140[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03004634
4635 u8 time_stamp_high[0x20];
4636
4637 u8 time_stamp_low[0x20];
4638
4639 u8 accumulators_period[0x20];
4640
4641 u8 ecn_marked_roce_packets_high[0x20];
4642
4643 u8 ecn_marked_roce_packets_low[0x20];
4644
4645 u8 cnps_sent_high[0x20];
4646
4647 u8 cnps_sent_low[0x20];
4648
Matan Barakb4ff3a32016-02-09 14:57:42 +02004649 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03004650};
4651
4652struct mlx5_ifc_query_cong_statistics_in_bits {
4653 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004654 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004655
Matan Barakb4ff3a32016-02-09 14:57:42 +02004656 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004657 u8 op_mod[0x10];
4658
4659 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004660 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004661
Matan Barakb4ff3a32016-02-09 14:57:42 +02004662 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004663};
4664
4665struct mlx5_ifc_query_cong_params_out_bits {
4666 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004667 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004668
4669 u8 syndrome[0x20];
4670
Matan Barakb4ff3a32016-02-09 14:57:42 +02004671 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004672
4673 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
4674};
4675
4676struct mlx5_ifc_query_cong_params_in_bits {
4677 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004678 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004679
Matan Barakb4ff3a32016-02-09 14:57:42 +02004680 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004681 u8 op_mod[0x10];
4682
Matan Barakb4ff3a32016-02-09 14:57:42 +02004683 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03004684 u8 cong_protocol[0x4];
4685
Matan Barakb4ff3a32016-02-09 14:57:42 +02004686 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004687};
4688
4689struct mlx5_ifc_query_adapter_out_bits {
4690 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004691 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004692
4693 u8 syndrome[0x20];
4694
Matan Barakb4ff3a32016-02-09 14:57:42 +02004695 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004696
4697 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
4698};
4699
4700struct mlx5_ifc_query_adapter_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
Matan Barakb4ff3a32016-02-09 14:57:42 +02004707 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004708};
4709
4710struct mlx5_ifc_qp_2rst_out_bits {
4711 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004712 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004713
4714 u8 syndrome[0x20];
4715
Matan Barakb4ff3a32016-02-09 14:57:42 +02004716 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004717};
4718
4719struct mlx5_ifc_qp_2rst_in_bits {
4720 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004721 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004722
Matan Barakb4ff3a32016-02-09 14:57:42 +02004723 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004724 u8 op_mod[0x10];
4725
Matan Barakb4ff3a32016-02-09 14:57:42 +02004726 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004727 u8 qpn[0x18];
4728
Matan Barakb4ff3a32016-02-09 14:57:42 +02004729 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004730};
4731
4732struct mlx5_ifc_qp_2err_out_bits {
4733 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004734 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004735
4736 u8 syndrome[0x20];
4737
Matan Barakb4ff3a32016-02-09 14:57:42 +02004738 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004739};
4740
4741struct mlx5_ifc_qp_2err_in_bits {
4742 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004743 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004744
Matan Barakb4ff3a32016-02-09 14:57:42 +02004745 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004746 u8 op_mod[0x10];
4747
Matan Barakb4ff3a32016-02-09 14:57:42 +02004748 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004749 u8 qpn[0x18];
4750
Matan Barakb4ff3a32016-02-09 14:57:42 +02004751 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004752};
4753
4754struct mlx5_ifc_page_fault_resume_out_bits {
4755 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004756 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004757
4758 u8 syndrome[0x20];
4759
Matan Barakb4ff3a32016-02-09 14:57:42 +02004760 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004761};
4762
4763struct mlx5_ifc_page_fault_resume_in_bits {
4764 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004765 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004766
Matan Barakb4ff3a32016-02-09 14:57:42 +02004767 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004768 u8 op_mod[0x10];
4769
4770 u8 error[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004771 u8 reserved_at_41[0x4];
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02004772 u8 page_fault_type[0x3];
4773 u8 wq_number[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004774
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02004775 u8 reserved_at_60[0x8];
4776 u8 token[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004777};
4778
4779struct mlx5_ifc_nop_out_bits {
4780 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004781 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004782
4783 u8 syndrome[0x20];
4784
Matan Barakb4ff3a32016-02-09 14:57:42 +02004785 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004786};
4787
4788struct mlx5_ifc_nop_in_bits {
4789 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004790 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004791
Matan Barakb4ff3a32016-02-09 14:57:42 +02004792 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004793 u8 op_mod[0x10];
4794
Matan Barakb4ff3a32016-02-09 14:57:42 +02004795 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004796};
4797
4798struct mlx5_ifc_modify_vport_state_out_bits {
4799 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004800 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004801
4802 u8 syndrome[0x20];
4803
Matan Barakb4ff3a32016-02-09 14:57:42 +02004804 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004805};
4806
4807struct mlx5_ifc_modify_vport_state_in_bits {
4808 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004809 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004810
Matan Barakb4ff3a32016-02-09 14:57:42 +02004811 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004812 u8 op_mod[0x10];
4813
4814 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004815 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004816 u8 vport_number[0x10];
4817
Matan Barakb4ff3a32016-02-09 14:57:42 +02004818 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004819 u8 admin_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004820 u8 reserved_at_7c[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004821};
4822
4823struct mlx5_ifc_modify_tis_out_bits {
4824 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004825 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004826
4827 u8 syndrome[0x20];
4828
Matan Barakb4ff3a32016-02-09 14:57:42 +02004829 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004830};
4831
majd@mellanox.com75850d02016-01-14 19:13:06 +02004832struct mlx5_ifc_modify_tis_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004833 u8 reserved_at_0[0x20];
majd@mellanox.com75850d02016-01-14 19:13:06 +02004834
Aviv Heller84df61e2016-05-10 13:47:50 +03004835 u8 reserved_at_20[0x1d];
4836 u8 lag_tx_port_affinity[0x1];
4837 u8 strict_lag_tx_port_affinity[0x1];
majd@mellanox.com75850d02016-01-14 19:13:06 +02004838 u8 prio[0x1];
4839};
4840
Saeed Mahameede2816822015-05-28 22:28:40 +03004841struct mlx5_ifc_modify_tis_in_bits {
4842 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004843 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004844
Matan Barakb4ff3a32016-02-09 14:57:42 +02004845 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004846 u8 op_mod[0x10];
4847
Matan Barakb4ff3a32016-02-09 14:57:42 +02004848 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004849 u8 tisn[0x18];
4850
Matan Barakb4ff3a32016-02-09 14:57:42 +02004851 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004852
majd@mellanox.com75850d02016-01-14 19:13:06 +02004853 struct mlx5_ifc_modify_tis_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004854
Matan Barakb4ff3a32016-02-09 14:57:42 +02004855 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004856
4857 struct mlx5_ifc_tisc_bits ctx;
4858};
4859
Achiad Shochatd9eea402015-08-04 14:05:42 +03004860struct mlx5_ifc_modify_tir_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004861 u8 reserved_at_0[0x20];
Achiad Shochatd9eea402015-08-04 14:05:42 +03004862
Matan Barakb4ff3a32016-02-09 14:57:42 +02004863 u8 reserved_at_20[0x1b];
Tariq Toukan66189962015-11-12 19:35:26 +02004864 u8 self_lb_en[0x1];
Tariq Toukanbdfc0282016-02-29 21:17:12 +02004865 u8 reserved_at_3c[0x1];
4866 u8 hash[0x1];
4867 u8 reserved_at_3e[0x1];
Achiad Shochatd9eea402015-08-04 14:05:42 +03004868 u8 lro[0x1];
4869};
4870
Saeed Mahameede2816822015-05-28 22:28:40 +03004871struct mlx5_ifc_modify_tir_out_bits {
4872 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004873 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004874
4875 u8 syndrome[0x20];
4876
Matan Barakb4ff3a32016-02-09 14:57:42 +02004877 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004878};
4879
4880struct mlx5_ifc_modify_tir_in_bits {
4881 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004882 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004883
Matan Barakb4ff3a32016-02-09 14:57:42 +02004884 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004885 u8 op_mod[0x10];
4886
Matan Barakb4ff3a32016-02-09 14:57:42 +02004887 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004888 u8 tirn[0x18];
4889
Matan Barakb4ff3a32016-02-09 14:57:42 +02004890 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004891
Achiad Shochatd9eea402015-08-04 14:05:42 +03004892 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004893
Matan Barakb4ff3a32016-02-09 14:57:42 +02004894 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004895
4896 struct mlx5_ifc_tirc_bits ctx;
4897};
4898
4899struct mlx5_ifc_modify_sq_out_bits {
4900 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004901 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004902
4903 u8 syndrome[0x20];
4904
Matan Barakb4ff3a32016-02-09 14:57:42 +02004905 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004906};
4907
4908struct mlx5_ifc_modify_sq_in_bits {
4909 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004910 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004911
Matan Barakb4ff3a32016-02-09 14:57:42 +02004912 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004913 u8 op_mod[0x10];
4914
4915 u8 sq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004916 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004917 u8 sqn[0x18];
4918
Matan Barakb4ff3a32016-02-09 14:57:42 +02004919 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004920
4921 u8 modify_bitmask[0x40];
4922
Matan Barakb4ff3a32016-02-09 14:57:42 +02004923 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004924
4925 struct mlx5_ifc_sqc_bits ctx;
4926};
4927
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03004928struct mlx5_ifc_modify_scheduling_element_out_bits {
4929 u8 status[0x8];
4930 u8 reserved_at_8[0x18];
4931
4932 u8 syndrome[0x20];
4933
4934 u8 reserved_at_40[0x1c0];
4935};
4936
4937enum {
4938 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE = 0x1,
4939 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW = 0x2,
4940};
4941
4942struct mlx5_ifc_modify_scheduling_element_in_bits {
4943 u8 opcode[0x10];
4944 u8 reserved_at_10[0x10];
4945
4946 u8 reserved_at_20[0x10];
4947 u8 op_mod[0x10];
4948
4949 u8 scheduling_hierarchy[0x8];
4950 u8 reserved_at_48[0x18];
4951
4952 u8 scheduling_element_id[0x20];
4953
4954 u8 reserved_at_80[0x20];
4955
4956 u8 modify_bitmask[0x20];
4957
4958 u8 reserved_at_c0[0x40];
4959
4960 struct mlx5_ifc_scheduling_context_bits scheduling_context;
4961
4962 u8 reserved_at_300[0x100];
4963};
4964
Saeed Mahameede2816822015-05-28 22:28:40 +03004965struct mlx5_ifc_modify_rqt_out_bits {
4966 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004967 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004968
4969 u8 syndrome[0x20];
4970
Matan Barakb4ff3a32016-02-09 14:57:42 +02004971 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004972};
4973
Achiad Shochat5c503682015-08-04 14:05:43 +03004974struct mlx5_ifc_rqt_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004975 u8 reserved_at_0[0x20];
Achiad Shochat5c503682015-08-04 14:05:43 +03004976
Matan Barakb4ff3a32016-02-09 14:57:42 +02004977 u8 reserved_at_20[0x1f];
Achiad Shochat5c503682015-08-04 14:05:43 +03004978 u8 rqn_list[0x1];
4979};
4980
Saeed Mahameede2816822015-05-28 22:28:40 +03004981struct mlx5_ifc_modify_rqt_in_bits {
4982 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004983 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004984
Matan Barakb4ff3a32016-02-09 14:57:42 +02004985 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004986 u8 op_mod[0x10];
4987
Matan Barakb4ff3a32016-02-09 14:57:42 +02004988 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004989 u8 rqtn[0x18];
4990
Matan Barakb4ff3a32016-02-09 14:57:42 +02004991 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004992
Achiad Shochat5c503682015-08-04 14:05:43 +03004993 struct mlx5_ifc_rqt_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004994
Matan Barakb4ff3a32016-02-09 14:57:42 +02004995 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004996
4997 struct mlx5_ifc_rqtc_bits ctx;
4998};
4999
5000struct mlx5_ifc_modify_rq_out_bits {
5001 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005002 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005003
5004 u8 syndrome[0x20];
5005
Matan Barakb4ff3a32016-02-09 14:57:42 +02005006 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005007};
5008
Alex Vesker83b502a2016-08-04 17:32:02 +03005009enum {
5010 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_VSD = 1ULL << 1,
5011 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_MODIFY_RQ_COUNTER_SET_ID = 1ULL << 3,
5012};
5013
Saeed Mahameede2816822015-05-28 22:28:40 +03005014struct mlx5_ifc_modify_rq_in_bits {
5015 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005016 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005017
Matan Barakb4ff3a32016-02-09 14:57:42 +02005018 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005019 u8 op_mod[0x10];
5020
5021 u8 rq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005022 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005023 u8 rqn[0x18];
5024
Matan Barakb4ff3a32016-02-09 14:57:42 +02005025 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005026
5027 u8 modify_bitmask[0x40];
5028
Matan Barakb4ff3a32016-02-09 14:57:42 +02005029 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005030
5031 struct mlx5_ifc_rqc_bits ctx;
5032};
5033
5034struct mlx5_ifc_modify_rmp_out_bits {
5035 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005036 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005037
5038 u8 syndrome[0x20];
5039
Matan Barakb4ff3a32016-02-09 14:57:42 +02005040 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005041};
5042
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005043struct mlx5_ifc_rmp_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02005044 u8 reserved_at_0[0x20];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005045
Matan Barakb4ff3a32016-02-09 14:57:42 +02005046 u8 reserved_at_20[0x1f];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005047 u8 lwm[0x1];
5048};
5049
Saeed Mahameede2816822015-05-28 22:28:40 +03005050struct mlx5_ifc_modify_rmp_in_bits {
5051 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005052 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005053
Matan Barakb4ff3a32016-02-09 14:57:42 +02005054 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005055 u8 op_mod[0x10];
5056
5057 u8 rmp_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005058 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005059 u8 rmpn[0x18];
5060
Matan Barakb4ff3a32016-02-09 14:57:42 +02005061 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005062
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03005063 struct mlx5_ifc_rmp_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03005064
Matan Barakb4ff3a32016-02-09 14:57:42 +02005065 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005066
5067 struct mlx5_ifc_rmpc_bits ctx;
5068};
5069
5070struct mlx5_ifc_modify_nic_vport_context_out_bits {
5071 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005072 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005073
5074 u8 syndrome[0x20];
5075
Matan Barakb4ff3a32016-02-09 14:57:42 +02005076 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005077};
5078
5079struct mlx5_ifc_modify_nic_vport_field_select_bits {
Noa Osherovich23898c72016-06-10 00:07:37 +03005080 u8 reserved_at_0[0x16];
5081 u8 node_guid[0x1];
5082 u8 port_guid[0x1];
Hadar Hen Zion9def7122016-08-03 17:27:30 +03005083 u8 min_inline[0x1];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02005084 u8 mtu[0x1];
5085 u8 change_event[0x1];
5086 u8 promisc[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005087 u8 permanent_address[0x1];
5088 u8 addresses_list[0x1];
5089 u8 roce_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005090 u8 reserved_at_1f[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005091};
5092
5093struct mlx5_ifc_modify_nic_vport_context_in_bits {
5094 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005095 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005096
Matan Barakb4ff3a32016-02-09 14:57:42 +02005097 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005098 u8 op_mod[0x10];
5099
5100 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005101 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005102 u8 vport_number[0x10];
5103
5104 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
5105
Matan Barakb4ff3a32016-02-09 14:57:42 +02005106 u8 reserved_at_80[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03005107
5108 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
5109};
5110
5111struct mlx5_ifc_modify_hca_vport_context_out_bits {
5112 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005113 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005114
5115 u8 syndrome[0x20];
5116
Matan Barakb4ff3a32016-02-09 14:57:42 +02005117 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005118};
5119
5120struct mlx5_ifc_modify_hca_vport_context_in_bits {
5121 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005122 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005123
Matan Barakb4ff3a32016-02-09 14:57:42 +02005124 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005125 u8 op_mod[0x10];
5126
5127 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005128 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03005129 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005130 u8 vport_number[0x10];
5131
Matan Barakb4ff3a32016-02-09 14:57:42 +02005132 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005133
5134 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
5135};
5136
5137struct mlx5_ifc_modify_cq_out_bits {
5138 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005139 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005140
5141 u8 syndrome[0x20];
5142
Matan Barakb4ff3a32016-02-09 14:57:42 +02005143 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005144};
5145
5146enum {
5147 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
5148 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
5149};
5150
5151struct mlx5_ifc_modify_cq_in_bits {
5152 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005153 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005154
Matan Barakb4ff3a32016-02-09 14:57:42 +02005155 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005156 u8 op_mod[0x10];
5157
Matan Barakb4ff3a32016-02-09 14:57:42 +02005158 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005159 u8 cqn[0x18];
5160
5161 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
5162
5163 struct mlx5_ifc_cqc_bits cq_context;
5164
Matan Barakb4ff3a32016-02-09 14:57:42 +02005165 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03005166
5167 u8 pas[0][0x40];
5168};
5169
5170struct mlx5_ifc_modify_cong_status_out_bits {
5171 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005172 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005173
5174 u8 syndrome[0x20];
5175
Matan Barakb4ff3a32016-02-09 14:57:42 +02005176 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005177};
5178
5179struct mlx5_ifc_modify_cong_status_in_bits {
5180 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005181 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005182
Matan Barakb4ff3a32016-02-09 14:57:42 +02005183 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005184 u8 op_mod[0x10];
5185
Matan Barakb4ff3a32016-02-09 14:57:42 +02005186 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005187 u8 priority[0x4];
5188 u8 cong_protocol[0x4];
5189
5190 u8 enable[0x1];
5191 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005192 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03005193};
5194
5195struct mlx5_ifc_modify_cong_params_out_bits {
5196 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005197 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005198
5199 u8 syndrome[0x20];
5200
Matan Barakb4ff3a32016-02-09 14:57:42 +02005201 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005202};
5203
5204struct mlx5_ifc_modify_cong_params_in_bits {
5205 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005206 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005207
Matan Barakb4ff3a32016-02-09 14:57:42 +02005208 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005209 u8 op_mod[0x10];
5210
Matan Barakb4ff3a32016-02-09 14:57:42 +02005211 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03005212 u8 cong_protocol[0x4];
5213
5214 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
5215
Matan Barakb4ff3a32016-02-09 14:57:42 +02005216 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005217
5218 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
5219};
5220
5221struct mlx5_ifc_manage_pages_out_bits {
5222 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005223 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005224
5225 u8 syndrome[0x20];
5226
5227 u8 output_num_entries[0x20];
5228
Matan Barakb4ff3a32016-02-09 14:57:42 +02005229 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005230
5231 u8 pas[0][0x40];
5232};
5233
5234enum {
5235 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
5236 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
5237 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
5238};
5239
5240struct mlx5_ifc_manage_pages_in_bits {
5241 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005242 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005243
Matan Barakb4ff3a32016-02-09 14:57:42 +02005244 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005245 u8 op_mod[0x10];
5246
Matan Barakb4ff3a32016-02-09 14:57:42 +02005247 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005248 u8 function_id[0x10];
5249
5250 u8 input_num_entries[0x20];
5251
5252 u8 pas[0][0x40];
5253};
5254
5255struct mlx5_ifc_mad_ifc_out_bits {
5256 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005257 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005258
5259 u8 syndrome[0x20];
5260
Matan Barakb4ff3a32016-02-09 14:57:42 +02005261 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005262
5263 u8 response_mad_packet[256][0x8];
5264};
5265
5266struct mlx5_ifc_mad_ifc_in_bits {
5267 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005268 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005269
Matan Barakb4ff3a32016-02-09 14:57:42 +02005270 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005271 u8 op_mod[0x10];
5272
5273 u8 remote_lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005274 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005275 u8 port[0x8];
5276
Matan Barakb4ff3a32016-02-09 14:57:42 +02005277 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005278
5279 u8 mad[256][0x8];
5280};
5281
5282struct mlx5_ifc_init_hca_out_bits {
5283 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005284 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005285
5286 u8 syndrome[0x20];
5287
Matan Barakb4ff3a32016-02-09 14:57:42 +02005288 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005289};
5290
5291struct mlx5_ifc_init_hca_in_bits {
5292 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005293 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005294
Matan Barakb4ff3a32016-02-09 14:57:42 +02005295 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005296 u8 op_mod[0x10];
5297
Matan Barakb4ff3a32016-02-09 14:57:42 +02005298 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005299};
5300
5301struct mlx5_ifc_init2rtr_qp_out_bits {
5302 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005303 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005304
5305 u8 syndrome[0x20];
5306
Matan Barakb4ff3a32016-02-09 14:57:42 +02005307 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005308};
5309
5310struct mlx5_ifc_init2rtr_qp_in_bits {
5311 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005312 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005313
Matan Barakb4ff3a32016-02-09 14:57:42 +02005314 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005315 u8 op_mod[0x10];
5316
Matan Barakb4ff3a32016-02-09 14:57:42 +02005317 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005318 u8 qpn[0x18];
5319
Matan Barakb4ff3a32016-02-09 14:57:42 +02005320 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005321
5322 u8 opt_param_mask[0x20];
5323
Matan Barakb4ff3a32016-02-09 14:57:42 +02005324 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005325
5326 struct mlx5_ifc_qpc_bits qpc;
5327
Matan Barakb4ff3a32016-02-09 14:57:42 +02005328 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005329};
5330
5331struct mlx5_ifc_init2init_qp_out_bits {
5332 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005333 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005334
5335 u8 syndrome[0x20];
5336
Matan Barakb4ff3a32016-02-09 14:57:42 +02005337 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005338};
5339
5340struct mlx5_ifc_init2init_qp_in_bits {
5341 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005342 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005343
Matan Barakb4ff3a32016-02-09 14:57:42 +02005344 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005345 u8 op_mod[0x10];
5346
Matan Barakb4ff3a32016-02-09 14:57:42 +02005347 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005348 u8 qpn[0x18];
5349
Matan Barakb4ff3a32016-02-09 14:57:42 +02005350 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005351
5352 u8 opt_param_mask[0x20];
5353
Matan Barakb4ff3a32016-02-09 14:57:42 +02005354 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005355
5356 struct mlx5_ifc_qpc_bits qpc;
5357
Matan Barakb4ff3a32016-02-09 14:57:42 +02005358 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005359};
5360
5361struct mlx5_ifc_get_dropped_packet_log_out_bits {
5362 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005363 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005364
5365 u8 syndrome[0x20];
5366
Matan Barakb4ff3a32016-02-09 14:57:42 +02005367 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005368
5369 u8 packet_headers_log[128][0x8];
5370
5371 u8 packet_syndrome[64][0x8];
5372};
5373
5374struct mlx5_ifc_get_dropped_packet_log_in_bits {
5375 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005376 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005377
Matan Barakb4ff3a32016-02-09 14:57:42 +02005378 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005379 u8 op_mod[0x10];
5380
Matan Barakb4ff3a32016-02-09 14:57:42 +02005381 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005382};
5383
5384struct mlx5_ifc_gen_eqe_in_bits {
5385 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005386 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005387
Matan Barakb4ff3a32016-02-09 14:57:42 +02005388 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005389 u8 op_mod[0x10];
5390
Matan Barakb4ff3a32016-02-09 14:57:42 +02005391 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005392 u8 eq_number[0x8];
5393
Matan Barakb4ff3a32016-02-09 14:57:42 +02005394 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005395
5396 u8 eqe[64][0x8];
5397};
5398
5399struct mlx5_ifc_gen_eq_out_bits {
5400 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005401 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005402
5403 u8 syndrome[0x20];
5404
Matan Barakb4ff3a32016-02-09 14:57:42 +02005405 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005406};
5407
5408struct mlx5_ifc_enable_hca_out_bits {
5409 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005410 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005411
5412 u8 syndrome[0x20];
5413
Matan Barakb4ff3a32016-02-09 14:57:42 +02005414 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005415};
5416
5417struct mlx5_ifc_enable_hca_in_bits {
5418 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005419 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005420
Matan Barakb4ff3a32016-02-09 14:57:42 +02005421 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005422 u8 op_mod[0x10];
5423
Matan Barakb4ff3a32016-02-09 14:57:42 +02005424 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005425 u8 function_id[0x10];
5426
Matan Barakb4ff3a32016-02-09 14:57:42 +02005427 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005428};
5429
5430struct mlx5_ifc_drain_dct_out_bits {
5431 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005432 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005433
5434 u8 syndrome[0x20];
5435
Matan Barakb4ff3a32016-02-09 14:57:42 +02005436 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005437};
5438
5439struct mlx5_ifc_drain_dct_in_bits {
5440 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005441 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005442
Matan Barakb4ff3a32016-02-09 14:57:42 +02005443 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005444 u8 op_mod[0x10];
5445
Matan Barakb4ff3a32016-02-09 14:57:42 +02005446 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005447 u8 dctn[0x18];
5448
Matan Barakb4ff3a32016-02-09 14:57:42 +02005449 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005450};
5451
5452struct mlx5_ifc_disable_hca_out_bits {
5453 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005454 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005455
5456 u8 syndrome[0x20];
5457
Matan Barakb4ff3a32016-02-09 14:57:42 +02005458 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005459};
5460
5461struct mlx5_ifc_disable_hca_in_bits {
5462 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005463 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005464
Matan Barakb4ff3a32016-02-09 14:57:42 +02005465 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005466 u8 op_mod[0x10];
5467
Matan Barakb4ff3a32016-02-09 14:57:42 +02005468 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005469 u8 function_id[0x10];
5470
Matan Barakb4ff3a32016-02-09 14:57:42 +02005471 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005472};
5473
5474struct mlx5_ifc_detach_from_mcg_out_bits {
5475 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005476 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005477
5478 u8 syndrome[0x20];
5479
Matan Barakb4ff3a32016-02-09 14:57:42 +02005480 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005481};
5482
5483struct mlx5_ifc_detach_from_mcg_in_bits {
5484 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005485 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005486
Matan Barakb4ff3a32016-02-09 14:57:42 +02005487 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005488 u8 op_mod[0x10];
5489
Matan Barakb4ff3a32016-02-09 14:57:42 +02005490 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005491 u8 qpn[0x18];
5492
Matan Barakb4ff3a32016-02-09 14:57:42 +02005493 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005494
5495 u8 multicast_gid[16][0x8];
5496};
5497
Saeed Mahameed74862162016-06-09 15:11:34 +03005498struct mlx5_ifc_destroy_xrq_out_bits {
5499 u8 status[0x8];
5500 u8 reserved_at_8[0x18];
5501
5502 u8 syndrome[0x20];
5503
5504 u8 reserved_at_40[0x40];
5505};
5506
5507struct mlx5_ifc_destroy_xrq_in_bits {
5508 u8 opcode[0x10];
5509 u8 reserved_at_10[0x10];
5510
5511 u8 reserved_at_20[0x10];
5512 u8 op_mod[0x10];
5513
5514 u8 reserved_at_40[0x8];
5515 u8 xrqn[0x18];
5516
5517 u8 reserved_at_60[0x20];
5518};
5519
Saeed Mahameede2816822015-05-28 22:28:40 +03005520struct mlx5_ifc_destroy_xrc_srq_out_bits {
5521 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005522 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005523
5524 u8 syndrome[0x20];
5525
Matan Barakb4ff3a32016-02-09 14:57:42 +02005526 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005527};
5528
5529struct mlx5_ifc_destroy_xrc_srq_in_bits {
5530 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005531 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005532
Matan Barakb4ff3a32016-02-09 14:57:42 +02005533 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005534 u8 op_mod[0x10];
5535
Matan Barakb4ff3a32016-02-09 14:57:42 +02005536 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005537 u8 xrc_srqn[0x18];
5538
Matan Barakb4ff3a32016-02-09 14:57:42 +02005539 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005540};
5541
5542struct mlx5_ifc_destroy_tis_out_bits {
5543 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005544 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005545
5546 u8 syndrome[0x20];
5547
Matan Barakb4ff3a32016-02-09 14:57:42 +02005548 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005549};
5550
5551struct mlx5_ifc_destroy_tis_in_bits {
5552 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005553 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005554
Matan Barakb4ff3a32016-02-09 14:57:42 +02005555 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005556 u8 op_mod[0x10];
5557
Matan Barakb4ff3a32016-02-09 14:57:42 +02005558 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005559 u8 tisn[0x18];
5560
Matan Barakb4ff3a32016-02-09 14:57:42 +02005561 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005562};
5563
5564struct mlx5_ifc_destroy_tir_out_bits {
5565 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005566 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005567
5568 u8 syndrome[0x20];
5569
Matan Barakb4ff3a32016-02-09 14:57:42 +02005570 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005571};
5572
5573struct mlx5_ifc_destroy_tir_in_bits {
5574 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005575 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005576
Matan Barakb4ff3a32016-02-09 14:57:42 +02005577 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005578 u8 op_mod[0x10];
5579
Matan Barakb4ff3a32016-02-09 14:57:42 +02005580 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005581 u8 tirn[0x18];
5582
Matan Barakb4ff3a32016-02-09 14:57:42 +02005583 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005584};
5585
5586struct mlx5_ifc_destroy_srq_out_bits {
5587 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005588 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005589
5590 u8 syndrome[0x20];
5591
Matan Barakb4ff3a32016-02-09 14:57:42 +02005592 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005593};
5594
5595struct mlx5_ifc_destroy_srq_in_bits {
5596 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005597 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005598
Matan Barakb4ff3a32016-02-09 14:57:42 +02005599 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005600 u8 op_mod[0x10];
5601
Matan Barakb4ff3a32016-02-09 14:57:42 +02005602 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005603 u8 srqn[0x18];
5604
Matan Barakb4ff3a32016-02-09 14:57:42 +02005605 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005606};
5607
5608struct mlx5_ifc_destroy_sq_out_bits {
5609 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005610 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005611
5612 u8 syndrome[0x20];
5613
Matan Barakb4ff3a32016-02-09 14:57:42 +02005614 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005615};
5616
5617struct mlx5_ifc_destroy_sq_in_bits {
5618 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005619 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005620
Matan Barakb4ff3a32016-02-09 14:57:42 +02005621 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005622 u8 op_mod[0x10];
5623
Matan Barakb4ff3a32016-02-09 14:57:42 +02005624 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005625 u8 sqn[0x18];
5626
Matan Barakb4ff3a32016-02-09 14:57:42 +02005627 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005628};
5629
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03005630struct mlx5_ifc_destroy_scheduling_element_out_bits {
5631 u8 status[0x8];
5632 u8 reserved_at_8[0x18];
5633
5634 u8 syndrome[0x20];
5635
5636 u8 reserved_at_40[0x1c0];
5637};
5638
5639struct mlx5_ifc_destroy_scheduling_element_in_bits {
5640 u8 opcode[0x10];
5641 u8 reserved_at_10[0x10];
5642
5643 u8 reserved_at_20[0x10];
5644 u8 op_mod[0x10];
5645
5646 u8 scheduling_hierarchy[0x8];
5647 u8 reserved_at_48[0x18];
5648
5649 u8 scheduling_element_id[0x20];
5650
5651 u8 reserved_at_80[0x180];
5652};
5653
Saeed Mahameede2816822015-05-28 22:28:40 +03005654struct mlx5_ifc_destroy_rqt_out_bits {
5655 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005656 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005657
5658 u8 syndrome[0x20];
5659
Matan Barakb4ff3a32016-02-09 14:57:42 +02005660 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005661};
5662
5663struct mlx5_ifc_destroy_rqt_in_bits {
5664 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005665 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005666
Matan Barakb4ff3a32016-02-09 14:57:42 +02005667 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005668 u8 op_mod[0x10];
5669
Matan Barakb4ff3a32016-02-09 14:57:42 +02005670 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005671 u8 rqtn[0x18];
5672
Matan Barakb4ff3a32016-02-09 14:57:42 +02005673 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005674};
5675
5676struct mlx5_ifc_destroy_rq_out_bits {
5677 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005678 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005679
5680 u8 syndrome[0x20];
5681
Matan Barakb4ff3a32016-02-09 14:57:42 +02005682 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005683};
5684
5685struct mlx5_ifc_destroy_rq_in_bits {
5686 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005687 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005688
Matan Barakb4ff3a32016-02-09 14:57:42 +02005689 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005690 u8 op_mod[0x10];
5691
Matan Barakb4ff3a32016-02-09 14:57:42 +02005692 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005693 u8 rqn[0x18];
5694
Matan Barakb4ff3a32016-02-09 14:57:42 +02005695 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005696};
5697
5698struct mlx5_ifc_destroy_rmp_out_bits {
5699 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005700 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005701
5702 u8 syndrome[0x20];
5703
Matan Barakb4ff3a32016-02-09 14:57:42 +02005704 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005705};
5706
5707struct mlx5_ifc_destroy_rmp_in_bits {
5708 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005709 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005710
Matan Barakb4ff3a32016-02-09 14:57:42 +02005711 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005712 u8 op_mod[0x10];
5713
Matan Barakb4ff3a32016-02-09 14:57:42 +02005714 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005715 u8 rmpn[0x18];
5716
Matan Barakb4ff3a32016-02-09 14:57:42 +02005717 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005718};
5719
5720struct mlx5_ifc_destroy_qp_out_bits {
5721 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005722 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005723
5724 u8 syndrome[0x20];
5725
Matan Barakb4ff3a32016-02-09 14:57:42 +02005726 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005727};
5728
5729struct mlx5_ifc_destroy_qp_in_bits {
5730 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005731 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005732
Matan Barakb4ff3a32016-02-09 14:57:42 +02005733 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005734 u8 op_mod[0x10];
5735
Matan Barakb4ff3a32016-02-09 14:57:42 +02005736 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005737 u8 qpn[0x18];
5738
Matan Barakb4ff3a32016-02-09 14:57:42 +02005739 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005740};
5741
5742struct mlx5_ifc_destroy_psv_out_bits {
5743 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005744 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005745
5746 u8 syndrome[0x20];
5747
Matan Barakb4ff3a32016-02-09 14:57:42 +02005748 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005749};
5750
5751struct mlx5_ifc_destroy_psv_in_bits {
5752 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005753 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005754
Matan Barakb4ff3a32016-02-09 14:57:42 +02005755 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005756 u8 op_mod[0x10];
5757
Matan Barakb4ff3a32016-02-09 14:57:42 +02005758 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005759 u8 psvn[0x18];
5760
Matan Barakb4ff3a32016-02-09 14:57:42 +02005761 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005762};
5763
5764struct mlx5_ifc_destroy_mkey_out_bits {
5765 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005766 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005767
5768 u8 syndrome[0x20];
5769
Matan Barakb4ff3a32016-02-09 14:57:42 +02005770 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005771};
5772
5773struct mlx5_ifc_destroy_mkey_in_bits {
5774 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005775 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005776
Matan Barakb4ff3a32016-02-09 14:57:42 +02005777 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005778 u8 op_mod[0x10];
5779
Matan Barakb4ff3a32016-02-09 14:57:42 +02005780 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005781 u8 mkey_index[0x18];
5782
Matan Barakb4ff3a32016-02-09 14:57:42 +02005783 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005784};
5785
5786struct mlx5_ifc_destroy_flow_table_out_bits {
5787 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005788 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005789
5790 u8 syndrome[0x20];
5791
Matan Barakb4ff3a32016-02-09 14:57:42 +02005792 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005793};
5794
5795struct mlx5_ifc_destroy_flow_table_in_bits {
5796 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005797 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005798
Matan Barakb4ff3a32016-02-09 14:57:42 +02005799 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005800 u8 op_mod[0x10];
5801
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005802 u8 other_vport[0x1];
5803 u8 reserved_at_41[0xf];
5804 u8 vport_number[0x10];
5805
5806 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005807
5808 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005809 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005810
Matan Barakb4ff3a32016-02-09 14:57:42 +02005811 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005812 u8 table_id[0x18];
5813
Matan Barakb4ff3a32016-02-09 14:57:42 +02005814 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03005815};
5816
5817struct mlx5_ifc_destroy_flow_group_out_bits {
5818 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005819 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005820
5821 u8 syndrome[0x20];
5822
Matan Barakb4ff3a32016-02-09 14:57:42 +02005823 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005824};
5825
5826struct mlx5_ifc_destroy_flow_group_in_bits {
5827 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005828 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005829
Matan Barakb4ff3a32016-02-09 14:57:42 +02005830 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005831 u8 op_mod[0x10];
5832
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005833 u8 other_vport[0x1];
5834 u8 reserved_at_41[0xf];
5835 u8 vport_number[0x10];
5836
5837 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005838
5839 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005840 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005841
Matan Barakb4ff3a32016-02-09 14:57:42 +02005842 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005843 u8 table_id[0x18];
5844
5845 u8 group_id[0x20];
5846
Matan Barakb4ff3a32016-02-09 14:57:42 +02005847 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03005848};
5849
5850struct mlx5_ifc_destroy_eq_out_bits {
5851 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005852 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005853
5854 u8 syndrome[0x20];
5855
Matan Barakb4ff3a32016-02-09 14:57:42 +02005856 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005857};
5858
5859struct mlx5_ifc_destroy_eq_in_bits {
5860 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005861 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005862
Matan Barakb4ff3a32016-02-09 14:57:42 +02005863 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005864 u8 op_mod[0x10];
5865
Matan Barakb4ff3a32016-02-09 14:57:42 +02005866 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005867 u8 eq_number[0x8];
5868
Matan Barakb4ff3a32016-02-09 14:57:42 +02005869 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005870};
5871
5872struct mlx5_ifc_destroy_dct_out_bits {
5873 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005874 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005875
5876 u8 syndrome[0x20];
5877
Matan Barakb4ff3a32016-02-09 14:57:42 +02005878 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005879};
5880
5881struct mlx5_ifc_destroy_dct_in_bits {
5882 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005883 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005884
Matan Barakb4ff3a32016-02-09 14:57:42 +02005885 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005886 u8 op_mod[0x10];
5887
Matan Barakb4ff3a32016-02-09 14:57:42 +02005888 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005889 u8 dctn[0x18];
5890
Matan Barakb4ff3a32016-02-09 14:57:42 +02005891 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005892};
5893
5894struct mlx5_ifc_destroy_cq_out_bits {
5895 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005896 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005897
5898 u8 syndrome[0x20];
5899
Matan Barakb4ff3a32016-02-09 14:57:42 +02005900 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005901};
5902
5903struct mlx5_ifc_destroy_cq_in_bits {
5904 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005905 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005906
Matan Barakb4ff3a32016-02-09 14:57:42 +02005907 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005908 u8 op_mod[0x10];
5909
Matan Barakb4ff3a32016-02-09 14:57:42 +02005910 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005911 u8 cqn[0x18];
5912
Matan Barakb4ff3a32016-02-09 14:57:42 +02005913 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005914};
5915
5916struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
5917 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005918 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005919
5920 u8 syndrome[0x20];
5921
Matan Barakb4ff3a32016-02-09 14:57:42 +02005922 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005923};
5924
5925struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
5926 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005927 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005928
Matan Barakb4ff3a32016-02-09 14:57:42 +02005929 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005930 u8 op_mod[0x10];
5931
Matan Barakb4ff3a32016-02-09 14:57:42 +02005932 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005933
Matan Barakb4ff3a32016-02-09 14:57:42 +02005934 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005935 u8 vxlan_udp_port[0x10];
5936};
5937
5938struct mlx5_ifc_delete_l2_table_entry_out_bits {
5939 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005940 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005941
5942 u8 syndrome[0x20];
5943
Matan Barakb4ff3a32016-02-09 14:57:42 +02005944 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005945};
5946
5947struct mlx5_ifc_delete_l2_table_entry_in_bits {
5948 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005949 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005950
Matan Barakb4ff3a32016-02-09 14:57:42 +02005951 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005952 u8 op_mod[0x10];
5953
Matan Barakb4ff3a32016-02-09 14:57:42 +02005954 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03005955
Matan Barakb4ff3a32016-02-09 14:57:42 +02005956 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005957 u8 table_index[0x18];
5958
Matan Barakb4ff3a32016-02-09 14:57:42 +02005959 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03005960};
5961
5962struct mlx5_ifc_delete_fte_out_bits {
5963 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005964 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005965
5966 u8 syndrome[0x20];
5967
Matan Barakb4ff3a32016-02-09 14:57:42 +02005968 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005969};
5970
5971struct mlx5_ifc_delete_fte_in_bits {
5972 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005973 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005974
Matan Barakb4ff3a32016-02-09 14:57:42 +02005975 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005976 u8 op_mod[0x10];
5977
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005978 u8 other_vport[0x1];
5979 u8 reserved_at_41[0xf];
5980 u8 vport_number[0x10];
5981
5982 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005983
5984 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005985 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005986
Matan Barakb4ff3a32016-02-09 14:57:42 +02005987 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005988 u8 table_id[0x18];
5989
Matan Barakb4ff3a32016-02-09 14:57:42 +02005990 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005991
5992 u8 flow_index[0x20];
5993
Matan Barakb4ff3a32016-02-09 14:57:42 +02005994 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005995};
5996
5997struct mlx5_ifc_dealloc_xrcd_out_bits {
5998 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005999 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006000
6001 u8 syndrome[0x20];
6002
Matan Barakb4ff3a32016-02-09 14:57:42 +02006003 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006004};
6005
6006struct mlx5_ifc_dealloc_xrcd_in_bits {
6007 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006008 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006009
Matan Barakb4ff3a32016-02-09 14:57:42 +02006010 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006011 u8 op_mod[0x10];
6012
Matan Barakb4ff3a32016-02-09 14:57:42 +02006013 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006014 u8 xrcd[0x18];
6015
Matan Barakb4ff3a32016-02-09 14:57:42 +02006016 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006017};
6018
6019struct mlx5_ifc_dealloc_uar_out_bits {
6020 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006021 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006022
6023 u8 syndrome[0x20];
6024
Matan Barakb4ff3a32016-02-09 14:57:42 +02006025 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006026};
6027
6028struct mlx5_ifc_dealloc_uar_in_bits {
6029 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006030 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006031
Matan Barakb4ff3a32016-02-09 14:57:42 +02006032 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006033 u8 op_mod[0x10];
6034
Matan Barakb4ff3a32016-02-09 14:57:42 +02006035 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006036 u8 uar[0x18];
6037
Matan Barakb4ff3a32016-02-09 14:57:42 +02006038 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006039};
6040
6041struct mlx5_ifc_dealloc_transport_domain_out_bits {
6042 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006043 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006044
6045 u8 syndrome[0x20];
6046
Matan Barakb4ff3a32016-02-09 14:57:42 +02006047 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006048};
6049
6050struct mlx5_ifc_dealloc_transport_domain_in_bits {
6051 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006052 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006053
Matan Barakb4ff3a32016-02-09 14:57:42 +02006054 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006055 u8 op_mod[0x10];
6056
Matan Barakb4ff3a32016-02-09 14:57:42 +02006057 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006058 u8 transport_domain[0x18];
6059
Matan Barakb4ff3a32016-02-09 14:57:42 +02006060 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006061};
6062
6063struct mlx5_ifc_dealloc_q_counter_out_bits {
6064 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006065 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006066
6067 u8 syndrome[0x20];
6068
Matan Barakb4ff3a32016-02-09 14:57:42 +02006069 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006070};
6071
6072struct mlx5_ifc_dealloc_q_counter_in_bits {
6073 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006074 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006075
Matan Barakb4ff3a32016-02-09 14:57:42 +02006076 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006077 u8 op_mod[0x10];
6078
Matan Barakb4ff3a32016-02-09 14:57:42 +02006079 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006080 u8 counter_set_id[0x8];
6081
Matan Barakb4ff3a32016-02-09 14:57:42 +02006082 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006083};
6084
6085struct mlx5_ifc_dealloc_pd_out_bits {
6086 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006087 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006088
6089 u8 syndrome[0x20];
6090
Matan Barakb4ff3a32016-02-09 14:57:42 +02006091 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006092};
6093
6094struct mlx5_ifc_dealloc_pd_in_bits {
6095 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006096 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006097
Matan Barakb4ff3a32016-02-09 14:57:42 +02006098 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006099 u8 op_mod[0x10];
6100
Matan Barakb4ff3a32016-02-09 14:57:42 +02006101 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006102 u8 pd[0x18];
6103
Matan Barakb4ff3a32016-02-09 14:57:42 +02006104 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006105};
6106
Amir Vadai9dc0b282016-05-13 12:55:39 +00006107struct mlx5_ifc_dealloc_flow_counter_out_bits {
6108 u8 status[0x8];
6109 u8 reserved_at_8[0x18];
6110
6111 u8 syndrome[0x20];
6112
6113 u8 reserved_at_40[0x40];
6114};
6115
6116struct mlx5_ifc_dealloc_flow_counter_in_bits {
6117 u8 opcode[0x10];
6118 u8 reserved_at_10[0x10];
6119
6120 u8 reserved_at_20[0x10];
6121 u8 op_mod[0x10];
6122
6123 u8 reserved_at_40[0x10];
6124 u8 flow_counter_id[0x10];
6125
6126 u8 reserved_at_60[0x20];
6127};
6128
Saeed Mahameed74862162016-06-09 15:11:34 +03006129struct mlx5_ifc_create_xrq_out_bits {
6130 u8 status[0x8];
6131 u8 reserved_at_8[0x18];
6132
6133 u8 syndrome[0x20];
6134
6135 u8 reserved_at_40[0x8];
6136 u8 xrqn[0x18];
6137
6138 u8 reserved_at_60[0x20];
6139};
6140
6141struct mlx5_ifc_create_xrq_in_bits {
6142 u8 opcode[0x10];
6143 u8 reserved_at_10[0x10];
6144
6145 u8 reserved_at_20[0x10];
6146 u8 op_mod[0x10];
6147
6148 u8 reserved_at_40[0x40];
6149
6150 struct mlx5_ifc_xrqc_bits xrq_context;
6151};
6152
Saeed Mahameede2816822015-05-28 22:28:40 +03006153struct mlx5_ifc_create_xrc_srq_out_bits {
6154 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006155 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006156
6157 u8 syndrome[0x20];
6158
Matan Barakb4ff3a32016-02-09 14:57:42 +02006159 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006160 u8 xrc_srqn[0x18];
6161
Matan Barakb4ff3a32016-02-09 14:57:42 +02006162 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006163};
6164
6165struct mlx5_ifc_create_xrc_srq_in_bits {
6166 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006167 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006168
Matan Barakb4ff3a32016-02-09 14:57:42 +02006169 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006170 u8 op_mod[0x10];
6171
Matan Barakb4ff3a32016-02-09 14:57:42 +02006172 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006173
6174 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
6175
Matan Barakb4ff3a32016-02-09 14:57:42 +02006176 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006177
6178 u8 pas[0][0x40];
6179};
6180
6181struct mlx5_ifc_create_tis_out_bits {
6182 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006183 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006184
6185 u8 syndrome[0x20];
6186
Matan Barakb4ff3a32016-02-09 14:57:42 +02006187 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006188 u8 tisn[0x18];
6189
Matan Barakb4ff3a32016-02-09 14:57:42 +02006190 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006191};
6192
6193struct mlx5_ifc_create_tis_in_bits {
6194 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006195 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006196
Matan Barakb4ff3a32016-02-09 14:57:42 +02006197 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006198 u8 op_mod[0x10];
6199
Matan Barakb4ff3a32016-02-09 14:57:42 +02006200 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006201
6202 struct mlx5_ifc_tisc_bits ctx;
6203};
6204
6205struct mlx5_ifc_create_tir_out_bits {
6206 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006207 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006208
6209 u8 syndrome[0x20];
6210
Matan Barakb4ff3a32016-02-09 14:57:42 +02006211 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006212 u8 tirn[0x18];
6213
Matan Barakb4ff3a32016-02-09 14:57:42 +02006214 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006215};
6216
6217struct mlx5_ifc_create_tir_in_bits {
6218 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006219 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006220
Matan Barakb4ff3a32016-02-09 14:57:42 +02006221 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006222 u8 op_mod[0x10];
6223
Matan Barakb4ff3a32016-02-09 14:57:42 +02006224 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006225
6226 struct mlx5_ifc_tirc_bits ctx;
6227};
6228
6229struct mlx5_ifc_create_srq_out_bits {
6230 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006231 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006232
6233 u8 syndrome[0x20];
6234
Matan Barakb4ff3a32016-02-09 14:57:42 +02006235 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006236 u8 srqn[0x18];
6237
Matan Barakb4ff3a32016-02-09 14:57:42 +02006238 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006239};
6240
6241struct mlx5_ifc_create_srq_in_bits {
6242 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006243 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006244
Matan Barakb4ff3a32016-02-09 14:57:42 +02006245 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006246 u8 op_mod[0x10];
6247
Matan Barakb4ff3a32016-02-09 14:57:42 +02006248 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006249
6250 struct mlx5_ifc_srqc_bits srq_context_entry;
6251
Matan Barakb4ff3a32016-02-09 14:57:42 +02006252 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006253
6254 u8 pas[0][0x40];
6255};
6256
6257struct mlx5_ifc_create_sq_out_bits {
6258 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006259 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006260
6261 u8 syndrome[0x20];
6262
Matan Barakb4ff3a32016-02-09 14:57:42 +02006263 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006264 u8 sqn[0x18];
6265
Matan Barakb4ff3a32016-02-09 14:57:42 +02006266 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006267};
6268
6269struct mlx5_ifc_create_sq_in_bits {
6270 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006271 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006272
Matan Barakb4ff3a32016-02-09 14:57:42 +02006273 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006274 u8 op_mod[0x10];
6275
Matan Barakb4ff3a32016-02-09 14:57:42 +02006276 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006277
6278 struct mlx5_ifc_sqc_bits ctx;
6279};
6280
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03006281struct mlx5_ifc_create_scheduling_element_out_bits {
6282 u8 status[0x8];
6283 u8 reserved_at_8[0x18];
6284
6285 u8 syndrome[0x20];
6286
6287 u8 reserved_at_40[0x40];
6288
6289 u8 scheduling_element_id[0x20];
6290
6291 u8 reserved_at_a0[0x160];
6292};
6293
6294struct mlx5_ifc_create_scheduling_element_in_bits {
6295 u8 opcode[0x10];
6296 u8 reserved_at_10[0x10];
6297
6298 u8 reserved_at_20[0x10];
6299 u8 op_mod[0x10];
6300
6301 u8 scheduling_hierarchy[0x8];
6302 u8 reserved_at_48[0x18];
6303
6304 u8 reserved_at_60[0xa0];
6305
6306 struct mlx5_ifc_scheduling_context_bits scheduling_context;
6307
6308 u8 reserved_at_300[0x100];
6309};
6310
Saeed Mahameede2816822015-05-28 22:28:40 +03006311struct mlx5_ifc_create_rqt_out_bits {
6312 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006313 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006314
6315 u8 syndrome[0x20];
6316
Matan Barakb4ff3a32016-02-09 14:57:42 +02006317 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006318 u8 rqtn[0x18];
6319
Matan Barakb4ff3a32016-02-09 14:57:42 +02006320 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006321};
6322
6323struct mlx5_ifc_create_rqt_in_bits {
6324 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006325 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006326
Matan Barakb4ff3a32016-02-09 14:57:42 +02006327 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006328 u8 op_mod[0x10];
6329
Matan Barakb4ff3a32016-02-09 14:57:42 +02006330 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006331
6332 struct mlx5_ifc_rqtc_bits rqt_context;
6333};
6334
6335struct mlx5_ifc_create_rq_out_bits {
6336 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006337 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006338
6339 u8 syndrome[0x20];
6340
Matan Barakb4ff3a32016-02-09 14:57:42 +02006341 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006342 u8 rqn[0x18];
6343
Matan Barakb4ff3a32016-02-09 14:57:42 +02006344 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006345};
6346
6347struct mlx5_ifc_create_rq_in_bits {
6348 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006349 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006350
Matan Barakb4ff3a32016-02-09 14:57:42 +02006351 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006352 u8 op_mod[0x10];
6353
Matan Barakb4ff3a32016-02-09 14:57:42 +02006354 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006355
6356 struct mlx5_ifc_rqc_bits ctx;
6357};
6358
6359struct mlx5_ifc_create_rmp_out_bits {
6360 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006361 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006362
6363 u8 syndrome[0x20];
6364
Matan Barakb4ff3a32016-02-09 14:57:42 +02006365 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006366 u8 rmpn[0x18];
6367
Matan Barakb4ff3a32016-02-09 14:57:42 +02006368 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006369};
6370
6371struct mlx5_ifc_create_rmp_in_bits {
6372 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006373 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006374
Matan Barakb4ff3a32016-02-09 14:57:42 +02006375 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006376 u8 op_mod[0x10];
6377
Matan Barakb4ff3a32016-02-09 14:57:42 +02006378 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006379
6380 struct mlx5_ifc_rmpc_bits ctx;
6381};
6382
6383struct mlx5_ifc_create_qp_out_bits {
6384 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006385 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006386
6387 u8 syndrome[0x20];
6388
Matan Barakb4ff3a32016-02-09 14:57:42 +02006389 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006390 u8 qpn[0x18];
6391
Matan Barakb4ff3a32016-02-09 14:57:42 +02006392 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006393};
6394
6395struct mlx5_ifc_create_qp_in_bits {
6396 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006397 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006398
Matan Barakb4ff3a32016-02-09 14:57:42 +02006399 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006400 u8 op_mod[0x10];
6401
Matan Barakb4ff3a32016-02-09 14:57:42 +02006402 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006403
6404 u8 opt_param_mask[0x20];
6405
Matan Barakb4ff3a32016-02-09 14:57:42 +02006406 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006407
6408 struct mlx5_ifc_qpc_bits qpc;
6409
Matan Barakb4ff3a32016-02-09 14:57:42 +02006410 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006411
6412 u8 pas[0][0x40];
6413};
6414
6415struct mlx5_ifc_create_psv_out_bits {
6416 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006417 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006418
6419 u8 syndrome[0x20];
6420
Matan Barakb4ff3a32016-02-09 14:57:42 +02006421 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006422
Matan Barakb4ff3a32016-02-09 14:57:42 +02006423 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006424 u8 psv0_index[0x18];
6425
Matan Barakb4ff3a32016-02-09 14:57:42 +02006426 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006427 u8 psv1_index[0x18];
6428
Matan Barakb4ff3a32016-02-09 14:57:42 +02006429 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006430 u8 psv2_index[0x18];
6431
Matan Barakb4ff3a32016-02-09 14:57:42 +02006432 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006433 u8 psv3_index[0x18];
6434};
6435
6436struct mlx5_ifc_create_psv_in_bits {
6437 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006438 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006439
Matan Barakb4ff3a32016-02-09 14:57:42 +02006440 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006441 u8 op_mod[0x10];
6442
6443 u8 num_psv[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006444 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006445 u8 pd[0x18];
6446
Matan Barakb4ff3a32016-02-09 14:57:42 +02006447 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006448};
6449
6450struct mlx5_ifc_create_mkey_out_bits {
6451 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006452 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006453
6454 u8 syndrome[0x20];
6455
Matan Barakb4ff3a32016-02-09 14:57:42 +02006456 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006457 u8 mkey_index[0x18];
6458
Matan Barakb4ff3a32016-02-09 14:57:42 +02006459 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006460};
6461
6462struct mlx5_ifc_create_mkey_in_bits {
6463 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006464 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006465
Matan Barakb4ff3a32016-02-09 14:57:42 +02006466 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006467 u8 op_mod[0x10];
6468
Matan Barakb4ff3a32016-02-09 14:57:42 +02006469 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006470
6471 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006472 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03006473
6474 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
6475
Matan Barakb4ff3a32016-02-09 14:57:42 +02006476 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006477
6478 u8 translations_octword_actual_size[0x20];
6479
Matan Barakb4ff3a32016-02-09 14:57:42 +02006480 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03006481
6482 u8 klm_pas_mtt[0][0x20];
6483};
6484
6485struct mlx5_ifc_create_flow_table_out_bits {
6486 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006487 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006488
6489 u8 syndrome[0x20];
6490
Matan Barakb4ff3a32016-02-09 14:57:42 +02006491 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006492 u8 table_id[0x18];
6493
Matan Barakb4ff3a32016-02-09 14:57:42 +02006494 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006495};
6496
6497struct mlx5_ifc_create_flow_table_in_bits {
6498 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006499 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006500
Matan Barakb4ff3a32016-02-09 14:57:42 +02006501 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006502 u8 op_mod[0x10];
6503
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006504 u8 other_vport[0x1];
6505 u8 reserved_at_41[0xf];
6506 u8 vport_number[0x10];
6507
6508 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006509
6510 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006511 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006512
Matan Barakb4ff3a32016-02-09 14:57:42 +02006513 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006514
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03006515 u8 encap_en[0x1];
6516 u8 decap_en[0x1];
6517 u8 reserved_at_c2[0x2];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02006518 u8 table_miss_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006519 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006520 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006521 u8 log_size[0x8];
6522
Matan Barakb4ff3a32016-02-09 14:57:42 +02006523 u8 reserved_at_e0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02006524 u8 table_miss_id[0x18];
6525
Aviv Heller84df61e2016-05-10 13:47:50 +03006526 u8 reserved_at_100[0x8];
6527 u8 lag_master_next_table_id[0x18];
6528
6529 u8 reserved_at_120[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006530};
6531
6532struct mlx5_ifc_create_flow_group_out_bits {
6533 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006534 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006535
6536 u8 syndrome[0x20];
6537
Matan Barakb4ff3a32016-02-09 14:57:42 +02006538 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006539 u8 group_id[0x18];
6540
Matan Barakb4ff3a32016-02-09 14:57:42 +02006541 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006542};
6543
6544enum {
6545 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
6546 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
6547 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
6548};
6549
6550struct mlx5_ifc_create_flow_group_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
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006557 u8 other_vport[0x1];
6558 u8 reserved_at_41[0xf];
6559 u8 vport_number[0x10];
6560
6561 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006562
6563 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006564 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006565
Matan Barakb4ff3a32016-02-09 14:57:42 +02006566 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006567 u8 table_id[0x18];
6568
Matan Barakb4ff3a32016-02-09 14:57:42 +02006569 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006570
6571 u8 start_flow_index[0x20];
6572
Matan Barakb4ff3a32016-02-09 14:57:42 +02006573 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006574
6575 u8 end_flow_index[0x20];
6576
Matan Barakb4ff3a32016-02-09 14:57:42 +02006577 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006578
Matan Barakb4ff3a32016-02-09 14:57:42 +02006579 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006580 u8 match_criteria_enable[0x8];
6581
6582 struct mlx5_ifc_fte_match_param_bits match_criteria;
6583
Matan Barakb4ff3a32016-02-09 14:57:42 +02006584 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03006585};
6586
6587struct mlx5_ifc_create_eq_out_bits {
6588 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006589 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006590
6591 u8 syndrome[0x20];
6592
Matan Barakb4ff3a32016-02-09 14:57:42 +02006593 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006594 u8 eq_number[0x8];
6595
Matan Barakb4ff3a32016-02-09 14:57:42 +02006596 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006597};
6598
6599struct mlx5_ifc_create_eq_in_bits {
6600 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006601 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006602
Matan Barakb4ff3a32016-02-09 14:57:42 +02006603 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006604 u8 op_mod[0x10];
6605
Matan Barakb4ff3a32016-02-09 14:57:42 +02006606 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006607
6608 struct mlx5_ifc_eqc_bits eq_context_entry;
6609
Matan Barakb4ff3a32016-02-09 14:57:42 +02006610 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006611
6612 u8 event_bitmask[0x40];
6613
Matan Barakb4ff3a32016-02-09 14:57:42 +02006614 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03006615
6616 u8 pas[0][0x40];
6617};
6618
6619struct mlx5_ifc_create_dct_out_bits {
6620 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006621 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006622
6623 u8 syndrome[0x20];
6624
Matan Barakb4ff3a32016-02-09 14:57:42 +02006625 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006626 u8 dctn[0x18];
6627
Matan Barakb4ff3a32016-02-09 14:57:42 +02006628 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006629};
6630
6631struct mlx5_ifc_create_dct_in_bits {
6632 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006633 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006634
Matan Barakb4ff3a32016-02-09 14:57:42 +02006635 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006636 u8 op_mod[0x10];
6637
Matan Barakb4ff3a32016-02-09 14:57:42 +02006638 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006639
6640 struct mlx5_ifc_dctc_bits dct_context_entry;
6641
Matan Barakb4ff3a32016-02-09 14:57:42 +02006642 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03006643};
6644
6645struct mlx5_ifc_create_cq_out_bits {
6646 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006647 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006648
6649 u8 syndrome[0x20];
6650
Matan Barakb4ff3a32016-02-09 14:57:42 +02006651 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006652 u8 cqn[0x18];
6653
Matan Barakb4ff3a32016-02-09 14:57:42 +02006654 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006655};
6656
6657struct mlx5_ifc_create_cq_in_bits {
6658 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006659 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006660
Matan Barakb4ff3a32016-02-09 14:57:42 +02006661 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006662 u8 op_mod[0x10];
6663
Matan Barakb4ff3a32016-02-09 14:57:42 +02006664 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006665
6666 struct mlx5_ifc_cqc_bits cq_context;
6667
Matan Barakb4ff3a32016-02-09 14:57:42 +02006668 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006669
6670 u8 pas[0][0x40];
6671};
6672
6673struct mlx5_ifc_config_int_moderation_out_bits {
6674 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006675 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006676
6677 u8 syndrome[0x20];
6678
Matan Barakb4ff3a32016-02-09 14:57:42 +02006679 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006680 u8 min_delay[0xc];
6681 u8 int_vector[0x10];
6682
Matan Barakb4ff3a32016-02-09 14:57:42 +02006683 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006684};
6685
6686enum {
6687 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
6688 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
6689};
6690
6691struct mlx5_ifc_config_int_moderation_in_bits {
6692 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006693 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006694
Matan Barakb4ff3a32016-02-09 14:57:42 +02006695 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006696 u8 op_mod[0x10];
6697
Matan Barakb4ff3a32016-02-09 14:57:42 +02006698 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006699 u8 min_delay[0xc];
6700 u8 int_vector[0x10];
6701
Matan Barakb4ff3a32016-02-09 14:57:42 +02006702 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006703};
6704
6705struct mlx5_ifc_attach_to_mcg_out_bits {
6706 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006707 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006708
6709 u8 syndrome[0x20];
6710
Matan Barakb4ff3a32016-02-09 14:57:42 +02006711 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006712};
6713
6714struct mlx5_ifc_attach_to_mcg_in_bits {
6715 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006716 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006717
Matan Barakb4ff3a32016-02-09 14:57:42 +02006718 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006719 u8 op_mod[0x10];
6720
Matan Barakb4ff3a32016-02-09 14:57:42 +02006721 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006722 u8 qpn[0x18];
6723
Matan Barakb4ff3a32016-02-09 14:57:42 +02006724 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006725
6726 u8 multicast_gid[16][0x8];
6727};
6728
Saeed Mahameed74862162016-06-09 15:11:34 +03006729struct mlx5_ifc_arm_xrq_out_bits {
6730 u8 status[0x8];
6731 u8 reserved_at_8[0x18];
6732
6733 u8 syndrome[0x20];
6734
6735 u8 reserved_at_40[0x40];
6736};
6737
6738struct mlx5_ifc_arm_xrq_in_bits {
6739 u8 opcode[0x10];
6740 u8 reserved_at_10[0x10];
6741
6742 u8 reserved_at_20[0x10];
6743 u8 op_mod[0x10];
6744
6745 u8 reserved_at_40[0x8];
6746 u8 xrqn[0x18];
6747
6748 u8 reserved_at_60[0x10];
6749 u8 lwm[0x10];
6750};
6751
Saeed Mahameede2816822015-05-28 22:28:40 +03006752struct mlx5_ifc_arm_xrc_srq_out_bits {
6753 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006754 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006755
6756 u8 syndrome[0x20];
6757
Matan Barakb4ff3a32016-02-09 14:57:42 +02006758 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006759};
6760
6761enum {
6762 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
6763};
6764
6765struct mlx5_ifc_arm_xrc_srq_in_bits {
6766 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006767 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006768
Matan Barakb4ff3a32016-02-09 14:57:42 +02006769 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006770 u8 op_mod[0x10];
6771
Matan Barakb4ff3a32016-02-09 14:57:42 +02006772 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006773 u8 xrc_srqn[0x18];
6774
Matan Barakb4ff3a32016-02-09 14:57:42 +02006775 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006776 u8 lwm[0x10];
6777};
6778
6779struct mlx5_ifc_arm_rq_out_bits {
6780 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006781 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006782
6783 u8 syndrome[0x20];
6784
Matan Barakb4ff3a32016-02-09 14:57:42 +02006785 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006786};
6787
6788enum {
Saeed Mahameed74862162016-06-09 15:11:34 +03006789 MLX5_ARM_RQ_IN_OP_MOD_SRQ = 0x1,
6790 MLX5_ARM_RQ_IN_OP_MOD_XRQ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03006791};
6792
6793struct mlx5_ifc_arm_rq_in_bits {
6794 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006795 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006796
Matan Barakb4ff3a32016-02-09 14:57:42 +02006797 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006798 u8 op_mod[0x10];
6799
Matan Barakb4ff3a32016-02-09 14:57:42 +02006800 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006801 u8 srq_number[0x18];
6802
Matan Barakb4ff3a32016-02-09 14:57:42 +02006803 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006804 u8 lwm[0x10];
6805};
6806
6807struct mlx5_ifc_arm_dct_out_bits {
6808 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006809 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006810
6811 u8 syndrome[0x20];
6812
Matan Barakb4ff3a32016-02-09 14:57:42 +02006813 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006814};
6815
6816struct mlx5_ifc_arm_dct_in_bits {
6817 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006818 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006819
Matan Barakb4ff3a32016-02-09 14:57:42 +02006820 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006821 u8 op_mod[0x10];
6822
Matan Barakb4ff3a32016-02-09 14:57:42 +02006823 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006824 u8 dct_number[0x18];
6825
Matan Barakb4ff3a32016-02-09 14:57:42 +02006826 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006827};
6828
6829struct mlx5_ifc_alloc_xrcd_out_bits {
6830 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006831 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006832
6833 u8 syndrome[0x20];
6834
Matan Barakb4ff3a32016-02-09 14:57:42 +02006835 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006836 u8 xrcd[0x18];
6837
Matan Barakb4ff3a32016-02-09 14:57:42 +02006838 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006839};
6840
6841struct mlx5_ifc_alloc_xrcd_in_bits {
6842 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006843 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006844
Matan Barakb4ff3a32016-02-09 14:57:42 +02006845 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006846 u8 op_mod[0x10];
6847
Matan Barakb4ff3a32016-02-09 14:57:42 +02006848 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006849};
6850
6851struct mlx5_ifc_alloc_uar_out_bits {
6852 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006853 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006854
6855 u8 syndrome[0x20];
6856
Matan Barakb4ff3a32016-02-09 14:57:42 +02006857 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006858 u8 uar[0x18];
6859
Matan Barakb4ff3a32016-02-09 14:57:42 +02006860 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006861};
6862
6863struct mlx5_ifc_alloc_uar_in_bits {
6864 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006865 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006866
Matan Barakb4ff3a32016-02-09 14:57:42 +02006867 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006868 u8 op_mod[0x10];
6869
Matan Barakb4ff3a32016-02-09 14:57:42 +02006870 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006871};
6872
6873struct mlx5_ifc_alloc_transport_domain_out_bits {
6874 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006875 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006876
6877 u8 syndrome[0x20];
6878
Matan Barakb4ff3a32016-02-09 14:57:42 +02006879 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006880 u8 transport_domain[0x18];
6881
Matan Barakb4ff3a32016-02-09 14:57:42 +02006882 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006883};
6884
6885struct mlx5_ifc_alloc_transport_domain_in_bits {
6886 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006887 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006888
Matan Barakb4ff3a32016-02-09 14:57:42 +02006889 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006890 u8 op_mod[0x10];
6891
Matan Barakb4ff3a32016-02-09 14:57:42 +02006892 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006893};
6894
6895struct mlx5_ifc_alloc_q_counter_out_bits {
6896 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006897 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006898
6899 u8 syndrome[0x20];
6900
Matan Barakb4ff3a32016-02-09 14:57:42 +02006901 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006902 u8 counter_set_id[0x8];
6903
Matan Barakb4ff3a32016-02-09 14:57:42 +02006904 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006905};
6906
6907struct mlx5_ifc_alloc_q_counter_in_bits {
6908 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006909 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006910
Matan Barakb4ff3a32016-02-09 14:57:42 +02006911 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006912 u8 op_mod[0x10];
6913
Matan Barakb4ff3a32016-02-09 14:57:42 +02006914 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006915};
6916
6917struct mlx5_ifc_alloc_pd_out_bits {
6918 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006919 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006920
6921 u8 syndrome[0x20];
6922
Matan Barakb4ff3a32016-02-09 14:57:42 +02006923 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006924 u8 pd[0x18];
6925
Matan Barakb4ff3a32016-02-09 14:57:42 +02006926 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006927};
6928
6929struct mlx5_ifc_alloc_pd_in_bits {
6930 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006931 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006932
Matan Barakb4ff3a32016-02-09 14:57:42 +02006933 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006934 u8 op_mod[0x10];
6935
Matan Barakb4ff3a32016-02-09 14:57:42 +02006936 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006937};
6938
Amir Vadai9dc0b282016-05-13 12:55:39 +00006939struct mlx5_ifc_alloc_flow_counter_out_bits {
6940 u8 status[0x8];
6941 u8 reserved_at_8[0x18];
6942
6943 u8 syndrome[0x20];
6944
6945 u8 reserved_at_40[0x10];
6946 u8 flow_counter_id[0x10];
6947
6948 u8 reserved_at_60[0x20];
6949};
6950
6951struct mlx5_ifc_alloc_flow_counter_in_bits {
6952 u8 opcode[0x10];
6953 u8 reserved_at_10[0x10];
6954
6955 u8 reserved_at_20[0x10];
6956 u8 op_mod[0x10];
6957
6958 u8 reserved_at_40[0x40];
6959};
6960
Saeed Mahameede2816822015-05-28 22:28:40 +03006961struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
6962 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006963 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006964
6965 u8 syndrome[0x20];
6966
Matan Barakb4ff3a32016-02-09 14:57:42 +02006967 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006968};
6969
6970struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
6971 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006972 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006973
Matan Barakb4ff3a32016-02-09 14:57:42 +02006974 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006975 u8 op_mod[0x10];
6976
Matan Barakb4ff3a32016-02-09 14:57:42 +02006977 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006978
Matan Barakb4ff3a32016-02-09 14:57:42 +02006979 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006980 u8 vxlan_udp_port[0x10];
6981};
6982
Saeed Mahameed74862162016-06-09 15:11:34 +03006983struct mlx5_ifc_set_rate_limit_out_bits {
6984 u8 status[0x8];
6985 u8 reserved_at_8[0x18];
6986
6987 u8 syndrome[0x20];
6988
6989 u8 reserved_at_40[0x40];
6990};
6991
6992struct mlx5_ifc_set_rate_limit_in_bits {
6993 u8 opcode[0x10];
6994 u8 reserved_at_10[0x10];
6995
6996 u8 reserved_at_20[0x10];
6997 u8 op_mod[0x10];
6998
6999 u8 reserved_at_40[0x10];
7000 u8 rate_limit_index[0x10];
7001
7002 u8 reserved_at_60[0x20];
7003
7004 u8 rate_limit[0x20];
7005};
7006
Saeed Mahameede2816822015-05-28 22:28:40 +03007007struct mlx5_ifc_access_register_out_bits {
7008 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007009 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007010
7011 u8 syndrome[0x20];
7012
Matan Barakb4ff3a32016-02-09 14:57:42 +02007013 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007014
7015 u8 register_data[0][0x20];
7016};
7017
7018enum {
7019 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
7020 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
7021};
7022
7023struct mlx5_ifc_access_register_in_bits {
7024 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007025 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007026
Matan Barakb4ff3a32016-02-09 14:57:42 +02007027 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007028 u8 op_mod[0x10];
7029
Matan Barakb4ff3a32016-02-09 14:57:42 +02007030 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007031 u8 register_id[0x10];
7032
7033 u8 argument[0x20];
7034
7035 u8 register_data[0][0x20];
7036};
7037
7038struct mlx5_ifc_sltp_reg_bits {
7039 u8 status[0x4];
7040 u8 version[0x4];
7041 u8 local_port[0x8];
7042 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007043 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007044 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007045 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007046
Matan Barakb4ff3a32016-02-09 14:57:42 +02007047 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007048
Matan Barakb4ff3a32016-02-09 14:57:42 +02007049 u8 reserved_at_40[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007050 u8 polarity[0x1];
7051 u8 ob_tap0[0x8];
7052 u8 ob_tap1[0x8];
7053 u8 ob_tap2[0x8];
7054
Matan Barakb4ff3a32016-02-09 14:57:42 +02007055 u8 reserved_at_60[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007056 u8 ob_preemp_mode[0x4];
7057 u8 ob_reg[0x8];
7058 u8 ob_bias[0x8];
7059
Matan Barakb4ff3a32016-02-09 14:57:42 +02007060 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007061};
7062
7063struct mlx5_ifc_slrg_reg_bits {
7064 u8 status[0x4];
7065 u8 version[0x4];
7066 u8 local_port[0x8];
7067 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007068 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007069 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007070 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007071
7072 u8 time_to_link_up[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007073 u8 reserved_at_30[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007074 u8 grade_lane_speed[0x4];
7075
7076 u8 grade_version[0x8];
7077 u8 grade[0x18];
7078
Matan Barakb4ff3a32016-02-09 14:57:42 +02007079 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007080 u8 height_grade_type[0x4];
7081 u8 height_grade[0x18];
7082
7083 u8 height_dz[0x10];
7084 u8 height_dv[0x10];
7085
Matan Barakb4ff3a32016-02-09 14:57:42 +02007086 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007087 u8 height_sigma[0x10];
7088
Matan Barakb4ff3a32016-02-09 14:57:42 +02007089 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007090
Matan Barakb4ff3a32016-02-09 14:57:42 +02007091 u8 reserved_at_e0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007092 u8 phase_grade_type[0x4];
7093 u8 phase_grade[0x18];
7094
Matan Barakb4ff3a32016-02-09 14:57:42 +02007095 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007096 u8 phase_eo_pos[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007097 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007098 u8 phase_eo_neg[0x8];
7099
7100 u8 ffe_set_tested[0x10];
7101 u8 test_errors_per_lane[0x10];
7102};
7103
7104struct mlx5_ifc_pvlc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007105 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007106 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007107 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007108
Matan Barakb4ff3a32016-02-09 14:57:42 +02007109 u8 reserved_at_20[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007110 u8 vl_hw_cap[0x4];
7111
Matan Barakb4ff3a32016-02-09 14:57:42 +02007112 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007113 u8 vl_admin[0x4];
7114
Matan Barakb4ff3a32016-02-09 14:57:42 +02007115 u8 reserved_at_60[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007116 u8 vl_operational[0x4];
7117};
7118
7119struct mlx5_ifc_pude_reg_bits {
7120 u8 swid[0x8];
7121 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007122 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007123 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007124 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007125 u8 oper_status[0x4];
7126
Matan Barakb4ff3a32016-02-09 14:57:42 +02007127 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007128};
7129
7130struct mlx5_ifc_ptys_reg_bits {
Bodong Wange7e31ca2016-09-07 19:07:58 +03007131 u8 reserved_at_0[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03007132 u8 an_disable_admin[0x1];
Bodong Wange7e31ca2016-09-07 19:07:58 +03007133 u8 an_disable_cap[0x1];
7134 u8 reserved_at_3[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007135 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007136 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03007137 u8 proto_mask[0x3];
7138
Saeed Mahameed74862162016-06-09 15:11:34 +03007139 u8 an_status[0x4];
7140 u8 reserved_at_24[0x3c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007141
7142 u8 eth_proto_capability[0x20];
7143
7144 u8 ib_link_width_capability[0x10];
7145 u8 ib_proto_capability[0x10];
7146
Matan Barakb4ff3a32016-02-09 14:57:42 +02007147 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007148
7149 u8 eth_proto_admin[0x20];
7150
7151 u8 ib_link_width_admin[0x10];
7152 u8 ib_proto_admin[0x10];
7153
Matan Barakb4ff3a32016-02-09 14:57:42 +02007154 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007155
7156 u8 eth_proto_oper[0x20];
7157
7158 u8 ib_link_width_oper[0x10];
7159 u8 ib_proto_oper[0x10];
7160
Matan Barakb4ff3a32016-02-09 14:57:42 +02007161 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007162
7163 u8 eth_proto_lp_advertise[0x20];
7164
Matan Barakb4ff3a32016-02-09 14:57:42 +02007165 u8 reserved_at_1a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007166};
7167
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007168struct mlx5_ifc_mlcr_reg_bits {
7169 u8 reserved_at_0[0x8];
7170 u8 local_port[0x8];
7171 u8 reserved_at_10[0x20];
7172
7173 u8 beacon_duration[0x10];
7174 u8 reserved_at_40[0x10];
7175
7176 u8 beacon_remain[0x10];
7177};
7178
Saeed Mahameede2816822015-05-28 22:28:40 +03007179struct mlx5_ifc_ptas_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007180 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007181
7182 u8 algorithm_options[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007183 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007184 u8 repetitions_mode[0x4];
7185 u8 num_of_repetitions[0x8];
7186
7187 u8 grade_version[0x8];
7188 u8 height_grade_type[0x4];
7189 u8 phase_grade_type[0x4];
7190 u8 height_grade_weight[0x8];
7191 u8 phase_grade_weight[0x8];
7192
7193 u8 gisim_measure_bits[0x10];
7194 u8 adaptive_tap_measure_bits[0x10];
7195
7196 u8 ber_bath_high_error_threshold[0x10];
7197 u8 ber_bath_mid_error_threshold[0x10];
7198
7199 u8 ber_bath_low_error_threshold[0x10];
7200 u8 one_ratio_high_threshold[0x10];
7201
7202 u8 one_ratio_high_mid_threshold[0x10];
7203 u8 one_ratio_low_mid_threshold[0x10];
7204
7205 u8 one_ratio_low_threshold[0x10];
7206 u8 ndeo_error_threshold[0x10];
7207
7208 u8 mixer_offset_step_size[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007209 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007210 u8 mix90_phase_for_voltage_bath[0x8];
7211
7212 u8 mixer_offset_start[0x10];
7213 u8 mixer_offset_end[0x10];
7214
Matan Barakb4ff3a32016-02-09 14:57:42 +02007215 u8 reserved_at_140[0x15];
Saeed Mahameede2816822015-05-28 22:28:40 +03007216 u8 ber_test_time[0xb];
7217};
7218
7219struct mlx5_ifc_pspa_reg_bits {
7220 u8 swid[0x8];
7221 u8 local_port[0x8];
7222 u8 sub_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007223 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007224
Matan Barakb4ff3a32016-02-09 14:57:42 +02007225 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007226};
7227
7228struct mlx5_ifc_pqdr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007229 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007230 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007231 u8 reserved_at_10[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007232 u8 prio[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007233 u8 reserved_at_18[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007234 u8 mode[0x2];
7235
Matan Barakb4ff3a32016-02-09 14:57:42 +02007236 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007237
Matan Barakb4ff3a32016-02-09 14:57:42 +02007238 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007239 u8 min_threshold[0x10];
7240
Matan Barakb4ff3a32016-02-09 14:57:42 +02007241 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007242 u8 max_threshold[0x10];
7243
Matan Barakb4ff3a32016-02-09 14:57:42 +02007244 u8 reserved_at_80[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007245 u8 mark_probability_denominator[0x10];
7246
Matan Barakb4ff3a32016-02-09 14:57:42 +02007247 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007248};
7249
7250struct mlx5_ifc_ppsc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007251 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007252 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007253 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007254
Matan Barakb4ff3a32016-02-09 14:57:42 +02007255 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007256
Matan Barakb4ff3a32016-02-09 14:57:42 +02007257 u8 reserved_at_80[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007258 u8 wrps_admin[0x4];
7259
Matan Barakb4ff3a32016-02-09 14:57:42 +02007260 u8 reserved_at_a0[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007261 u8 wrps_status[0x4];
7262
Matan Barakb4ff3a32016-02-09 14:57:42 +02007263 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007264 u8 up_threshold[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007265 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007266 u8 down_threshold[0x8];
7267
Matan Barakb4ff3a32016-02-09 14:57:42 +02007268 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007269
Matan Barakb4ff3a32016-02-09 14:57:42 +02007270 u8 reserved_at_100[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007271 u8 srps_admin[0x4];
7272
Matan Barakb4ff3a32016-02-09 14:57:42 +02007273 u8 reserved_at_120[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007274 u8 srps_status[0x4];
7275
Matan Barakb4ff3a32016-02-09 14:57:42 +02007276 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007277};
7278
7279struct mlx5_ifc_pplr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007280 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007281 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007282 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007283
Matan Barakb4ff3a32016-02-09 14:57:42 +02007284 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007285 u8 lb_cap[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007286 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007287 u8 lb_en[0x8];
7288};
7289
7290struct mlx5_ifc_pplm_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007291 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007292 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007293 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007294
Matan Barakb4ff3a32016-02-09 14:57:42 +02007295 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007296
7297 u8 port_profile_mode[0x8];
7298 u8 static_port_profile[0x8];
7299 u8 active_port_profile[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007300 u8 reserved_at_58[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007301
7302 u8 retransmission_active[0x8];
7303 u8 fec_mode_active[0x18];
7304
Matan Barakb4ff3a32016-02-09 14:57:42 +02007305 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007306};
7307
7308struct mlx5_ifc_ppcnt_reg_bits {
7309 u8 swid[0x8];
7310 u8 local_port[0x8];
7311 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007312 u8 reserved_at_12[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007313 u8 grp[0x6];
7314
7315 u8 clr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007316 u8 reserved_at_21[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007317 u8 prio_tc[0x3];
7318
7319 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
7320};
7321
Gal Pressman8ed1a632016-11-17 13:46:01 +02007322struct mlx5_ifc_mpcnt_reg_bits {
7323 u8 reserved_at_0[0x8];
7324 u8 pcie_index[0x8];
7325 u8 reserved_at_10[0xa];
7326 u8 grp[0x6];
7327
7328 u8 clr[0x1];
7329 u8 reserved_at_21[0x1f];
7330
7331 union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits counter_set;
7332};
7333
Saeed Mahameede2816822015-05-28 22:28:40 +03007334struct mlx5_ifc_ppad_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007335 u8 reserved_at_0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03007336 u8 single_mac[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007337 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007338 u8 local_port[0x8];
7339 u8 mac_47_32[0x10];
7340
7341 u8 mac_31_0[0x20];
7342
Matan Barakb4ff3a32016-02-09 14:57:42 +02007343 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007344};
7345
7346struct mlx5_ifc_pmtu_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007347 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007348 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007349 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007350
7351 u8 max_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007352 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007353
7354 u8 admin_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007355 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007356
7357 u8 oper_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007358 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007359};
7360
7361struct mlx5_ifc_pmpr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007362 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007363 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007364 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007365
Matan Barakb4ff3a32016-02-09 14:57:42 +02007366 u8 reserved_at_20[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007367 u8 attenuation_5g[0x8];
7368
Matan Barakb4ff3a32016-02-09 14:57:42 +02007369 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007370 u8 attenuation_7g[0x8];
7371
Matan Barakb4ff3a32016-02-09 14:57:42 +02007372 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007373 u8 attenuation_12g[0x8];
7374};
7375
7376struct mlx5_ifc_pmpe_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007377 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007378 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007379 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007380 u8 module_status[0x4];
7381
Matan Barakb4ff3a32016-02-09 14:57:42 +02007382 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007383};
7384
7385struct mlx5_ifc_pmpc_reg_bits {
7386 u8 module_state_updated[32][0x8];
7387};
7388
7389struct mlx5_ifc_pmlpn_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007390 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007391 u8 mlpn_status[0x4];
7392 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007393 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007394
7395 u8 e[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007396 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007397};
7398
7399struct mlx5_ifc_pmlp_reg_bits {
7400 u8 rxtx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007401 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007402 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007403 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007404 u8 width[0x8];
7405
7406 u8 lane0_module_mapping[0x20];
7407
7408 u8 lane1_module_mapping[0x20];
7409
7410 u8 lane2_module_mapping[0x20];
7411
7412 u8 lane3_module_mapping[0x20];
7413
Matan Barakb4ff3a32016-02-09 14:57:42 +02007414 u8 reserved_at_a0[0x160];
Saeed Mahameede2816822015-05-28 22:28:40 +03007415};
7416
7417struct mlx5_ifc_pmaos_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007418 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007419 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007420 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007421 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007422 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007423 u8 oper_status[0x4];
7424
7425 u8 ase[0x1];
7426 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007427 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007428 u8 e[0x2];
7429
Matan Barakb4ff3a32016-02-09 14:57:42 +02007430 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007431};
7432
7433struct mlx5_ifc_plpc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007434 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007435 u8 profile_id[0xc];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007436 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007437 u8 proto_mask[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007438 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007439
Matan Barakb4ff3a32016-02-09 14:57:42 +02007440 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007441 u8 lane_speed[0x10];
7442
Matan Barakb4ff3a32016-02-09 14:57:42 +02007443 u8 reserved_at_40[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03007444 u8 lpbf[0x1];
7445 u8 fec_mode_policy[0x8];
7446
7447 u8 retransmission_capability[0x8];
7448 u8 fec_mode_capability[0x18];
7449
7450 u8 retransmission_support_admin[0x8];
7451 u8 fec_mode_support_admin[0x18];
7452
7453 u8 retransmission_request_admin[0x8];
7454 u8 fec_mode_request_admin[0x18];
7455
Matan Barakb4ff3a32016-02-09 14:57:42 +02007456 u8 reserved_at_c0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007457};
7458
7459struct mlx5_ifc_plib_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007460 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007461 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007462 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007463 u8 ib_port[0x8];
7464
Matan Barakb4ff3a32016-02-09 14:57:42 +02007465 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007466};
7467
7468struct mlx5_ifc_plbf_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007469 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007470 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007471 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03007472 u8 lbf_mode[0x3];
7473
Matan Barakb4ff3a32016-02-09 14:57:42 +02007474 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007475};
7476
7477struct mlx5_ifc_pipg_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007478 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007479 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007480 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007481
7482 u8 dic[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007483 u8 reserved_at_21[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +03007484 u8 ipg[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007485 u8 reserved_at_3e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007486};
7487
7488struct mlx5_ifc_pifr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007489 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007490 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007491 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007492
Matan Barakb4ff3a32016-02-09 14:57:42 +02007493 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007494
7495 u8 port_filter[8][0x20];
7496
7497 u8 port_filter_update_en[8][0x20];
7498};
7499
7500struct mlx5_ifc_pfcc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007501 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007502 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007503 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007504
7505 u8 ppan[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007506 u8 reserved_at_24[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007507 u8 prio_mask_tx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007508 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007509 u8 prio_mask_rx[0x8];
7510
7511 u8 pptx[0x1];
7512 u8 aptx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007513 u8 reserved_at_42[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007514 u8 pfctx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007515 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007516
7517 u8 pprx[0x1];
7518 u8 aprx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007519 u8 reserved_at_62[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007520 u8 pfcrx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007521 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007522
Matan Barakb4ff3a32016-02-09 14:57:42 +02007523 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007524};
7525
7526struct mlx5_ifc_pelc_reg_bits {
7527 u8 op[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007528 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007529 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007530 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007531
7532 u8 op_admin[0x8];
7533 u8 op_capability[0x8];
7534 u8 op_request[0x8];
7535 u8 op_active[0x8];
7536
7537 u8 admin[0x40];
7538
7539 u8 capability[0x40];
7540
7541 u8 request[0x40];
7542
7543 u8 active[0x40];
7544
Matan Barakb4ff3a32016-02-09 14:57:42 +02007545 u8 reserved_at_140[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007546};
7547
7548struct mlx5_ifc_peir_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007549 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007550 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007551 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007552
Matan Barakb4ff3a32016-02-09 14:57:42 +02007553 u8 reserved_at_20[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007554 u8 error_count[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007555 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007556
Matan Barakb4ff3a32016-02-09 14:57:42 +02007557 u8 reserved_at_40[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007558 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007559 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007560 u8 error_type[0x8];
7561};
7562
Gal Pressmancfdcbcea2016-12-08 15:52:00 +02007563struct mlx5_ifc_pcam_enhanced_features_bits {
7564 u8 reserved_at_0[0x7e];
7565
7566 u8 ppcnt_discard_group[0x1];
7567 u8 ppcnt_statistical_group[0x1];
7568};
7569
7570struct mlx5_ifc_pcam_reg_bits {
7571 u8 reserved_at_0[0x8];
7572 u8 feature_group[0x8];
7573 u8 reserved_at_10[0x8];
7574 u8 access_reg_group[0x8];
7575
7576 u8 reserved_at_20[0x20];
7577
7578 union {
7579 u8 reserved_at_0[0x80];
7580 } port_access_reg_cap_mask;
7581
7582 u8 reserved_at_c0[0x80];
7583
7584 union {
7585 struct mlx5_ifc_pcam_enhanced_features_bits enhanced_features;
7586 u8 reserved_at_0[0x80];
7587 } feature_cap_mask;
7588
7589 u8 reserved_at_1c0[0xc0];
7590};
7591
7592struct mlx5_ifc_mcam_enhanced_features_bits {
7593 u8 reserved_at_0[0x7f];
7594
7595 u8 pcie_performance_group[0x1];
7596};
7597
7598struct mlx5_ifc_mcam_reg_bits {
7599 u8 reserved_at_0[0x8];
7600 u8 feature_group[0x8];
7601 u8 reserved_at_10[0x8];
7602 u8 access_reg_group[0x8];
7603
7604 u8 reserved_at_20[0x20];
7605
7606 union {
7607 u8 reserved_at_0[0x80];
7608 } mng_access_reg_cap_mask;
7609
7610 u8 reserved_at_c0[0x80];
7611
7612 union {
7613 struct mlx5_ifc_mcam_enhanced_features_bits enhanced_features;
7614 u8 reserved_at_0[0x80];
7615 } mng_feature_cap_mask;
7616
7617 u8 reserved_at_1c0[0x80];
7618};
7619
Saeed Mahameede2816822015-05-28 22:28:40 +03007620struct mlx5_ifc_pcap_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007621 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007622 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007623 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007624
7625 u8 port_capability_mask[4][0x20];
7626};
7627
7628struct mlx5_ifc_paos_reg_bits {
7629 u8 swid[0x8];
7630 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007631 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007632 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007633 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007634 u8 oper_status[0x4];
7635
7636 u8 ase[0x1];
7637 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007638 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007639 u8 e[0x2];
7640
Matan Barakb4ff3a32016-02-09 14:57:42 +02007641 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007642};
7643
7644struct mlx5_ifc_pamp_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007645 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007646 u8 opamp_group[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007647 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007648 u8 opamp_group_type[0x4];
7649
7650 u8 start_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007651 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007652 u8 num_of_indices[0xc];
7653
7654 u8 index_data[18][0x10];
7655};
7656
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007657struct mlx5_ifc_pcmr_reg_bits {
7658 u8 reserved_at_0[0x8];
7659 u8 local_port[0x8];
7660 u8 reserved_at_10[0x2e];
7661 u8 fcs_cap[0x1];
7662 u8 reserved_at_3f[0x1f];
7663 u8 fcs_chk[0x1];
7664 u8 reserved_at_5f[0x1];
7665};
7666
Saeed Mahameede2816822015-05-28 22:28:40 +03007667struct mlx5_ifc_lane_2_module_mapping_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007668 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007669 u8 rx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007670 u8 reserved_at_8[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007671 u8 tx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007672 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007673 u8 module[0x8];
7674};
7675
7676struct mlx5_ifc_bufferx_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007677 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007678 u8 lossy[0x1];
7679 u8 epsb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007680 u8 reserved_at_8[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007681 u8 size[0xc];
7682
7683 u8 xoff_threshold[0x10];
7684 u8 xon_threshold[0x10];
7685};
7686
7687struct mlx5_ifc_set_node_in_bits {
7688 u8 node_description[64][0x8];
7689};
7690
7691struct mlx5_ifc_register_power_settings_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007692 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007693 u8 power_settings_level[0x8];
7694
Matan Barakb4ff3a32016-02-09 14:57:42 +02007695 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007696};
7697
7698struct mlx5_ifc_register_host_endianness_bits {
7699 u8 he[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007700 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007701
Matan Barakb4ff3a32016-02-09 14:57:42 +02007702 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007703};
7704
7705struct mlx5_ifc_umr_pointer_desc_argument_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007706 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007707
7708 u8 mkey[0x20];
7709
7710 u8 addressh_63_32[0x20];
7711
7712 u8 addressl_31_0[0x20];
7713};
7714
7715struct mlx5_ifc_ud_adrs_vector_bits {
7716 u8 dc_key[0x40];
7717
7718 u8 ext[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007719 u8 reserved_at_41[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007720 u8 destination_qp_dct[0x18];
7721
7722 u8 static_rate[0x4];
7723 u8 sl_eth_prio[0x4];
7724 u8 fl[0x1];
7725 u8 mlid[0x7];
7726 u8 rlid_udp_sport[0x10];
7727
Matan Barakb4ff3a32016-02-09 14:57:42 +02007728 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007729
7730 u8 rmac_47_16[0x20];
7731
7732 u8 rmac_15_0[0x10];
7733 u8 tclass[0x8];
7734 u8 hop_limit[0x8];
7735
Matan Barakb4ff3a32016-02-09 14:57:42 +02007736 u8 reserved_at_e0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03007737 u8 grh[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007738 u8 reserved_at_e2[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007739 u8 src_addr_index[0x8];
7740 u8 flow_label[0x14];
7741
7742 u8 rgid_rip[16][0x8];
7743};
7744
7745struct mlx5_ifc_pages_req_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007746 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007747 u8 function_id[0x10];
7748
7749 u8 num_pages[0x20];
7750
Matan Barakb4ff3a32016-02-09 14:57:42 +02007751 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007752};
7753
7754struct mlx5_ifc_eqe_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007755 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007756 u8 event_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007757 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007758 u8 event_sub_type[0x8];
7759
Matan Barakb4ff3a32016-02-09 14:57:42 +02007760 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007761
7762 union mlx5_ifc_event_auto_bits event_data;
7763
Matan Barakb4ff3a32016-02-09 14:57:42 +02007764 u8 reserved_at_1e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007765 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007766 u8 reserved_at_1f8[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007767 u8 owner[0x1];
7768};
7769
7770enum {
7771 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
7772};
7773
7774struct mlx5_ifc_cmd_queue_entry_bits {
7775 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007776 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007777
7778 u8 input_length[0x20];
7779
7780 u8 input_mailbox_pointer_63_32[0x20];
7781
7782 u8 input_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007783 u8 reserved_at_77[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03007784
7785 u8 command_input_inline_data[16][0x8];
7786
7787 u8 command_output_inline_data[16][0x8];
7788
7789 u8 output_mailbox_pointer_63_32[0x20];
7790
7791 u8 output_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007792 u8 reserved_at_1b7[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03007793
7794 u8 output_length[0x20];
7795
7796 u8 token[0x8];
7797 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007798 u8 reserved_at_1f0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007799 u8 status[0x7];
7800 u8 ownership[0x1];
7801};
7802
7803struct mlx5_ifc_cmd_out_bits {
7804 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007805 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007806
7807 u8 syndrome[0x20];
7808
7809 u8 command_output[0x20];
7810};
7811
7812struct mlx5_ifc_cmd_in_bits {
7813 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007814 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007815
Matan Barakb4ff3a32016-02-09 14:57:42 +02007816 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007817 u8 op_mod[0x10];
7818
7819 u8 command[0][0x20];
7820};
7821
7822struct mlx5_ifc_cmd_if_box_bits {
7823 u8 mailbox_data[512][0x8];
7824
Matan Barakb4ff3a32016-02-09 14:57:42 +02007825 u8 reserved_at_1000[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03007826
7827 u8 next_pointer_63_32[0x20];
7828
7829 u8 next_pointer_31_10[0x16];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007830 u8 reserved_at_11b6[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +03007831
7832 u8 block_number[0x20];
7833
Matan Barakb4ff3a32016-02-09 14:57:42 +02007834 u8 reserved_at_11e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007835 u8 token[0x8];
7836 u8 ctrl_signature[0x8];
7837 u8 signature[0x8];
7838};
7839
7840struct mlx5_ifc_mtt_bits {
7841 u8 ptag_63_32[0x20];
7842
7843 u8 ptag_31_8[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007844 u8 reserved_at_38[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007845 u8 wr_en[0x1];
7846 u8 rd_en[0x1];
7847};
7848
Tariq Toukan928cfe82016-02-22 18:17:29 +02007849struct mlx5_ifc_query_wol_rol_out_bits {
7850 u8 status[0x8];
7851 u8 reserved_at_8[0x18];
7852
7853 u8 syndrome[0x20];
7854
7855 u8 reserved_at_40[0x10];
7856 u8 rol_mode[0x8];
7857 u8 wol_mode[0x8];
7858
7859 u8 reserved_at_60[0x20];
7860};
7861
7862struct mlx5_ifc_query_wol_rol_in_bits {
7863 u8 opcode[0x10];
7864 u8 reserved_at_10[0x10];
7865
7866 u8 reserved_at_20[0x10];
7867 u8 op_mod[0x10];
7868
7869 u8 reserved_at_40[0x40];
7870};
7871
7872struct mlx5_ifc_set_wol_rol_out_bits {
7873 u8 status[0x8];
7874 u8 reserved_at_8[0x18];
7875
7876 u8 syndrome[0x20];
7877
7878 u8 reserved_at_40[0x40];
7879};
7880
7881struct mlx5_ifc_set_wol_rol_in_bits {
7882 u8 opcode[0x10];
7883 u8 reserved_at_10[0x10];
7884
7885 u8 reserved_at_20[0x10];
7886 u8 op_mod[0x10];
7887
7888 u8 rol_mode_valid[0x1];
7889 u8 wol_mode_valid[0x1];
7890 u8 reserved_at_42[0xe];
7891 u8 rol_mode[0x8];
7892 u8 wol_mode[0x8];
7893
7894 u8 reserved_at_60[0x20];
7895};
7896
Saeed Mahameede2816822015-05-28 22:28:40 +03007897enum {
7898 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
7899 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
7900 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
7901};
7902
7903enum {
7904 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
7905 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
7906 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
7907};
7908
7909enum {
7910 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
7911 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
7912 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
7913 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
7914 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
7915 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
7916 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
7917 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
7918 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
7919 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
7920 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
7921};
7922
7923struct mlx5_ifc_initial_seg_bits {
7924 u8 fw_rev_minor[0x10];
7925 u8 fw_rev_major[0x10];
7926
7927 u8 cmd_interface_rev[0x10];
7928 u8 fw_rev_subminor[0x10];
7929
Matan Barakb4ff3a32016-02-09 14:57:42 +02007930 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007931
7932 u8 cmdq_phy_addr_63_32[0x20];
7933
7934 u8 cmdq_phy_addr_31_12[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007935 u8 reserved_at_b4[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007936 u8 nic_interface[0x2];
7937 u8 log_cmdq_size[0x4];
7938 u8 log_cmdq_stride[0x4];
7939
7940 u8 command_doorbell_vector[0x20];
7941
Matan Barakb4ff3a32016-02-09 14:57:42 +02007942 u8 reserved_at_e0[0xf00];
Saeed Mahameede2816822015-05-28 22:28:40 +03007943
7944 u8 initializing[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007945 u8 reserved_at_fe1[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007946 u8 nic_interface_supported[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007947 u8 reserved_at_fe8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007948
7949 struct mlx5_ifc_health_buffer_bits health_buffer;
7950
7951 u8 no_dram_nic_offset[0x20];
7952
Matan Barakb4ff3a32016-02-09 14:57:42 +02007953 u8 reserved_at_1220[0x6e40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007954
Matan Barakb4ff3a32016-02-09 14:57:42 +02007955 u8 reserved_at_8060[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007956 u8 clear_int[0x1];
7957
7958 u8 health_syndrome[0x8];
7959 u8 health_counter[0x18];
7960
Matan Barakb4ff3a32016-02-09 14:57:42 +02007961 u8 reserved_at_80a0[0x17fc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007962};
7963
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03007964struct mlx5_ifc_mtpps_reg_bits {
7965 u8 reserved_at_0[0xc];
7966 u8 cap_number_of_pps_pins[0x4];
7967 u8 reserved_at_10[0x4];
7968 u8 cap_max_num_of_pps_in_pins[0x4];
7969 u8 reserved_at_18[0x4];
7970 u8 cap_max_num_of_pps_out_pins[0x4];
7971
7972 u8 reserved_at_20[0x24];
7973 u8 cap_pin_3_mode[0x4];
7974 u8 reserved_at_48[0x4];
7975 u8 cap_pin_2_mode[0x4];
7976 u8 reserved_at_50[0x4];
7977 u8 cap_pin_1_mode[0x4];
7978 u8 reserved_at_58[0x4];
7979 u8 cap_pin_0_mode[0x4];
7980
7981 u8 reserved_at_60[0x4];
7982 u8 cap_pin_7_mode[0x4];
7983 u8 reserved_at_68[0x4];
7984 u8 cap_pin_6_mode[0x4];
7985 u8 reserved_at_70[0x4];
7986 u8 cap_pin_5_mode[0x4];
7987 u8 reserved_at_78[0x4];
7988 u8 cap_pin_4_mode[0x4];
7989
7990 u8 reserved_at_80[0x80];
7991
7992 u8 enable[0x1];
7993 u8 reserved_at_101[0xb];
7994 u8 pattern[0x4];
7995 u8 reserved_at_110[0x4];
7996 u8 pin_mode[0x4];
7997 u8 pin[0x8];
7998
7999 u8 reserved_at_120[0x20];
8000
8001 u8 time_stamp[0x40];
8002
8003 u8 out_pulse_duration[0x10];
8004 u8 out_periodic_adjustment[0x10];
8005
8006 u8 reserved_at_1a0[0x60];
8007};
8008
8009struct mlx5_ifc_mtppse_reg_bits {
8010 u8 reserved_at_0[0x18];
8011 u8 pin[0x8];
8012 u8 event_arm[0x1];
8013 u8 reserved_at_21[0x1b];
8014 u8 event_generation_mode[0x4];
8015 u8 reserved_at_40[0x40];
8016};
8017
Saeed Mahameede2816822015-05-28 22:28:40 +03008018union mlx5_ifc_ports_control_registers_document_bits {
8019 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
8020 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
8021 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
8022 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
8023 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
8024 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
8025 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
8026 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
8027 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
8028 struct mlx5_ifc_pamp_reg_bits pamp_reg;
8029 struct mlx5_ifc_paos_reg_bits paos_reg;
8030 struct mlx5_ifc_pcap_reg_bits pcap_reg;
8031 struct mlx5_ifc_peir_reg_bits peir_reg;
8032 struct mlx5_ifc_pelc_reg_bits pelc_reg;
8033 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02008034 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03008035 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
8036 struct mlx5_ifc_pifr_reg_bits pifr_reg;
8037 struct mlx5_ifc_pipg_reg_bits pipg_reg;
8038 struct mlx5_ifc_plbf_reg_bits plbf_reg;
8039 struct mlx5_ifc_plib_reg_bits plib_reg;
8040 struct mlx5_ifc_plpc_reg_bits plpc_reg;
8041 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
8042 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
8043 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
8044 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
8045 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
8046 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
8047 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
8048 struct mlx5_ifc_ppad_reg_bits ppad_reg;
8049 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
Gal Pressman8ed1a632016-11-17 13:46:01 +02008050 struct mlx5_ifc_mpcnt_reg_bits mpcnt_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03008051 struct mlx5_ifc_pplm_reg_bits pplm_reg;
8052 struct mlx5_ifc_pplr_reg_bits pplr_reg;
8053 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
8054 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
8055 struct mlx5_ifc_pspa_reg_bits pspa_reg;
8056 struct mlx5_ifc_ptas_reg_bits ptas_reg;
8057 struct mlx5_ifc_ptys_reg_bits ptys_reg;
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008058 struct mlx5_ifc_mlcr_reg_bits mlcr_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03008059 struct mlx5_ifc_pude_reg_bits pude_reg;
8060 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
8061 struct mlx5_ifc_slrg_reg_bits slrg_reg;
8062 struct mlx5_ifc_sltp_reg_bits sltp_reg;
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03008063 struct mlx5_ifc_mtpps_reg_bits mtpps_reg;
8064 struct mlx5_ifc_mtppse_reg_bits mtppse_reg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02008065 u8 reserved_at_0[0x60e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03008066};
8067
8068union mlx5_ifc_debug_enhancements_document_bits {
8069 struct mlx5_ifc_health_buffer_bits health_buffer;
Matan Barakb4ff3a32016-02-09 14:57:42 +02008070 u8 reserved_at_0[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +03008071};
8072
8073union mlx5_ifc_uplink_pci_interface_document_bits {
8074 struct mlx5_ifc_initial_seg_bits initial_seg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02008075 u8 reserved_at_0[0x20060];
Eli Cohenb7755162014-10-02 12:19:44 +03008076};
8077
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008078struct mlx5_ifc_set_flow_table_root_out_bits {
8079 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008080 u8 reserved_at_8[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008081
8082 u8 syndrome[0x20];
8083
Matan Barakb4ff3a32016-02-09 14:57:42 +02008084 u8 reserved_at_40[0x40];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008085};
8086
8087struct mlx5_ifc_set_flow_table_root_in_bits {
8088 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008089 u8 reserved_at_10[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008090
Matan Barakb4ff3a32016-02-09 14:57:42 +02008091 u8 reserved_at_20[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008092 u8 op_mod[0x10];
8093
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008094 u8 other_vport[0x1];
8095 u8 reserved_at_41[0xf];
8096 u8 vport_number[0x10];
8097
8098 u8 reserved_at_60[0x20];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008099
8100 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008101 u8 reserved_at_88[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008102
Matan Barakb4ff3a32016-02-09 14:57:42 +02008103 u8 reserved_at_a0[0x8];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008104 u8 table_id[0x18];
8105
Matan Barakb4ff3a32016-02-09 14:57:42 +02008106 u8 reserved_at_c0[0x140];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02008107};
8108
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008109enum {
Aviv Heller84df61e2016-05-10 13:47:50 +03008110 MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = (1UL << 0),
8111 MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID = (1UL << 15),
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008112};
8113
8114struct mlx5_ifc_modify_flow_table_out_bits {
8115 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008116 u8 reserved_at_8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008117
8118 u8 syndrome[0x20];
8119
Matan Barakb4ff3a32016-02-09 14:57:42 +02008120 u8 reserved_at_40[0x40];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008121};
8122
8123struct mlx5_ifc_modify_flow_table_in_bits {
8124 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008125 u8 reserved_at_10[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008126
Matan Barakb4ff3a32016-02-09 14:57:42 +02008127 u8 reserved_at_20[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008128 u8 op_mod[0x10];
8129
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008130 u8 other_vport[0x1];
8131 u8 reserved_at_41[0xf];
8132 u8 vport_number[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008133
Matan Barakb4ff3a32016-02-09 14:57:42 +02008134 u8 reserved_at_60[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008135 u8 modify_field_select[0x10];
8136
8137 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008138 u8 reserved_at_88[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008139
Matan Barakb4ff3a32016-02-09 14:57:42 +02008140 u8 reserved_at_a0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008141 u8 table_id[0x18];
8142
Matan Barakb4ff3a32016-02-09 14:57:42 +02008143 u8 reserved_at_c0[0x4];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008144 u8 table_miss_mode[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008145 u8 reserved_at_c8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008146
Matan Barakb4ff3a32016-02-09 14:57:42 +02008147 u8 reserved_at_e0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008148 u8 table_miss_id[0x18];
8149
Aviv Heller84df61e2016-05-10 13:47:50 +03008150 u8 reserved_at_100[0x8];
8151 u8 lag_master_next_table_id[0x18];
8152
8153 u8 reserved_at_120[0x80];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008154};
8155
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02008156struct mlx5_ifc_ets_tcn_config_reg_bits {
8157 u8 g[0x1];
8158 u8 b[0x1];
8159 u8 r[0x1];
8160 u8 reserved_at_3[0x9];
8161 u8 group[0x4];
8162 u8 reserved_at_10[0x9];
8163 u8 bw_allocation[0x7];
8164
8165 u8 reserved_at_20[0xc];
8166 u8 max_bw_units[0x4];
8167 u8 reserved_at_30[0x8];
8168 u8 max_bw_value[0x8];
8169};
8170
8171struct mlx5_ifc_ets_global_config_reg_bits {
8172 u8 reserved_at_0[0x2];
8173 u8 r[0x1];
8174 u8 reserved_at_3[0x1d];
8175
8176 u8 reserved_at_20[0xc];
8177 u8 max_bw_units[0x4];
8178 u8 reserved_at_30[0x8];
8179 u8 max_bw_value[0x8];
8180};
8181
8182struct mlx5_ifc_qetc_reg_bits {
8183 u8 reserved_at_0[0x8];
8184 u8 port_number[0x8];
8185 u8 reserved_at_10[0x30];
8186
8187 struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8];
8188 struct mlx5_ifc_ets_global_config_reg_bits global_configuration;
8189};
8190
8191struct mlx5_ifc_qtct_reg_bits {
8192 u8 reserved_at_0[0x8];
8193 u8 port_number[0x8];
8194 u8 reserved_at_10[0xd];
8195 u8 prio[0x3];
8196
8197 u8 reserved_at_20[0x1d];
8198 u8 tclass[0x3];
8199};
8200
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008201struct mlx5_ifc_mcia_reg_bits {
8202 u8 l[0x1];
8203 u8 reserved_at_1[0x7];
8204 u8 module[0x8];
8205 u8 reserved_at_10[0x8];
8206 u8 status[0x8];
8207
8208 u8 i2c_device_address[0x8];
8209 u8 page_number[0x8];
8210 u8 device_address[0x10];
8211
8212 u8 reserved_at_40[0x10];
8213 u8 size[0x10];
8214
8215 u8 reserved_at_60[0x20];
8216
8217 u8 dword_0[0x20];
8218 u8 dword_1[0x20];
8219 u8 dword_2[0x20];
8220 u8 dword_3[0x20];
8221 u8 dword_4[0x20];
8222 u8 dword_5[0x20];
8223 u8 dword_6[0x20];
8224 u8 dword_7[0x20];
8225 u8 dword_8[0x20];
8226 u8 dword_9[0x20];
8227 u8 dword_10[0x20];
8228 u8 dword_11[0x20];
8229};
8230
Saeed Mahameed74862162016-06-09 15:11:34 +03008231struct mlx5_ifc_dcbx_param_bits {
8232 u8 dcbx_cee_cap[0x1];
8233 u8 dcbx_ieee_cap[0x1];
8234 u8 dcbx_standby_cap[0x1];
8235 u8 reserved_at_0[0x5];
8236 u8 port_number[0x8];
8237 u8 reserved_at_10[0xa];
8238 u8 max_application_table_size[6];
8239 u8 reserved_at_20[0x15];
8240 u8 version_oper[0x3];
8241 u8 reserved_at_38[5];
8242 u8 version_admin[0x3];
8243 u8 willing_admin[0x1];
8244 u8 reserved_at_41[0x3];
8245 u8 pfc_cap_oper[0x4];
8246 u8 reserved_at_48[0x4];
8247 u8 pfc_cap_admin[0x4];
8248 u8 reserved_at_50[0x4];
8249 u8 num_of_tc_oper[0x4];
8250 u8 reserved_at_58[0x4];
8251 u8 num_of_tc_admin[0x4];
8252 u8 remote_willing[0x1];
8253 u8 reserved_at_61[3];
8254 u8 remote_pfc_cap[4];
8255 u8 reserved_at_68[0x14];
8256 u8 remote_num_of_tc[0x4];
8257 u8 reserved_at_80[0x18];
8258 u8 error[0x8];
8259 u8 reserved_at_a0[0x160];
8260};
Aviv Heller84df61e2016-05-10 13:47:50 +03008261
8262struct mlx5_ifc_lagc_bits {
8263 u8 reserved_at_0[0x1d];
8264 u8 lag_state[0x3];
8265
8266 u8 reserved_at_20[0x14];
8267 u8 tx_remap_affinity_2[0x4];
8268 u8 reserved_at_38[0x4];
8269 u8 tx_remap_affinity_1[0x4];
8270};
8271
8272struct mlx5_ifc_create_lag_out_bits {
8273 u8 status[0x8];
8274 u8 reserved_at_8[0x18];
8275
8276 u8 syndrome[0x20];
8277
8278 u8 reserved_at_40[0x40];
8279};
8280
8281struct mlx5_ifc_create_lag_in_bits {
8282 u8 opcode[0x10];
8283 u8 reserved_at_10[0x10];
8284
8285 u8 reserved_at_20[0x10];
8286 u8 op_mod[0x10];
8287
8288 struct mlx5_ifc_lagc_bits ctx;
8289};
8290
8291struct mlx5_ifc_modify_lag_out_bits {
8292 u8 status[0x8];
8293 u8 reserved_at_8[0x18];
8294
8295 u8 syndrome[0x20];
8296
8297 u8 reserved_at_40[0x40];
8298};
8299
8300struct mlx5_ifc_modify_lag_in_bits {
8301 u8 opcode[0x10];
8302 u8 reserved_at_10[0x10];
8303
8304 u8 reserved_at_20[0x10];
8305 u8 op_mod[0x10];
8306
8307 u8 reserved_at_40[0x20];
8308 u8 field_select[0x20];
8309
8310 struct mlx5_ifc_lagc_bits ctx;
8311};
8312
8313struct mlx5_ifc_query_lag_out_bits {
8314 u8 status[0x8];
8315 u8 reserved_at_8[0x18];
8316
8317 u8 syndrome[0x20];
8318
8319 u8 reserved_at_40[0x40];
8320
8321 struct mlx5_ifc_lagc_bits ctx;
8322};
8323
8324struct mlx5_ifc_query_lag_in_bits {
8325 u8 opcode[0x10];
8326 u8 reserved_at_10[0x10];
8327
8328 u8 reserved_at_20[0x10];
8329 u8 op_mod[0x10];
8330
8331 u8 reserved_at_40[0x40];
8332};
8333
8334struct mlx5_ifc_destroy_lag_out_bits {
8335 u8 status[0x8];
8336 u8 reserved_at_8[0x18];
8337
8338 u8 syndrome[0x20];
8339
8340 u8 reserved_at_40[0x40];
8341};
8342
8343struct mlx5_ifc_destroy_lag_in_bits {
8344 u8 opcode[0x10];
8345 u8 reserved_at_10[0x10];
8346
8347 u8 reserved_at_20[0x10];
8348 u8 op_mod[0x10];
8349
8350 u8 reserved_at_40[0x40];
8351};
8352
8353struct mlx5_ifc_create_vport_lag_out_bits {
8354 u8 status[0x8];
8355 u8 reserved_at_8[0x18];
8356
8357 u8 syndrome[0x20];
8358
8359 u8 reserved_at_40[0x40];
8360};
8361
8362struct mlx5_ifc_create_vport_lag_in_bits {
8363 u8 opcode[0x10];
8364 u8 reserved_at_10[0x10];
8365
8366 u8 reserved_at_20[0x10];
8367 u8 op_mod[0x10];
8368
8369 u8 reserved_at_40[0x40];
8370};
8371
8372struct mlx5_ifc_destroy_vport_lag_out_bits {
8373 u8 status[0x8];
8374 u8 reserved_at_8[0x18];
8375
8376 u8 syndrome[0x20];
8377
8378 u8 reserved_at_40[0x40];
8379};
8380
8381struct mlx5_ifc_destroy_vport_lag_in_bits {
8382 u8 opcode[0x10];
8383 u8 reserved_at_10[0x10];
8384
8385 u8 reserved_at_20[0x10];
8386 u8 op_mod[0x10];
8387
8388 u8 reserved_at_40[0x40];
8389};
8390
Eli Cohend29b7962014-10-02 12:19:43 +03008391#endif /* MLX5_IFC_H */