blob: 6f19e4b8574fcec96b9928be608c3ca4496b0eb4 [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];
829 u8 reserved_at_1a9[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300830 u8 local_ca_ack_delay[0x5];
Huy Nguyen4ce3bf22016-11-17 13:45:56 +0200831 u8 port_module_event[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +0200832 u8 reserved_at_1b1[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300833 u8 ports_check[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +0200834 u8 reserved_at_1b3[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300835 u8 disable_link_up[0x1];
836 u8 beacon_led[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300837 u8 port_type[0x2];
Eli Cohenb7755162014-10-02 12:19:44 +0300838 u8 num_ports[0x8];
839
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +0300840 u8 reserved_at_1c0[0x1];
841 u8 pps[0x1];
842 u8 pps_modify[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300843 u8 log_max_msg[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300844 u8 reserved_at_1c8[0x4];
Saeed Mahameed4f3961e2016-02-22 18:17:25 +0200845 u8 max_tc[0x4];
Saeed Mahameed74862162016-06-09 15:11:34 +0300846 u8 reserved_at_1d0[0x1];
847 u8 dcbx[0x1];
848 u8 reserved_at_1d2[0x4];
Tariq Toukan928cfe82016-02-22 18:17:29 +0200849 u8 rol_s[0x1];
850 u8 rol_g[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300851 u8 reserved_at_1d8[0x1];
Tariq Toukan928cfe82016-02-22 18:17:29 +0200852 u8 wol_s[0x1];
853 u8 wol_g[0x1];
854 u8 wol_a[0x1];
855 u8 wol_b[0x1];
856 u8 wol_m[0x1];
857 u8 wol_u[0x1];
858 u8 wol_p[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300859
860 u8 stat_rate_support[0x10];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300861 u8 reserved_at_1f0[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +0300862 u8 cqe_version[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300863
Saeed Mahameede2816822015-05-28 22:28:40 +0300864 u8 compact_address_vector[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300865 u8 striding_rq[0x1];
Max Gurtovoy7b135582017-01-02 11:37:38 +0200866 u8 reserved_at_202[0x2];
Erez Shitrit1015c2e2016-02-21 16:27:16 +0200867 u8 ipoib_basic_offloads[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300868 u8 reserved_at_205[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +0300869 u8 drain_sigerr[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300870 u8 cmdif_checksum[0x2];
871 u8 sigerr_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300872 u8 reserved_at_213[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300873 u8 wq_signature[0x1];
874 u8 sctr_data_cqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300875 u8 reserved_at_216[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300876 u8 sho[0x1];
877 u8 tph[0x1];
878 u8 rf[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300879 u8 dct[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +0300880 u8 qos[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300881 u8 eth_net_offloads[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300882 u8 roce[0x1];
883 u8 atomic[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300884 u8 reserved_at_21f[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300885
886 u8 cq_oi[0x1];
887 u8 cq_resize[0x1];
888 u8 cq_moderation[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300889 u8 reserved_at_223[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300890 u8 cq_eq_remap[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300891 u8 pg[0x1];
892 u8 block_lb_mc[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300893 u8 reserved_at_229[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300894 u8 scqe_break_moderation[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300895 u8 cq_period_start_from_cqe[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300896 u8 cd[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300897 u8 reserved_at_22d[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +0300898 u8 apm[0x1];
Sagi Grimberg3f0393a2016-02-23 10:25:23 +0200899 u8 vector_calc[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +0300900 u8 umr_ptr_rlky[0x1];
Matan Barakd2370e02016-02-29 18:05:30 +0200901 u8 imaicl[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300902 u8 reserved_at_232[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300903 u8 qkv[0x1];
904 u8 pkv[0x1];
Haggai Eranb11a4f92016-02-29 15:45:03 +0200905 u8 set_deth_sqpn[0x1];
906 u8 reserved_at_239[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300907 u8 xrc[0x1];
908 u8 ud[0x1];
909 u8 uc[0x1];
910 u8 rc[0x1];
911
Eli Cohena6d51b62017-01-03 23:55:23 +0200912 u8 uar_4k[0x1];
913 u8 reserved_at_241[0x9];
Eli Cohenb7755162014-10-02 12:19:44 +0300914 u8 uar_sz[0x6];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300915 u8 reserved_at_250[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300916 u8 log_pg_sz[0x8];
917
918 u8 bf[0x1];
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +0200919 u8 driver_version[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +0300920 u8 pad_tx_eth_packet[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300921 u8 reserved_at_263[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300922 u8 log_bf_reg_size[0x5];
Aviv Heller84df61e2016-05-10 13:47:50 +0300923
924 u8 reserved_at_270[0xb];
925 u8 lag_master[0x1];
926 u8 num_lag_ports[0x4];
Eli Cohenb7755162014-10-02 12:19:44 +0300927
Tariq Toukane1c9c622016-04-11 23:10:21 +0300928 u8 reserved_at_280[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300929 u8 max_wqe_sz_sq[0x10];
930
Tariq Toukane1c9c622016-04-11 23:10:21 +0300931 u8 reserved_at_2a0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300932 u8 max_wqe_sz_rq[0x10];
933
Tariq Toukane1c9c622016-04-11 23:10:21 +0300934 u8 reserved_at_2c0[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +0300935 u8 max_wqe_sz_sq_dc[0x10];
936
Tariq Toukane1c9c622016-04-11 23:10:21 +0300937 u8 reserved_at_2e0[0x7];
Eli Cohenb7755162014-10-02 12:19:44 +0300938 u8 max_qp_mcg[0x19];
939
Tariq Toukane1c9c622016-04-11 23:10:21 +0300940 u8 reserved_at_300[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +0300941 u8 log_max_mcg[0x8];
942
Tariq Toukane1c9c622016-04-11 23:10:21 +0300943 u8 reserved_at_320[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300944 u8 log_max_transport_domain[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300945 u8 reserved_at_328[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300946 u8 log_max_pd[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300947 u8 reserved_at_330[0xb];
Eli Cohenb7755162014-10-02 12:19:44 +0300948 u8 log_max_xrcd[0x5];
949
Amir Vadaia351a1b02016-07-14 10:32:38 +0300950 u8 reserved_at_340[0x8];
951 u8 log_max_flow_counter_bulk[0x8];
952 u8 max_flow_counter[0x10];
953
Eli Cohenb7755162014-10-02 12:19:44 +0300954
Tariq Toukane1c9c622016-04-11 23:10:21 +0300955 u8 reserved_at_360[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300956 u8 log_max_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300957 u8 reserved_at_368[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300958 u8 log_max_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300959 u8 reserved_at_370[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300960 u8 log_max_tir[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300961 u8 reserved_at_378[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300962 u8 log_max_tis[0x5];
963
Saeed Mahameede2816822015-05-28 22:28:40 +0300964 u8 basic_cyclic_rcv_wqe[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300965 u8 reserved_at_381[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +0300966 u8 log_max_rmp[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300967 u8 reserved_at_388[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300968 u8 log_max_rqt[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300969 u8 reserved_at_390[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300970 u8 log_max_rqt_size[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300971 u8 reserved_at_398[0x3];
Eli Cohenb7755162014-10-02 12:19:44 +0300972 u8 log_max_tis_per_sq[0x5];
973
Tariq Toukane1c9c622016-04-11 23:10:21 +0300974 u8 reserved_at_3a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300975 u8 log_max_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300976 u8 reserved_at_3a8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300977 u8 log_min_stride_sz_rq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300978 u8 reserved_at_3b0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300979 u8 log_max_stride_sz_sq[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300980 u8 reserved_at_3b8[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300981 u8 log_min_stride_sz_sq[0x5];
Eli Cohenb7755162014-10-02 12:19:44 +0300982
Tariq Toukane1c9c622016-04-11 23:10:21 +0300983 u8 reserved_at_3c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +0300984 u8 log_max_wq_sz[0x5];
985
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200986 u8 nic_vport_change_event[0x1];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300987 u8 reserved_at_3e1[0xa];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200988 u8 log_max_vlan_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300989 u8 reserved_at_3f0[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200990 u8 log_max_current_mc_list[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300991 u8 reserved_at_3f8[0x3];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200992 u8 log_max_current_uc_list[0x5];
993
Tariq Toukane1c9c622016-04-11 23:10:21 +0300994 u8 reserved_at_400[0x80];
Saeed Mahameed54f0a412015-12-01 18:03:10 +0200995
Tariq Toukane1c9c622016-04-11 23:10:21 +0300996 u8 reserved_at_480[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +0300997 u8 log_max_l2_table[0x5];
Tariq Toukane1c9c622016-04-11 23:10:21 +0300998 u8 reserved_at_488[0x8];
Eli Cohenb7755162014-10-02 12:19:44 +0300999 u8 log_uar_page_sz[0x10];
1000
Tariq Toukane1c9c622016-04-11 23:10:21 +03001001 u8 reserved_at_4a0[0x20];
Linus Torvalds048ccca2016-01-23 18:45:06 -08001002 u8 device_frequency_mhz[0x20];
Eran Ben Elishab0844442015-12-29 14:58:30 +02001003 u8 device_frequency_khz[0x20];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001004
Eli Cohena6d51b62017-01-03 23:55:23 +02001005 u8 reserved_at_500[0x20];
1006 u8 num_of_uars_per_page[0x20];
1007 u8 reserved_at_540[0x40];
Tariq Toukane1c9c622016-04-11 23:10:21 +03001008
1009 u8 reserved_at_580[0x3f];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001010 u8 cqe_compression[0x1];
Eli Cohenb7755162014-10-02 12:19:44 +03001011
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001012 u8 cqe_compression_timeout[0x10];
1013 u8 cqe_compression_max_num[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03001014
Saeed Mahameed74862162016-06-09 15:11:34 +03001015 u8 reserved_at_5e0[0x10];
1016 u8 tag_matching[0x1];
1017 u8 rndv_offload_rc[0x1];
1018 u8 rndv_offload_dc[0x1];
1019 u8 log_tag_matching_list_sz[0x5];
Max Gurtovoy7b135582017-01-02 11:37:38 +02001020 u8 reserved_at_5f8[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03001021 u8 log_max_xrq[0x5];
1022
Max Gurtovoy7b135582017-01-02 11:37:38 +02001023 u8 reserved_at_600[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +03001024};
1025
Saeed Mahameed81848732015-12-01 18:03:20 +02001026enum mlx5_flow_destination_type {
1027 MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0,
1028 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1,
1029 MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2,
Amir Vadaibd5251db2016-05-13 12:55:40 +00001030
1031 MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100,
Saeed Mahameede2816822015-05-28 22:28:40 +03001032};
1033
1034struct mlx5_ifc_dest_format_struct_bits {
1035 u8 destination_type[0x8];
1036 u8 destination_id[0x18];
1037
Matan Barakb4ff3a32016-02-09 14:57:42 +02001038 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001039};
1040
Amir Vadai9dc0b282016-05-13 12:55:39 +00001041struct mlx5_ifc_flow_counter_list_bits {
Amir Vadaia351a1b02016-07-14 10:32:38 +03001042 u8 clear[0x1];
1043 u8 num_of_counters[0xf];
Amir Vadai9dc0b282016-05-13 12:55:39 +00001044 u8 flow_counter_id[0x10];
1045
1046 u8 reserved_at_20[0x20];
1047};
1048
1049union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits {
1050 struct mlx5_ifc_dest_format_struct_bits dest_format_struct;
1051 struct mlx5_ifc_flow_counter_list_bits flow_counter_list;
1052 u8 reserved_at_0[0x40];
1053};
1054
Saeed Mahameede2816822015-05-28 22:28:40 +03001055struct mlx5_ifc_fte_match_param_bits {
1056 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
1057
1058 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
1059
1060 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
1061
Matan Barakb4ff3a32016-02-09 14:57:42 +02001062 u8 reserved_at_600[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +03001063};
1064
1065enum {
1066 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
1067 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
1068 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
1069 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
1070 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
1071};
1072
1073struct mlx5_ifc_rx_hash_field_select_bits {
1074 u8 l3_prot_type[0x1];
1075 u8 l4_prot_type[0x1];
1076 u8 selected_fields[0x1e];
1077};
1078
1079enum {
1080 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
1081 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
1082};
1083
1084enum {
1085 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
1086 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
1087};
1088
1089struct mlx5_ifc_wq_bits {
1090 u8 wq_type[0x4];
1091 u8 wq_signature[0x1];
1092 u8 end_padding_mode[0x2];
1093 u8 cd_slave[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001094 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001095
1096 u8 hds_skip_first_sge[0x1];
1097 u8 log2_hds_buf_size[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001098 u8 reserved_at_24[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03001099 u8 page_offset[0x5];
1100 u8 lwm[0x10];
1101
Matan Barakb4ff3a32016-02-09 14:57:42 +02001102 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001103 u8 pd[0x18];
1104
Matan Barakb4ff3a32016-02-09 14:57:42 +02001105 u8 reserved_at_60[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001106 u8 uar_page[0x18];
1107
1108 u8 dbr_addr[0x40];
1109
1110 u8 hw_counter[0x20];
1111
1112 u8 sw_counter[0x20];
1113
Matan Barakb4ff3a32016-02-09 14:57:42 +02001114 u8 reserved_at_100[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03001115 u8 log_wq_stride[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001116 u8 reserved_at_110[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001117 u8 log_wq_pg_sz[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001118 u8 reserved_at_118[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001119 u8 log_wq_sz[0x5];
1120
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03001121 u8 reserved_at_120[0x15];
1122 u8 log_wqe_num_of_strides[0x3];
1123 u8 two_byte_shift_en[0x1];
1124 u8 reserved_at_139[0x4];
1125 u8 log_wqe_stride_size[0x3];
1126
1127 u8 reserved_at_140[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001128
1129 struct mlx5_ifc_cmd_pas_bits pas[0];
1130};
1131
1132struct mlx5_ifc_rq_num_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001133 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001134 u8 rq_num[0x18];
1135};
1136
1137struct mlx5_ifc_mac_address_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001138 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001139 u8 mac_addr_47_32[0x10];
1140
1141 u8 mac_addr_31_0[0x20];
1142};
1143
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001144struct mlx5_ifc_vlan_layout_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001145 u8 reserved_at_0[0x14];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001146 u8 vlan[0x0c];
1147
Matan Barakb4ff3a32016-02-09 14:57:42 +02001148 u8 reserved_at_20[0x20];
Saeed Mahameedc0046cf2015-12-01 18:03:15 +02001149};
1150
Saeed Mahameede2816822015-05-28 22:28:40 +03001151struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001152 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001153
1154 u8 min_time_between_cnps[0x20];
1155
Matan Barakb4ff3a32016-02-09 14:57:42 +02001156 u8 reserved_at_c0[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03001157 u8 cnp_dscp[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001158 u8 reserved_at_d8[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001159 u8 cnp_802p_prio[0x3];
1160
Matan Barakb4ff3a32016-02-09 14:57:42 +02001161 u8 reserved_at_e0[0x720];
Saeed Mahameede2816822015-05-28 22:28:40 +03001162};
1163
1164struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001165 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001166
Matan Barakb4ff3a32016-02-09 14:57:42 +02001167 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001168 u8 clamp_tgt_rate[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001169 u8 reserved_at_65[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001170 u8 clamp_tgt_rate_after_time_inc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001171 u8 reserved_at_69[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03001172
Matan Barakb4ff3a32016-02-09 14:57:42 +02001173 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001174
1175 u8 rpg_time_reset[0x20];
1176
1177 u8 rpg_byte_reset[0x20];
1178
1179 u8 rpg_threshold[0x20];
1180
1181 u8 rpg_max_rate[0x20];
1182
1183 u8 rpg_ai_rate[0x20];
1184
1185 u8 rpg_hai_rate[0x20];
1186
1187 u8 rpg_gd[0x20];
1188
1189 u8 rpg_min_dec_fac[0x20];
1190
1191 u8 rpg_min_rate[0x20];
1192
Matan Barakb4ff3a32016-02-09 14:57:42 +02001193 u8 reserved_at_1c0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001194
1195 u8 rate_to_set_on_first_cnp[0x20];
1196
1197 u8 dce_tcp_g[0x20];
1198
1199 u8 dce_tcp_rtt[0x20];
1200
1201 u8 rate_reduce_monitor_period[0x20];
1202
Matan Barakb4ff3a32016-02-09 14:57:42 +02001203 u8 reserved_at_320[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001204
1205 u8 initial_alpha_value[0x20];
1206
Matan Barakb4ff3a32016-02-09 14:57:42 +02001207 u8 reserved_at_360[0x4a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001208};
1209
1210struct mlx5_ifc_cong_control_802_1qau_rp_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001211 u8 reserved_at_0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001212
1213 u8 rppp_max_rps[0x20];
1214
1215 u8 rpg_time_reset[0x20];
1216
1217 u8 rpg_byte_reset[0x20];
1218
1219 u8 rpg_threshold[0x20];
1220
1221 u8 rpg_max_rate[0x20];
1222
1223 u8 rpg_ai_rate[0x20];
1224
1225 u8 rpg_hai_rate[0x20];
1226
1227 u8 rpg_gd[0x20];
1228
1229 u8 rpg_min_dec_fac[0x20];
1230
1231 u8 rpg_min_rate[0x20];
1232
Matan Barakb4ff3a32016-02-09 14:57:42 +02001233 u8 reserved_at_1c0[0x640];
Saeed Mahameede2816822015-05-28 22:28:40 +03001234};
1235
1236enum {
1237 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1238 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1239 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1240};
1241
1242struct mlx5_ifc_resize_field_select_bits {
1243 u8 resize_field_select[0x20];
1244};
1245
1246enum {
1247 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1248 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1249 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1250 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1251};
1252
1253struct mlx5_ifc_modify_field_select_bits {
1254 u8 modify_field_select[0x20];
1255};
1256
1257struct mlx5_ifc_field_select_r_roce_np_bits {
1258 u8 field_select_r_roce_np[0x20];
1259};
1260
1261struct mlx5_ifc_field_select_r_roce_rp_bits {
1262 u8 field_select_r_roce_rp[0x20];
1263};
1264
1265enum {
1266 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1267 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1268 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1269 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1270 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1271 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1272 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1273 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1274 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1275 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1276};
1277
1278struct mlx5_ifc_field_select_802_1qau_rp_bits {
1279 u8 field_select_8021qaurp[0x20];
1280};
1281
1282struct mlx5_ifc_phys_layer_cntrs_bits {
1283 u8 time_since_last_clear_high[0x20];
1284
1285 u8 time_since_last_clear_low[0x20];
1286
1287 u8 symbol_errors_high[0x20];
1288
1289 u8 symbol_errors_low[0x20];
1290
1291 u8 sync_headers_errors_high[0x20];
1292
1293 u8 sync_headers_errors_low[0x20];
1294
1295 u8 edpl_bip_errors_lane0_high[0x20];
1296
1297 u8 edpl_bip_errors_lane0_low[0x20];
1298
1299 u8 edpl_bip_errors_lane1_high[0x20];
1300
1301 u8 edpl_bip_errors_lane1_low[0x20];
1302
1303 u8 edpl_bip_errors_lane2_high[0x20];
1304
1305 u8 edpl_bip_errors_lane2_low[0x20];
1306
1307 u8 edpl_bip_errors_lane3_high[0x20];
1308
1309 u8 edpl_bip_errors_lane3_low[0x20];
1310
1311 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1312
1313 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1314
1315 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1316
1317 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1318
1319 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1320
1321 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1322
1323 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1324
1325 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1326
1327 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1328
1329 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1330
1331 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1332
1333 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1334
1335 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1336
1337 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1338
1339 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1340
1341 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1342
1343 u8 rs_fec_corrected_blocks_high[0x20];
1344
1345 u8 rs_fec_corrected_blocks_low[0x20];
1346
1347 u8 rs_fec_uncorrectable_blocks_high[0x20];
1348
1349 u8 rs_fec_uncorrectable_blocks_low[0x20];
1350
1351 u8 rs_fec_no_errors_blocks_high[0x20];
1352
1353 u8 rs_fec_no_errors_blocks_low[0x20];
1354
1355 u8 rs_fec_single_error_blocks_high[0x20];
1356
1357 u8 rs_fec_single_error_blocks_low[0x20];
1358
1359 u8 rs_fec_corrected_symbols_total_high[0x20];
1360
1361 u8 rs_fec_corrected_symbols_total_low[0x20];
1362
1363 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1364
1365 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1366
1367 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1368
1369 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1370
1371 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1372
1373 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1374
1375 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1376
1377 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1378
1379 u8 link_down_events[0x20];
1380
1381 u8 successful_recovery_events[0x20];
1382
Matan Barakb4ff3a32016-02-09 14:57:42 +02001383 u8 reserved_at_640[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03001384};
1385
Meny Yossefi1c64bf62016-02-18 18:15:00 +02001386struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits {
1387 u8 symbol_error_counter[0x10];
1388
1389 u8 link_error_recovery_counter[0x8];
1390
1391 u8 link_downed_counter[0x8];
1392
1393 u8 port_rcv_errors[0x10];
1394
1395 u8 port_rcv_remote_physical_errors[0x10];
1396
1397 u8 port_rcv_switch_relay_errors[0x10];
1398
1399 u8 port_xmit_discards[0x10];
1400
1401 u8 port_xmit_constraint_errors[0x8];
1402
1403 u8 port_rcv_constraint_errors[0x8];
1404
1405 u8 reserved_at_70[0x8];
1406
1407 u8 link_overrun_errors[0x8];
1408
1409 u8 reserved_at_80[0x10];
1410
1411 u8 vl_15_dropped[0x10];
1412
1413 u8 reserved_at_a0[0xa0];
1414};
1415
Saeed Mahameede2816822015-05-28 22:28:40 +03001416struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1417 u8 transmit_queue_high[0x20];
1418
1419 u8 transmit_queue_low[0x20];
1420
Matan Barakb4ff3a32016-02-09 14:57:42 +02001421 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001422};
1423
1424struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1425 u8 rx_octets_high[0x20];
1426
1427 u8 rx_octets_low[0x20];
1428
Matan Barakb4ff3a32016-02-09 14:57:42 +02001429 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001430
1431 u8 rx_frames_high[0x20];
1432
1433 u8 rx_frames_low[0x20];
1434
1435 u8 tx_octets_high[0x20];
1436
1437 u8 tx_octets_low[0x20];
1438
Matan Barakb4ff3a32016-02-09 14:57:42 +02001439 u8 reserved_at_180[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001440
1441 u8 tx_frames_high[0x20];
1442
1443 u8 tx_frames_low[0x20];
1444
1445 u8 rx_pause_high[0x20];
1446
1447 u8 rx_pause_low[0x20];
1448
1449 u8 rx_pause_duration_high[0x20];
1450
1451 u8 rx_pause_duration_low[0x20];
1452
1453 u8 tx_pause_high[0x20];
1454
1455 u8 tx_pause_low[0x20];
1456
1457 u8 tx_pause_duration_high[0x20];
1458
1459 u8 tx_pause_duration_low[0x20];
1460
1461 u8 rx_pause_transition_high[0x20];
1462
1463 u8 rx_pause_transition_low[0x20];
1464
Matan Barakb4ff3a32016-02-09 14:57:42 +02001465 u8 reserved_at_3c0[0x400];
Saeed Mahameede2816822015-05-28 22:28:40 +03001466};
1467
1468struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1469 u8 port_transmit_wait_high[0x20];
1470
1471 u8 port_transmit_wait_low[0x20];
1472
Matan Barakb4ff3a32016-02-09 14:57:42 +02001473 u8 reserved_at_40[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03001474};
1475
1476struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1477 u8 dot3stats_alignment_errors_high[0x20];
1478
1479 u8 dot3stats_alignment_errors_low[0x20];
1480
1481 u8 dot3stats_fcs_errors_high[0x20];
1482
1483 u8 dot3stats_fcs_errors_low[0x20];
1484
1485 u8 dot3stats_single_collision_frames_high[0x20];
1486
1487 u8 dot3stats_single_collision_frames_low[0x20];
1488
1489 u8 dot3stats_multiple_collision_frames_high[0x20];
1490
1491 u8 dot3stats_multiple_collision_frames_low[0x20];
1492
1493 u8 dot3stats_sqe_test_errors_high[0x20];
1494
1495 u8 dot3stats_sqe_test_errors_low[0x20];
1496
1497 u8 dot3stats_deferred_transmissions_high[0x20];
1498
1499 u8 dot3stats_deferred_transmissions_low[0x20];
1500
1501 u8 dot3stats_late_collisions_high[0x20];
1502
1503 u8 dot3stats_late_collisions_low[0x20];
1504
1505 u8 dot3stats_excessive_collisions_high[0x20];
1506
1507 u8 dot3stats_excessive_collisions_low[0x20];
1508
1509 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1510
1511 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1512
1513 u8 dot3stats_carrier_sense_errors_high[0x20];
1514
1515 u8 dot3stats_carrier_sense_errors_low[0x20];
1516
1517 u8 dot3stats_frame_too_longs_high[0x20];
1518
1519 u8 dot3stats_frame_too_longs_low[0x20];
1520
1521 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1522
1523 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1524
1525 u8 dot3stats_symbol_errors_high[0x20];
1526
1527 u8 dot3stats_symbol_errors_low[0x20];
1528
1529 u8 dot3control_in_unknown_opcodes_high[0x20];
1530
1531 u8 dot3control_in_unknown_opcodes_low[0x20];
1532
1533 u8 dot3in_pause_frames_high[0x20];
1534
1535 u8 dot3in_pause_frames_low[0x20];
1536
1537 u8 dot3out_pause_frames_high[0x20];
1538
1539 u8 dot3out_pause_frames_low[0x20];
1540
Matan Barakb4ff3a32016-02-09 14:57:42 +02001541 u8 reserved_at_400[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001542};
1543
1544struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1545 u8 ether_stats_drop_events_high[0x20];
1546
1547 u8 ether_stats_drop_events_low[0x20];
1548
1549 u8 ether_stats_octets_high[0x20];
1550
1551 u8 ether_stats_octets_low[0x20];
1552
1553 u8 ether_stats_pkts_high[0x20];
1554
1555 u8 ether_stats_pkts_low[0x20];
1556
1557 u8 ether_stats_broadcast_pkts_high[0x20];
1558
1559 u8 ether_stats_broadcast_pkts_low[0x20];
1560
1561 u8 ether_stats_multicast_pkts_high[0x20];
1562
1563 u8 ether_stats_multicast_pkts_low[0x20];
1564
1565 u8 ether_stats_crc_align_errors_high[0x20];
1566
1567 u8 ether_stats_crc_align_errors_low[0x20];
1568
1569 u8 ether_stats_undersize_pkts_high[0x20];
1570
1571 u8 ether_stats_undersize_pkts_low[0x20];
1572
1573 u8 ether_stats_oversize_pkts_high[0x20];
1574
1575 u8 ether_stats_oversize_pkts_low[0x20];
1576
1577 u8 ether_stats_fragments_high[0x20];
1578
1579 u8 ether_stats_fragments_low[0x20];
1580
1581 u8 ether_stats_jabbers_high[0x20];
1582
1583 u8 ether_stats_jabbers_low[0x20];
1584
1585 u8 ether_stats_collisions_high[0x20];
1586
1587 u8 ether_stats_collisions_low[0x20];
1588
1589 u8 ether_stats_pkts64octets_high[0x20];
1590
1591 u8 ether_stats_pkts64octets_low[0x20];
1592
1593 u8 ether_stats_pkts65to127octets_high[0x20];
1594
1595 u8 ether_stats_pkts65to127octets_low[0x20];
1596
1597 u8 ether_stats_pkts128to255octets_high[0x20];
1598
1599 u8 ether_stats_pkts128to255octets_low[0x20];
1600
1601 u8 ether_stats_pkts256to511octets_high[0x20];
1602
1603 u8 ether_stats_pkts256to511octets_low[0x20];
1604
1605 u8 ether_stats_pkts512to1023octets_high[0x20];
1606
1607 u8 ether_stats_pkts512to1023octets_low[0x20];
1608
1609 u8 ether_stats_pkts1024to1518octets_high[0x20];
1610
1611 u8 ether_stats_pkts1024to1518octets_low[0x20];
1612
1613 u8 ether_stats_pkts1519to2047octets_high[0x20];
1614
1615 u8 ether_stats_pkts1519to2047octets_low[0x20];
1616
1617 u8 ether_stats_pkts2048to4095octets_high[0x20];
1618
1619 u8 ether_stats_pkts2048to4095octets_low[0x20];
1620
1621 u8 ether_stats_pkts4096to8191octets_high[0x20];
1622
1623 u8 ether_stats_pkts4096to8191octets_low[0x20];
1624
1625 u8 ether_stats_pkts8192to10239octets_high[0x20];
1626
1627 u8 ether_stats_pkts8192to10239octets_low[0x20];
1628
Matan Barakb4ff3a32016-02-09 14:57:42 +02001629 u8 reserved_at_540[0x280];
Saeed Mahameede2816822015-05-28 22:28:40 +03001630};
1631
1632struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1633 u8 if_in_octets_high[0x20];
1634
1635 u8 if_in_octets_low[0x20];
1636
1637 u8 if_in_ucast_pkts_high[0x20];
1638
1639 u8 if_in_ucast_pkts_low[0x20];
1640
1641 u8 if_in_discards_high[0x20];
1642
1643 u8 if_in_discards_low[0x20];
1644
1645 u8 if_in_errors_high[0x20];
1646
1647 u8 if_in_errors_low[0x20];
1648
1649 u8 if_in_unknown_protos_high[0x20];
1650
1651 u8 if_in_unknown_protos_low[0x20];
1652
1653 u8 if_out_octets_high[0x20];
1654
1655 u8 if_out_octets_low[0x20];
1656
1657 u8 if_out_ucast_pkts_high[0x20];
1658
1659 u8 if_out_ucast_pkts_low[0x20];
1660
1661 u8 if_out_discards_high[0x20];
1662
1663 u8 if_out_discards_low[0x20];
1664
1665 u8 if_out_errors_high[0x20];
1666
1667 u8 if_out_errors_low[0x20];
1668
1669 u8 if_in_multicast_pkts_high[0x20];
1670
1671 u8 if_in_multicast_pkts_low[0x20];
1672
1673 u8 if_in_broadcast_pkts_high[0x20];
1674
1675 u8 if_in_broadcast_pkts_low[0x20];
1676
1677 u8 if_out_multicast_pkts_high[0x20];
1678
1679 u8 if_out_multicast_pkts_low[0x20];
1680
1681 u8 if_out_broadcast_pkts_high[0x20];
1682
1683 u8 if_out_broadcast_pkts_low[0x20];
1684
Matan Barakb4ff3a32016-02-09 14:57:42 +02001685 u8 reserved_at_340[0x480];
Saeed Mahameede2816822015-05-28 22:28:40 +03001686};
1687
1688struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
1689 u8 a_frames_transmitted_ok_high[0x20];
1690
1691 u8 a_frames_transmitted_ok_low[0x20];
1692
1693 u8 a_frames_received_ok_high[0x20];
1694
1695 u8 a_frames_received_ok_low[0x20];
1696
1697 u8 a_frame_check_sequence_errors_high[0x20];
1698
1699 u8 a_frame_check_sequence_errors_low[0x20];
1700
1701 u8 a_alignment_errors_high[0x20];
1702
1703 u8 a_alignment_errors_low[0x20];
1704
1705 u8 a_octets_transmitted_ok_high[0x20];
1706
1707 u8 a_octets_transmitted_ok_low[0x20];
1708
1709 u8 a_octets_received_ok_high[0x20];
1710
1711 u8 a_octets_received_ok_low[0x20];
1712
1713 u8 a_multicast_frames_xmitted_ok_high[0x20];
1714
1715 u8 a_multicast_frames_xmitted_ok_low[0x20];
1716
1717 u8 a_broadcast_frames_xmitted_ok_high[0x20];
1718
1719 u8 a_broadcast_frames_xmitted_ok_low[0x20];
1720
1721 u8 a_multicast_frames_received_ok_high[0x20];
1722
1723 u8 a_multicast_frames_received_ok_low[0x20];
1724
1725 u8 a_broadcast_frames_received_ok_high[0x20];
1726
1727 u8 a_broadcast_frames_received_ok_low[0x20];
1728
1729 u8 a_in_range_length_errors_high[0x20];
1730
1731 u8 a_in_range_length_errors_low[0x20];
1732
1733 u8 a_out_of_range_length_field_high[0x20];
1734
1735 u8 a_out_of_range_length_field_low[0x20];
1736
1737 u8 a_frame_too_long_errors_high[0x20];
1738
1739 u8 a_frame_too_long_errors_low[0x20];
1740
1741 u8 a_symbol_error_during_carrier_high[0x20];
1742
1743 u8 a_symbol_error_during_carrier_low[0x20];
1744
1745 u8 a_mac_control_frames_transmitted_high[0x20];
1746
1747 u8 a_mac_control_frames_transmitted_low[0x20];
1748
1749 u8 a_mac_control_frames_received_high[0x20];
1750
1751 u8 a_mac_control_frames_received_low[0x20];
1752
1753 u8 a_unsupported_opcodes_received_high[0x20];
1754
1755 u8 a_unsupported_opcodes_received_low[0x20];
1756
1757 u8 a_pause_mac_ctrl_frames_received_high[0x20];
1758
1759 u8 a_pause_mac_ctrl_frames_received_low[0x20];
1760
1761 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
1762
1763 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
1764
Matan Barakb4ff3a32016-02-09 14:57:42 +02001765 u8 reserved_at_4c0[0x300];
Saeed Mahameede2816822015-05-28 22:28:40 +03001766};
1767
1768struct mlx5_ifc_cmd_inter_comp_event_bits {
1769 u8 command_completion_vector[0x20];
1770
Matan Barakb4ff3a32016-02-09 14:57:42 +02001771 u8 reserved_at_20[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001772};
1773
1774struct mlx5_ifc_stall_vl_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001775 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001776 u8 port_num[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001777 u8 reserved_at_19[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001778 u8 vl[0x4];
1779
Matan Barakb4ff3a32016-02-09 14:57:42 +02001780 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001781};
1782
1783struct mlx5_ifc_db_bf_congestion_event_bits {
1784 u8 event_subtype[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001785 u8 reserved_at_8[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001786 u8 congestion_level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001787 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001788
Matan Barakb4ff3a32016-02-09 14:57:42 +02001789 u8 reserved_at_20[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001790};
1791
1792struct mlx5_ifc_gpio_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001793 u8 reserved_at_0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001794
1795 u8 gpio_event_hi[0x20];
1796
1797 u8 gpio_event_lo[0x20];
1798
Matan Barakb4ff3a32016-02-09 14:57:42 +02001799 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03001800};
1801
1802struct mlx5_ifc_port_state_change_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001803 u8 reserved_at_0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03001804
1805 u8 port_num[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001806 u8 reserved_at_44[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03001807
Matan Barakb4ff3a32016-02-09 14:57:42 +02001808 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001809};
1810
1811struct mlx5_ifc_dropped_packet_logged_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001812 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001813};
1814
1815enum {
1816 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
1817 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
1818};
1819
1820struct mlx5_ifc_cq_error_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001821 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001822 u8 cqn[0x18];
1823
Matan Barakb4ff3a32016-02-09 14:57:42 +02001824 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03001825
Matan Barakb4ff3a32016-02-09 14:57:42 +02001826 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001827 u8 syndrome[0x8];
1828
Matan Barakb4ff3a32016-02-09 14:57:42 +02001829 u8 reserved_at_60[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03001830};
1831
1832struct mlx5_ifc_rdma_page_fault_event_bits {
1833 u8 bytes_committed[0x20];
1834
1835 u8 r_key[0x20];
1836
Matan Barakb4ff3a32016-02-09 14:57:42 +02001837 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001838 u8 packet_len[0x10];
1839
1840 u8 rdma_op_len[0x20];
1841
1842 u8 rdma_va[0x40];
1843
Matan Barakb4ff3a32016-02-09 14:57:42 +02001844 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001845 u8 rdma[0x1];
1846 u8 write[0x1];
1847 u8 requestor[0x1];
1848 u8 qp_number[0x18];
1849};
1850
1851struct mlx5_ifc_wqe_associated_page_fault_event_bits {
1852 u8 bytes_committed[0x20];
1853
Matan Barakb4ff3a32016-02-09 14:57:42 +02001854 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001855 u8 wqe_index[0x10];
1856
Matan Barakb4ff3a32016-02-09 14:57:42 +02001857 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03001858 u8 len[0x10];
1859
Matan Barakb4ff3a32016-02-09 14:57:42 +02001860 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03001861
Matan Barakb4ff3a32016-02-09 14:57:42 +02001862 u8 reserved_at_c0[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03001863 u8 rdma[0x1];
1864 u8 write_read[0x1];
1865 u8 requestor[0x1];
1866 u8 qpn[0x18];
1867};
1868
1869struct mlx5_ifc_qp_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001870 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001871
1872 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001873 u8 reserved_at_a8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03001874
Matan Barakb4ff3a32016-02-09 14:57:42 +02001875 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001876 u8 qpn_rqn_sqn[0x18];
1877};
1878
1879struct mlx5_ifc_dct_events_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001880 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001881
Matan Barakb4ff3a32016-02-09 14:57:42 +02001882 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001883 u8 dct_number[0x18];
1884};
1885
1886struct mlx5_ifc_comp_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02001887 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03001888
Matan Barakb4ff3a32016-02-09 14:57:42 +02001889 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001890 u8 cq_number[0x18];
1891};
1892
1893enum {
1894 MLX5_QPC_STATE_RST = 0x0,
1895 MLX5_QPC_STATE_INIT = 0x1,
1896 MLX5_QPC_STATE_RTR = 0x2,
1897 MLX5_QPC_STATE_RTS = 0x3,
1898 MLX5_QPC_STATE_SQER = 0x4,
1899 MLX5_QPC_STATE_ERR = 0x6,
1900 MLX5_QPC_STATE_SQD = 0x7,
1901 MLX5_QPC_STATE_SUSPENDED = 0x9,
1902};
1903
1904enum {
1905 MLX5_QPC_ST_RC = 0x0,
1906 MLX5_QPC_ST_UC = 0x1,
1907 MLX5_QPC_ST_UD = 0x2,
1908 MLX5_QPC_ST_XRC = 0x3,
1909 MLX5_QPC_ST_DCI = 0x5,
1910 MLX5_QPC_ST_QP0 = 0x7,
1911 MLX5_QPC_ST_QP1 = 0x8,
1912 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
1913 MLX5_QPC_ST_REG_UMR = 0xc,
1914};
1915
1916enum {
1917 MLX5_QPC_PM_STATE_ARMED = 0x0,
1918 MLX5_QPC_PM_STATE_REARM = 0x1,
1919 MLX5_QPC_PM_STATE_RESERVED = 0x2,
1920 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
1921};
1922
1923enum {
1924 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
1925 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
1926};
1927
1928enum {
1929 MLX5_QPC_MTU_256_BYTES = 0x1,
1930 MLX5_QPC_MTU_512_BYTES = 0x2,
1931 MLX5_QPC_MTU_1K_BYTES = 0x3,
1932 MLX5_QPC_MTU_2K_BYTES = 0x4,
1933 MLX5_QPC_MTU_4K_BYTES = 0x5,
1934 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
1935};
1936
1937enum {
1938 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
1939 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
1940 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
1941 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
1942 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
1943 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
1944 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
1945 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
1946};
1947
1948enum {
1949 MLX5_QPC_CS_REQ_DISABLE = 0x0,
1950 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
1951 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
1952};
1953
1954enum {
1955 MLX5_QPC_CS_RES_DISABLE = 0x0,
1956 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
1957 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
1958};
1959
1960struct mlx5_ifc_qpc_bits {
1961 u8 state[0x4];
Aviv Heller84df61e2016-05-10 13:47:50 +03001962 u8 lag_tx_port_affinity[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001963 u8 st[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001964 u8 reserved_at_10[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001965 u8 pm_state[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001966 u8 reserved_at_15[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03001967 u8 end_padding_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001968 u8 reserved_at_1e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001969
1970 u8 wq_signature[0x1];
1971 u8 block_lb_mc[0x1];
1972 u8 atomic_like_write_en[0x1];
1973 u8 latency_sensitive[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001974 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001975 u8 drain_sigerr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001976 u8 reserved_at_26[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03001977 u8 pd[0x18];
1978
1979 u8 mtu[0x3];
1980 u8 log_msg_max[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001981 u8 reserved_at_48[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03001982 u8 log_rq_size[0x4];
1983 u8 log_rq_stride[0x3];
1984 u8 no_sq[0x1];
1985 u8 log_sq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02001986 u8 reserved_at_55[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03001987 u8 rlky[0x1];
Erez Shitrit1015c2e2016-02-21 16:27:16 +02001988 u8 ulp_stateless_offload_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03001989
1990 u8 counter_set_id[0x8];
1991 u8 uar_page[0x18];
1992
Matan Barakb4ff3a32016-02-09 14:57:42 +02001993 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03001994 u8 user_index[0x18];
1995
Matan Barakb4ff3a32016-02-09 14:57:42 +02001996 u8 reserved_at_a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03001997 u8 log_page_size[0x5];
1998 u8 remote_qpn[0x18];
1999
2000 struct mlx5_ifc_ads_bits primary_address_path;
2001
2002 struct mlx5_ifc_ads_bits secondary_address_path;
2003
2004 u8 log_ack_req_freq[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002005 u8 reserved_at_384[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002006 u8 log_sra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002007 u8 reserved_at_38b[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002008 u8 retry_count[0x3];
2009 u8 rnr_retry[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002010 u8 reserved_at_393[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002011 u8 fre[0x1];
2012 u8 cur_rnr_retry[0x3];
2013 u8 cur_retry_count[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002014 u8 reserved_at_39b[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002015
Matan Barakb4ff3a32016-02-09 14:57:42 +02002016 u8 reserved_at_3a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002017
Matan Barakb4ff3a32016-02-09 14:57:42 +02002018 u8 reserved_at_3c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002019 u8 next_send_psn[0x18];
2020
Matan Barakb4ff3a32016-02-09 14:57:42 +02002021 u8 reserved_at_3e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002022 u8 cqn_snd[0x18];
2023
Saeed Mahameed09a7d9e2016-07-19 01:17:59 +03002024 u8 reserved_at_400[0x8];
2025 u8 deth_sqpn[0x18];
2026
2027 u8 reserved_at_420[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002028
Matan Barakb4ff3a32016-02-09 14:57:42 +02002029 u8 reserved_at_440[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002030 u8 last_acked_psn[0x18];
2031
Matan Barakb4ff3a32016-02-09 14:57:42 +02002032 u8 reserved_at_460[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002033 u8 ssn[0x18];
2034
Matan Barakb4ff3a32016-02-09 14:57:42 +02002035 u8 reserved_at_480[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002036 u8 log_rra_max[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002037 u8 reserved_at_48b[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002038 u8 atomic_mode[0x4];
2039 u8 rre[0x1];
2040 u8 rwe[0x1];
2041 u8 rae[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002042 u8 reserved_at_493[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002043 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002044 u8 reserved_at_49a[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002045 u8 cd_slave_receive[0x1];
2046 u8 cd_slave_send[0x1];
2047 u8 cd_master[0x1];
2048
Matan Barakb4ff3a32016-02-09 14:57:42 +02002049 u8 reserved_at_4a0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002050 u8 min_rnr_nak[0x5];
2051 u8 next_rcv_psn[0x18];
2052
Matan Barakb4ff3a32016-02-09 14:57:42 +02002053 u8 reserved_at_4c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002054 u8 xrcd[0x18];
2055
Matan Barakb4ff3a32016-02-09 14:57:42 +02002056 u8 reserved_at_4e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002057 u8 cqn_rcv[0x18];
2058
2059 u8 dbr_addr[0x40];
2060
2061 u8 q_key[0x20];
2062
Matan Barakb4ff3a32016-02-09 14:57:42 +02002063 u8 reserved_at_560[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002064 u8 rq_type[0x3];
Saeed Mahameed74862162016-06-09 15:11:34 +03002065 u8 srqn_rmpn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002066
Matan Barakb4ff3a32016-02-09 14:57:42 +02002067 u8 reserved_at_580[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002068 u8 rmsn[0x18];
2069
2070 u8 hw_sq_wqebb_counter[0x10];
2071 u8 sw_sq_wqebb_counter[0x10];
2072
2073 u8 hw_rq_counter[0x20];
2074
2075 u8 sw_rq_counter[0x20];
2076
Matan Barakb4ff3a32016-02-09 14:57:42 +02002077 u8 reserved_at_600[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002078
Matan Barakb4ff3a32016-02-09 14:57:42 +02002079 u8 reserved_at_620[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03002080 u8 cgs[0x1];
2081 u8 cs_req[0x8];
2082 u8 cs_res[0x8];
2083
2084 u8 dc_access_key[0x40];
2085
Matan Barakb4ff3a32016-02-09 14:57:42 +02002086 u8 reserved_at_680[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002087};
2088
2089struct mlx5_ifc_roce_addr_layout_bits {
2090 u8 source_l3_address[16][0x8];
2091
Matan Barakb4ff3a32016-02-09 14:57:42 +02002092 u8 reserved_at_80[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002093 u8 vlan_valid[0x1];
2094 u8 vlan_id[0xc];
2095 u8 source_mac_47_32[0x10];
2096
2097 u8 source_mac_31_0[0x20];
2098
Matan Barakb4ff3a32016-02-09 14:57:42 +02002099 u8 reserved_at_c0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002100 u8 roce_l3_type[0x4];
2101 u8 roce_version[0x8];
2102
Matan Barakb4ff3a32016-02-09 14:57:42 +02002103 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002104};
2105
2106union mlx5_ifc_hca_cap_union_bits {
2107 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
2108 struct mlx5_ifc_odp_cap_bits odp_cap;
2109 struct mlx5_ifc_atomic_caps_bits atomic_caps;
2110 struct mlx5_ifc_roce_cap_bits roce_cap;
2111 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
2112 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
Saeed Mahameed495716b2015-12-01 18:03:19 +02002113 struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap;
Saeed Mahameedd6666752015-12-01 18:03:22 +02002114 struct mlx5_ifc_e_switch_cap_bits e_switch_cap;
Sagi Grimberg3f0393a2016-02-23 10:25:23 +02002115 struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap;
Saeed Mahameed74862162016-06-09 15:11:34 +03002116 struct mlx5_ifc_qos_cap_bits qos_cap;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002117 u8 reserved_at_0[0x8000];
Saeed Mahameede2816822015-05-28 22:28:40 +03002118};
2119
2120enum {
2121 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
2122 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
2123 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
Amir Vadai9dc0b282016-05-13 12:55:39 +00002124 MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8,
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002125 MLX5_FLOW_CONTEXT_ACTION_ENCAP = 0x10,
2126 MLX5_FLOW_CONTEXT_ACTION_DECAP = 0x20,
Saeed Mahameede2816822015-05-28 22:28:40 +03002127};
2128
2129struct mlx5_ifc_flow_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002130 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002131
2132 u8 group_id[0x20];
2133
Matan Barakb4ff3a32016-02-09 14:57:42 +02002134 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002135 u8 flow_tag[0x18];
2136
Matan Barakb4ff3a32016-02-09 14:57:42 +02002137 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002138 u8 action[0x10];
2139
Matan Barakb4ff3a32016-02-09 14:57:42 +02002140 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002141 u8 destination_list_size[0x18];
2142
Amir Vadai9dc0b282016-05-13 12:55:39 +00002143 u8 reserved_at_a0[0x8];
2144 u8 flow_counter_list_size[0x18];
2145
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03002146 u8 encap_id[0x20];
2147
2148 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03002149
2150 struct mlx5_ifc_fte_match_param_bits match_value;
2151
Matan Barakb4ff3a32016-02-09 14:57:42 +02002152 u8 reserved_at_1200[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03002153
Amir Vadai9dc0b282016-05-13 12:55:39 +00002154 union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits destination[0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002155};
2156
2157enum {
2158 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
2159 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
2160};
2161
2162struct mlx5_ifc_xrc_srqc_bits {
2163 u8 state[0x4];
2164 u8 log_xrc_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002165 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002166
2167 u8 wq_signature[0x1];
2168 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002169 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002170 u8 rlky[0x1];
2171 u8 basic_cyclic_rcv_wqe[0x1];
2172 u8 log_rq_stride[0x3];
2173 u8 xrcd[0x18];
2174
2175 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002176 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002177 u8 cqn[0x18];
2178
Matan Barakb4ff3a32016-02-09 14:57:42 +02002179 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002180
2181 u8 user_index_equal_xrc_srqn[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002182 u8 reserved_at_81[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002183 u8 log_page_size[0x6];
2184 u8 user_index[0x18];
2185
Matan Barakb4ff3a32016-02-09 14:57:42 +02002186 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002187
Matan Barakb4ff3a32016-02-09 14:57:42 +02002188 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002189 u8 pd[0x18];
2190
2191 u8 lwm[0x10];
2192 u8 wqe_cnt[0x10];
2193
Matan Barakb4ff3a32016-02-09 14:57:42 +02002194 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002195
2196 u8 db_record_addr_h[0x20];
2197
2198 u8 db_record_addr_l[0x1e];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002199 u8 reserved_at_17e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002200
Matan Barakb4ff3a32016-02-09 14:57:42 +02002201 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002202};
2203
2204struct mlx5_ifc_traffic_counter_bits {
2205 u8 packets[0x40];
2206
2207 u8 octets[0x40];
2208};
2209
2210struct mlx5_ifc_tisc_bits {
Aviv Heller84df61e2016-05-10 13:47:50 +03002211 u8 strict_lag_tx_port_affinity[0x1];
2212 u8 reserved_at_1[0x3];
2213 u8 lag_tx_port_affinity[0x04];
2214
2215 u8 reserved_at_8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002216 u8 prio[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002217 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002218
Matan Barakb4ff3a32016-02-09 14:57:42 +02002219 u8 reserved_at_20[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03002220
Matan Barakb4ff3a32016-02-09 14:57:42 +02002221 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002222 u8 transport_domain[0x18];
2223
Matan Barakb4ff3a32016-02-09 14:57:42 +02002224 u8 reserved_at_140[0x3c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002225};
2226
2227enum {
2228 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
2229 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
2230};
2231
2232enum {
2233 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
2234 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
2235};
2236
2237enum {
Saeed Mahameed2be69672015-07-23 23:35:56 +03002238 MLX5_RX_HASH_FN_NONE = 0x0,
2239 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
2240 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03002241};
2242
2243enum {
2244 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1,
2245 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2,
2246};
2247
2248struct mlx5_ifc_tirc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002249 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002250
2251 u8 disp_type[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002252 u8 reserved_at_24[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03002253
Matan Barakb4ff3a32016-02-09 14:57:42 +02002254 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002255
Matan Barakb4ff3a32016-02-09 14:57:42 +02002256 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002257 u8 lro_timeout_period_usecs[0x10];
2258 u8 lro_enable_mask[0x4];
2259 u8 lro_max_ip_payload_size[0x8];
2260
Matan Barakb4ff3a32016-02-09 14:57:42 +02002261 u8 reserved_at_a0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002262
Matan Barakb4ff3a32016-02-09 14:57:42 +02002263 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002264 u8 inline_rqn[0x18];
2265
2266 u8 rx_hash_symmetric[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002267 u8 reserved_at_101[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002268 u8 tunneled_offload_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002269 u8 reserved_at_103[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002270 u8 indirect_table[0x18];
2271
2272 u8 rx_hash_fn[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002273 u8 reserved_at_124[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002274 u8 self_lb_block[0x2];
2275 u8 transport_domain[0x18];
2276
2277 u8 rx_hash_toeplitz_key[10][0x20];
2278
2279 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
2280
2281 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
2282
Matan Barakb4ff3a32016-02-09 14:57:42 +02002283 u8 reserved_at_2c0[0x4c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002284};
2285
2286enum {
2287 MLX5_SRQC_STATE_GOOD = 0x0,
2288 MLX5_SRQC_STATE_ERROR = 0x1,
2289};
2290
2291struct mlx5_ifc_srqc_bits {
2292 u8 state[0x4];
2293 u8 log_srq_size[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002294 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002295
2296 u8 wq_signature[0x1];
2297 u8 cont_srq[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002298 u8 reserved_at_22[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002299 u8 rlky[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002300 u8 reserved_at_24[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002301 u8 log_rq_stride[0x3];
2302 u8 xrcd[0x18];
2303
2304 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002305 u8 reserved_at_46[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002306 u8 cqn[0x18];
2307
Matan Barakb4ff3a32016-02-09 14:57:42 +02002308 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002309
Matan Barakb4ff3a32016-02-09 14:57:42 +02002310 u8 reserved_at_80[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002311 u8 log_page_size[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002312 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002313
Matan Barakb4ff3a32016-02-09 14:57:42 +02002314 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002315
Matan Barakb4ff3a32016-02-09 14:57:42 +02002316 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002317 u8 pd[0x18];
2318
2319 u8 lwm[0x10];
2320 u8 wqe_cnt[0x10];
2321
Matan Barakb4ff3a32016-02-09 14:57:42 +02002322 u8 reserved_at_100[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002323
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03002324 u8 dbr_addr[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002325
Matan Barakb4ff3a32016-02-09 14:57:42 +02002326 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002327};
2328
2329enum {
2330 MLX5_SQC_STATE_RST = 0x0,
2331 MLX5_SQC_STATE_RDY = 0x1,
2332 MLX5_SQC_STATE_ERR = 0x3,
2333};
2334
2335struct mlx5_ifc_sqc_bits {
2336 u8 rlky[0x1];
2337 u8 cd_master[0x1];
2338 u8 fre[0x1];
2339 u8 flush_in_error_en[0x1];
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002340 u8 reserved_at_4[0x1];
2341 u8 min_wqe_inline_mode[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002342 u8 state[0x4];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002343 u8 reg_umr[0x1];
2344 u8 reserved_at_d[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03002345
Matan Barakb4ff3a32016-02-09 14:57:42 +02002346 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002347 u8 user_index[0x18];
2348
Matan Barakb4ff3a32016-02-09 14:57:42 +02002349 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002350 u8 cqn[0x18];
2351
Saeed Mahameed74862162016-06-09 15:11:34 +03002352 u8 reserved_at_60[0x90];
Saeed Mahameede2816822015-05-28 22:28:40 +03002353
Saeed Mahameed74862162016-06-09 15:11:34 +03002354 u8 packet_pacing_rate_limit_index[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002355 u8 tis_lst_sz[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002356 u8 reserved_at_110[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002357
Matan Barakb4ff3a32016-02-09 14:57:42 +02002358 u8 reserved_at_120[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002359
Matan Barakb4ff3a32016-02-09 14:57:42 +02002360 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002361 u8 tis_num_0[0x18];
2362
2363 struct mlx5_ifc_wq_bits wq;
2364};
2365
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03002366enum {
2367 SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR = 0x0,
2368 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT = 0x1,
2369 SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT_TC = 0x2,
2370 SCHEDULING_CONTEXT_ELEMENT_TYPE_PARA_VPORT_TC = 0x3,
2371};
2372
2373struct mlx5_ifc_scheduling_context_bits {
2374 u8 element_type[0x8];
2375 u8 reserved_at_8[0x18];
2376
2377 u8 element_attributes[0x20];
2378
2379 u8 parent_element_id[0x20];
2380
2381 u8 reserved_at_60[0x40];
2382
2383 u8 bw_share[0x20];
2384
2385 u8 max_average_bw[0x20];
2386
2387 u8 reserved_at_e0[0x120];
2388};
2389
Saeed Mahameede2816822015-05-28 22:28:40 +03002390struct mlx5_ifc_rqtc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002391 u8 reserved_at_0[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002392
Matan Barakb4ff3a32016-02-09 14:57:42 +02002393 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002394 u8 rqt_max_size[0x10];
2395
Matan Barakb4ff3a32016-02-09 14:57:42 +02002396 u8 reserved_at_c0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002397 u8 rqt_actual_size[0x10];
2398
Matan Barakb4ff3a32016-02-09 14:57:42 +02002399 u8 reserved_at_e0[0x6a0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002400
2401 struct mlx5_ifc_rq_num_bits rq_num[0];
2402};
2403
2404enum {
2405 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2406 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2407};
2408
2409enum {
2410 MLX5_RQC_STATE_RST = 0x0,
2411 MLX5_RQC_STATE_RDY = 0x1,
2412 MLX5_RQC_STATE_ERR = 0x3,
2413};
2414
2415struct mlx5_ifc_rqc_bits {
2416 u8 rlky[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002417 u8 reserved_at_1[0x1];
2418 u8 scatter_fcs[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002419 u8 vsd[0x1];
2420 u8 mem_rq_type[0x4];
2421 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002422 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002423 u8 flush_in_error_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002424 u8 reserved_at_e[0x12];
Saeed Mahameede2816822015-05-28 22:28:40 +03002425
Matan Barakb4ff3a32016-02-09 14:57:42 +02002426 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002427 u8 user_index[0x18];
2428
Matan Barakb4ff3a32016-02-09 14:57:42 +02002429 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002430 u8 cqn[0x18];
2431
2432 u8 counter_set_id[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002433 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002434
Matan Barakb4ff3a32016-02-09 14:57:42 +02002435 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002436 u8 rmpn[0x18];
2437
Matan Barakb4ff3a32016-02-09 14:57:42 +02002438 u8 reserved_at_a0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002439
2440 struct mlx5_ifc_wq_bits wq;
2441};
2442
2443enum {
2444 MLX5_RMPC_STATE_RDY = 0x1,
2445 MLX5_RMPC_STATE_ERR = 0x3,
2446};
2447
2448struct mlx5_ifc_rmpc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002449 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002450 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002451 u8 reserved_at_c[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002452
2453 u8 basic_cyclic_rcv_wqe[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002454 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03002455
Matan Barakb4ff3a32016-02-09 14:57:42 +02002456 u8 reserved_at_40[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03002457
2458 struct mlx5_ifc_wq_bits wq;
2459};
2460
Saeed Mahameede2816822015-05-28 22:28:40 +03002461struct mlx5_ifc_nic_vport_context_bits {
Hadar Hen Zioncff92d72016-07-24 16:12:40 +03002462 u8 reserved_at_0[0x5];
2463 u8 min_wqe_inline_mode[0x3];
2464 u8 reserved_at_8[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03002465 u8 roce_en[0x1];
2466
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002467 u8 arm_change_event[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002468 u8 reserved_at_21[0x1a];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002469 u8 event_on_mtu[0x1];
2470 u8 event_on_promisc_change[0x1];
2471 u8 event_on_vlan_change[0x1];
2472 u8 event_on_mc_address_change[0x1];
2473 u8 event_on_uc_address_change[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002474
Matan Barakb4ff3a32016-02-09 14:57:42 +02002475 u8 reserved_at_40[0xf0];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002476
2477 u8 mtu[0x10];
2478
Achiad Shochat9efa7522015-12-23 18:47:20 +02002479 u8 system_image_guid[0x40];
2480 u8 port_guid[0x40];
2481 u8 node_guid[0x40];
2482
Matan Barakb4ff3a32016-02-09 14:57:42 +02002483 u8 reserved_at_200[0x140];
Achiad Shochat9efa7522015-12-23 18:47:20 +02002484 u8 qkey_violation_counter[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002485 u8 reserved_at_350[0x430];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02002486
2487 u8 promisc_uc[0x1];
2488 u8 promisc_mc[0x1];
2489 u8 promisc_all[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002490 u8 reserved_at_783[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002491 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002492 u8 reserved_at_788[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002493 u8 allowed_list_size[0xc];
2494
2495 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2496
Matan Barakb4ff3a32016-02-09 14:57:42 +02002497 u8 reserved_at_7e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002498
2499 u8 current_uc_mac_address[0][0x40];
2500};
2501
2502enum {
2503 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2504 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2505 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02002506 MLX5_MKC_ACCESS_MODE_KSM = 0x3,
Saeed Mahameede2816822015-05-28 22:28:40 +03002507};
2508
2509struct mlx5_ifc_mkc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002510 u8 reserved_at_0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002511 u8 free[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002512 u8 reserved_at_2[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03002513 u8 small_fence_on_rdma_read_response[0x1];
2514 u8 umr_en[0x1];
2515 u8 a[0x1];
2516 u8 rw[0x1];
2517 u8 rr[0x1];
2518 u8 lw[0x1];
2519 u8 lr[0x1];
2520 u8 access_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002521 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002522
2523 u8 qpn[0x18];
2524 u8 mkey_7_0[0x8];
2525
Matan Barakb4ff3a32016-02-09 14:57:42 +02002526 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002527
2528 u8 length64[0x1];
2529 u8 bsf_en[0x1];
2530 u8 sync_umr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002531 u8 reserved_at_63[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03002532 u8 expected_sigerr_count[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002533 u8 reserved_at_66[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002534 u8 en_rinval[0x1];
2535 u8 pd[0x18];
2536
2537 u8 start_addr[0x40];
2538
2539 u8 len[0x40];
2540
2541 u8 bsf_octword_size[0x20];
2542
Matan Barakb4ff3a32016-02-09 14:57:42 +02002543 u8 reserved_at_120[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002544
2545 u8 translations_octword_size[0x20];
2546
Matan Barakb4ff3a32016-02-09 14:57:42 +02002547 u8 reserved_at_1c0[0x1b];
Saeed Mahameede2816822015-05-28 22:28:40 +03002548 u8 log_page_size[0x5];
2549
Matan Barakb4ff3a32016-02-09 14:57:42 +02002550 u8 reserved_at_1e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002551};
2552
2553struct mlx5_ifc_pkey_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002554 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002555 u8 pkey[0x10];
2556};
2557
2558struct mlx5_ifc_array128_auto_bits {
2559 u8 array128_auto[16][0x8];
2560};
2561
2562struct mlx5_ifc_hca_vport_context_bits {
2563 u8 field_select[0x20];
2564
Matan Barakb4ff3a32016-02-09 14:57:42 +02002565 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002566
2567 u8 sm_virt_aware[0x1];
2568 u8 has_smi[0x1];
2569 u8 has_raw[0x1];
2570 u8 grh_required[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002571 u8 reserved_at_104[0xc];
Majd Dibbiny707c4602015-06-04 19:30:41 +03002572 u8 port_physical_state[0x4];
2573 u8 vport_state_policy[0x4];
2574 u8 port_state[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002575 u8 vport_state[0x4];
2576
Matan Barakb4ff3a32016-02-09 14:57:42 +02002577 u8 reserved_at_120[0x20];
Majd Dibbiny707c4602015-06-04 19:30:41 +03002578
2579 u8 system_image_guid[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002580
2581 u8 port_guid[0x40];
2582
2583 u8 node_guid[0x40];
2584
2585 u8 cap_mask1[0x20];
2586
2587 u8 cap_mask1_field_select[0x20];
2588
2589 u8 cap_mask2[0x20];
2590
2591 u8 cap_mask2_field_select[0x20];
2592
Matan Barakb4ff3a32016-02-09 14:57:42 +02002593 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002594
2595 u8 lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002596 u8 reserved_at_310[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002597 u8 init_type_reply[0x4];
2598 u8 lmc[0x3];
2599 u8 subnet_timeout[0x5];
2600
2601 u8 sm_lid[0x10];
2602 u8 sm_sl[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002603 u8 reserved_at_334[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03002604
2605 u8 qkey_violation_counter[0x10];
2606 u8 pkey_violation_counter[0x10];
2607
Matan Barakb4ff3a32016-02-09 14:57:42 +02002608 u8 reserved_at_360[0xca0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002609};
2610
Saeed Mahameedd6666752015-12-01 18:03:22 +02002611struct mlx5_ifc_esw_vport_context_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002612 u8 reserved_at_0[0x3];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002613 u8 vport_svlan_strip[0x1];
2614 u8 vport_cvlan_strip[0x1];
2615 u8 vport_svlan_insert[0x1];
2616 u8 vport_cvlan_insert[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002617 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002618
Matan Barakb4ff3a32016-02-09 14:57:42 +02002619 u8 reserved_at_20[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002620
2621 u8 svlan_cfi[0x1];
2622 u8 svlan_pcp[0x3];
2623 u8 svlan_id[0xc];
2624 u8 cvlan_cfi[0x1];
2625 u8 cvlan_pcp[0x3];
2626 u8 cvlan_id[0xc];
2627
Matan Barakb4ff3a32016-02-09 14:57:42 +02002628 u8 reserved_at_60[0x7a0];
Saeed Mahameedd6666752015-12-01 18:03:22 +02002629};
2630
Saeed Mahameede2816822015-05-28 22:28:40 +03002631enum {
2632 MLX5_EQC_STATUS_OK = 0x0,
2633 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
2634};
2635
2636enum {
2637 MLX5_EQC_ST_ARMED = 0x9,
2638 MLX5_EQC_ST_FIRED = 0xa,
2639};
2640
2641struct mlx5_ifc_eqc_bits {
2642 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002643 u8 reserved_at_4[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03002644 u8 ec[0x1];
2645 u8 oi[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002646 u8 reserved_at_f[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002647 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002648 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002649
Matan Barakb4ff3a32016-02-09 14:57:42 +02002650 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002651
Matan Barakb4ff3a32016-02-09 14:57:42 +02002652 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002653 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002654 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002655
Matan Barakb4ff3a32016-02-09 14:57:42 +02002656 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002657 u8 log_eq_size[0x5];
2658 u8 uar_page[0x18];
2659
Matan Barakb4ff3a32016-02-09 14:57:42 +02002660 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002661
Matan Barakb4ff3a32016-02-09 14:57:42 +02002662 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002663 u8 intr[0x8];
2664
Matan Barakb4ff3a32016-02-09 14:57:42 +02002665 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002666 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002667 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002668
Matan Barakb4ff3a32016-02-09 14:57:42 +02002669 u8 reserved_at_e0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002670
Matan Barakb4ff3a32016-02-09 14:57:42 +02002671 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002672 u8 consumer_counter[0x18];
2673
Matan Barakb4ff3a32016-02-09 14:57:42 +02002674 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002675 u8 producer_counter[0x18];
2676
Matan Barakb4ff3a32016-02-09 14:57:42 +02002677 u8 reserved_at_180[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03002678};
2679
2680enum {
2681 MLX5_DCTC_STATE_ACTIVE = 0x0,
2682 MLX5_DCTC_STATE_DRAINING = 0x1,
2683 MLX5_DCTC_STATE_DRAINED = 0x2,
2684};
2685
2686enum {
2687 MLX5_DCTC_CS_RES_DISABLE = 0x0,
2688 MLX5_DCTC_CS_RES_NA = 0x1,
2689 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
2690};
2691
2692enum {
2693 MLX5_DCTC_MTU_256_BYTES = 0x1,
2694 MLX5_DCTC_MTU_512_BYTES = 0x2,
2695 MLX5_DCTC_MTU_1K_BYTES = 0x3,
2696 MLX5_DCTC_MTU_2K_BYTES = 0x4,
2697 MLX5_DCTC_MTU_4K_BYTES = 0x5,
2698};
2699
2700struct mlx5_ifc_dctc_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002701 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002702 u8 state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002703 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002704
Matan Barakb4ff3a32016-02-09 14:57:42 +02002705 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002706 u8 user_index[0x18];
2707
Matan Barakb4ff3a32016-02-09 14:57:42 +02002708 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002709 u8 cqn[0x18];
2710
2711 u8 counter_set_id[0x8];
2712 u8 atomic_mode[0x4];
2713 u8 rre[0x1];
2714 u8 rwe[0x1];
2715 u8 rae[0x1];
2716 u8 atomic_like_write_en[0x1];
2717 u8 latency_sensitive[0x1];
2718 u8 rlky[0x1];
2719 u8 free_ar[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002720 u8 reserved_at_73[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03002721
Matan Barakb4ff3a32016-02-09 14:57:42 +02002722 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002723 u8 cs_res[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002724 u8 reserved_at_90[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002725 u8 min_rnr_nak[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002726 u8 reserved_at_98[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002727
Matan Barakb4ff3a32016-02-09 14:57:42 +02002728 u8 reserved_at_a0[0x8];
Saeed Mahameed74862162016-06-09 15:11:34 +03002729 u8 srqn_xrqn[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002730
Matan Barakb4ff3a32016-02-09 14:57:42 +02002731 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002732 u8 pd[0x18];
2733
2734 u8 tclass[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002735 u8 reserved_at_e8[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002736 u8 flow_label[0x14];
2737
2738 u8 dc_access_key[0x40];
2739
Matan Barakb4ff3a32016-02-09 14:57:42 +02002740 u8 reserved_at_140[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03002741 u8 mtu[0x3];
2742 u8 port[0x8];
2743 u8 pkey_index[0x10];
2744
Matan Barakb4ff3a32016-02-09 14:57:42 +02002745 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002746 u8 my_addr_index[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002747 u8 reserved_at_170[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002748 u8 hop_limit[0x8];
2749
2750 u8 dc_access_key_violation_count[0x20];
2751
Matan Barakb4ff3a32016-02-09 14:57:42 +02002752 u8 reserved_at_1a0[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002753 u8 dei_cfi[0x1];
2754 u8 eth_prio[0x3];
2755 u8 ecn[0x2];
2756 u8 dscp[0x6];
2757
Matan Barakb4ff3a32016-02-09 14:57:42 +02002758 u8 reserved_at_1c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002759};
2760
2761enum {
2762 MLX5_CQC_STATUS_OK = 0x0,
2763 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
2764 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
2765};
2766
2767enum {
2768 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
2769 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
2770};
2771
2772enum {
2773 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
2774 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
2775 MLX5_CQC_ST_FIRED = 0xa,
2776};
2777
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002778enum {
2779 MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0,
2780 MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1,
Saeed Mahameed74862162016-06-09 15:11:34 +03002781 MLX5_CQ_PERIOD_NUM_MODES
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002782};
2783
Saeed Mahameede2816822015-05-28 22:28:40 +03002784struct mlx5_ifc_cqc_bits {
2785 u8 status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002786 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002787 u8 cqe_sz[0x3];
2788 u8 cc[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002789 u8 reserved_at_c[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002790 u8 scqe_break_moderation_en[0x1];
2791 u8 oi[0x1];
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03002792 u8 cq_period_mode[0x2];
2793 u8 cqe_comp_en[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03002794 u8 mini_cqe_res_format[0x2];
2795 u8 st[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002796 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002797
Matan Barakb4ff3a32016-02-09 14:57:42 +02002798 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002799
Matan Barakb4ff3a32016-02-09 14:57:42 +02002800 u8 reserved_at_40[0x14];
Saeed Mahameede2816822015-05-28 22:28:40 +03002801 u8 page_offset[0x6];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002802 u8 reserved_at_5a[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03002803
Matan Barakb4ff3a32016-02-09 14:57:42 +02002804 u8 reserved_at_60[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002805 u8 log_cq_size[0x5];
2806 u8 uar_page[0x18];
2807
Matan Barakb4ff3a32016-02-09 14:57:42 +02002808 u8 reserved_at_80[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03002809 u8 cq_period[0xc];
2810 u8 cq_max_count[0x10];
2811
Matan Barakb4ff3a32016-02-09 14:57:42 +02002812 u8 reserved_at_a0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002813 u8 c_eqn[0x8];
2814
Matan Barakb4ff3a32016-02-09 14:57:42 +02002815 u8 reserved_at_c0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03002816 u8 log_page_size[0x5];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002817 u8 reserved_at_c8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03002818
Matan Barakb4ff3a32016-02-09 14:57:42 +02002819 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002820
Matan Barakb4ff3a32016-02-09 14:57:42 +02002821 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002822 u8 last_notified_index[0x18];
2823
Matan Barakb4ff3a32016-02-09 14:57:42 +02002824 u8 reserved_at_120[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002825 u8 last_solicit_index[0x18];
2826
Matan Barakb4ff3a32016-02-09 14:57:42 +02002827 u8 reserved_at_140[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002828 u8 consumer_counter[0x18];
2829
Matan Barakb4ff3a32016-02-09 14:57:42 +02002830 u8 reserved_at_160[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03002831 u8 producer_counter[0x18];
2832
Matan Barakb4ff3a32016-02-09 14:57:42 +02002833 u8 reserved_at_180[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002834
2835 u8 dbr_addr[0x40];
2836};
2837
2838union mlx5_ifc_cong_control_roce_ecn_auto_bits {
2839 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
2840 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
2841 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002842 u8 reserved_at_0[0x800];
Saeed Mahameede2816822015-05-28 22:28:40 +03002843};
2844
2845struct mlx5_ifc_query_adapter_param_block_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002846 u8 reserved_at_0[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002847
Matan Barakb4ff3a32016-02-09 14:57:42 +02002848 u8 reserved_at_c0[0x8];
Majd Dibbiny211e6c82015-06-04 19:30:42 +03002849 u8 ieee_vendor_id[0x18];
2850
Matan Barakb4ff3a32016-02-09 14:57:42 +02002851 u8 reserved_at_e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002852 u8 vsd_vendor_id[0x10];
2853
2854 u8 vsd[208][0x8];
2855
2856 u8 vsd_contd_psid[16][0x8];
2857};
2858
Saeed Mahameed74862162016-06-09 15:11:34 +03002859enum {
2860 MLX5_XRQC_STATE_GOOD = 0x0,
2861 MLX5_XRQC_STATE_ERROR = 0x1,
2862};
2863
2864enum {
2865 MLX5_XRQC_TOPOLOGY_NO_SPECIAL_TOPOLOGY = 0x0,
2866 MLX5_XRQC_TOPOLOGY_TAG_MATCHING = 0x1,
2867};
2868
2869enum {
2870 MLX5_XRQC_OFFLOAD_RNDV = 0x1,
2871};
2872
2873struct mlx5_ifc_tag_matching_topology_context_bits {
2874 u8 log_matching_list_sz[0x4];
2875 u8 reserved_at_4[0xc];
2876 u8 append_next_index[0x10];
2877
2878 u8 sw_phase_cnt[0x10];
2879 u8 hw_phase_cnt[0x10];
2880
2881 u8 reserved_at_40[0x40];
2882};
2883
2884struct mlx5_ifc_xrqc_bits {
2885 u8 state[0x4];
2886 u8 rlkey[0x1];
2887 u8 reserved_at_5[0xf];
2888 u8 topology[0x4];
2889 u8 reserved_at_18[0x4];
2890 u8 offload[0x4];
2891
2892 u8 reserved_at_20[0x8];
2893 u8 user_index[0x18];
2894
2895 u8 reserved_at_40[0x8];
2896 u8 cqn[0x18];
2897
2898 u8 reserved_at_60[0xa0];
2899
2900 struct mlx5_ifc_tag_matching_topology_context_bits tag_matching_topology_context;
2901
Artemy Kovalyov5579e152016-08-31 05:17:54 +00002902 u8 reserved_at_180[0x880];
Saeed Mahameed74862162016-06-09 15:11:34 +03002903
2904 struct mlx5_ifc_wq_bits wq;
2905};
2906
Saeed Mahameede2816822015-05-28 22:28:40 +03002907union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
2908 struct mlx5_ifc_modify_field_select_bits modify_field_select;
2909 struct mlx5_ifc_resize_field_select_bits resize_field_select;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002910 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002911};
2912
2913union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
2914 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
2915 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
2916 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002917 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002918};
2919
2920union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
2921 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
2922 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
2923 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
2924 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
2925 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
2926 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
2927 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02002928 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03002929 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002930 u8 reserved_at_0[0x7c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002931};
2932
2933union mlx5_ifc_event_auto_bits {
2934 struct mlx5_ifc_comp_event_bits comp_event;
2935 struct mlx5_ifc_dct_events_bits dct_events;
2936 struct mlx5_ifc_qp_events_bits qp_events;
2937 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
2938 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
2939 struct mlx5_ifc_cq_error_bits cq_error;
2940 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
2941 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
2942 struct mlx5_ifc_gpio_event_bits gpio_event;
2943 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
2944 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
2945 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
Matan Barakb4ff3a32016-02-09 14:57:42 +02002946 u8 reserved_at_0[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03002947};
2948
2949struct mlx5_ifc_health_buffer_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02002950 u8 reserved_at_0[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03002951
2952 u8 assert_existptr[0x20];
2953
2954 u8 assert_callra[0x20];
2955
Matan Barakb4ff3a32016-02-09 14:57:42 +02002956 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03002957
2958 u8 fw_version[0x20];
2959
2960 u8 hw_id[0x20];
2961
Matan Barakb4ff3a32016-02-09 14:57:42 +02002962 u8 reserved_at_1c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03002963
2964 u8 irisc_index[0x8];
2965 u8 synd[0x8];
2966 u8 ext_synd[0x10];
2967};
2968
2969struct mlx5_ifc_register_loopback_control_bits {
2970 u8 no_lb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002971 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03002972 u8 port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02002973 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03002974
Matan Barakb4ff3a32016-02-09 14:57:42 +02002975 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03002976};
2977
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03002978struct mlx5_ifc_vport_tc_element_bits {
2979 u8 traffic_class[0x4];
2980 u8 reserved_at_4[0xc];
2981 u8 vport_number[0x10];
2982};
2983
2984struct mlx5_ifc_vport_element_bits {
2985 u8 reserved_at_0[0x10];
2986 u8 vport_number[0x10];
2987};
2988
2989enum {
2990 TSAR_ELEMENT_TSAR_TYPE_DWRR = 0x0,
2991 TSAR_ELEMENT_TSAR_TYPE_ROUND_ROBIN = 0x1,
2992 TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2,
2993};
2994
2995struct mlx5_ifc_tsar_element_bits {
2996 u8 reserved_at_0[0x8];
2997 u8 tsar_type[0x8];
2998 u8 reserved_at_10[0x10];
2999};
3000
Saeed Mahameede2816822015-05-28 22:28:40 +03003001struct mlx5_ifc_teardown_hca_out_bits {
3002 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003003 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003004
3005 u8 syndrome[0x20];
3006
Matan Barakb4ff3a32016-02-09 14:57:42 +02003007 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003008};
3009
3010enum {
3011 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
3012 MLX5_TEARDOWN_HCA_IN_PROFILE_PANIC_CLOSE = 0x1,
3013};
3014
3015struct mlx5_ifc_teardown_hca_in_bits {
3016 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003017 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003018
Matan Barakb4ff3a32016-02-09 14:57:42 +02003019 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003020 u8 op_mod[0x10];
3021
Matan Barakb4ff3a32016-02-09 14:57:42 +02003022 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003023 u8 profile[0x10];
3024
Matan Barakb4ff3a32016-02-09 14:57:42 +02003025 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003026};
3027
3028struct mlx5_ifc_sqerr2rts_qp_out_bits {
3029 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003030 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003031
3032 u8 syndrome[0x20];
3033
Matan Barakb4ff3a32016-02-09 14:57:42 +02003034 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003035};
3036
3037struct mlx5_ifc_sqerr2rts_qp_in_bits {
3038 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003039 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003040
Matan Barakb4ff3a32016-02-09 14:57:42 +02003041 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003042 u8 op_mod[0x10];
3043
Matan Barakb4ff3a32016-02-09 14:57:42 +02003044 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003045 u8 qpn[0x18];
3046
Matan Barakb4ff3a32016-02-09 14:57:42 +02003047 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003048
3049 u8 opt_param_mask[0x20];
3050
Matan Barakb4ff3a32016-02-09 14:57:42 +02003051 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003052
3053 struct mlx5_ifc_qpc_bits qpc;
3054
Matan Barakb4ff3a32016-02-09 14:57:42 +02003055 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003056};
3057
3058struct mlx5_ifc_sqd2rts_qp_out_bits {
3059 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003060 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003061
3062 u8 syndrome[0x20];
3063
Matan Barakb4ff3a32016-02-09 14:57:42 +02003064 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003065};
3066
3067struct mlx5_ifc_sqd2rts_qp_in_bits {
3068 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003069 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003070
Matan Barakb4ff3a32016-02-09 14:57:42 +02003071 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003072 u8 op_mod[0x10];
3073
Matan Barakb4ff3a32016-02-09 14:57:42 +02003074 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003075 u8 qpn[0x18];
3076
Matan Barakb4ff3a32016-02-09 14:57:42 +02003077 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003078
3079 u8 opt_param_mask[0x20];
3080
Matan Barakb4ff3a32016-02-09 14:57:42 +02003081 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003082
3083 struct mlx5_ifc_qpc_bits qpc;
3084
Matan Barakb4ff3a32016-02-09 14:57:42 +02003085 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003086};
3087
3088struct mlx5_ifc_set_roce_address_out_bits {
3089 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003090 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003091
3092 u8 syndrome[0x20];
3093
Matan Barakb4ff3a32016-02-09 14:57:42 +02003094 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003095};
3096
3097struct mlx5_ifc_set_roce_address_in_bits {
3098 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003099 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003100
Matan Barakb4ff3a32016-02-09 14:57:42 +02003101 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003102 u8 op_mod[0x10];
3103
3104 u8 roce_address_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003105 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003106
Matan Barakb4ff3a32016-02-09 14:57:42 +02003107 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003108
3109 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3110};
3111
3112struct mlx5_ifc_set_mad_demux_out_bits {
3113 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003114 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003115
3116 u8 syndrome[0x20];
3117
Matan Barakb4ff3a32016-02-09 14:57:42 +02003118 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003119};
3120
3121enum {
3122 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
3123 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
3124};
3125
3126struct mlx5_ifc_set_mad_demux_in_bits {
3127 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003128 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003129
Matan Barakb4ff3a32016-02-09 14:57:42 +02003130 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003131 u8 op_mod[0x10];
3132
Matan Barakb4ff3a32016-02-09 14:57:42 +02003133 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003134
Matan Barakb4ff3a32016-02-09 14:57:42 +02003135 u8 reserved_at_60[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03003136 u8 demux_mode[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003137 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003138};
3139
3140struct mlx5_ifc_set_l2_table_entry_out_bits {
3141 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003142 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003143
3144 u8 syndrome[0x20];
3145
Matan Barakb4ff3a32016-02-09 14:57:42 +02003146 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003147};
3148
3149struct mlx5_ifc_set_l2_table_entry_in_bits {
3150 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003151 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003152
Matan Barakb4ff3a32016-02-09 14:57:42 +02003153 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003154 u8 op_mod[0x10];
3155
Matan Barakb4ff3a32016-02-09 14:57:42 +02003156 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003157
Matan Barakb4ff3a32016-02-09 14:57:42 +02003158 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003159 u8 table_index[0x18];
3160
Matan Barakb4ff3a32016-02-09 14:57:42 +02003161 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003162
Matan Barakb4ff3a32016-02-09 14:57:42 +02003163 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03003164 u8 vlan_valid[0x1];
3165 u8 vlan[0xc];
3166
3167 struct mlx5_ifc_mac_address_layout_bits mac_address;
3168
Matan Barakb4ff3a32016-02-09 14:57:42 +02003169 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003170};
3171
3172struct mlx5_ifc_set_issi_out_bits {
3173 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003174 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003175
3176 u8 syndrome[0x20];
3177
Matan Barakb4ff3a32016-02-09 14:57:42 +02003178 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003179};
3180
3181struct mlx5_ifc_set_issi_in_bits {
3182 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003183 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003184
Matan Barakb4ff3a32016-02-09 14:57:42 +02003185 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003186 u8 op_mod[0x10];
3187
Matan Barakb4ff3a32016-02-09 14:57:42 +02003188 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003189 u8 current_issi[0x10];
3190
Matan Barakb4ff3a32016-02-09 14:57:42 +02003191 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003192};
3193
3194struct mlx5_ifc_set_hca_cap_out_bits {
3195 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003196 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003197
3198 u8 syndrome[0x20];
3199
Matan Barakb4ff3a32016-02-09 14:57:42 +02003200 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003201};
3202
3203struct mlx5_ifc_set_hca_cap_in_bits {
3204 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003205 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003206
Matan Barakb4ff3a32016-02-09 14:57:42 +02003207 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03003208 u8 op_mod[0x10];
3209
Matan Barakb4ff3a32016-02-09 14:57:42 +02003210 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03003211
Saeed Mahameede2816822015-05-28 22:28:40 +03003212 union mlx5_ifc_hca_cap_union_bits capability;
3213};
3214
Maor Gottlieb26a81452015-12-10 17:12:39 +02003215enum {
3216 MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0,
3217 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1,
3218 MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2,
3219 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3
3220};
3221
Saeed Mahameede2816822015-05-28 22:28:40 +03003222struct mlx5_ifc_set_fte_out_bits {
3223 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003224 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003225
3226 u8 syndrome[0x20];
3227
Matan Barakb4ff3a32016-02-09 14:57:42 +02003228 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003229};
3230
3231struct mlx5_ifc_set_fte_in_bits {
3232 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003233 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003234
Matan Barakb4ff3a32016-02-09 14:57:42 +02003235 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003236 u8 op_mod[0x10];
3237
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03003238 u8 other_vport[0x1];
3239 u8 reserved_at_41[0xf];
3240 u8 vport_number[0x10];
3241
3242 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003243
3244 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003245 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003246
Matan Barakb4ff3a32016-02-09 14:57:42 +02003247 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003248 u8 table_id[0x18];
3249
Matan Barakb4ff3a32016-02-09 14:57:42 +02003250 u8 reserved_at_c0[0x18];
Maor Gottlieb26a81452015-12-10 17:12:39 +02003251 u8 modify_enable_mask[0x8];
3252
Matan Barakb4ff3a32016-02-09 14:57:42 +02003253 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003254
3255 u8 flow_index[0x20];
3256
Matan Barakb4ff3a32016-02-09 14:57:42 +02003257 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003258
3259 struct mlx5_ifc_flow_context_bits flow_context;
3260};
3261
3262struct mlx5_ifc_rts2rts_qp_out_bits {
3263 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003264 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003265
3266 u8 syndrome[0x20];
3267
Matan Barakb4ff3a32016-02-09 14:57:42 +02003268 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003269};
3270
3271struct mlx5_ifc_rts2rts_qp_in_bits {
3272 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003273 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003274
Matan Barakb4ff3a32016-02-09 14:57:42 +02003275 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003276 u8 op_mod[0x10];
3277
Matan Barakb4ff3a32016-02-09 14:57:42 +02003278 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003279 u8 qpn[0x18];
3280
Matan Barakb4ff3a32016-02-09 14:57:42 +02003281 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003282
3283 u8 opt_param_mask[0x20];
3284
Matan Barakb4ff3a32016-02-09 14:57:42 +02003285 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003286
3287 struct mlx5_ifc_qpc_bits qpc;
3288
Matan Barakb4ff3a32016-02-09 14:57:42 +02003289 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003290};
3291
3292struct mlx5_ifc_rtr2rts_qp_out_bits {
3293 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003294 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003295
3296 u8 syndrome[0x20];
3297
Matan Barakb4ff3a32016-02-09 14:57:42 +02003298 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003299};
3300
3301struct mlx5_ifc_rtr2rts_qp_in_bits {
3302 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003303 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003304
Matan Barakb4ff3a32016-02-09 14:57:42 +02003305 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003306 u8 op_mod[0x10];
3307
Matan Barakb4ff3a32016-02-09 14:57:42 +02003308 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003309 u8 qpn[0x18];
3310
Matan Barakb4ff3a32016-02-09 14:57:42 +02003311 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003312
3313 u8 opt_param_mask[0x20];
3314
Matan Barakb4ff3a32016-02-09 14:57:42 +02003315 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003316
3317 struct mlx5_ifc_qpc_bits qpc;
3318
Matan Barakb4ff3a32016-02-09 14:57:42 +02003319 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003320};
3321
3322struct mlx5_ifc_rst2init_qp_out_bits {
3323 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003324 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003325
3326 u8 syndrome[0x20];
3327
Matan Barakb4ff3a32016-02-09 14:57:42 +02003328 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003329};
3330
3331struct mlx5_ifc_rst2init_qp_in_bits {
3332 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003333 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003334
Matan Barakb4ff3a32016-02-09 14:57:42 +02003335 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003336 u8 op_mod[0x10];
3337
Matan Barakb4ff3a32016-02-09 14:57:42 +02003338 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003339 u8 qpn[0x18];
3340
Matan Barakb4ff3a32016-02-09 14:57:42 +02003341 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003342
3343 u8 opt_param_mask[0x20];
3344
Matan Barakb4ff3a32016-02-09 14:57:42 +02003345 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003346
3347 struct mlx5_ifc_qpc_bits qpc;
3348
Matan Barakb4ff3a32016-02-09 14:57:42 +02003349 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003350};
3351
Saeed Mahameed74862162016-06-09 15:11:34 +03003352struct mlx5_ifc_query_xrq_out_bits {
3353 u8 status[0x8];
3354 u8 reserved_at_8[0x18];
3355
3356 u8 syndrome[0x20];
3357
3358 u8 reserved_at_40[0x40];
3359
3360 struct mlx5_ifc_xrqc_bits xrq_context;
3361};
3362
3363struct mlx5_ifc_query_xrq_in_bits {
3364 u8 opcode[0x10];
3365 u8 reserved_at_10[0x10];
3366
3367 u8 reserved_at_20[0x10];
3368 u8 op_mod[0x10];
3369
3370 u8 reserved_at_40[0x8];
3371 u8 xrqn[0x18];
3372
3373 u8 reserved_at_60[0x20];
3374};
3375
Saeed Mahameede2816822015-05-28 22:28:40 +03003376struct mlx5_ifc_query_xrc_srq_out_bits {
3377 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003378 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003379
3380 u8 syndrome[0x20];
3381
Matan Barakb4ff3a32016-02-09 14:57:42 +02003382 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003383
3384 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
3385
Matan Barakb4ff3a32016-02-09 14:57:42 +02003386 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003387
3388 u8 pas[0][0x40];
3389};
3390
3391struct mlx5_ifc_query_xrc_srq_in_bits {
3392 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003393 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003394
Matan Barakb4ff3a32016-02-09 14:57:42 +02003395 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003396 u8 op_mod[0x10];
3397
Matan Barakb4ff3a32016-02-09 14:57:42 +02003398 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003399 u8 xrc_srqn[0x18];
3400
Matan Barakb4ff3a32016-02-09 14:57:42 +02003401 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003402};
3403
3404enum {
3405 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
3406 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
3407};
3408
3409struct mlx5_ifc_query_vport_state_out_bits {
3410 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003411 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003412
3413 u8 syndrome[0x20];
3414
Matan Barakb4ff3a32016-02-09 14:57:42 +02003415 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003416
Matan Barakb4ff3a32016-02-09 14:57:42 +02003417 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003418 u8 admin_state[0x4];
3419 u8 state[0x4];
3420};
3421
3422enum {
3423 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0,
Saeed Mahameede7546512015-12-01 18:03:13 +02003424 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1,
Saeed Mahameede2816822015-05-28 22:28:40 +03003425};
3426
3427struct mlx5_ifc_query_vport_state_in_bits {
3428 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003429 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003430
Matan Barakb4ff3a32016-02-09 14:57:42 +02003431 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003432 u8 op_mod[0x10];
3433
3434 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003435 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003436 u8 vport_number[0x10];
3437
Matan Barakb4ff3a32016-02-09 14:57:42 +02003438 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003439};
3440
3441struct mlx5_ifc_query_vport_counter_out_bits {
3442 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003443 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003444
3445 u8 syndrome[0x20];
3446
Matan Barakb4ff3a32016-02-09 14:57:42 +02003447 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003448
3449 struct mlx5_ifc_traffic_counter_bits received_errors;
3450
3451 struct mlx5_ifc_traffic_counter_bits transmit_errors;
3452
3453 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
3454
3455 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
3456
3457 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
3458
3459 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
3460
3461 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
3462
3463 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
3464
3465 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
3466
3467 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
3468
3469 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
3470
3471 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
3472
Matan Barakb4ff3a32016-02-09 14:57:42 +02003473 u8 reserved_at_680[0xa00];
Saeed Mahameede2816822015-05-28 22:28:40 +03003474};
3475
3476enum {
3477 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
3478};
3479
3480struct mlx5_ifc_query_vport_counter_in_bits {
3481 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003482 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003483
Matan Barakb4ff3a32016-02-09 14:57:42 +02003484 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003485 u8 op_mod[0x10];
3486
3487 u8 other_vport[0x1];
Meny Yossefib54ba272016-02-18 18:14:59 +02003488 u8 reserved_at_41[0xb];
3489 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03003490 u8 vport_number[0x10];
3491
Matan Barakb4ff3a32016-02-09 14:57:42 +02003492 u8 reserved_at_60[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003493
3494 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003495 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03003496
Matan Barakb4ff3a32016-02-09 14:57:42 +02003497 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003498};
3499
3500struct mlx5_ifc_query_tis_out_bits {
3501 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003502 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003503
3504 u8 syndrome[0x20];
3505
Matan Barakb4ff3a32016-02-09 14:57:42 +02003506 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003507
3508 struct mlx5_ifc_tisc_bits tis_context;
3509};
3510
3511struct mlx5_ifc_query_tis_in_bits {
3512 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003513 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003514
Matan Barakb4ff3a32016-02-09 14:57:42 +02003515 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003516 u8 op_mod[0x10];
3517
Matan Barakb4ff3a32016-02-09 14:57:42 +02003518 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003519 u8 tisn[0x18];
3520
Matan Barakb4ff3a32016-02-09 14:57:42 +02003521 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003522};
3523
3524struct mlx5_ifc_query_tir_out_bits {
3525 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003526 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003527
3528 u8 syndrome[0x20];
3529
Matan Barakb4ff3a32016-02-09 14:57:42 +02003530 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003531
3532 struct mlx5_ifc_tirc_bits tir_context;
3533};
3534
3535struct mlx5_ifc_query_tir_in_bits {
3536 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003537 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003538
Matan Barakb4ff3a32016-02-09 14:57:42 +02003539 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003540 u8 op_mod[0x10];
3541
Matan Barakb4ff3a32016-02-09 14:57:42 +02003542 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003543 u8 tirn[0x18];
3544
Matan Barakb4ff3a32016-02-09 14:57:42 +02003545 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003546};
3547
3548struct mlx5_ifc_query_srq_out_bits {
3549 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003550 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003551
3552 u8 syndrome[0x20];
3553
Matan Barakb4ff3a32016-02-09 14:57:42 +02003554 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003555
3556 struct mlx5_ifc_srqc_bits srq_context_entry;
3557
Matan Barakb4ff3a32016-02-09 14:57:42 +02003558 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003559
3560 u8 pas[0][0x40];
3561};
3562
3563struct mlx5_ifc_query_srq_in_bits {
3564 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003565 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003566
Matan Barakb4ff3a32016-02-09 14:57:42 +02003567 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003568 u8 op_mod[0x10];
3569
Matan Barakb4ff3a32016-02-09 14:57:42 +02003570 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003571 u8 srqn[0x18];
3572
Matan Barakb4ff3a32016-02-09 14:57:42 +02003573 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003574};
3575
3576struct mlx5_ifc_query_sq_out_bits {
3577 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003578 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003579
3580 u8 syndrome[0x20];
3581
Matan Barakb4ff3a32016-02-09 14:57:42 +02003582 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003583
3584 struct mlx5_ifc_sqc_bits sq_context;
3585};
3586
3587struct mlx5_ifc_query_sq_in_bits {
3588 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003589 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003590
Matan Barakb4ff3a32016-02-09 14:57:42 +02003591 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003592 u8 op_mod[0x10];
3593
Matan Barakb4ff3a32016-02-09 14:57:42 +02003594 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003595 u8 sqn[0x18];
3596
Matan Barakb4ff3a32016-02-09 14:57:42 +02003597 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003598};
3599
3600struct mlx5_ifc_query_special_contexts_out_bits {
3601 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003602 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003603
3604 u8 syndrome[0x20];
3605
Saeed Mahameedec22eb52016-07-16 06:28:36 +03003606 u8 dump_fill_mkey[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003607
3608 u8 resd_lkey[0x20];
Artemy Kovalyovbcda1ac2017-01-02 11:37:41 +02003609
3610 u8 null_mkey[0x20];
3611
3612 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003613};
3614
3615struct mlx5_ifc_query_special_contexts_in_bits {
3616 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003617 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003618
Matan Barakb4ff3a32016-02-09 14:57:42 +02003619 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003620 u8 op_mod[0x10];
3621
Matan Barakb4ff3a32016-02-09 14:57:42 +02003622 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003623};
3624
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03003625struct mlx5_ifc_query_scheduling_element_out_bits {
3626 u8 opcode[0x10];
3627 u8 reserved_at_10[0x10];
3628
3629 u8 reserved_at_20[0x10];
3630 u8 op_mod[0x10];
3631
3632 u8 reserved_at_40[0xc0];
3633
3634 struct mlx5_ifc_scheduling_context_bits scheduling_context;
3635
3636 u8 reserved_at_300[0x100];
3637};
3638
3639enum {
3640 SCHEDULING_HIERARCHY_E_SWITCH = 0x2,
3641};
3642
3643struct mlx5_ifc_query_scheduling_element_in_bits {
3644 u8 opcode[0x10];
3645 u8 reserved_at_10[0x10];
3646
3647 u8 reserved_at_20[0x10];
3648 u8 op_mod[0x10];
3649
3650 u8 scheduling_hierarchy[0x8];
3651 u8 reserved_at_48[0x18];
3652
3653 u8 scheduling_element_id[0x20];
3654
3655 u8 reserved_at_80[0x180];
3656};
3657
Saeed Mahameede2816822015-05-28 22:28:40 +03003658struct mlx5_ifc_query_rqt_out_bits {
3659 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003660 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003661
3662 u8 syndrome[0x20];
3663
Matan Barakb4ff3a32016-02-09 14:57:42 +02003664 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003665
3666 struct mlx5_ifc_rqtc_bits rqt_context;
3667};
3668
3669struct mlx5_ifc_query_rqt_in_bits {
3670 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003671 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003672
Matan Barakb4ff3a32016-02-09 14:57:42 +02003673 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003674 u8 op_mod[0x10];
3675
Matan Barakb4ff3a32016-02-09 14:57:42 +02003676 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003677 u8 rqtn[0x18];
3678
Matan Barakb4ff3a32016-02-09 14:57:42 +02003679 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003680};
3681
3682struct mlx5_ifc_query_rq_out_bits {
3683 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003684 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003685
3686 u8 syndrome[0x20];
3687
Matan Barakb4ff3a32016-02-09 14:57:42 +02003688 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003689
3690 struct mlx5_ifc_rqc_bits rq_context;
3691};
3692
3693struct mlx5_ifc_query_rq_in_bits {
3694 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003695 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003696
Matan Barakb4ff3a32016-02-09 14:57:42 +02003697 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003698 u8 op_mod[0x10];
3699
Matan Barakb4ff3a32016-02-09 14:57:42 +02003700 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003701 u8 rqn[0x18];
3702
Matan Barakb4ff3a32016-02-09 14:57:42 +02003703 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003704};
3705
3706struct mlx5_ifc_query_roce_address_out_bits {
3707 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003708 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003709
3710 u8 syndrome[0x20];
3711
Matan Barakb4ff3a32016-02-09 14:57:42 +02003712 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003713
3714 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3715};
3716
3717struct mlx5_ifc_query_roce_address_in_bits {
3718 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003719 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003720
Matan Barakb4ff3a32016-02-09 14:57:42 +02003721 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003722 u8 op_mod[0x10];
3723
3724 u8 roce_address_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003725 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003726
Matan Barakb4ff3a32016-02-09 14:57:42 +02003727 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003728};
3729
3730struct mlx5_ifc_query_rmp_out_bits {
3731 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003732 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003733
3734 u8 syndrome[0x20];
3735
Matan Barakb4ff3a32016-02-09 14:57:42 +02003736 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003737
3738 struct mlx5_ifc_rmpc_bits rmp_context;
3739};
3740
3741struct mlx5_ifc_query_rmp_in_bits {
3742 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003743 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003744
Matan Barakb4ff3a32016-02-09 14:57:42 +02003745 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003746 u8 op_mod[0x10];
3747
Matan Barakb4ff3a32016-02-09 14:57:42 +02003748 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003749 u8 rmpn[0x18];
3750
Matan Barakb4ff3a32016-02-09 14:57:42 +02003751 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003752};
3753
3754struct mlx5_ifc_query_qp_out_bits {
3755 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003756 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003757
3758 u8 syndrome[0x20];
3759
Matan Barakb4ff3a32016-02-09 14:57:42 +02003760 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003761
3762 u8 opt_param_mask[0x20];
3763
Matan Barakb4ff3a32016-02-09 14:57:42 +02003764 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003765
3766 struct mlx5_ifc_qpc_bits qpc;
3767
Matan Barakb4ff3a32016-02-09 14:57:42 +02003768 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003769
3770 u8 pas[0][0x40];
3771};
3772
3773struct mlx5_ifc_query_qp_in_bits {
3774 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003775 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003776
Matan Barakb4ff3a32016-02-09 14:57:42 +02003777 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003778 u8 op_mod[0x10];
3779
Matan Barakb4ff3a32016-02-09 14:57:42 +02003780 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003781 u8 qpn[0x18];
3782
Matan Barakb4ff3a32016-02-09 14:57:42 +02003783 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003784};
3785
3786struct mlx5_ifc_query_q_counter_out_bits {
3787 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003788 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003789
3790 u8 syndrome[0x20];
3791
Matan Barakb4ff3a32016-02-09 14:57:42 +02003792 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003793
3794 u8 rx_write_requests[0x20];
3795
Matan Barakb4ff3a32016-02-09 14:57:42 +02003796 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003797
3798 u8 rx_read_requests[0x20];
3799
Matan Barakb4ff3a32016-02-09 14:57:42 +02003800 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003801
3802 u8 rx_atomic_requests[0x20];
3803
Matan Barakb4ff3a32016-02-09 14:57:42 +02003804 u8 reserved_at_120[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003805
3806 u8 rx_dct_connect[0x20];
3807
Matan Barakb4ff3a32016-02-09 14:57:42 +02003808 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003809
3810 u8 out_of_buffer[0x20];
3811
Matan Barakb4ff3a32016-02-09 14:57:42 +02003812 u8 reserved_at_1a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003813
3814 u8 out_of_sequence[0x20];
3815
Saeed Mahameed74862162016-06-09 15:11:34 +03003816 u8 reserved_at_1e0[0x20];
3817
3818 u8 duplicate_request[0x20];
3819
3820 u8 reserved_at_220[0x20];
3821
3822 u8 rnr_nak_retry_err[0x20];
3823
3824 u8 reserved_at_260[0x20];
3825
3826 u8 packet_seq_err[0x20];
3827
3828 u8 reserved_at_2a0[0x20];
3829
3830 u8 implied_nak_seq_err[0x20];
3831
3832 u8 reserved_at_2e0[0x20];
3833
3834 u8 local_ack_timeout_err[0x20];
3835
3836 u8 reserved_at_320[0x4e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003837};
3838
3839struct mlx5_ifc_query_q_counter_in_bits {
3840 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003841 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003842
Matan Barakb4ff3a32016-02-09 14:57:42 +02003843 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003844 u8 op_mod[0x10];
3845
Matan Barakb4ff3a32016-02-09 14:57:42 +02003846 u8 reserved_at_40[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03003847
3848 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003849 u8 reserved_at_c1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03003850
Matan Barakb4ff3a32016-02-09 14:57:42 +02003851 u8 reserved_at_e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003852 u8 counter_set_id[0x8];
3853};
3854
3855struct mlx5_ifc_query_pages_out_bits {
3856 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003857 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003858
3859 u8 syndrome[0x20];
3860
Matan Barakb4ff3a32016-02-09 14:57:42 +02003861 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003862 u8 function_id[0x10];
3863
3864 u8 num_pages[0x20];
3865};
3866
3867enum {
3868 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
3869 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
3870 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
3871};
3872
3873struct mlx5_ifc_query_pages_in_bits {
3874 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003875 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003876
Matan Barakb4ff3a32016-02-09 14:57:42 +02003877 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003878 u8 op_mod[0x10];
3879
Matan Barakb4ff3a32016-02-09 14:57:42 +02003880 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003881 u8 function_id[0x10];
3882
Matan Barakb4ff3a32016-02-09 14:57:42 +02003883 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03003884};
3885
3886struct mlx5_ifc_query_nic_vport_context_out_bits {
3887 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003888 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003889
3890 u8 syndrome[0x20];
3891
Matan Barakb4ff3a32016-02-09 14:57:42 +02003892 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003893
3894 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
3895};
3896
3897struct mlx5_ifc_query_nic_vport_context_in_bits {
3898 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003899 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003900
Matan Barakb4ff3a32016-02-09 14:57:42 +02003901 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003902 u8 op_mod[0x10];
3903
3904 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003905 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03003906 u8 vport_number[0x10];
3907
Matan Barakb4ff3a32016-02-09 14:57:42 +02003908 u8 reserved_at_60[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03003909 u8 allowed_list_type[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003910 u8 reserved_at_68[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003911};
3912
3913struct mlx5_ifc_query_mkey_out_bits {
3914 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003915 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003916
3917 u8 syndrome[0x20];
3918
Matan Barakb4ff3a32016-02-09 14:57:42 +02003919 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003920
3921 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
3922
Matan Barakb4ff3a32016-02-09 14:57:42 +02003923 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03003924
3925 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
3926
3927 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
3928};
3929
3930struct mlx5_ifc_query_mkey_in_bits {
3931 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003932 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003933
Matan Barakb4ff3a32016-02-09 14:57:42 +02003934 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003935 u8 op_mod[0x10];
3936
Matan Barakb4ff3a32016-02-09 14:57:42 +02003937 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003938 u8 mkey_index[0x18];
3939
3940 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003941 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03003942};
3943
3944struct mlx5_ifc_query_mad_demux_out_bits {
3945 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003946 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003947
3948 u8 syndrome[0x20];
3949
Matan Barakb4ff3a32016-02-09 14:57:42 +02003950 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003951
3952 u8 mad_dumux_parameters_block[0x20];
3953};
3954
3955struct mlx5_ifc_query_mad_demux_in_bits {
3956 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003957 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003958
Matan Barakb4ff3a32016-02-09 14:57:42 +02003959 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003960 u8 op_mod[0x10];
3961
Matan Barakb4ff3a32016-02-09 14:57:42 +02003962 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03003963};
3964
3965struct mlx5_ifc_query_l2_table_entry_out_bits {
3966 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003967 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03003968
3969 u8 syndrome[0x20];
3970
Matan Barakb4ff3a32016-02-09 14:57:42 +02003971 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003972
Matan Barakb4ff3a32016-02-09 14:57:42 +02003973 u8 reserved_at_e0[0x13];
Saeed Mahameede2816822015-05-28 22:28:40 +03003974 u8 vlan_valid[0x1];
3975 u8 vlan[0xc];
3976
3977 struct mlx5_ifc_mac_address_layout_bits mac_address;
3978
Matan Barakb4ff3a32016-02-09 14:57:42 +02003979 u8 reserved_at_140[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03003980};
3981
3982struct mlx5_ifc_query_l2_table_entry_in_bits {
3983 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003984 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003985
Matan Barakb4ff3a32016-02-09 14:57:42 +02003986 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03003987 u8 op_mod[0x10];
3988
Matan Barakb4ff3a32016-02-09 14:57:42 +02003989 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03003990
Matan Barakb4ff3a32016-02-09 14:57:42 +02003991 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03003992 u8 table_index[0x18];
3993
Matan Barakb4ff3a32016-02-09 14:57:42 +02003994 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03003995};
3996
3997struct mlx5_ifc_query_issi_out_bits {
3998 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02003999 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004000
4001 u8 syndrome[0x20];
4002
Matan Barakb4ff3a32016-02-09 14:57:42 +02004003 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004004 u8 current_issi[0x10];
4005
Matan Barakb4ff3a32016-02-09 14:57:42 +02004006 u8 reserved_at_60[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004007
Matan Barakb4ff3a32016-02-09 14:57:42 +02004008 u8 reserved_at_100[76][0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004009 u8 supported_issi_dw0[0x20];
4010};
4011
4012struct mlx5_ifc_query_issi_in_bits {
4013 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004014 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004015
Matan Barakb4ff3a32016-02-09 14:57:42 +02004016 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004017 u8 op_mod[0x10];
4018
Matan Barakb4ff3a32016-02-09 14:57:42 +02004019 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004020};
4021
Saeed Mahameed0dbc6fe2016-11-17 13:45:59 +02004022struct mlx5_ifc_set_driver_version_out_bits {
4023 u8 status[0x8];
4024 u8 reserved_0[0x18];
4025
4026 u8 syndrome[0x20];
4027 u8 reserved_1[0x40];
4028};
4029
4030struct mlx5_ifc_set_driver_version_in_bits {
4031 u8 opcode[0x10];
4032 u8 reserved_0[0x10];
4033
4034 u8 reserved_1[0x10];
4035 u8 op_mod[0x10];
4036
4037 u8 reserved_2[0x40];
4038 u8 driver_version[64][0x8];
4039};
4040
Saeed Mahameede2816822015-05-28 22:28:40 +03004041struct mlx5_ifc_query_hca_vport_pkey_out_bits {
4042 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004043 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004044
4045 u8 syndrome[0x20];
4046
Matan Barakb4ff3a32016-02-09 14:57:42 +02004047 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004048
4049 struct mlx5_ifc_pkey_bits pkey[0];
4050};
4051
4052struct mlx5_ifc_query_hca_vport_pkey_in_bits {
4053 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004054 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004055
Matan Barakb4ff3a32016-02-09 14:57:42 +02004056 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004057 u8 op_mod[0x10];
4058
4059 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004060 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004061 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004062 u8 vport_number[0x10];
4063
Matan Barakb4ff3a32016-02-09 14:57:42 +02004064 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004065 u8 pkey_index[0x10];
4066};
4067
Eli Coheneff901d2016-03-11 22:58:42 +02004068enum {
4069 MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0,
4070 MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1,
4071 MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2,
4072};
4073
Saeed Mahameede2816822015-05-28 22:28:40 +03004074struct mlx5_ifc_query_hca_vport_gid_out_bits {
4075 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004076 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004077
4078 u8 syndrome[0x20];
4079
Matan Barakb4ff3a32016-02-09 14:57:42 +02004080 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004081
4082 u8 gids_num[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004083 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004084
4085 struct mlx5_ifc_array128_auto_bits gid[0];
4086};
4087
4088struct mlx5_ifc_query_hca_vport_gid_in_bits {
4089 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004090 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004091
Matan Barakb4ff3a32016-02-09 14:57:42 +02004092 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004093 u8 op_mod[0x10];
4094
4095 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004096 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004097 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004098 u8 vport_number[0x10];
4099
Matan Barakb4ff3a32016-02-09 14:57:42 +02004100 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004101 u8 gid_index[0x10];
4102};
4103
4104struct mlx5_ifc_query_hca_vport_context_out_bits {
4105 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004106 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004107
4108 u8 syndrome[0x20];
4109
Matan Barakb4ff3a32016-02-09 14:57:42 +02004110 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004111
4112 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4113};
4114
4115struct mlx5_ifc_query_hca_vport_context_in_bits {
4116 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004117 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004118
Matan Barakb4ff3a32016-02-09 14:57:42 +02004119 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004120 u8 op_mod[0x10];
4121
4122 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004123 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03004124 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004125 u8 vport_number[0x10];
4126
Matan Barakb4ff3a32016-02-09 14:57:42 +02004127 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004128};
4129
4130struct mlx5_ifc_query_hca_cap_out_bits {
4131 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004132 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004133
4134 u8 syndrome[0x20];
4135
Matan Barakb4ff3a32016-02-09 14:57:42 +02004136 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004137
4138 union mlx5_ifc_hca_cap_union_bits capability;
Eli Cohenb7755162014-10-02 12:19:44 +03004139};
4140
4141struct mlx5_ifc_query_hca_cap_in_bits {
4142 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004143 u8 reserved_at_10[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004144
Matan Barakb4ff3a32016-02-09 14:57:42 +02004145 u8 reserved_at_20[0x10];
Eli Cohenb7755162014-10-02 12:19:44 +03004146 u8 op_mod[0x10];
4147
Matan Barakb4ff3a32016-02-09 14:57:42 +02004148 u8 reserved_at_40[0x40];
Eli Cohenb7755162014-10-02 12:19:44 +03004149};
4150
Saeed Mahameede2816822015-05-28 22:28:40 +03004151struct mlx5_ifc_query_flow_table_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004152 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004153 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004154
4155 u8 syndrome[0x20];
4156
Matan Barakb4ff3a32016-02-09 14:57:42 +02004157 u8 reserved_at_40[0x80];
Eli Cohenb7755162014-10-02 12:19:44 +03004158
Matan Barakb4ff3a32016-02-09 14:57:42 +02004159 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004160 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004161 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004162 u8 log_size[0x8];
4163
Matan Barakb4ff3a32016-02-09 14:57:42 +02004164 u8 reserved_at_e0[0x120];
Eli Cohenb7755162014-10-02 12:19:44 +03004165};
4166
Saeed Mahameede2816822015-05-28 22:28:40 +03004167struct mlx5_ifc_query_flow_table_in_bits {
4168 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004169 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004170
Matan Barakb4ff3a32016-02-09 14:57:42 +02004171 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004172 u8 op_mod[0x10];
4173
Matan Barakb4ff3a32016-02-09 14:57:42 +02004174 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004175
4176 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004177 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004178
Matan Barakb4ff3a32016-02-09 14:57:42 +02004179 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004180 u8 table_id[0x18];
4181
Matan Barakb4ff3a32016-02-09 14:57:42 +02004182 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03004183};
4184
4185struct mlx5_ifc_query_fte_out_bits {
4186 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004187 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004188
4189 u8 syndrome[0x20];
4190
Matan Barakb4ff3a32016-02-09 14:57:42 +02004191 u8 reserved_at_40[0x1c0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004192
4193 struct mlx5_ifc_flow_context_bits flow_context;
4194};
4195
4196struct mlx5_ifc_query_fte_in_bits {
4197 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004198 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004199
Matan Barakb4ff3a32016-02-09 14:57:42 +02004200 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004201 u8 op_mod[0x10];
4202
Matan Barakb4ff3a32016-02-09 14:57:42 +02004203 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004204
4205 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004206 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004207
Matan Barakb4ff3a32016-02-09 14:57:42 +02004208 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004209 u8 table_id[0x18];
4210
Matan Barakb4ff3a32016-02-09 14:57:42 +02004211 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004212
4213 u8 flow_index[0x20];
4214
Matan Barakb4ff3a32016-02-09 14:57:42 +02004215 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004216};
4217
4218enum {
4219 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
4220 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
4221 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
4222};
4223
4224struct mlx5_ifc_query_flow_group_out_bits {
4225 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004226 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004227
4228 u8 syndrome[0x20];
4229
Matan Barakb4ff3a32016-02-09 14:57:42 +02004230 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004231
4232 u8 start_flow_index[0x20];
4233
Matan Barakb4ff3a32016-02-09 14:57:42 +02004234 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004235
4236 u8 end_flow_index[0x20];
4237
Matan Barakb4ff3a32016-02-09 14:57:42 +02004238 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03004239
Matan Barakb4ff3a32016-02-09 14:57:42 +02004240 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004241 u8 match_criteria_enable[0x8];
4242
4243 struct mlx5_ifc_fte_match_param_bits match_criteria;
4244
Matan Barakb4ff3a32016-02-09 14:57:42 +02004245 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03004246};
4247
4248struct mlx5_ifc_query_flow_group_in_bits {
4249 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004250 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004251
Matan Barakb4ff3a32016-02-09 14:57:42 +02004252 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004253 u8 op_mod[0x10];
4254
Matan Barakb4ff3a32016-02-09 14:57:42 +02004255 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004256
4257 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004258 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004259
Matan Barakb4ff3a32016-02-09 14:57:42 +02004260 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004261 u8 table_id[0x18];
4262
4263 u8 group_id[0x20];
4264
Matan Barakb4ff3a32016-02-09 14:57:42 +02004265 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03004266};
4267
Amir Vadai9dc0b282016-05-13 12:55:39 +00004268struct mlx5_ifc_query_flow_counter_out_bits {
4269 u8 status[0x8];
4270 u8 reserved_at_8[0x18];
4271
4272 u8 syndrome[0x20];
4273
4274 u8 reserved_at_40[0x40];
4275
4276 struct mlx5_ifc_traffic_counter_bits flow_statistics[0];
4277};
4278
4279struct mlx5_ifc_query_flow_counter_in_bits {
4280 u8 opcode[0x10];
4281 u8 reserved_at_10[0x10];
4282
4283 u8 reserved_at_20[0x10];
4284 u8 op_mod[0x10];
4285
4286 u8 reserved_at_40[0x80];
4287
4288 u8 clear[0x1];
4289 u8 reserved_at_c1[0xf];
4290 u8 num_of_counters[0x10];
4291
4292 u8 reserved_at_e0[0x10];
4293 u8 flow_counter_id[0x10];
4294};
4295
Saeed Mahameedd6666752015-12-01 18:03:22 +02004296struct mlx5_ifc_query_esw_vport_context_out_bits {
4297 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004298 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004299
4300 u8 syndrome[0x20];
4301
Matan Barakb4ff3a32016-02-09 14:57:42 +02004302 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004303
4304 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4305};
4306
4307struct mlx5_ifc_query_esw_vport_context_in_bits {
4308 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004309 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004310
Matan Barakb4ff3a32016-02-09 14:57:42 +02004311 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004312 u8 op_mod[0x10];
4313
4314 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004315 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004316 u8 vport_number[0x10];
4317
Matan Barakb4ff3a32016-02-09 14:57:42 +02004318 u8 reserved_at_60[0x20];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004319};
4320
4321struct mlx5_ifc_modify_esw_vport_context_out_bits {
4322 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004323 u8 reserved_at_8[0x18];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004324
4325 u8 syndrome[0x20];
4326
Matan Barakb4ff3a32016-02-09 14:57:42 +02004327 u8 reserved_at_40[0x40];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004328};
4329
4330struct mlx5_ifc_esw_vport_context_fields_select_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004331 u8 reserved_at_0[0x1c];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004332 u8 vport_cvlan_insert[0x1];
4333 u8 vport_svlan_insert[0x1];
4334 u8 vport_cvlan_strip[0x1];
4335 u8 vport_svlan_strip[0x1];
4336};
4337
4338struct mlx5_ifc_modify_esw_vport_context_in_bits {
4339 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004340 u8 reserved_at_10[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004341
Matan Barakb4ff3a32016-02-09 14:57:42 +02004342 u8 reserved_at_20[0x10];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004343 u8 op_mod[0x10];
4344
4345 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004346 u8 reserved_at_41[0xf];
Saeed Mahameedd6666752015-12-01 18:03:22 +02004347 u8 vport_number[0x10];
4348
4349 struct mlx5_ifc_esw_vport_context_fields_select_bits field_select;
4350
4351 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
4352};
4353
Saeed Mahameede2816822015-05-28 22:28:40 +03004354struct mlx5_ifc_query_eq_out_bits {
Eli Cohenb7755162014-10-02 12:19:44 +03004355 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004356 u8 reserved_at_8[0x18];
Eli Cohenb7755162014-10-02 12:19:44 +03004357
4358 u8 syndrome[0x20];
4359
Matan Barakb4ff3a32016-02-09 14:57:42 +02004360 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004361
4362 struct mlx5_ifc_eqc_bits eq_context_entry;
4363
Matan Barakb4ff3a32016-02-09 14:57:42 +02004364 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004365
4366 u8 event_bitmask[0x40];
4367
Matan Barakb4ff3a32016-02-09 14:57:42 +02004368 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03004369
4370 u8 pas[0][0x40];
4371};
4372
4373struct mlx5_ifc_query_eq_in_bits {
4374 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004375 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004376
Matan Barakb4ff3a32016-02-09 14:57:42 +02004377 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004378 u8 op_mod[0x10];
4379
Matan Barakb4ff3a32016-02-09 14:57:42 +02004380 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004381 u8 eq_number[0x8];
4382
Matan Barakb4ff3a32016-02-09 14:57:42 +02004383 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004384};
4385
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03004386struct mlx5_ifc_encap_header_in_bits {
4387 u8 reserved_at_0[0x5];
4388 u8 header_type[0x3];
4389 u8 reserved_at_8[0xe];
4390 u8 encap_header_size[0xa];
4391
4392 u8 reserved_at_20[0x10];
4393 u8 encap_header[2][0x8];
4394
4395 u8 more_encap_header[0][0x8];
4396};
4397
4398struct mlx5_ifc_query_encap_header_out_bits {
4399 u8 status[0x8];
4400 u8 reserved_at_8[0x18];
4401
4402 u8 syndrome[0x20];
4403
4404 u8 reserved_at_40[0xa0];
4405
4406 struct mlx5_ifc_encap_header_in_bits encap_header[0];
4407};
4408
4409struct mlx5_ifc_query_encap_header_in_bits {
4410 u8 opcode[0x10];
4411 u8 reserved_at_10[0x10];
4412
4413 u8 reserved_at_20[0x10];
4414 u8 op_mod[0x10];
4415
4416 u8 encap_id[0x20];
4417
4418 u8 reserved_at_60[0xa0];
4419};
4420
4421struct mlx5_ifc_alloc_encap_header_out_bits {
4422 u8 status[0x8];
4423 u8 reserved_at_8[0x18];
4424
4425 u8 syndrome[0x20];
4426
4427 u8 encap_id[0x20];
4428
4429 u8 reserved_at_60[0x20];
4430};
4431
4432struct mlx5_ifc_alloc_encap_header_in_bits {
4433 u8 opcode[0x10];
4434 u8 reserved_at_10[0x10];
4435
4436 u8 reserved_at_20[0x10];
4437 u8 op_mod[0x10];
4438
4439 u8 reserved_at_40[0xa0];
4440
4441 struct mlx5_ifc_encap_header_in_bits encap_header;
4442};
4443
4444struct mlx5_ifc_dealloc_encap_header_out_bits {
4445 u8 status[0x8];
4446 u8 reserved_at_8[0x18];
4447
4448 u8 syndrome[0x20];
4449
4450 u8 reserved_at_40[0x40];
4451};
4452
4453struct mlx5_ifc_dealloc_encap_header_in_bits {
4454 u8 opcode[0x10];
4455 u8 reserved_at_10[0x10];
4456
4457 u8 reserved_20[0x10];
4458 u8 op_mod[0x10];
4459
4460 u8 encap_id[0x20];
4461
4462 u8 reserved_60[0x20];
4463};
4464
Saeed Mahameede2816822015-05-28 22:28:40 +03004465struct mlx5_ifc_query_dct_out_bits {
4466 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004467 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004468
4469 u8 syndrome[0x20];
4470
Matan Barakb4ff3a32016-02-09 14:57:42 +02004471 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004472
4473 struct mlx5_ifc_dctc_bits dct_context_entry;
4474
Matan Barakb4ff3a32016-02-09 14:57:42 +02004475 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03004476};
4477
4478struct mlx5_ifc_query_dct_in_bits {
4479 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004480 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004481
Matan Barakb4ff3a32016-02-09 14:57:42 +02004482 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004483 u8 op_mod[0x10];
4484
Matan Barakb4ff3a32016-02-09 14:57:42 +02004485 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004486 u8 dctn[0x18];
4487
Matan Barakb4ff3a32016-02-09 14:57:42 +02004488 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004489};
4490
4491struct mlx5_ifc_query_cq_out_bits {
4492 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004493 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004494
4495 u8 syndrome[0x20];
4496
Matan Barakb4ff3a32016-02-09 14:57:42 +02004497 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004498
4499 struct mlx5_ifc_cqc_bits cq_context;
4500
Matan Barakb4ff3a32016-02-09 14:57:42 +02004501 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03004502
4503 u8 pas[0][0x40];
4504};
4505
4506struct mlx5_ifc_query_cq_in_bits {
4507 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004508 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004509
Matan Barakb4ff3a32016-02-09 14:57:42 +02004510 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004511 u8 op_mod[0x10];
4512
Matan Barakb4ff3a32016-02-09 14:57:42 +02004513 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004514 u8 cqn[0x18];
4515
Matan Barakb4ff3a32016-02-09 14:57:42 +02004516 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004517};
4518
4519struct mlx5_ifc_query_cong_status_out_bits {
4520 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004521 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004522
4523 u8 syndrome[0x20];
4524
Matan Barakb4ff3a32016-02-09 14:57:42 +02004525 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004526
4527 u8 enable[0x1];
4528 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004529 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03004530};
4531
4532struct mlx5_ifc_query_cong_status_in_bits {
4533 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004534 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004535
Matan Barakb4ff3a32016-02-09 14:57:42 +02004536 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004537 u8 op_mod[0x10];
4538
Matan Barakb4ff3a32016-02-09 14:57:42 +02004539 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004540 u8 priority[0x4];
4541 u8 cong_protocol[0x4];
4542
Matan Barakb4ff3a32016-02-09 14:57:42 +02004543 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004544};
4545
4546struct mlx5_ifc_query_cong_statistics_out_bits {
4547 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004548 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004549
4550 u8 syndrome[0x20];
4551
Matan Barakb4ff3a32016-02-09 14:57:42 +02004552 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004553
4554 u8 cur_flows[0x20];
4555
4556 u8 sum_flows[0x20];
4557
4558 u8 cnp_ignored_high[0x20];
4559
4560 u8 cnp_ignored_low[0x20];
4561
4562 u8 cnp_handled_high[0x20];
4563
4564 u8 cnp_handled_low[0x20];
4565
Matan Barakb4ff3a32016-02-09 14:57:42 +02004566 u8 reserved_at_140[0x100];
Saeed Mahameede2816822015-05-28 22:28:40 +03004567
4568 u8 time_stamp_high[0x20];
4569
4570 u8 time_stamp_low[0x20];
4571
4572 u8 accumulators_period[0x20];
4573
4574 u8 ecn_marked_roce_packets_high[0x20];
4575
4576 u8 ecn_marked_roce_packets_low[0x20];
4577
4578 u8 cnps_sent_high[0x20];
4579
4580 u8 cnps_sent_low[0x20];
4581
Matan Barakb4ff3a32016-02-09 14:57:42 +02004582 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03004583};
4584
4585struct mlx5_ifc_query_cong_statistics_in_bits {
4586 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004587 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004588
Matan Barakb4ff3a32016-02-09 14:57:42 +02004589 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004590 u8 op_mod[0x10];
4591
4592 u8 clear[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004593 u8 reserved_at_41[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03004594
Matan Barakb4ff3a32016-02-09 14:57:42 +02004595 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004596};
4597
4598struct mlx5_ifc_query_cong_params_out_bits {
4599 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004600 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004601
4602 u8 syndrome[0x20];
4603
Matan Barakb4ff3a32016-02-09 14:57:42 +02004604 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004605
4606 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
4607};
4608
4609struct mlx5_ifc_query_cong_params_in_bits {
4610 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004611 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004612
Matan Barakb4ff3a32016-02-09 14:57:42 +02004613 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004614 u8 op_mod[0x10];
4615
Matan Barakb4ff3a32016-02-09 14:57:42 +02004616 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03004617 u8 cong_protocol[0x4];
4618
Matan Barakb4ff3a32016-02-09 14:57:42 +02004619 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004620};
4621
4622struct mlx5_ifc_query_adapter_out_bits {
4623 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004624 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004625
4626 u8 syndrome[0x20];
4627
Matan Barakb4ff3a32016-02-09 14:57:42 +02004628 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004629
4630 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
4631};
4632
4633struct mlx5_ifc_query_adapter_in_bits {
4634 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004635 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004636
Matan Barakb4ff3a32016-02-09 14:57:42 +02004637 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004638 u8 op_mod[0x10];
4639
Matan Barakb4ff3a32016-02-09 14:57:42 +02004640 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004641};
4642
4643struct mlx5_ifc_qp_2rst_out_bits {
4644 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004645 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004646
4647 u8 syndrome[0x20];
4648
Matan Barakb4ff3a32016-02-09 14:57:42 +02004649 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004650};
4651
4652struct mlx5_ifc_qp_2rst_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
Matan Barakb4ff3a32016-02-09 14:57:42 +02004659 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004660 u8 qpn[0x18];
4661
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_qp_2err_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
4674struct mlx5_ifc_qp_2err_in_bits {
4675 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004676 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004677
Matan Barakb4ff3a32016-02-09 14:57:42 +02004678 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004679 u8 op_mod[0x10];
4680
Matan Barakb4ff3a32016-02-09 14:57:42 +02004681 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004682 u8 qpn[0x18];
4683
Matan Barakb4ff3a32016-02-09 14:57:42 +02004684 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004685};
4686
4687struct mlx5_ifc_page_fault_resume_out_bits {
4688 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004689 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004690
4691 u8 syndrome[0x20];
4692
Matan Barakb4ff3a32016-02-09 14:57:42 +02004693 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004694};
4695
4696struct mlx5_ifc_page_fault_resume_in_bits {
4697 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004698 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004699
Matan Barakb4ff3a32016-02-09 14:57:42 +02004700 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004701 u8 op_mod[0x10];
4702
4703 u8 error[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004704 u8 reserved_at_41[0x4];
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02004705 u8 page_fault_type[0x3];
4706 u8 wq_number[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004707
Artemy Kovalyov223cdc72017-01-02 11:37:45 +02004708 u8 reserved_at_60[0x8];
4709 u8 token[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004710};
4711
4712struct mlx5_ifc_nop_out_bits {
4713 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004714 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004715
4716 u8 syndrome[0x20];
4717
Matan Barakb4ff3a32016-02-09 14:57:42 +02004718 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004719};
4720
4721struct mlx5_ifc_nop_in_bits {
4722 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004723 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004724
Matan Barakb4ff3a32016-02-09 14:57:42 +02004725 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004726 u8 op_mod[0x10];
4727
Matan Barakb4ff3a32016-02-09 14:57:42 +02004728 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004729};
4730
4731struct mlx5_ifc_modify_vport_state_out_bits {
4732 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004733 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004734
4735 u8 syndrome[0x20];
4736
Matan Barakb4ff3a32016-02-09 14:57:42 +02004737 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004738};
4739
4740struct mlx5_ifc_modify_vport_state_in_bits {
4741 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004742 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004743
Matan Barakb4ff3a32016-02-09 14:57:42 +02004744 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004745 u8 op_mod[0x10];
4746
4747 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004748 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03004749 u8 vport_number[0x10];
4750
Matan Barakb4ff3a32016-02-09 14:57:42 +02004751 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004752 u8 admin_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004753 u8 reserved_at_7c[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004754};
4755
4756struct mlx5_ifc_modify_tis_out_bits {
4757 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004758 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004759
4760 u8 syndrome[0x20];
4761
Matan Barakb4ff3a32016-02-09 14:57:42 +02004762 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004763};
4764
majd@mellanox.com75850d02016-01-14 19:13:06 +02004765struct mlx5_ifc_modify_tis_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004766 u8 reserved_at_0[0x20];
majd@mellanox.com75850d02016-01-14 19:13:06 +02004767
Aviv Heller84df61e2016-05-10 13:47:50 +03004768 u8 reserved_at_20[0x1d];
4769 u8 lag_tx_port_affinity[0x1];
4770 u8 strict_lag_tx_port_affinity[0x1];
majd@mellanox.com75850d02016-01-14 19:13:06 +02004771 u8 prio[0x1];
4772};
4773
Saeed Mahameede2816822015-05-28 22:28:40 +03004774struct mlx5_ifc_modify_tis_in_bits {
4775 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004776 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004777
Matan Barakb4ff3a32016-02-09 14:57:42 +02004778 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004779 u8 op_mod[0x10];
4780
Matan Barakb4ff3a32016-02-09 14:57:42 +02004781 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004782 u8 tisn[0x18];
4783
Matan Barakb4ff3a32016-02-09 14:57:42 +02004784 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004785
majd@mellanox.com75850d02016-01-14 19:13:06 +02004786 struct mlx5_ifc_modify_tis_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004787
Matan Barakb4ff3a32016-02-09 14:57:42 +02004788 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004789
4790 struct mlx5_ifc_tisc_bits ctx;
4791};
4792
Achiad Shochatd9eea402015-08-04 14:05:42 +03004793struct mlx5_ifc_modify_tir_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004794 u8 reserved_at_0[0x20];
Achiad Shochatd9eea402015-08-04 14:05:42 +03004795
Matan Barakb4ff3a32016-02-09 14:57:42 +02004796 u8 reserved_at_20[0x1b];
Tariq Toukan66189962015-11-12 19:35:26 +02004797 u8 self_lb_en[0x1];
Tariq Toukanbdfc0282016-02-29 21:17:12 +02004798 u8 reserved_at_3c[0x1];
4799 u8 hash[0x1];
4800 u8 reserved_at_3e[0x1];
Achiad Shochatd9eea402015-08-04 14:05:42 +03004801 u8 lro[0x1];
4802};
4803
Saeed Mahameede2816822015-05-28 22:28:40 +03004804struct mlx5_ifc_modify_tir_out_bits {
4805 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004806 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004807
4808 u8 syndrome[0x20];
4809
Matan Barakb4ff3a32016-02-09 14:57:42 +02004810 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004811};
4812
4813struct mlx5_ifc_modify_tir_in_bits {
4814 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004815 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004816
Matan Barakb4ff3a32016-02-09 14:57:42 +02004817 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004818 u8 op_mod[0x10];
4819
Matan Barakb4ff3a32016-02-09 14:57:42 +02004820 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004821 u8 tirn[0x18];
4822
Matan Barakb4ff3a32016-02-09 14:57:42 +02004823 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004824
Achiad Shochatd9eea402015-08-04 14:05:42 +03004825 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004826
Matan Barakb4ff3a32016-02-09 14:57:42 +02004827 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004828
4829 struct mlx5_ifc_tirc_bits ctx;
4830};
4831
4832struct mlx5_ifc_modify_sq_out_bits {
4833 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004834 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004835
4836 u8 syndrome[0x20];
4837
Matan Barakb4ff3a32016-02-09 14:57:42 +02004838 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004839};
4840
4841struct mlx5_ifc_modify_sq_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
4848 u8 sq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004849 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004850 u8 sqn[0x18];
4851
Matan Barakb4ff3a32016-02-09 14:57:42 +02004852 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004853
4854 u8 modify_bitmask[0x40];
4855
Matan Barakb4ff3a32016-02-09 14:57:42 +02004856 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004857
4858 struct mlx5_ifc_sqc_bits ctx;
4859};
4860
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03004861struct mlx5_ifc_modify_scheduling_element_out_bits {
4862 u8 status[0x8];
4863 u8 reserved_at_8[0x18];
4864
4865 u8 syndrome[0x20];
4866
4867 u8 reserved_at_40[0x1c0];
4868};
4869
4870enum {
4871 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE = 0x1,
4872 MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW = 0x2,
4873};
4874
4875struct mlx5_ifc_modify_scheduling_element_in_bits {
4876 u8 opcode[0x10];
4877 u8 reserved_at_10[0x10];
4878
4879 u8 reserved_at_20[0x10];
4880 u8 op_mod[0x10];
4881
4882 u8 scheduling_hierarchy[0x8];
4883 u8 reserved_at_48[0x18];
4884
4885 u8 scheduling_element_id[0x20];
4886
4887 u8 reserved_at_80[0x20];
4888
4889 u8 modify_bitmask[0x20];
4890
4891 u8 reserved_at_c0[0x40];
4892
4893 struct mlx5_ifc_scheduling_context_bits scheduling_context;
4894
4895 u8 reserved_at_300[0x100];
4896};
4897
Saeed Mahameede2816822015-05-28 22:28:40 +03004898struct mlx5_ifc_modify_rqt_out_bits {
4899 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004900 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004901
4902 u8 syndrome[0x20];
4903
Matan Barakb4ff3a32016-02-09 14:57:42 +02004904 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004905};
4906
Achiad Shochat5c503682015-08-04 14:05:43 +03004907struct mlx5_ifc_rqt_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004908 u8 reserved_at_0[0x20];
Achiad Shochat5c503682015-08-04 14:05:43 +03004909
Matan Barakb4ff3a32016-02-09 14:57:42 +02004910 u8 reserved_at_20[0x1f];
Achiad Shochat5c503682015-08-04 14:05:43 +03004911 u8 rqn_list[0x1];
4912};
4913
Saeed Mahameede2816822015-05-28 22:28:40 +03004914struct mlx5_ifc_modify_rqt_in_bits {
4915 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004916 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004917
Matan Barakb4ff3a32016-02-09 14:57:42 +02004918 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004919 u8 op_mod[0x10];
4920
Matan Barakb4ff3a32016-02-09 14:57:42 +02004921 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03004922 u8 rqtn[0x18];
4923
Matan Barakb4ff3a32016-02-09 14:57:42 +02004924 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004925
Achiad Shochat5c503682015-08-04 14:05:43 +03004926 struct mlx5_ifc_rqt_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004927
Matan Barakb4ff3a32016-02-09 14:57:42 +02004928 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004929
4930 struct mlx5_ifc_rqtc_bits ctx;
4931};
4932
4933struct mlx5_ifc_modify_rq_out_bits {
4934 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004935 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004936
4937 u8 syndrome[0x20];
4938
Matan Barakb4ff3a32016-02-09 14:57:42 +02004939 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004940};
4941
Alex Vesker83b502a2016-08-04 17:32:02 +03004942enum {
4943 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_VSD = 1ULL << 1,
4944 MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_MODIFY_RQ_COUNTER_SET_ID = 1ULL << 3,
4945};
4946
Saeed Mahameede2816822015-05-28 22:28:40 +03004947struct mlx5_ifc_modify_rq_in_bits {
4948 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004949 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004950
Matan Barakb4ff3a32016-02-09 14:57:42 +02004951 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004952 u8 op_mod[0x10];
4953
4954 u8 rq_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004955 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004956 u8 rqn[0x18];
4957
Matan Barakb4ff3a32016-02-09 14:57:42 +02004958 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004959
4960 u8 modify_bitmask[0x40];
4961
Matan Barakb4ff3a32016-02-09 14:57:42 +02004962 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004963
4964 struct mlx5_ifc_rqc_bits ctx;
4965};
4966
4967struct mlx5_ifc_modify_rmp_out_bits {
4968 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004969 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03004970
4971 u8 syndrome[0x20];
4972
Matan Barakb4ff3a32016-02-09 14:57:42 +02004973 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004974};
4975
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03004976struct mlx5_ifc_rmp_bitmask_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02004977 u8 reserved_at_0[0x20];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03004978
Matan Barakb4ff3a32016-02-09 14:57:42 +02004979 u8 reserved_at_20[0x1f];
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03004980 u8 lwm[0x1];
4981};
4982
Saeed Mahameede2816822015-05-28 22:28:40 +03004983struct mlx5_ifc_modify_rmp_in_bits {
4984 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004985 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004986
Matan Barakb4ff3a32016-02-09 14:57:42 +02004987 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03004988 u8 op_mod[0x10];
4989
4990 u8 rmp_state[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02004991 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03004992 u8 rmpn[0x18];
4993
Matan Barakb4ff3a32016-02-09 14:57:42 +02004994 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03004995
Haggai Abramonvsky01949d02015-06-04 19:30:38 +03004996 struct mlx5_ifc_rmp_bitmask_bits bitmask;
Saeed Mahameede2816822015-05-28 22:28:40 +03004997
Matan Barakb4ff3a32016-02-09 14:57:42 +02004998 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03004999
5000 struct mlx5_ifc_rmpc_bits ctx;
5001};
5002
5003struct mlx5_ifc_modify_nic_vport_context_out_bits {
5004 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005005 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005006
5007 u8 syndrome[0x20];
5008
Matan Barakb4ff3a32016-02-09 14:57:42 +02005009 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005010};
5011
5012struct mlx5_ifc_modify_nic_vport_field_select_bits {
Noa Osherovich23898c72016-06-10 00:07:37 +03005013 u8 reserved_at_0[0x16];
5014 u8 node_guid[0x1];
5015 u8 port_guid[0x1];
Hadar Hen Zion9def7122016-08-03 17:27:30 +03005016 u8 min_inline[0x1];
Saeed Mahameedd82b7312015-12-01 18:03:14 +02005017 u8 mtu[0x1];
5018 u8 change_event[0x1];
5019 u8 promisc[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005020 u8 permanent_address[0x1];
5021 u8 addresses_list[0x1];
5022 u8 roce_en[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005023 u8 reserved_at_1f[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03005024};
5025
5026struct mlx5_ifc_modify_nic_vport_context_in_bits {
5027 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005028 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005029
Matan Barakb4ff3a32016-02-09 14:57:42 +02005030 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005031 u8 op_mod[0x10];
5032
5033 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005034 u8 reserved_at_41[0xf];
Saeed Mahameede2816822015-05-28 22:28:40 +03005035 u8 vport_number[0x10];
5036
5037 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
5038
Matan Barakb4ff3a32016-02-09 14:57:42 +02005039 u8 reserved_at_80[0x780];
Saeed Mahameede2816822015-05-28 22:28:40 +03005040
5041 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
5042};
5043
5044struct mlx5_ifc_modify_hca_vport_context_out_bits {
5045 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005046 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005047
5048 u8 syndrome[0x20];
5049
Matan Barakb4ff3a32016-02-09 14:57:42 +02005050 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005051};
5052
5053struct mlx5_ifc_modify_hca_vport_context_in_bits {
5054 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005055 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005056
Matan Barakb4ff3a32016-02-09 14:57:42 +02005057 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005058 u8 op_mod[0x10];
5059
5060 u8 other_vport[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005061 u8 reserved_at_41[0xb];
Majd Dibbiny707c4602015-06-04 19:30:41 +03005062 u8 port_num[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03005063 u8 vport_number[0x10];
5064
Matan Barakb4ff3a32016-02-09 14:57:42 +02005065 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005066
5067 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
5068};
5069
5070struct mlx5_ifc_modify_cq_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
5079enum {
5080 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
5081 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
5082};
5083
5084struct mlx5_ifc_modify_cq_in_bits {
5085 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005086 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005087
Matan Barakb4ff3a32016-02-09 14:57:42 +02005088 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005089 u8 op_mod[0x10];
5090
Matan Barakb4ff3a32016-02-09 14:57:42 +02005091 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005092 u8 cqn[0x18];
5093
5094 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
5095
5096 struct mlx5_ifc_cqc_bits cq_context;
5097
Matan Barakb4ff3a32016-02-09 14:57:42 +02005098 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03005099
5100 u8 pas[0][0x40];
5101};
5102
5103struct mlx5_ifc_modify_cong_status_out_bits {
5104 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005105 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005106
5107 u8 syndrome[0x20];
5108
Matan Barakb4ff3a32016-02-09 14:57:42 +02005109 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005110};
5111
5112struct mlx5_ifc_modify_cong_status_in_bits {
5113 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005114 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005115
Matan Barakb4ff3a32016-02-09 14:57:42 +02005116 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005117 u8 op_mod[0x10];
5118
Matan Barakb4ff3a32016-02-09 14:57:42 +02005119 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005120 u8 priority[0x4];
5121 u8 cong_protocol[0x4];
5122
5123 u8 enable[0x1];
5124 u8 tag_enable[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005125 u8 reserved_at_62[0x1e];
Saeed Mahameede2816822015-05-28 22:28:40 +03005126};
5127
5128struct mlx5_ifc_modify_cong_params_out_bits {
5129 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005130 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005131
5132 u8 syndrome[0x20];
5133
Matan Barakb4ff3a32016-02-09 14:57:42 +02005134 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005135};
5136
5137struct mlx5_ifc_modify_cong_params_in_bits {
5138 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005139 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005140
Matan Barakb4ff3a32016-02-09 14:57:42 +02005141 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005142 u8 op_mod[0x10];
5143
Matan Barakb4ff3a32016-02-09 14:57:42 +02005144 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03005145 u8 cong_protocol[0x4];
5146
5147 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
5148
Matan Barakb4ff3a32016-02-09 14:57:42 +02005149 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005150
5151 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
5152};
5153
5154struct mlx5_ifc_manage_pages_out_bits {
5155 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005156 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005157
5158 u8 syndrome[0x20];
5159
5160 u8 output_num_entries[0x20];
5161
Matan Barakb4ff3a32016-02-09 14:57:42 +02005162 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005163
5164 u8 pas[0][0x40];
5165};
5166
5167enum {
5168 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
5169 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
5170 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
5171};
5172
5173struct mlx5_ifc_manage_pages_in_bits {
5174 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005175 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005176
Matan Barakb4ff3a32016-02-09 14:57:42 +02005177 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005178 u8 op_mod[0x10];
5179
Matan Barakb4ff3a32016-02-09 14:57:42 +02005180 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005181 u8 function_id[0x10];
5182
5183 u8 input_num_entries[0x20];
5184
5185 u8 pas[0][0x40];
5186};
5187
5188struct mlx5_ifc_mad_ifc_out_bits {
5189 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005190 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005191
5192 u8 syndrome[0x20];
5193
Matan Barakb4ff3a32016-02-09 14:57:42 +02005194 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005195
5196 u8 response_mad_packet[256][0x8];
5197};
5198
5199struct mlx5_ifc_mad_ifc_in_bits {
5200 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005201 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005202
Matan Barakb4ff3a32016-02-09 14:57:42 +02005203 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005204 u8 op_mod[0x10];
5205
5206 u8 remote_lid[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005207 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005208 u8 port[0x8];
5209
Matan Barakb4ff3a32016-02-09 14:57:42 +02005210 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005211
5212 u8 mad[256][0x8];
5213};
5214
5215struct mlx5_ifc_init_hca_out_bits {
5216 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005217 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005218
5219 u8 syndrome[0x20];
5220
Matan Barakb4ff3a32016-02-09 14:57:42 +02005221 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005222};
5223
5224struct mlx5_ifc_init_hca_in_bits {
5225 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005226 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005227
Matan Barakb4ff3a32016-02-09 14:57:42 +02005228 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005229 u8 op_mod[0x10];
5230
Matan Barakb4ff3a32016-02-09 14:57:42 +02005231 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005232};
5233
5234struct mlx5_ifc_init2rtr_qp_out_bits {
5235 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005236 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005237
5238 u8 syndrome[0x20];
5239
Matan Barakb4ff3a32016-02-09 14:57:42 +02005240 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005241};
5242
5243struct mlx5_ifc_init2rtr_qp_in_bits {
5244 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005245 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005246
Matan Barakb4ff3a32016-02-09 14:57:42 +02005247 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005248 u8 op_mod[0x10];
5249
Matan Barakb4ff3a32016-02-09 14:57:42 +02005250 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005251 u8 qpn[0x18];
5252
Matan Barakb4ff3a32016-02-09 14:57:42 +02005253 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005254
5255 u8 opt_param_mask[0x20];
5256
Matan Barakb4ff3a32016-02-09 14:57:42 +02005257 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005258
5259 struct mlx5_ifc_qpc_bits qpc;
5260
Matan Barakb4ff3a32016-02-09 14:57:42 +02005261 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005262};
5263
5264struct mlx5_ifc_init2init_qp_out_bits {
5265 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005266 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005267
5268 u8 syndrome[0x20];
5269
Matan Barakb4ff3a32016-02-09 14:57:42 +02005270 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005271};
5272
5273struct mlx5_ifc_init2init_qp_in_bits {
5274 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005275 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005276
Matan Barakb4ff3a32016-02-09 14:57:42 +02005277 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005278 u8 op_mod[0x10];
5279
Matan Barakb4ff3a32016-02-09 14:57:42 +02005280 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005281 u8 qpn[0x18];
5282
Matan Barakb4ff3a32016-02-09 14:57:42 +02005283 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005284
5285 u8 opt_param_mask[0x20];
5286
Matan Barakb4ff3a32016-02-09 14:57:42 +02005287 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005288
5289 struct mlx5_ifc_qpc_bits qpc;
5290
Matan Barakb4ff3a32016-02-09 14:57:42 +02005291 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03005292};
5293
5294struct mlx5_ifc_get_dropped_packet_log_out_bits {
5295 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005296 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005297
5298 u8 syndrome[0x20];
5299
Matan Barakb4ff3a32016-02-09 14:57:42 +02005300 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005301
5302 u8 packet_headers_log[128][0x8];
5303
5304 u8 packet_syndrome[64][0x8];
5305};
5306
5307struct mlx5_ifc_get_dropped_packet_log_in_bits {
5308 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005309 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005310
Matan Barakb4ff3a32016-02-09 14:57:42 +02005311 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005312 u8 op_mod[0x10];
5313
Matan Barakb4ff3a32016-02-09 14:57:42 +02005314 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005315};
5316
5317struct mlx5_ifc_gen_eqe_in_bits {
5318 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005319 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005320
Matan Barakb4ff3a32016-02-09 14:57:42 +02005321 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005322 u8 op_mod[0x10];
5323
Matan Barakb4ff3a32016-02-09 14:57:42 +02005324 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005325 u8 eq_number[0x8];
5326
Matan Barakb4ff3a32016-02-09 14:57:42 +02005327 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005328
5329 u8 eqe[64][0x8];
5330};
5331
5332struct mlx5_ifc_gen_eq_out_bits {
5333 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005334 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005335
5336 u8 syndrome[0x20];
5337
Matan Barakb4ff3a32016-02-09 14:57:42 +02005338 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005339};
5340
5341struct mlx5_ifc_enable_hca_out_bits {
5342 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005343 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005344
5345 u8 syndrome[0x20];
5346
Matan Barakb4ff3a32016-02-09 14:57:42 +02005347 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005348};
5349
5350struct mlx5_ifc_enable_hca_in_bits {
5351 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005352 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005353
Matan Barakb4ff3a32016-02-09 14:57:42 +02005354 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005355 u8 op_mod[0x10];
5356
Matan Barakb4ff3a32016-02-09 14:57:42 +02005357 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005358 u8 function_id[0x10];
5359
Matan Barakb4ff3a32016-02-09 14:57:42 +02005360 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005361};
5362
5363struct mlx5_ifc_drain_dct_out_bits {
5364 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005365 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005366
5367 u8 syndrome[0x20];
5368
Matan Barakb4ff3a32016-02-09 14:57:42 +02005369 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005370};
5371
5372struct mlx5_ifc_drain_dct_in_bits {
5373 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005374 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005375
Matan Barakb4ff3a32016-02-09 14:57:42 +02005376 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005377 u8 op_mod[0x10];
5378
Matan Barakb4ff3a32016-02-09 14:57:42 +02005379 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005380 u8 dctn[0x18];
5381
Matan Barakb4ff3a32016-02-09 14:57:42 +02005382 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005383};
5384
5385struct mlx5_ifc_disable_hca_out_bits {
5386 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005387 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005388
5389 u8 syndrome[0x20];
5390
Matan Barakb4ff3a32016-02-09 14:57:42 +02005391 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005392};
5393
5394struct mlx5_ifc_disable_hca_in_bits {
5395 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005396 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005397
Matan Barakb4ff3a32016-02-09 14:57:42 +02005398 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005399 u8 op_mod[0x10];
5400
Matan Barakb4ff3a32016-02-09 14:57:42 +02005401 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005402 u8 function_id[0x10];
5403
Matan Barakb4ff3a32016-02-09 14:57:42 +02005404 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005405};
5406
5407struct mlx5_ifc_detach_from_mcg_out_bits {
5408 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005409 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005410
5411 u8 syndrome[0x20];
5412
Matan Barakb4ff3a32016-02-09 14:57:42 +02005413 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005414};
5415
5416struct mlx5_ifc_detach_from_mcg_in_bits {
5417 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005418 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005419
Matan Barakb4ff3a32016-02-09 14:57:42 +02005420 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005421 u8 op_mod[0x10];
5422
Matan Barakb4ff3a32016-02-09 14:57:42 +02005423 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005424 u8 qpn[0x18];
5425
Matan Barakb4ff3a32016-02-09 14:57:42 +02005426 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005427
5428 u8 multicast_gid[16][0x8];
5429};
5430
Saeed Mahameed74862162016-06-09 15:11:34 +03005431struct mlx5_ifc_destroy_xrq_out_bits {
5432 u8 status[0x8];
5433 u8 reserved_at_8[0x18];
5434
5435 u8 syndrome[0x20];
5436
5437 u8 reserved_at_40[0x40];
5438};
5439
5440struct mlx5_ifc_destroy_xrq_in_bits {
5441 u8 opcode[0x10];
5442 u8 reserved_at_10[0x10];
5443
5444 u8 reserved_at_20[0x10];
5445 u8 op_mod[0x10];
5446
5447 u8 reserved_at_40[0x8];
5448 u8 xrqn[0x18];
5449
5450 u8 reserved_at_60[0x20];
5451};
5452
Saeed Mahameede2816822015-05-28 22:28:40 +03005453struct mlx5_ifc_destroy_xrc_srq_out_bits {
5454 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005455 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005456
5457 u8 syndrome[0x20];
5458
Matan Barakb4ff3a32016-02-09 14:57:42 +02005459 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005460};
5461
5462struct mlx5_ifc_destroy_xrc_srq_in_bits {
5463 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005464 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005465
Matan Barakb4ff3a32016-02-09 14:57:42 +02005466 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005467 u8 op_mod[0x10];
5468
Matan Barakb4ff3a32016-02-09 14:57:42 +02005469 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005470 u8 xrc_srqn[0x18];
5471
Matan Barakb4ff3a32016-02-09 14:57:42 +02005472 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005473};
5474
5475struct mlx5_ifc_destroy_tis_out_bits {
5476 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005477 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005478
5479 u8 syndrome[0x20];
5480
Matan Barakb4ff3a32016-02-09 14:57:42 +02005481 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005482};
5483
5484struct mlx5_ifc_destroy_tis_in_bits {
5485 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005486 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005487
Matan Barakb4ff3a32016-02-09 14:57:42 +02005488 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005489 u8 op_mod[0x10];
5490
Matan Barakb4ff3a32016-02-09 14:57:42 +02005491 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005492 u8 tisn[0x18];
5493
Matan Barakb4ff3a32016-02-09 14:57:42 +02005494 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005495};
5496
5497struct mlx5_ifc_destroy_tir_out_bits {
5498 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005499 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005500
5501 u8 syndrome[0x20];
5502
Matan Barakb4ff3a32016-02-09 14:57:42 +02005503 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005504};
5505
5506struct mlx5_ifc_destroy_tir_in_bits {
5507 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005508 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005509
Matan Barakb4ff3a32016-02-09 14:57:42 +02005510 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005511 u8 op_mod[0x10];
5512
Matan Barakb4ff3a32016-02-09 14:57:42 +02005513 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005514 u8 tirn[0x18];
5515
Matan Barakb4ff3a32016-02-09 14:57:42 +02005516 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005517};
5518
5519struct mlx5_ifc_destroy_srq_out_bits {
5520 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005521 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005522
5523 u8 syndrome[0x20];
5524
Matan Barakb4ff3a32016-02-09 14:57:42 +02005525 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005526};
5527
5528struct mlx5_ifc_destroy_srq_in_bits {
5529 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005530 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005531
Matan Barakb4ff3a32016-02-09 14:57:42 +02005532 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005533 u8 op_mod[0x10];
5534
Matan Barakb4ff3a32016-02-09 14:57:42 +02005535 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005536 u8 srqn[0x18];
5537
Matan Barakb4ff3a32016-02-09 14:57:42 +02005538 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005539};
5540
5541struct mlx5_ifc_destroy_sq_out_bits {
5542 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005543 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005544
5545 u8 syndrome[0x20];
5546
Matan Barakb4ff3a32016-02-09 14:57:42 +02005547 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005548};
5549
5550struct mlx5_ifc_destroy_sq_in_bits {
5551 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005552 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005553
Matan Barakb4ff3a32016-02-09 14:57:42 +02005554 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005555 u8 op_mod[0x10];
5556
Matan Barakb4ff3a32016-02-09 14:57:42 +02005557 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005558 u8 sqn[0x18];
5559
Matan Barakb4ff3a32016-02-09 14:57:42 +02005560 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005561};
5562
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03005563struct mlx5_ifc_destroy_scheduling_element_out_bits {
5564 u8 status[0x8];
5565 u8 reserved_at_8[0x18];
5566
5567 u8 syndrome[0x20];
5568
5569 u8 reserved_at_40[0x1c0];
5570};
5571
5572struct mlx5_ifc_destroy_scheduling_element_in_bits {
5573 u8 opcode[0x10];
5574 u8 reserved_at_10[0x10];
5575
5576 u8 reserved_at_20[0x10];
5577 u8 op_mod[0x10];
5578
5579 u8 scheduling_hierarchy[0x8];
5580 u8 reserved_at_48[0x18];
5581
5582 u8 scheduling_element_id[0x20];
5583
5584 u8 reserved_at_80[0x180];
5585};
5586
Saeed Mahameede2816822015-05-28 22:28:40 +03005587struct mlx5_ifc_destroy_rqt_out_bits {
5588 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005589 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005590
5591 u8 syndrome[0x20];
5592
Matan Barakb4ff3a32016-02-09 14:57:42 +02005593 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005594};
5595
5596struct mlx5_ifc_destroy_rqt_in_bits {
5597 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005598 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005599
Matan Barakb4ff3a32016-02-09 14:57:42 +02005600 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005601 u8 op_mod[0x10];
5602
Matan Barakb4ff3a32016-02-09 14:57:42 +02005603 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005604 u8 rqtn[0x18];
5605
Matan Barakb4ff3a32016-02-09 14:57:42 +02005606 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005607};
5608
5609struct mlx5_ifc_destroy_rq_out_bits {
5610 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005611 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005612
5613 u8 syndrome[0x20];
5614
Matan Barakb4ff3a32016-02-09 14:57:42 +02005615 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005616};
5617
5618struct mlx5_ifc_destroy_rq_in_bits {
5619 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005620 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005621
Matan Barakb4ff3a32016-02-09 14:57:42 +02005622 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005623 u8 op_mod[0x10];
5624
Matan Barakb4ff3a32016-02-09 14:57:42 +02005625 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005626 u8 rqn[0x18];
5627
Matan Barakb4ff3a32016-02-09 14:57:42 +02005628 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005629};
5630
5631struct mlx5_ifc_destroy_rmp_out_bits {
5632 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005633 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005634
5635 u8 syndrome[0x20];
5636
Matan Barakb4ff3a32016-02-09 14:57:42 +02005637 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005638};
5639
5640struct mlx5_ifc_destroy_rmp_in_bits {
5641 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005642 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005643
Matan Barakb4ff3a32016-02-09 14:57:42 +02005644 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005645 u8 op_mod[0x10];
5646
Matan Barakb4ff3a32016-02-09 14:57:42 +02005647 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005648 u8 rmpn[0x18];
5649
Matan Barakb4ff3a32016-02-09 14:57:42 +02005650 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005651};
5652
5653struct mlx5_ifc_destroy_qp_out_bits {
5654 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005655 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005656
5657 u8 syndrome[0x20];
5658
Matan Barakb4ff3a32016-02-09 14:57:42 +02005659 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005660};
5661
5662struct mlx5_ifc_destroy_qp_in_bits {
5663 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005664 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005665
Matan Barakb4ff3a32016-02-09 14:57:42 +02005666 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005667 u8 op_mod[0x10];
5668
Matan Barakb4ff3a32016-02-09 14:57:42 +02005669 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005670 u8 qpn[0x18];
5671
Matan Barakb4ff3a32016-02-09 14:57:42 +02005672 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005673};
5674
5675struct mlx5_ifc_destroy_psv_out_bits {
5676 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005677 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005678
5679 u8 syndrome[0x20];
5680
Matan Barakb4ff3a32016-02-09 14:57:42 +02005681 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005682};
5683
5684struct mlx5_ifc_destroy_psv_in_bits {
5685 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005686 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005687
Matan Barakb4ff3a32016-02-09 14:57:42 +02005688 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005689 u8 op_mod[0x10];
5690
Matan Barakb4ff3a32016-02-09 14:57:42 +02005691 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005692 u8 psvn[0x18];
5693
Matan Barakb4ff3a32016-02-09 14:57:42 +02005694 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005695};
5696
5697struct mlx5_ifc_destroy_mkey_out_bits {
5698 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005699 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005700
5701 u8 syndrome[0x20];
5702
Matan Barakb4ff3a32016-02-09 14:57:42 +02005703 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005704};
5705
5706struct mlx5_ifc_destroy_mkey_in_bits {
5707 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005708 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005709
Matan Barakb4ff3a32016-02-09 14:57:42 +02005710 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005711 u8 op_mod[0x10];
5712
Matan Barakb4ff3a32016-02-09 14:57:42 +02005713 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005714 u8 mkey_index[0x18];
5715
Matan Barakb4ff3a32016-02-09 14:57:42 +02005716 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005717};
5718
5719struct mlx5_ifc_destroy_flow_table_out_bits {
5720 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005721 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005722
5723 u8 syndrome[0x20];
5724
Matan Barakb4ff3a32016-02-09 14:57:42 +02005725 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005726};
5727
5728struct mlx5_ifc_destroy_flow_table_in_bits {
5729 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005730 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005731
Matan Barakb4ff3a32016-02-09 14:57:42 +02005732 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005733 u8 op_mod[0x10];
5734
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005735 u8 other_vport[0x1];
5736 u8 reserved_at_41[0xf];
5737 u8 vport_number[0x10];
5738
5739 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005740
5741 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005742 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005743
Matan Barakb4ff3a32016-02-09 14:57:42 +02005744 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005745 u8 table_id[0x18];
5746
Matan Barakb4ff3a32016-02-09 14:57:42 +02005747 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03005748};
5749
5750struct mlx5_ifc_destroy_flow_group_out_bits {
5751 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005752 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005753
5754 u8 syndrome[0x20];
5755
Matan Barakb4ff3a32016-02-09 14:57:42 +02005756 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005757};
5758
5759struct mlx5_ifc_destroy_flow_group_in_bits {
5760 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005761 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005762
Matan Barakb4ff3a32016-02-09 14:57:42 +02005763 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005764 u8 op_mod[0x10];
5765
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005766 u8 other_vport[0x1];
5767 u8 reserved_at_41[0xf];
5768 u8 vport_number[0x10];
5769
5770 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005771
5772 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005773 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005774
Matan Barakb4ff3a32016-02-09 14:57:42 +02005775 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005776 u8 table_id[0x18];
5777
5778 u8 group_id[0x20];
5779
Matan Barakb4ff3a32016-02-09 14:57:42 +02005780 u8 reserved_at_e0[0x120];
Saeed Mahameede2816822015-05-28 22:28:40 +03005781};
5782
5783struct mlx5_ifc_destroy_eq_out_bits {
5784 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005785 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005786
5787 u8 syndrome[0x20];
5788
Matan Barakb4ff3a32016-02-09 14:57:42 +02005789 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005790};
5791
5792struct mlx5_ifc_destroy_eq_in_bits {
5793 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005794 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005795
Matan Barakb4ff3a32016-02-09 14:57:42 +02005796 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005797 u8 op_mod[0x10];
5798
Matan Barakb4ff3a32016-02-09 14:57:42 +02005799 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005800 u8 eq_number[0x8];
5801
Matan Barakb4ff3a32016-02-09 14:57:42 +02005802 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005803};
5804
5805struct mlx5_ifc_destroy_dct_out_bits {
5806 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005807 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005808
5809 u8 syndrome[0x20];
5810
Matan Barakb4ff3a32016-02-09 14:57:42 +02005811 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005812};
5813
5814struct mlx5_ifc_destroy_dct_in_bits {
5815 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005816 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005817
Matan Barakb4ff3a32016-02-09 14:57:42 +02005818 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005819 u8 op_mod[0x10];
5820
Matan Barakb4ff3a32016-02-09 14:57:42 +02005821 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005822 u8 dctn[0x18];
5823
Matan Barakb4ff3a32016-02-09 14:57:42 +02005824 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005825};
5826
5827struct mlx5_ifc_destroy_cq_out_bits {
5828 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005829 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005830
5831 u8 syndrome[0x20];
5832
Matan Barakb4ff3a32016-02-09 14:57:42 +02005833 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005834};
5835
5836struct mlx5_ifc_destroy_cq_in_bits {
5837 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005838 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005839
Matan Barakb4ff3a32016-02-09 14:57:42 +02005840 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005841 u8 op_mod[0x10];
5842
Matan Barakb4ff3a32016-02-09 14:57:42 +02005843 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005844 u8 cqn[0x18];
5845
Matan Barakb4ff3a32016-02-09 14:57:42 +02005846 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005847};
5848
5849struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
5850 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005851 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005852
5853 u8 syndrome[0x20];
5854
Matan Barakb4ff3a32016-02-09 14:57:42 +02005855 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005856};
5857
5858struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
5859 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005860 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005861
Matan Barakb4ff3a32016-02-09 14:57:42 +02005862 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005863 u8 op_mod[0x10];
5864
Matan Barakb4ff3a32016-02-09 14:57:42 +02005865 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005866
Matan Barakb4ff3a32016-02-09 14:57:42 +02005867 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005868 u8 vxlan_udp_port[0x10];
5869};
5870
5871struct mlx5_ifc_delete_l2_table_entry_out_bits {
5872 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005873 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005874
5875 u8 syndrome[0x20];
5876
Matan Barakb4ff3a32016-02-09 14:57:42 +02005877 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005878};
5879
5880struct mlx5_ifc_delete_l2_table_entry_in_bits {
5881 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005882 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005883
Matan Barakb4ff3a32016-02-09 14:57:42 +02005884 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005885 u8 op_mod[0x10];
5886
Matan Barakb4ff3a32016-02-09 14:57:42 +02005887 u8 reserved_at_40[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03005888
Matan Barakb4ff3a32016-02-09 14:57:42 +02005889 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005890 u8 table_index[0x18];
5891
Matan Barakb4ff3a32016-02-09 14:57:42 +02005892 u8 reserved_at_c0[0x140];
Saeed Mahameede2816822015-05-28 22:28:40 +03005893};
5894
5895struct mlx5_ifc_delete_fte_out_bits {
5896 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005897 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005898
5899 u8 syndrome[0x20];
5900
Matan Barakb4ff3a32016-02-09 14:57:42 +02005901 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005902};
5903
5904struct mlx5_ifc_delete_fte_in_bits {
5905 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005906 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005907
Matan Barakb4ff3a32016-02-09 14:57:42 +02005908 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005909 u8 op_mod[0x10];
5910
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03005911 u8 other_vport[0x1];
5912 u8 reserved_at_41[0xf];
5913 u8 vport_number[0x10];
5914
5915 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005916
5917 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005918 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005919
Matan Barakb4ff3a32016-02-09 14:57:42 +02005920 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005921 u8 table_id[0x18];
5922
Matan Barakb4ff3a32016-02-09 14:57:42 +02005923 u8 reserved_at_c0[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005924
5925 u8 flow_index[0x20];
5926
Matan Barakb4ff3a32016-02-09 14:57:42 +02005927 u8 reserved_at_120[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03005928};
5929
5930struct mlx5_ifc_dealloc_xrcd_out_bits {
5931 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005932 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005933
5934 u8 syndrome[0x20];
5935
Matan Barakb4ff3a32016-02-09 14:57:42 +02005936 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005937};
5938
5939struct mlx5_ifc_dealloc_xrcd_in_bits {
5940 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005941 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005942
Matan Barakb4ff3a32016-02-09 14:57:42 +02005943 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005944 u8 op_mod[0x10];
5945
Matan Barakb4ff3a32016-02-09 14:57:42 +02005946 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005947 u8 xrcd[0x18];
5948
Matan Barakb4ff3a32016-02-09 14:57:42 +02005949 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005950};
5951
5952struct mlx5_ifc_dealloc_uar_out_bits {
5953 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005954 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005955
5956 u8 syndrome[0x20];
5957
Matan Barakb4ff3a32016-02-09 14:57:42 +02005958 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005959};
5960
5961struct mlx5_ifc_dealloc_uar_in_bits {
5962 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005963 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005964
Matan Barakb4ff3a32016-02-09 14:57:42 +02005965 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005966 u8 op_mod[0x10];
5967
Matan Barakb4ff3a32016-02-09 14:57:42 +02005968 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005969 u8 uar[0x18];
5970
Matan Barakb4ff3a32016-02-09 14:57:42 +02005971 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005972};
5973
5974struct mlx5_ifc_dealloc_transport_domain_out_bits {
5975 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005976 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005977
5978 u8 syndrome[0x20];
5979
Matan Barakb4ff3a32016-02-09 14:57:42 +02005980 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03005981};
5982
5983struct mlx5_ifc_dealloc_transport_domain_in_bits {
5984 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005985 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005986
Matan Barakb4ff3a32016-02-09 14:57:42 +02005987 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03005988 u8 op_mod[0x10];
5989
Matan Barakb4ff3a32016-02-09 14:57:42 +02005990 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03005991 u8 transport_domain[0x18];
5992
Matan Barakb4ff3a32016-02-09 14:57:42 +02005993 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03005994};
5995
5996struct mlx5_ifc_dealloc_q_counter_out_bits {
5997 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02005998 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03005999
6000 u8 syndrome[0x20];
6001
Matan Barakb4ff3a32016-02-09 14:57:42 +02006002 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006003};
6004
6005struct mlx5_ifc_dealloc_q_counter_in_bits {
6006 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006007 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006008
Matan Barakb4ff3a32016-02-09 14:57:42 +02006009 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006010 u8 op_mod[0x10];
6011
Matan Barakb4ff3a32016-02-09 14:57:42 +02006012 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006013 u8 counter_set_id[0x8];
6014
Matan Barakb4ff3a32016-02-09 14:57:42 +02006015 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006016};
6017
6018struct mlx5_ifc_dealloc_pd_out_bits {
6019 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006020 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006021
6022 u8 syndrome[0x20];
6023
Matan Barakb4ff3a32016-02-09 14:57:42 +02006024 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006025};
6026
6027struct mlx5_ifc_dealloc_pd_in_bits {
6028 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006029 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006030
Matan Barakb4ff3a32016-02-09 14:57:42 +02006031 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006032 u8 op_mod[0x10];
6033
Matan Barakb4ff3a32016-02-09 14:57:42 +02006034 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006035 u8 pd[0x18];
6036
Matan Barakb4ff3a32016-02-09 14:57:42 +02006037 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006038};
6039
Amir Vadai9dc0b282016-05-13 12:55:39 +00006040struct mlx5_ifc_dealloc_flow_counter_out_bits {
6041 u8 status[0x8];
6042 u8 reserved_at_8[0x18];
6043
6044 u8 syndrome[0x20];
6045
6046 u8 reserved_at_40[0x40];
6047};
6048
6049struct mlx5_ifc_dealloc_flow_counter_in_bits {
6050 u8 opcode[0x10];
6051 u8 reserved_at_10[0x10];
6052
6053 u8 reserved_at_20[0x10];
6054 u8 op_mod[0x10];
6055
6056 u8 reserved_at_40[0x10];
6057 u8 flow_counter_id[0x10];
6058
6059 u8 reserved_at_60[0x20];
6060};
6061
Saeed Mahameed74862162016-06-09 15:11:34 +03006062struct mlx5_ifc_create_xrq_out_bits {
6063 u8 status[0x8];
6064 u8 reserved_at_8[0x18];
6065
6066 u8 syndrome[0x20];
6067
6068 u8 reserved_at_40[0x8];
6069 u8 xrqn[0x18];
6070
6071 u8 reserved_at_60[0x20];
6072};
6073
6074struct mlx5_ifc_create_xrq_in_bits {
6075 u8 opcode[0x10];
6076 u8 reserved_at_10[0x10];
6077
6078 u8 reserved_at_20[0x10];
6079 u8 op_mod[0x10];
6080
6081 u8 reserved_at_40[0x40];
6082
6083 struct mlx5_ifc_xrqc_bits xrq_context;
6084};
6085
Saeed Mahameede2816822015-05-28 22:28:40 +03006086struct mlx5_ifc_create_xrc_srq_out_bits {
6087 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006088 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006089
6090 u8 syndrome[0x20];
6091
Matan Barakb4ff3a32016-02-09 14:57:42 +02006092 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006093 u8 xrc_srqn[0x18];
6094
Matan Barakb4ff3a32016-02-09 14:57:42 +02006095 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006096};
6097
6098struct mlx5_ifc_create_xrc_srq_in_bits {
6099 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006100 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006101
Matan Barakb4ff3a32016-02-09 14:57:42 +02006102 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006103 u8 op_mod[0x10];
6104
Matan Barakb4ff3a32016-02-09 14:57:42 +02006105 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006106
6107 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
6108
Matan Barakb4ff3a32016-02-09 14:57:42 +02006109 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006110
6111 u8 pas[0][0x40];
6112};
6113
6114struct mlx5_ifc_create_tis_out_bits {
6115 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006116 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006117
6118 u8 syndrome[0x20];
6119
Matan Barakb4ff3a32016-02-09 14:57:42 +02006120 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006121 u8 tisn[0x18];
6122
Matan Barakb4ff3a32016-02-09 14:57:42 +02006123 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006124};
6125
6126struct mlx5_ifc_create_tis_in_bits {
6127 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006128 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006129
Matan Barakb4ff3a32016-02-09 14:57:42 +02006130 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006131 u8 op_mod[0x10];
6132
Matan Barakb4ff3a32016-02-09 14:57:42 +02006133 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006134
6135 struct mlx5_ifc_tisc_bits ctx;
6136};
6137
6138struct mlx5_ifc_create_tir_out_bits {
6139 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006140 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006141
6142 u8 syndrome[0x20];
6143
Matan Barakb4ff3a32016-02-09 14:57:42 +02006144 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006145 u8 tirn[0x18];
6146
Matan Barakb4ff3a32016-02-09 14:57:42 +02006147 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006148};
6149
6150struct mlx5_ifc_create_tir_in_bits {
6151 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006152 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006153
Matan Barakb4ff3a32016-02-09 14:57:42 +02006154 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006155 u8 op_mod[0x10];
6156
Matan Barakb4ff3a32016-02-09 14:57:42 +02006157 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006158
6159 struct mlx5_ifc_tirc_bits ctx;
6160};
6161
6162struct mlx5_ifc_create_srq_out_bits {
6163 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006164 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006165
6166 u8 syndrome[0x20];
6167
Matan Barakb4ff3a32016-02-09 14:57:42 +02006168 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006169 u8 srqn[0x18];
6170
Matan Barakb4ff3a32016-02-09 14:57:42 +02006171 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006172};
6173
6174struct mlx5_ifc_create_srq_in_bits {
6175 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006176 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006177
Matan Barakb4ff3a32016-02-09 14:57:42 +02006178 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006179 u8 op_mod[0x10];
6180
Matan Barakb4ff3a32016-02-09 14:57:42 +02006181 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006182
6183 struct mlx5_ifc_srqc_bits srq_context_entry;
6184
Matan Barakb4ff3a32016-02-09 14:57:42 +02006185 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006186
6187 u8 pas[0][0x40];
6188};
6189
6190struct mlx5_ifc_create_sq_out_bits {
6191 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006192 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006193
6194 u8 syndrome[0x20];
6195
Matan Barakb4ff3a32016-02-09 14:57:42 +02006196 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006197 u8 sqn[0x18];
6198
Matan Barakb4ff3a32016-02-09 14:57:42 +02006199 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006200};
6201
6202struct mlx5_ifc_create_sq_in_bits {
6203 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006204 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006205
Matan Barakb4ff3a32016-02-09 14:57:42 +02006206 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006207 u8 op_mod[0x10];
6208
Matan Barakb4ff3a32016-02-09 14:57:42 +02006209 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006210
6211 struct mlx5_ifc_sqc_bits ctx;
6212};
6213
Mohamad Haj Yahia813f8542016-08-11 11:21:39 +03006214struct mlx5_ifc_create_scheduling_element_out_bits {
6215 u8 status[0x8];
6216 u8 reserved_at_8[0x18];
6217
6218 u8 syndrome[0x20];
6219
6220 u8 reserved_at_40[0x40];
6221
6222 u8 scheduling_element_id[0x20];
6223
6224 u8 reserved_at_a0[0x160];
6225};
6226
6227struct mlx5_ifc_create_scheduling_element_in_bits {
6228 u8 opcode[0x10];
6229 u8 reserved_at_10[0x10];
6230
6231 u8 reserved_at_20[0x10];
6232 u8 op_mod[0x10];
6233
6234 u8 scheduling_hierarchy[0x8];
6235 u8 reserved_at_48[0x18];
6236
6237 u8 reserved_at_60[0xa0];
6238
6239 struct mlx5_ifc_scheduling_context_bits scheduling_context;
6240
6241 u8 reserved_at_300[0x100];
6242};
6243
Saeed Mahameede2816822015-05-28 22:28:40 +03006244struct mlx5_ifc_create_rqt_out_bits {
6245 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006246 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006247
6248 u8 syndrome[0x20];
6249
Matan Barakb4ff3a32016-02-09 14:57:42 +02006250 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006251 u8 rqtn[0x18];
6252
Matan Barakb4ff3a32016-02-09 14:57:42 +02006253 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006254};
6255
6256struct mlx5_ifc_create_rqt_in_bits {
6257 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006258 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006259
Matan Barakb4ff3a32016-02-09 14:57:42 +02006260 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006261 u8 op_mod[0x10];
6262
Matan Barakb4ff3a32016-02-09 14:57:42 +02006263 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006264
6265 struct mlx5_ifc_rqtc_bits rqt_context;
6266};
6267
6268struct mlx5_ifc_create_rq_out_bits {
6269 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006270 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006271
6272 u8 syndrome[0x20];
6273
Matan Barakb4ff3a32016-02-09 14:57:42 +02006274 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006275 u8 rqn[0x18];
6276
Matan Barakb4ff3a32016-02-09 14:57:42 +02006277 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006278};
6279
6280struct mlx5_ifc_create_rq_in_bits {
6281 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006282 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006283
Matan Barakb4ff3a32016-02-09 14:57:42 +02006284 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006285 u8 op_mod[0x10];
6286
Matan Barakb4ff3a32016-02-09 14:57:42 +02006287 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006288
6289 struct mlx5_ifc_rqc_bits ctx;
6290};
6291
6292struct mlx5_ifc_create_rmp_out_bits {
6293 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006294 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006295
6296 u8 syndrome[0x20];
6297
Matan Barakb4ff3a32016-02-09 14:57:42 +02006298 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006299 u8 rmpn[0x18];
6300
Matan Barakb4ff3a32016-02-09 14:57:42 +02006301 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006302};
6303
6304struct mlx5_ifc_create_rmp_in_bits {
6305 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006306 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006307
Matan Barakb4ff3a32016-02-09 14:57:42 +02006308 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006309 u8 op_mod[0x10];
6310
Matan Barakb4ff3a32016-02-09 14:57:42 +02006311 u8 reserved_at_40[0xc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006312
6313 struct mlx5_ifc_rmpc_bits ctx;
6314};
6315
6316struct mlx5_ifc_create_qp_out_bits {
6317 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006318 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006319
6320 u8 syndrome[0x20];
6321
Matan Barakb4ff3a32016-02-09 14:57:42 +02006322 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006323 u8 qpn[0x18];
6324
Matan Barakb4ff3a32016-02-09 14:57:42 +02006325 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006326};
6327
6328struct mlx5_ifc_create_qp_in_bits {
6329 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006330 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006331
Matan Barakb4ff3a32016-02-09 14:57:42 +02006332 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006333 u8 op_mod[0x10];
6334
Matan Barakb4ff3a32016-02-09 14:57:42 +02006335 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006336
6337 u8 opt_param_mask[0x20];
6338
Matan Barakb4ff3a32016-02-09 14:57:42 +02006339 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006340
6341 struct mlx5_ifc_qpc_bits qpc;
6342
Matan Barakb4ff3a32016-02-09 14:57:42 +02006343 u8 reserved_at_800[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006344
6345 u8 pas[0][0x40];
6346};
6347
6348struct mlx5_ifc_create_psv_out_bits {
6349 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006350 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006351
6352 u8 syndrome[0x20];
6353
Matan Barakb4ff3a32016-02-09 14:57:42 +02006354 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006355
Matan Barakb4ff3a32016-02-09 14:57:42 +02006356 u8 reserved_at_80[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006357 u8 psv0_index[0x18];
6358
Matan Barakb4ff3a32016-02-09 14:57:42 +02006359 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006360 u8 psv1_index[0x18];
6361
Matan Barakb4ff3a32016-02-09 14:57:42 +02006362 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006363 u8 psv2_index[0x18];
6364
Matan Barakb4ff3a32016-02-09 14:57:42 +02006365 u8 reserved_at_e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006366 u8 psv3_index[0x18];
6367};
6368
6369struct mlx5_ifc_create_psv_in_bits {
6370 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006371 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006372
Matan Barakb4ff3a32016-02-09 14:57:42 +02006373 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006374 u8 op_mod[0x10];
6375
6376 u8 num_psv[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006377 u8 reserved_at_44[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006378 u8 pd[0x18];
6379
Matan Barakb4ff3a32016-02-09 14:57:42 +02006380 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006381};
6382
6383struct mlx5_ifc_create_mkey_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 mkey_index[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_mkey_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[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006403
6404 u8 pg_access[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006405 u8 reserved_at_61[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03006406
6407 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
6408
Matan Barakb4ff3a32016-02-09 14:57:42 +02006409 u8 reserved_at_280[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006410
6411 u8 translations_octword_actual_size[0x20];
6412
Matan Barakb4ff3a32016-02-09 14:57:42 +02006413 u8 reserved_at_320[0x560];
Saeed Mahameede2816822015-05-28 22:28:40 +03006414
6415 u8 klm_pas_mtt[0][0x20];
6416};
6417
6418struct mlx5_ifc_create_flow_table_out_bits {
6419 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006420 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006421
6422 u8 syndrome[0x20];
6423
Matan Barakb4ff3a32016-02-09 14:57:42 +02006424 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006425 u8 table_id[0x18];
6426
Matan Barakb4ff3a32016-02-09 14:57:42 +02006427 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006428};
6429
6430struct mlx5_ifc_create_flow_table_in_bits {
6431 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006432 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006433
Matan Barakb4ff3a32016-02-09 14:57:42 +02006434 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006435 u8 op_mod[0x10];
6436
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006437 u8 other_vport[0x1];
6438 u8 reserved_at_41[0xf];
6439 u8 vport_number[0x10];
6440
6441 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006442
6443 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006444 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006445
Matan Barakb4ff3a32016-02-09 14:57:42 +02006446 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006447
Hadar Hen Zion7adbde22016-08-03 15:08:33 +03006448 u8 encap_en[0x1];
6449 u8 decap_en[0x1];
6450 u8 reserved_at_c2[0x2];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02006451 u8 table_miss_mode[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006452 u8 level[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006453 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006454 u8 log_size[0x8];
6455
Matan Barakb4ff3a32016-02-09 14:57:42 +02006456 u8 reserved_at_e0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02006457 u8 table_miss_id[0x18];
6458
Aviv Heller84df61e2016-05-10 13:47:50 +03006459 u8 reserved_at_100[0x8];
6460 u8 lag_master_next_table_id[0x18];
6461
6462 u8 reserved_at_120[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03006463};
6464
6465struct mlx5_ifc_create_flow_group_out_bits {
6466 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006467 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006468
6469 u8 syndrome[0x20];
6470
Matan Barakb4ff3a32016-02-09 14:57:42 +02006471 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006472 u8 group_id[0x18];
6473
Matan Barakb4ff3a32016-02-09 14:57:42 +02006474 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006475};
6476
6477enum {
6478 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
6479 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
6480 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
6481};
6482
6483struct mlx5_ifc_create_flow_group_in_bits {
6484 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006485 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006486
Matan Barakb4ff3a32016-02-09 14:57:42 +02006487 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006488 u8 op_mod[0x10];
6489
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03006490 u8 other_vport[0x1];
6491 u8 reserved_at_41[0xf];
6492 u8 vport_number[0x10];
6493
6494 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006495
6496 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006497 u8 reserved_at_88[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006498
Matan Barakb4ff3a32016-02-09 14:57:42 +02006499 u8 reserved_at_a0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006500 u8 table_id[0x18];
6501
Matan Barakb4ff3a32016-02-09 14:57:42 +02006502 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006503
6504 u8 start_flow_index[0x20];
6505
Matan Barakb4ff3a32016-02-09 14:57:42 +02006506 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006507
6508 u8 end_flow_index[0x20];
6509
Matan Barakb4ff3a32016-02-09 14:57:42 +02006510 u8 reserved_at_140[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03006511
Matan Barakb4ff3a32016-02-09 14:57:42 +02006512 u8 reserved_at_1e0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006513 u8 match_criteria_enable[0x8];
6514
6515 struct mlx5_ifc_fte_match_param_bits match_criteria;
6516
Matan Barakb4ff3a32016-02-09 14:57:42 +02006517 u8 reserved_at_1200[0xe00];
Saeed Mahameede2816822015-05-28 22:28:40 +03006518};
6519
6520struct mlx5_ifc_create_eq_out_bits {
6521 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006522 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006523
6524 u8 syndrome[0x20];
6525
Matan Barakb4ff3a32016-02-09 14:57:42 +02006526 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006527 u8 eq_number[0x8];
6528
Matan Barakb4ff3a32016-02-09 14:57:42 +02006529 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006530};
6531
6532struct mlx5_ifc_create_eq_in_bits {
6533 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006534 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006535
Matan Barakb4ff3a32016-02-09 14:57:42 +02006536 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006537 u8 op_mod[0x10];
6538
Matan Barakb4ff3a32016-02-09 14:57:42 +02006539 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006540
6541 struct mlx5_ifc_eqc_bits eq_context_entry;
6542
Matan Barakb4ff3a32016-02-09 14:57:42 +02006543 u8 reserved_at_280[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006544
6545 u8 event_bitmask[0x40];
6546
Matan Barakb4ff3a32016-02-09 14:57:42 +02006547 u8 reserved_at_300[0x580];
Saeed Mahameede2816822015-05-28 22:28:40 +03006548
6549 u8 pas[0][0x40];
6550};
6551
6552struct mlx5_ifc_create_dct_out_bits {
6553 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006554 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006555
6556 u8 syndrome[0x20];
6557
Matan Barakb4ff3a32016-02-09 14:57:42 +02006558 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006559 u8 dctn[0x18];
6560
Matan Barakb4ff3a32016-02-09 14:57:42 +02006561 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006562};
6563
6564struct mlx5_ifc_create_dct_in_bits {
6565 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006566 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006567
Matan Barakb4ff3a32016-02-09 14:57:42 +02006568 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006569 u8 op_mod[0x10];
6570
Matan Barakb4ff3a32016-02-09 14:57:42 +02006571 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006572
6573 struct mlx5_ifc_dctc_bits dct_context_entry;
6574
Matan Barakb4ff3a32016-02-09 14:57:42 +02006575 u8 reserved_at_280[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03006576};
6577
6578struct mlx5_ifc_create_cq_out_bits {
6579 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006580 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006581
6582 u8 syndrome[0x20];
6583
Matan Barakb4ff3a32016-02-09 14:57:42 +02006584 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006585 u8 cqn[0x18];
6586
Matan Barakb4ff3a32016-02-09 14:57:42 +02006587 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006588};
6589
6590struct mlx5_ifc_create_cq_in_bits {
6591 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006592 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006593
Matan Barakb4ff3a32016-02-09 14:57:42 +02006594 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006595 u8 op_mod[0x10];
6596
Matan Barakb4ff3a32016-02-09 14:57:42 +02006597 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006598
6599 struct mlx5_ifc_cqc_bits cq_context;
6600
Matan Barakb4ff3a32016-02-09 14:57:42 +02006601 u8 reserved_at_280[0x600];
Saeed Mahameede2816822015-05-28 22:28:40 +03006602
6603 u8 pas[0][0x40];
6604};
6605
6606struct mlx5_ifc_config_int_moderation_out_bits {
6607 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006608 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006609
6610 u8 syndrome[0x20];
6611
Matan Barakb4ff3a32016-02-09 14:57:42 +02006612 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006613 u8 min_delay[0xc];
6614 u8 int_vector[0x10];
6615
Matan Barakb4ff3a32016-02-09 14:57:42 +02006616 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006617};
6618
6619enum {
6620 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
6621 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
6622};
6623
6624struct mlx5_ifc_config_int_moderation_in_bits {
6625 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006626 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006627
Matan Barakb4ff3a32016-02-09 14:57:42 +02006628 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006629 u8 op_mod[0x10];
6630
Matan Barakb4ff3a32016-02-09 14:57:42 +02006631 u8 reserved_at_40[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03006632 u8 min_delay[0xc];
6633 u8 int_vector[0x10];
6634
Matan Barakb4ff3a32016-02-09 14:57:42 +02006635 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006636};
6637
6638struct mlx5_ifc_attach_to_mcg_out_bits {
6639 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006640 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006641
6642 u8 syndrome[0x20];
6643
Matan Barakb4ff3a32016-02-09 14:57:42 +02006644 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006645};
6646
6647struct mlx5_ifc_attach_to_mcg_in_bits {
6648 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006649 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006650
Matan Barakb4ff3a32016-02-09 14:57:42 +02006651 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006652 u8 op_mod[0x10];
6653
Matan Barakb4ff3a32016-02-09 14:57:42 +02006654 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006655 u8 qpn[0x18];
6656
Matan Barakb4ff3a32016-02-09 14:57:42 +02006657 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006658
6659 u8 multicast_gid[16][0x8];
6660};
6661
Saeed Mahameed74862162016-06-09 15:11:34 +03006662struct mlx5_ifc_arm_xrq_out_bits {
6663 u8 status[0x8];
6664 u8 reserved_at_8[0x18];
6665
6666 u8 syndrome[0x20];
6667
6668 u8 reserved_at_40[0x40];
6669};
6670
6671struct mlx5_ifc_arm_xrq_in_bits {
6672 u8 opcode[0x10];
6673 u8 reserved_at_10[0x10];
6674
6675 u8 reserved_at_20[0x10];
6676 u8 op_mod[0x10];
6677
6678 u8 reserved_at_40[0x8];
6679 u8 xrqn[0x18];
6680
6681 u8 reserved_at_60[0x10];
6682 u8 lwm[0x10];
6683};
6684
Saeed Mahameede2816822015-05-28 22:28:40 +03006685struct mlx5_ifc_arm_xrc_srq_out_bits {
6686 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006687 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006688
6689 u8 syndrome[0x20];
6690
Matan Barakb4ff3a32016-02-09 14:57:42 +02006691 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006692};
6693
6694enum {
6695 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
6696};
6697
6698struct mlx5_ifc_arm_xrc_srq_in_bits {
6699 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006700 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006701
Matan Barakb4ff3a32016-02-09 14:57:42 +02006702 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006703 u8 op_mod[0x10];
6704
Matan Barakb4ff3a32016-02-09 14:57:42 +02006705 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006706 u8 xrc_srqn[0x18];
6707
Matan Barakb4ff3a32016-02-09 14:57:42 +02006708 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006709 u8 lwm[0x10];
6710};
6711
6712struct mlx5_ifc_arm_rq_out_bits {
6713 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006714 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006715
6716 u8 syndrome[0x20];
6717
Matan Barakb4ff3a32016-02-09 14:57:42 +02006718 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006719};
6720
6721enum {
Saeed Mahameed74862162016-06-09 15:11:34 +03006722 MLX5_ARM_RQ_IN_OP_MOD_SRQ = 0x1,
6723 MLX5_ARM_RQ_IN_OP_MOD_XRQ = 0x2,
Saeed Mahameede2816822015-05-28 22:28:40 +03006724};
6725
6726struct mlx5_ifc_arm_rq_in_bits {
6727 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006728 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006729
Matan Barakb4ff3a32016-02-09 14:57:42 +02006730 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006731 u8 op_mod[0x10];
6732
Matan Barakb4ff3a32016-02-09 14:57:42 +02006733 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006734 u8 srq_number[0x18];
6735
Matan Barakb4ff3a32016-02-09 14:57:42 +02006736 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006737 u8 lwm[0x10];
6738};
6739
6740struct mlx5_ifc_arm_dct_out_bits {
6741 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006742 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006743
6744 u8 syndrome[0x20];
6745
Matan Barakb4ff3a32016-02-09 14:57:42 +02006746 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006747};
6748
6749struct mlx5_ifc_arm_dct_in_bits {
6750 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006751 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006752
Matan Barakb4ff3a32016-02-09 14:57:42 +02006753 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006754 u8 op_mod[0x10];
6755
Matan Barakb4ff3a32016-02-09 14:57:42 +02006756 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006757 u8 dct_number[0x18];
6758
Matan Barakb4ff3a32016-02-09 14:57:42 +02006759 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006760};
6761
6762struct mlx5_ifc_alloc_xrcd_out_bits {
6763 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006764 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006765
6766 u8 syndrome[0x20];
6767
Matan Barakb4ff3a32016-02-09 14:57:42 +02006768 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006769 u8 xrcd[0x18];
6770
Matan Barakb4ff3a32016-02-09 14:57:42 +02006771 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006772};
6773
6774struct mlx5_ifc_alloc_xrcd_in_bits {
6775 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006776 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006777
Matan Barakb4ff3a32016-02-09 14:57:42 +02006778 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006779 u8 op_mod[0x10];
6780
Matan Barakb4ff3a32016-02-09 14:57:42 +02006781 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006782};
6783
6784struct mlx5_ifc_alloc_uar_out_bits {
6785 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006786 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006787
6788 u8 syndrome[0x20];
6789
Matan Barakb4ff3a32016-02-09 14:57:42 +02006790 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006791 u8 uar[0x18];
6792
Matan Barakb4ff3a32016-02-09 14:57:42 +02006793 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006794};
6795
6796struct mlx5_ifc_alloc_uar_in_bits {
6797 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006798 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006799
Matan Barakb4ff3a32016-02-09 14:57:42 +02006800 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006801 u8 op_mod[0x10];
6802
Matan Barakb4ff3a32016-02-09 14:57:42 +02006803 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006804};
6805
6806struct mlx5_ifc_alloc_transport_domain_out_bits {
6807 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006808 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006809
6810 u8 syndrome[0x20];
6811
Matan Barakb4ff3a32016-02-09 14:57:42 +02006812 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006813 u8 transport_domain[0x18];
6814
Matan Barakb4ff3a32016-02-09 14:57:42 +02006815 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006816};
6817
6818struct mlx5_ifc_alloc_transport_domain_in_bits {
6819 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006820 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006821
Matan Barakb4ff3a32016-02-09 14:57:42 +02006822 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006823 u8 op_mod[0x10];
6824
Matan Barakb4ff3a32016-02-09 14:57:42 +02006825 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006826};
6827
6828struct mlx5_ifc_alloc_q_counter_out_bits {
6829 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006830 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006831
6832 u8 syndrome[0x20];
6833
Matan Barakb4ff3a32016-02-09 14:57:42 +02006834 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006835 u8 counter_set_id[0x8];
6836
Matan Barakb4ff3a32016-02-09 14:57:42 +02006837 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006838};
6839
6840struct mlx5_ifc_alloc_q_counter_in_bits {
6841 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006842 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006843
Matan Barakb4ff3a32016-02-09 14:57:42 +02006844 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006845 u8 op_mod[0x10];
6846
Matan Barakb4ff3a32016-02-09 14:57:42 +02006847 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006848};
6849
6850struct mlx5_ifc_alloc_pd_out_bits {
6851 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006852 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006853
6854 u8 syndrome[0x20];
6855
Matan Barakb4ff3a32016-02-09 14:57:42 +02006856 u8 reserved_at_40[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006857 u8 pd[0x18];
6858
Matan Barakb4ff3a32016-02-09 14:57:42 +02006859 u8 reserved_at_60[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006860};
6861
6862struct mlx5_ifc_alloc_pd_in_bits {
6863 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006864 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006865
Matan Barakb4ff3a32016-02-09 14:57:42 +02006866 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006867 u8 op_mod[0x10];
6868
Matan Barakb4ff3a32016-02-09 14:57:42 +02006869 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006870};
6871
Amir Vadai9dc0b282016-05-13 12:55:39 +00006872struct mlx5_ifc_alloc_flow_counter_out_bits {
6873 u8 status[0x8];
6874 u8 reserved_at_8[0x18];
6875
6876 u8 syndrome[0x20];
6877
6878 u8 reserved_at_40[0x10];
6879 u8 flow_counter_id[0x10];
6880
6881 u8 reserved_at_60[0x20];
6882};
6883
6884struct mlx5_ifc_alloc_flow_counter_in_bits {
6885 u8 opcode[0x10];
6886 u8 reserved_at_10[0x10];
6887
6888 u8 reserved_at_20[0x10];
6889 u8 op_mod[0x10];
6890
6891 u8 reserved_at_40[0x40];
6892};
6893
Saeed Mahameede2816822015-05-28 22:28:40 +03006894struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
6895 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006896 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006897
6898 u8 syndrome[0x20];
6899
Matan Barakb4ff3a32016-02-09 14:57:42 +02006900 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006901};
6902
6903struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
6904 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006905 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006906
Matan Barakb4ff3a32016-02-09 14:57:42 +02006907 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006908 u8 op_mod[0x10];
6909
Matan Barakb4ff3a32016-02-09 14:57:42 +02006910 u8 reserved_at_40[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006911
Matan Barakb4ff3a32016-02-09 14:57:42 +02006912 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006913 u8 vxlan_udp_port[0x10];
6914};
6915
Saeed Mahameed74862162016-06-09 15:11:34 +03006916struct mlx5_ifc_set_rate_limit_out_bits {
6917 u8 status[0x8];
6918 u8 reserved_at_8[0x18];
6919
6920 u8 syndrome[0x20];
6921
6922 u8 reserved_at_40[0x40];
6923};
6924
6925struct mlx5_ifc_set_rate_limit_in_bits {
6926 u8 opcode[0x10];
6927 u8 reserved_at_10[0x10];
6928
6929 u8 reserved_at_20[0x10];
6930 u8 op_mod[0x10];
6931
6932 u8 reserved_at_40[0x10];
6933 u8 rate_limit_index[0x10];
6934
6935 u8 reserved_at_60[0x20];
6936
6937 u8 rate_limit[0x20];
6938};
6939
Saeed Mahameede2816822015-05-28 22:28:40 +03006940struct mlx5_ifc_access_register_out_bits {
6941 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006942 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03006943
6944 u8 syndrome[0x20];
6945
Matan Barakb4ff3a32016-02-09 14:57:42 +02006946 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03006947
6948 u8 register_data[0][0x20];
6949};
6950
6951enum {
6952 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
6953 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
6954};
6955
6956struct mlx5_ifc_access_register_in_bits {
6957 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006958 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006959
Matan Barakb4ff3a32016-02-09 14:57:42 +02006960 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006961 u8 op_mod[0x10];
6962
Matan Barakb4ff3a32016-02-09 14:57:42 +02006963 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03006964 u8 register_id[0x10];
6965
6966 u8 argument[0x20];
6967
6968 u8 register_data[0][0x20];
6969};
6970
6971struct mlx5_ifc_sltp_reg_bits {
6972 u8 status[0x4];
6973 u8 version[0x4];
6974 u8 local_port[0x8];
6975 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006976 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03006977 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02006978 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03006979
Matan Barakb4ff3a32016-02-09 14:57:42 +02006980 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006981
Matan Barakb4ff3a32016-02-09 14:57:42 +02006982 u8 reserved_at_40[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03006983 u8 polarity[0x1];
6984 u8 ob_tap0[0x8];
6985 u8 ob_tap1[0x8];
6986 u8 ob_tap2[0x8];
6987
Matan Barakb4ff3a32016-02-09 14:57:42 +02006988 u8 reserved_at_60[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03006989 u8 ob_preemp_mode[0x4];
6990 u8 ob_reg[0x8];
6991 u8 ob_bias[0x8];
6992
Matan Barakb4ff3a32016-02-09 14:57:42 +02006993 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03006994};
6995
6996struct mlx5_ifc_slrg_reg_bits {
6997 u8 status[0x4];
6998 u8 version[0x4];
6999 u8 local_port[0x8];
7000 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007001 u8 reserved_at_12[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007002 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007003 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007004
7005 u8 time_to_link_up[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007006 u8 reserved_at_30[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007007 u8 grade_lane_speed[0x4];
7008
7009 u8 grade_version[0x8];
7010 u8 grade[0x18];
7011
Matan Barakb4ff3a32016-02-09 14:57:42 +02007012 u8 reserved_at_60[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007013 u8 height_grade_type[0x4];
7014 u8 height_grade[0x18];
7015
7016 u8 height_dz[0x10];
7017 u8 height_dv[0x10];
7018
Matan Barakb4ff3a32016-02-09 14:57:42 +02007019 u8 reserved_at_a0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007020 u8 height_sigma[0x10];
7021
Matan Barakb4ff3a32016-02-09 14:57:42 +02007022 u8 reserved_at_c0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007023
Matan Barakb4ff3a32016-02-09 14:57:42 +02007024 u8 reserved_at_e0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007025 u8 phase_grade_type[0x4];
7026 u8 phase_grade[0x18];
7027
Matan Barakb4ff3a32016-02-09 14:57:42 +02007028 u8 reserved_at_100[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007029 u8 phase_eo_pos[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007030 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007031 u8 phase_eo_neg[0x8];
7032
7033 u8 ffe_set_tested[0x10];
7034 u8 test_errors_per_lane[0x10];
7035};
7036
7037struct mlx5_ifc_pvlc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007038 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007039 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007040 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007041
Matan Barakb4ff3a32016-02-09 14:57:42 +02007042 u8 reserved_at_20[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007043 u8 vl_hw_cap[0x4];
7044
Matan Barakb4ff3a32016-02-09 14:57:42 +02007045 u8 reserved_at_40[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007046 u8 vl_admin[0x4];
7047
Matan Barakb4ff3a32016-02-09 14:57:42 +02007048 u8 reserved_at_60[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007049 u8 vl_operational[0x4];
7050};
7051
7052struct mlx5_ifc_pude_reg_bits {
7053 u8 swid[0x8];
7054 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007055 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007056 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007057 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007058 u8 oper_status[0x4];
7059
Matan Barakb4ff3a32016-02-09 14:57:42 +02007060 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007061};
7062
7063struct mlx5_ifc_ptys_reg_bits {
Bodong Wange7e31ca2016-09-07 19:07:58 +03007064 u8 reserved_at_0[0x1];
Saeed Mahameed74862162016-06-09 15:11:34 +03007065 u8 an_disable_admin[0x1];
Bodong Wange7e31ca2016-09-07 19:07:58 +03007066 u8 an_disable_cap[0x1];
7067 u8 reserved_at_3[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007068 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007069 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03007070 u8 proto_mask[0x3];
7071
Saeed Mahameed74862162016-06-09 15:11:34 +03007072 u8 an_status[0x4];
7073 u8 reserved_at_24[0x3c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007074
7075 u8 eth_proto_capability[0x20];
7076
7077 u8 ib_link_width_capability[0x10];
7078 u8 ib_proto_capability[0x10];
7079
Matan Barakb4ff3a32016-02-09 14:57:42 +02007080 u8 reserved_at_a0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007081
7082 u8 eth_proto_admin[0x20];
7083
7084 u8 ib_link_width_admin[0x10];
7085 u8 ib_proto_admin[0x10];
7086
Matan Barakb4ff3a32016-02-09 14:57:42 +02007087 u8 reserved_at_100[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007088
7089 u8 eth_proto_oper[0x20];
7090
7091 u8 ib_link_width_oper[0x10];
7092 u8 ib_proto_oper[0x10];
7093
Matan Barakb4ff3a32016-02-09 14:57:42 +02007094 u8 reserved_at_160[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007095
7096 u8 eth_proto_lp_advertise[0x20];
7097
Matan Barakb4ff3a32016-02-09 14:57:42 +02007098 u8 reserved_at_1a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007099};
7100
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007101struct mlx5_ifc_mlcr_reg_bits {
7102 u8 reserved_at_0[0x8];
7103 u8 local_port[0x8];
7104 u8 reserved_at_10[0x20];
7105
7106 u8 beacon_duration[0x10];
7107 u8 reserved_at_40[0x10];
7108
7109 u8 beacon_remain[0x10];
7110};
7111
Saeed Mahameede2816822015-05-28 22:28:40 +03007112struct mlx5_ifc_ptas_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007113 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007114
7115 u8 algorithm_options[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007116 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007117 u8 repetitions_mode[0x4];
7118 u8 num_of_repetitions[0x8];
7119
7120 u8 grade_version[0x8];
7121 u8 height_grade_type[0x4];
7122 u8 phase_grade_type[0x4];
7123 u8 height_grade_weight[0x8];
7124 u8 phase_grade_weight[0x8];
7125
7126 u8 gisim_measure_bits[0x10];
7127 u8 adaptive_tap_measure_bits[0x10];
7128
7129 u8 ber_bath_high_error_threshold[0x10];
7130 u8 ber_bath_mid_error_threshold[0x10];
7131
7132 u8 ber_bath_low_error_threshold[0x10];
7133 u8 one_ratio_high_threshold[0x10];
7134
7135 u8 one_ratio_high_mid_threshold[0x10];
7136 u8 one_ratio_low_mid_threshold[0x10];
7137
7138 u8 one_ratio_low_threshold[0x10];
7139 u8 ndeo_error_threshold[0x10];
7140
7141 u8 mixer_offset_step_size[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007142 u8 reserved_at_110[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007143 u8 mix90_phase_for_voltage_bath[0x8];
7144
7145 u8 mixer_offset_start[0x10];
7146 u8 mixer_offset_end[0x10];
7147
Matan Barakb4ff3a32016-02-09 14:57:42 +02007148 u8 reserved_at_140[0x15];
Saeed Mahameede2816822015-05-28 22:28:40 +03007149 u8 ber_test_time[0xb];
7150};
7151
7152struct mlx5_ifc_pspa_reg_bits {
7153 u8 swid[0x8];
7154 u8 local_port[0x8];
7155 u8 sub_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007156 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007157
Matan Barakb4ff3a32016-02-09 14:57:42 +02007158 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007159};
7160
7161struct mlx5_ifc_pqdr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007162 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007163 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007164 u8 reserved_at_10[0x5];
Saeed Mahameede2816822015-05-28 22:28:40 +03007165 u8 prio[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007166 u8 reserved_at_18[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007167 u8 mode[0x2];
7168
Matan Barakb4ff3a32016-02-09 14:57:42 +02007169 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007170
Matan Barakb4ff3a32016-02-09 14:57:42 +02007171 u8 reserved_at_40[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007172 u8 min_threshold[0x10];
7173
Matan Barakb4ff3a32016-02-09 14:57:42 +02007174 u8 reserved_at_60[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007175 u8 max_threshold[0x10];
7176
Matan Barakb4ff3a32016-02-09 14:57:42 +02007177 u8 reserved_at_80[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007178 u8 mark_probability_denominator[0x10];
7179
Matan Barakb4ff3a32016-02-09 14:57:42 +02007180 u8 reserved_at_a0[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007181};
7182
7183struct mlx5_ifc_ppsc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007184 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007185 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007186 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007187
Matan Barakb4ff3a32016-02-09 14:57:42 +02007188 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007189
Matan Barakb4ff3a32016-02-09 14:57:42 +02007190 u8 reserved_at_80[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007191 u8 wrps_admin[0x4];
7192
Matan Barakb4ff3a32016-02-09 14:57:42 +02007193 u8 reserved_at_a0[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007194 u8 wrps_status[0x4];
7195
Matan Barakb4ff3a32016-02-09 14:57:42 +02007196 u8 reserved_at_c0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007197 u8 up_threshold[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007198 u8 reserved_at_d0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007199 u8 down_threshold[0x8];
7200
Matan Barakb4ff3a32016-02-09 14:57:42 +02007201 u8 reserved_at_e0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007202
Matan Barakb4ff3a32016-02-09 14:57:42 +02007203 u8 reserved_at_100[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007204 u8 srps_admin[0x4];
7205
Matan Barakb4ff3a32016-02-09 14:57:42 +02007206 u8 reserved_at_120[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007207 u8 srps_status[0x4];
7208
Matan Barakb4ff3a32016-02-09 14:57:42 +02007209 u8 reserved_at_140[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007210};
7211
7212struct mlx5_ifc_pplr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007213 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007214 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007215 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007216
Matan Barakb4ff3a32016-02-09 14:57:42 +02007217 u8 reserved_at_20[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007218 u8 lb_cap[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007219 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007220 u8 lb_en[0x8];
7221};
7222
7223struct mlx5_ifc_pplm_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007224 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007225 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007226 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007227
Matan Barakb4ff3a32016-02-09 14:57:42 +02007228 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007229
7230 u8 port_profile_mode[0x8];
7231 u8 static_port_profile[0x8];
7232 u8 active_port_profile[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007233 u8 reserved_at_58[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007234
7235 u8 retransmission_active[0x8];
7236 u8 fec_mode_active[0x18];
7237
Matan Barakb4ff3a32016-02-09 14:57:42 +02007238 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007239};
7240
7241struct mlx5_ifc_ppcnt_reg_bits {
7242 u8 swid[0x8];
7243 u8 local_port[0x8];
7244 u8 pnat[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007245 u8 reserved_at_12[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007246 u8 grp[0x6];
7247
7248 u8 clr[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007249 u8 reserved_at_21[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007250 u8 prio_tc[0x3];
7251
7252 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
7253};
7254
7255struct mlx5_ifc_ppad_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007256 u8 reserved_at_0[0x3];
Saeed Mahameede2816822015-05-28 22:28:40 +03007257 u8 single_mac[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007258 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007259 u8 local_port[0x8];
7260 u8 mac_47_32[0x10];
7261
7262 u8 mac_31_0[0x20];
7263
Matan Barakb4ff3a32016-02-09 14:57:42 +02007264 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007265};
7266
7267struct mlx5_ifc_pmtu_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007268 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007269 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007270 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007271
7272 u8 max_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007273 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007274
7275 u8 admin_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007276 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007277
7278 u8 oper_mtu[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007279 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007280};
7281
7282struct mlx5_ifc_pmpr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007283 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007284 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007285 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007286
Matan Barakb4ff3a32016-02-09 14:57:42 +02007287 u8 reserved_at_20[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007288 u8 attenuation_5g[0x8];
7289
Matan Barakb4ff3a32016-02-09 14:57:42 +02007290 u8 reserved_at_40[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007291 u8 attenuation_7g[0x8];
7292
Matan Barakb4ff3a32016-02-09 14:57:42 +02007293 u8 reserved_at_60[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007294 u8 attenuation_12g[0x8];
7295};
7296
7297struct mlx5_ifc_pmpe_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007298 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007299 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007300 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007301 u8 module_status[0x4];
7302
Matan Barakb4ff3a32016-02-09 14:57:42 +02007303 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007304};
7305
7306struct mlx5_ifc_pmpc_reg_bits {
7307 u8 module_state_updated[32][0x8];
7308};
7309
7310struct mlx5_ifc_pmlpn_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007311 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007312 u8 mlpn_status[0x4];
7313 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007314 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007315
7316 u8 e[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007317 u8 reserved_at_21[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007318};
7319
7320struct mlx5_ifc_pmlp_reg_bits {
7321 u8 rxtx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007322 u8 reserved_at_1[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007323 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007324 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007325 u8 width[0x8];
7326
7327 u8 lane0_module_mapping[0x20];
7328
7329 u8 lane1_module_mapping[0x20];
7330
7331 u8 lane2_module_mapping[0x20];
7332
7333 u8 lane3_module_mapping[0x20];
7334
Matan Barakb4ff3a32016-02-09 14:57:42 +02007335 u8 reserved_at_a0[0x160];
Saeed Mahameede2816822015-05-28 22:28:40 +03007336};
7337
7338struct mlx5_ifc_pmaos_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007339 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007340 u8 module[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007341 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007342 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007343 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007344 u8 oper_status[0x4];
7345
7346 u8 ase[0x1];
7347 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007348 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007349 u8 e[0x2];
7350
Matan Barakb4ff3a32016-02-09 14:57:42 +02007351 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007352};
7353
7354struct mlx5_ifc_plpc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007355 u8 reserved_at_0[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007356 u8 profile_id[0xc];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007357 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007358 u8 proto_mask[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007359 u8 reserved_at_18[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007360
Matan Barakb4ff3a32016-02-09 14:57:42 +02007361 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007362 u8 lane_speed[0x10];
7363
Matan Barakb4ff3a32016-02-09 14:57:42 +02007364 u8 reserved_at_40[0x17];
Saeed Mahameede2816822015-05-28 22:28:40 +03007365 u8 lpbf[0x1];
7366 u8 fec_mode_policy[0x8];
7367
7368 u8 retransmission_capability[0x8];
7369 u8 fec_mode_capability[0x18];
7370
7371 u8 retransmission_support_admin[0x8];
7372 u8 fec_mode_support_admin[0x18];
7373
7374 u8 retransmission_request_admin[0x8];
7375 u8 fec_mode_request_admin[0x18];
7376
Matan Barakb4ff3a32016-02-09 14:57:42 +02007377 u8 reserved_at_c0[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007378};
7379
7380struct mlx5_ifc_plib_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007381 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007382 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007383 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007384 u8 ib_port[0x8];
7385
Matan Barakb4ff3a32016-02-09 14:57:42 +02007386 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007387};
7388
7389struct mlx5_ifc_plbf_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007390 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007391 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007392 u8 reserved_at_10[0xd];
Saeed Mahameede2816822015-05-28 22:28:40 +03007393 u8 lbf_mode[0x3];
7394
Matan Barakb4ff3a32016-02-09 14:57:42 +02007395 u8 reserved_at_20[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007396};
7397
7398struct mlx5_ifc_pipg_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007399 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007400 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007401 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007402
7403 u8 dic[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007404 u8 reserved_at_21[0x19];
Saeed Mahameede2816822015-05-28 22:28:40 +03007405 u8 ipg[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007406 u8 reserved_at_3e[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007407};
7408
7409struct mlx5_ifc_pifr_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007410 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007411 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007412 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007413
Matan Barakb4ff3a32016-02-09 14:57:42 +02007414 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007415
7416 u8 port_filter[8][0x20];
7417
7418 u8 port_filter_update_en[8][0x20];
7419};
7420
7421struct mlx5_ifc_pfcc_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007422 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007423 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007424 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007425
7426 u8 ppan[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007427 u8 reserved_at_24[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007428 u8 prio_mask_tx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007429 u8 reserved_at_30[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007430 u8 prio_mask_rx[0x8];
7431
7432 u8 pptx[0x1];
7433 u8 aptx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007434 u8 reserved_at_42[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007435 u8 pfctx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007436 u8 reserved_at_50[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007437
7438 u8 pprx[0x1];
7439 u8 aprx[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007440 u8 reserved_at_62[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007441 u8 pfcrx[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007442 u8 reserved_at_70[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007443
Matan Barakb4ff3a32016-02-09 14:57:42 +02007444 u8 reserved_at_80[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007445};
7446
7447struct mlx5_ifc_pelc_reg_bits {
7448 u8 op[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007449 u8 reserved_at_4[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007450 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007451 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007452
7453 u8 op_admin[0x8];
7454 u8 op_capability[0x8];
7455 u8 op_request[0x8];
7456 u8 op_active[0x8];
7457
7458 u8 admin[0x40];
7459
7460 u8 capability[0x40];
7461
7462 u8 request[0x40];
7463
7464 u8 active[0x40];
7465
Matan Barakb4ff3a32016-02-09 14:57:42 +02007466 u8 reserved_at_140[0x80];
Saeed Mahameede2816822015-05-28 22:28:40 +03007467};
7468
7469struct mlx5_ifc_peir_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007470 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007471 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007472 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007473
Matan Barakb4ff3a32016-02-09 14:57:42 +02007474 u8 reserved_at_20[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007475 u8 error_count[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007476 u8 reserved_at_30[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007477
Matan Barakb4ff3a32016-02-09 14:57:42 +02007478 u8 reserved_at_40[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007479 u8 lane[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007480 u8 reserved_at_50[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007481 u8 error_type[0x8];
7482};
7483
7484struct mlx5_ifc_pcap_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007485 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007486 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007487 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007488
7489 u8 port_capability_mask[4][0x20];
7490};
7491
7492struct mlx5_ifc_paos_reg_bits {
7493 u8 swid[0x8];
7494 u8 local_port[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007495 u8 reserved_at_10[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007496 u8 admin_status[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007497 u8 reserved_at_18[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007498 u8 oper_status[0x4];
7499
7500 u8 ase[0x1];
7501 u8 ee[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007502 u8 reserved_at_22[0x1c];
Saeed Mahameede2816822015-05-28 22:28:40 +03007503 u8 e[0x2];
7504
Matan Barakb4ff3a32016-02-09 14:57:42 +02007505 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007506};
7507
7508struct mlx5_ifc_pamp_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007509 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007510 u8 opamp_group[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007511 u8 reserved_at_10[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007512 u8 opamp_group_type[0x4];
7513
7514 u8 start_index[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007515 u8 reserved_at_30[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007516 u8 num_of_indices[0xc];
7517
7518 u8 index_data[18][0x10];
7519};
7520
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007521struct mlx5_ifc_pcmr_reg_bits {
7522 u8 reserved_at_0[0x8];
7523 u8 local_port[0x8];
7524 u8 reserved_at_10[0x2e];
7525 u8 fcs_cap[0x1];
7526 u8 reserved_at_3f[0x1f];
7527 u8 fcs_chk[0x1];
7528 u8 reserved_at_5f[0x1];
7529};
7530
Saeed Mahameede2816822015-05-28 22:28:40 +03007531struct mlx5_ifc_lane_2_module_mapping_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007532 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007533 u8 rx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007534 u8 reserved_at_8[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007535 u8 tx_lane[0x2];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007536 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007537 u8 module[0x8];
7538};
7539
7540struct mlx5_ifc_bufferx_reg_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007541 u8 reserved_at_0[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007542 u8 lossy[0x1];
7543 u8 epsb[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007544 u8 reserved_at_8[0xc];
Saeed Mahameede2816822015-05-28 22:28:40 +03007545 u8 size[0xc];
7546
7547 u8 xoff_threshold[0x10];
7548 u8 xon_threshold[0x10];
7549};
7550
7551struct mlx5_ifc_set_node_in_bits {
7552 u8 node_description[64][0x8];
7553};
7554
7555struct mlx5_ifc_register_power_settings_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007556 u8 reserved_at_0[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007557 u8 power_settings_level[0x8];
7558
Matan Barakb4ff3a32016-02-09 14:57:42 +02007559 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007560};
7561
7562struct mlx5_ifc_register_host_endianness_bits {
7563 u8 he[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007564 u8 reserved_at_1[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007565
Matan Barakb4ff3a32016-02-09 14:57:42 +02007566 u8 reserved_at_20[0x60];
Saeed Mahameede2816822015-05-28 22:28:40 +03007567};
7568
7569struct mlx5_ifc_umr_pointer_desc_argument_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007570 u8 reserved_at_0[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007571
7572 u8 mkey[0x20];
7573
7574 u8 addressh_63_32[0x20];
7575
7576 u8 addressl_31_0[0x20];
7577};
7578
7579struct mlx5_ifc_ud_adrs_vector_bits {
7580 u8 dc_key[0x40];
7581
7582 u8 ext[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007583 u8 reserved_at_41[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007584 u8 destination_qp_dct[0x18];
7585
7586 u8 static_rate[0x4];
7587 u8 sl_eth_prio[0x4];
7588 u8 fl[0x1];
7589 u8 mlid[0x7];
7590 u8 rlid_udp_sport[0x10];
7591
Matan Barakb4ff3a32016-02-09 14:57:42 +02007592 u8 reserved_at_80[0x20];
Saeed Mahameede2816822015-05-28 22:28:40 +03007593
7594 u8 rmac_47_16[0x20];
7595
7596 u8 rmac_15_0[0x10];
7597 u8 tclass[0x8];
7598 u8 hop_limit[0x8];
7599
Matan Barakb4ff3a32016-02-09 14:57:42 +02007600 u8 reserved_at_e0[0x1];
Saeed Mahameede2816822015-05-28 22:28:40 +03007601 u8 grh[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007602 u8 reserved_at_e2[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007603 u8 src_addr_index[0x8];
7604 u8 flow_label[0x14];
7605
7606 u8 rgid_rip[16][0x8];
7607};
7608
7609struct mlx5_ifc_pages_req_event_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007610 u8 reserved_at_0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007611 u8 function_id[0x10];
7612
7613 u8 num_pages[0x20];
7614
Matan Barakb4ff3a32016-02-09 14:57:42 +02007615 u8 reserved_at_40[0xa0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007616};
7617
7618struct mlx5_ifc_eqe_bits {
Matan Barakb4ff3a32016-02-09 14:57:42 +02007619 u8 reserved_at_0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007620 u8 event_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007621 u8 reserved_at_10[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007622 u8 event_sub_type[0x8];
7623
Matan Barakb4ff3a32016-02-09 14:57:42 +02007624 u8 reserved_at_20[0xe0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007625
7626 union mlx5_ifc_event_auto_bits event_data;
7627
Matan Barakb4ff3a32016-02-09 14:57:42 +02007628 u8 reserved_at_1e0[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007629 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007630 u8 reserved_at_1f8[0x7];
Saeed Mahameede2816822015-05-28 22:28:40 +03007631 u8 owner[0x1];
7632};
7633
7634enum {
7635 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
7636};
7637
7638struct mlx5_ifc_cmd_queue_entry_bits {
7639 u8 type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007640 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007641
7642 u8 input_length[0x20];
7643
7644 u8 input_mailbox_pointer_63_32[0x20];
7645
7646 u8 input_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007647 u8 reserved_at_77[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03007648
7649 u8 command_input_inline_data[16][0x8];
7650
7651 u8 command_output_inline_data[16][0x8];
7652
7653 u8 output_mailbox_pointer_63_32[0x20];
7654
7655 u8 output_mailbox_pointer_31_9[0x17];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007656 u8 reserved_at_1b7[0x9];
Saeed Mahameede2816822015-05-28 22:28:40 +03007657
7658 u8 output_length[0x20];
7659
7660 u8 token[0x8];
7661 u8 signature[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007662 u8 reserved_at_1f0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007663 u8 status[0x7];
7664 u8 ownership[0x1];
7665};
7666
7667struct mlx5_ifc_cmd_out_bits {
7668 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007669 u8 reserved_at_8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007670
7671 u8 syndrome[0x20];
7672
7673 u8 command_output[0x20];
7674};
7675
7676struct mlx5_ifc_cmd_in_bits {
7677 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007678 u8 reserved_at_10[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007679
Matan Barakb4ff3a32016-02-09 14:57:42 +02007680 u8 reserved_at_20[0x10];
Saeed Mahameede2816822015-05-28 22:28:40 +03007681 u8 op_mod[0x10];
7682
7683 u8 command[0][0x20];
7684};
7685
7686struct mlx5_ifc_cmd_if_box_bits {
7687 u8 mailbox_data[512][0x8];
7688
Matan Barakb4ff3a32016-02-09 14:57:42 +02007689 u8 reserved_at_1000[0x180];
Saeed Mahameede2816822015-05-28 22:28:40 +03007690
7691 u8 next_pointer_63_32[0x20];
7692
7693 u8 next_pointer_31_10[0x16];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007694 u8 reserved_at_11b6[0xa];
Saeed Mahameede2816822015-05-28 22:28:40 +03007695
7696 u8 block_number[0x20];
7697
Matan Barakb4ff3a32016-02-09 14:57:42 +02007698 u8 reserved_at_11e0[0x8];
Saeed Mahameede2816822015-05-28 22:28:40 +03007699 u8 token[0x8];
7700 u8 ctrl_signature[0x8];
7701 u8 signature[0x8];
7702};
7703
7704struct mlx5_ifc_mtt_bits {
7705 u8 ptag_63_32[0x20];
7706
7707 u8 ptag_31_8[0x18];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007708 u8 reserved_at_38[0x6];
Saeed Mahameede2816822015-05-28 22:28:40 +03007709 u8 wr_en[0x1];
7710 u8 rd_en[0x1];
7711};
7712
Tariq Toukan928cfe82016-02-22 18:17:29 +02007713struct mlx5_ifc_query_wol_rol_out_bits {
7714 u8 status[0x8];
7715 u8 reserved_at_8[0x18];
7716
7717 u8 syndrome[0x20];
7718
7719 u8 reserved_at_40[0x10];
7720 u8 rol_mode[0x8];
7721 u8 wol_mode[0x8];
7722
7723 u8 reserved_at_60[0x20];
7724};
7725
7726struct mlx5_ifc_query_wol_rol_in_bits {
7727 u8 opcode[0x10];
7728 u8 reserved_at_10[0x10];
7729
7730 u8 reserved_at_20[0x10];
7731 u8 op_mod[0x10];
7732
7733 u8 reserved_at_40[0x40];
7734};
7735
7736struct mlx5_ifc_set_wol_rol_out_bits {
7737 u8 status[0x8];
7738 u8 reserved_at_8[0x18];
7739
7740 u8 syndrome[0x20];
7741
7742 u8 reserved_at_40[0x40];
7743};
7744
7745struct mlx5_ifc_set_wol_rol_in_bits {
7746 u8 opcode[0x10];
7747 u8 reserved_at_10[0x10];
7748
7749 u8 reserved_at_20[0x10];
7750 u8 op_mod[0x10];
7751
7752 u8 rol_mode_valid[0x1];
7753 u8 wol_mode_valid[0x1];
7754 u8 reserved_at_42[0xe];
7755 u8 rol_mode[0x8];
7756 u8 wol_mode[0x8];
7757
7758 u8 reserved_at_60[0x20];
7759};
7760
Saeed Mahameede2816822015-05-28 22:28:40 +03007761enum {
7762 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
7763 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
7764 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
7765};
7766
7767enum {
7768 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
7769 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
7770 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
7771};
7772
7773enum {
7774 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
7775 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
7776 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
7777 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
7778 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
7779 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
7780 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
7781 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
7782 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
7783 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
7784 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
7785};
7786
7787struct mlx5_ifc_initial_seg_bits {
7788 u8 fw_rev_minor[0x10];
7789 u8 fw_rev_major[0x10];
7790
7791 u8 cmd_interface_rev[0x10];
7792 u8 fw_rev_subminor[0x10];
7793
Matan Barakb4ff3a32016-02-09 14:57:42 +02007794 u8 reserved_at_40[0x40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007795
7796 u8 cmdq_phy_addr_63_32[0x20];
7797
7798 u8 cmdq_phy_addr_31_12[0x14];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007799 u8 reserved_at_b4[0x2];
Saeed Mahameede2816822015-05-28 22:28:40 +03007800 u8 nic_interface[0x2];
7801 u8 log_cmdq_size[0x4];
7802 u8 log_cmdq_stride[0x4];
7803
7804 u8 command_doorbell_vector[0x20];
7805
Matan Barakb4ff3a32016-02-09 14:57:42 +02007806 u8 reserved_at_e0[0xf00];
Saeed Mahameede2816822015-05-28 22:28:40 +03007807
7808 u8 initializing[0x1];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007809 u8 reserved_at_fe1[0x4];
Saeed Mahameede2816822015-05-28 22:28:40 +03007810 u8 nic_interface_supported[0x3];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007811 u8 reserved_at_fe8[0x18];
Saeed Mahameede2816822015-05-28 22:28:40 +03007812
7813 struct mlx5_ifc_health_buffer_bits health_buffer;
7814
7815 u8 no_dram_nic_offset[0x20];
7816
Matan Barakb4ff3a32016-02-09 14:57:42 +02007817 u8 reserved_at_1220[0x6e40];
Saeed Mahameede2816822015-05-28 22:28:40 +03007818
Matan Barakb4ff3a32016-02-09 14:57:42 +02007819 u8 reserved_at_8060[0x1f];
Saeed Mahameede2816822015-05-28 22:28:40 +03007820 u8 clear_int[0x1];
7821
7822 u8 health_syndrome[0x8];
7823 u8 health_counter[0x18];
7824
Matan Barakb4ff3a32016-02-09 14:57:42 +02007825 u8 reserved_at_80a0[0x17fc0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007826};
7827
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03007828struct mlx5_ifc_mtpps_reg_bits {
7829 u8 reserved_at_0[0xc];
7830 u8 cap_number_of_pps_pins[0x4];
7831 u8 reserved_at_10[0x4];
7832 u8 cap_max_num_of_pps_in_pins[0x4];
7833 u8 reserved_at_18[0x4];
7834 u8 cap_max_num_of_pps_out_pins[0x4];
7835
7836 u8 reserved_at_20[0x24];
7837 u8 cap_pin_3_mode[0x4];
7838 u8 reserved_at_48[0x4];
7839 u8 cap_pin_2_mode[0x4];
7840 u8 reserved_at_50[0x4];
7841 u8 cap_pin_1_mode[0x4];
7842 u8 reserved_at_58[0x4];
7843 u8 cap_pin_0_mode[0x4];
7844
7845 u8 reserved_at_60[0x4];
7846 u8 cap_pin_7_mode[0x4];
7847 u8 reserved_at_68[0x4];
7848 u8 cap_pin_6_mode[0x4];
7849 u8 reserved_at_70[0x4];
7850 u8 cap_pin_5_mode[0x4];
7851 u8 reserved_at_78[0x4];
7852 u8 cap_pin_4_mode[0x4];
7853
7854 u8 reserved_at_80[0x80];
7855
7856 u8 enable[0x1];
7857 u8 reserved_at_101[0xb];
7858 u8 pattern[0x4];
7859 u8 reserved_at_110[0x4];
7860 u8 pin_mode[0x4];
7861 u8 pin[0x8];
7862
7863 u8 reserved_at_120[0x20];
7864
7865 u8 time_stamp[0x40];
7866
7867 u8 out_pulse_duration[0x10];
7868 u8 out_periodic_adjustment[0x10];
7869
7870 u8 reserved_at_1a0[0x60];
7871};
7872
7873struct mlx5_ifc_mtppse_reg_bits {
7874 u8 reserved_at_0[0x18];
7875 u8 pin[0x8];
7876 u8 event_arm[0x1];
7877 u8 reserved_at_21[0x1b];
7878 u8 event_generation_mode[0x4];
7879 u8 reserved_at_40[0x40];
7880};
7881
Saeed Mahameede2816822015-05-28 22:28:40 +03007882union mlx5_ifc_ports_control_registers_document_bits {
7883 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
7884 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
7885 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
7886 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
7887 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
7888 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
7889 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
7890 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
7891 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
7892 struct mlx5_ifc_pamp_reg_bits pamp_reg;
7893 struct mlx5_ifc_paos_reg_bits paos_reg;
7894 struct mlx5_ifc_pcap_reg_bits pcap_reg;
7895 struct mlx5_ifc_peir_reg_bits peir_reg;
7896 struct mlx5_ifc_pelc_reg_bits pelc_reg;
7897 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
Meny Yossefi1c64bf62016-02-18 18:15:00 +02007898 struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
Saeed Mahameede2816822015-05-28 22:28:40 +03007899 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
7900 struct mlx5_ifc_pifr_reg_bits pifr_reg;
7901 struct mlx5_ifc_pipg_reg_bits pipg_reg;
7902 struct mlx5_ifc_plbf_reg_bits plbf_reg;
7903 struct mlx5_ifc_plib_reg_bits plib_reg;
7904 struct mlx5_ifc_plpc_reg_bits plpc_reg;
7905 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
7906 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
7907 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
7908 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
7909 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
7910 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
7911 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
7912 struct mlx5_ifc_ppad_reg_bits ppad_reg;
7913 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
7914 struct mlx5_ifc_pplm_reg_bits pplm_reg;
7915 struct mlx5_ifc_pplr_reg_bits pplr_reg;
7916 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
7917 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
7918 struct mlx5_ifc_pspa_reg_bits pspa_reg;
7919 struct mlx5_ifc_ptas_reg_bits ptas_reg;
7920 struct mlx5_ifc_ptys_reg_bits ptys_reg;
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007921 struct mlx5_ifc_mlcr_reg_bits mlcr_reg;
Saeed Mahameede2816822015-05-28 22:28:40 +03007922 struct mlx5_ifc_pude_reg_bits pude_reg;
7923 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
7924 struct mlx5_ifc_slrg_reg_bits slrg_reg;
7925 struct mlx5_ifc_sltp_reg_bits sltp_reg;
Eugenia Emantayevf9a1ef72016-10-10 16:05:53 +03007926 struct mlx5_ifc_mtpps_reg_bits mtpps_reg;
7927 struct mlx5_ifc_mtppse_reg_bits mtppse_reg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02007928 u8 reserved_at_0[0x60e0];
Saeed Mahameede2816822015-05-28 22:28:40 +03007929};
7930
7931union mlx5_ifc_debug_enhancements_document_bits {
7932 struct mlx5_ifc_health_buffer_bits health_buffer;
Matan Barakb4ff3a32016-02-09 14:57:42 +02007933 u8 reserved_at_0[0x200];
Saeed Mahameede2816822015-05-28 22:28:40 +03007934};
7935
7936union mlx5_ifc_uplink_pci_interface_document_bits {
7937 struct mlx5_ifc_initial_seg_bits initial_seg;
Matan Barakb4ff3a32016-02-09 14:57:42 +02007938 u8 reserved_at_0[0x20060];
Eli Cohenb7755162014-10-02 12:19:44 +03007939};
7940
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007941struct mlx5_ifc_set_flow_table_root_out_bits {
7942 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007943 u8 reserved_at_8[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007944
7945 u8 syndrome[0x20];
7946
Matan Barakb4ff3a32016-02-09 14:57:42 +02007947 u8 reserved_at_40[0x40];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007948};
7949
7950struct mlx5_ifc_set_flow_table_root_in_bits {
7951 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007952 u8 reserved_at_10[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007953
Matan Barakb4ff3a32016-02-09 14:57:42 +02007954 u8 reserved_at_20[0x10];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007955 u8 op_mod[0x10];
7956
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007957 u8 other_vport[0x1];
7958 u8 reserved_at_41[0xf];
7959 u8 vport_number[0x10];
7960
7961 u8 reserved_at_60[0x20];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007962
7963 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007964 u8 reserved_at_88[0x18];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007965
Matan Barakb4ff3a32016-02-09 14:57:42 +02007966 u8 reserved_at_a0[0x8];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007967 u8 table_id[0x18];
7968
Matan Barakb4ff3a32016-02-09 14:57:42 +02007969 u8 reserved_at_c0[0x140];
Maor Gottlieb2cc43b42016-01-11 10:25:59 +02007970};
7971
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007972enum {
Aviv Heller84df61e2016-05-10 13:47:50 +03007973 MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = (1UL << 0),
7974 MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID = (1UL << 15),
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007975};
7976
7977struct mlx5_ifc_modify_flow_table_out_bits {
7978 u8 status[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007979 u8 reserved_at_8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007980
7981 u8 syndrome[0x20];
7982
Matan Barakb4ff3a32016-02-09 14:57:42 +02007983 u8 reserved_at_40[0x40];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007984};
7985
7986struct mlx5_ifc_modify_flow_table_in_bits {
7987 u8 opcode[0x10];
Matan Barakb4ff3a32016-02-09 14:57:42 +02007988 u8 reserved_at_10[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007989
Matan Barakb4ff3a32016-02-09 14:57:42 +02007990 u8 reserved_at_20[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007991 u8 op_mod[0x10];
7992
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03007993 u8 other_vport[0x1];
7994 u8 reserved_at_41[0xf];
7995 u8 vport_number[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007996
Matan Barakb4ff3a32016-02-09 14:57:42 +02007997 u8 reserved_at_60[0x10];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02007998 u8 modify_field_select[0x10];
7999
8000 u8 table_type[0x8];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008001 u8 reserved_at_88[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008002
Matan Barakb4ff3a32016-02-09 14:57:42 +02008003 u8 reserved_at_a0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008004 u8 table_id[0x18];
8005
Matan Barakb4ff3a32016-02-09 14:57:42 +02008006 u8 reserved_at_c0[0x4];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008007 u8 table_miss_mode[0x4];
Matan Barakb4ff3a32016-02-09 14:57:42 +02008008 u8 reserved_at_c8[0x18];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008009
Matan Barakb4ff3a32016-02-09 14:57:42 +02008010 u8 reserved_at_e0[0x8];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008011 u8 table_miss_id[0x18];
8012
Aviv Heller84df61e2016-05-10 13:47:50 +03008013 u8 reserved_at_100[0x8];
8014 u8 lag_master_next_table_id[0x18];
8015
8016 u8 reserved_at_120[0x80];
Maor Gottlieb34a40e62016-01-11 10:26:00 +02008017};
8018
Saeed Mahameed4f3961e2016-02-22 18:17:25 +02008019struct mlx5_ifc_ets_tcn_config_reg_bits {
8020 u8 g[0x1];
8021 u8 b[0x1];
8022 u8 r[0x1];
8023 u8 reserved_at_3[0x9];
8024 u8 group[0x4];
8025 u8 reserved_at_10[0x9];
8026 u8 bw_allocation[0x7];
8027
8028 u8 reserved_at_20[0xc];
8029 u8 max_bw_units[0x4];
8030 u8 reserved_at_30[0x8];
8031 u8 max_bw_value[0x8];
8032};
8033
8034struct mlx5_ifc_ets_global_config_reg_bits {
8035 u8 reserved_at_0[0x2];
8036 u8 r[0x1];
8037 u8 reserved_at_3[0x1d];
8038
8039 u8 reserved_at_20[0xc];
8040 u8 max_bw_units[0x4];
8041 u8 reserved_at_30[0x8];
8042 u8 max_bw_value[0x8];
8043};
8044
8045struct mlx5_ifc_qetc_reg_bits {
8046 u8 reserved_at_0[0x8];
8047 u8 port_number[0x8];
8048 u8 reserved_at_10[0x30];
8049
8050 struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8];
8051 struct mlx5_ifc_ets_global_config_reg_bits global_configuration;
8052};
8053
8054struct mlx5_ifc_qtct_reg_bits {
8055 u8 reserved_at_0[0x8];
8056 u8 port_number[0x8];
8057 u8 reserved_at_10[0xd];
8058 u8 prio[0x3];
8059
8060 u8 reserved_at_20[0x1d];
8061 u8 tclass[0x3];
8062};
8063
Saeed Mahameed7d5e1422016-04-11 23:10:22 +03008064struct mlx5_ifc_mcia_reg_bits {
8065 u8 l[0x1];
8066 u8 reserved_at_1[0x7];
8067 u8 module[0x8];
8068 u8 reserved_at_10[0x8];
8069 u8 status[0x8];
8070
8071 u8 i2c_device_address[0x8];
8072 u8 page_number[0x8];
8073 u8 device_address[0x10];
8074
8075 u8 reserved_at_40[0x10];
8076 u8 size[0x10];
8077
8078 u8 reserved_at_60[0x20];
8079
8080 u8 dword_0[0x20];
8081 u8 dword_1[0x20];
8082 u8 dword_2[0x20];
8083 u8 dword_3[0x20];
8084 u8 dword_4[0x20];
8085 u8 dword_5[0x20];
8086 u8 dword_6[0x20];
8087 u8 dword_7[0x20];
8088 u8 dword_8[0x20];
8089 u8 dword_9[0x20];
8090 u8 dword_10[0x20];
8091 u8 dword_11[0x20];
8092};
8093
Saeed Mahameed74862162016-06-09 15:11:34 +03008094struct mlx5_ifc_dcbx_param_bits {
8095 u8 dcbx_cee_cap[0x1];
8096 u8 dcbx_ieee_cap[0x1];
8097 u8 dcbx_standby_cap[0x1];
8098 u8 reserved_at_0[0x5];
8099 u8 port_number[0x8];
8100 u8 reserved_at_10[0xa];
8101 u8 max_application_table_size[6];
8102 u8 reserved_at_20[0x15];
8103 u8 version_oper[0x3];
8104 u8 reserved_at_38[5];
8105 u8 version_admin[0x3];
8106 u8 willing_admin[0x1];
8107 u8 reserved_at_41[0x3];
8108 u8 pfc_cap_oper[0x4];
8109 u8 reserved_at_48[0x4];
8110 u8 pfc_cap_admin[0x4];
8111 u8 reserved_at_50[0x4];
8112 u8 num_of_tc_oper[0x4];
8113 u8 reserved_at_58[0x4];
8114 u8 num_of_tc_admin[0x4];
8115 u8 remote_willing[0x1];
8116 u8 reserved_at_61[3];
8117 u8 remote_pfc_cap[4];
8118 u8 reserved_at_68[0x14];
8119 u8 remote_num_of_tc[0x4];
8120 u8 reserved_at_80[0x18];
8121 u8 error[0x8];
8122 u8 reserved_at_a0[0x160];
8123};
Aviv Heller84df61e2016-05-10 13:47:50 +03008124
8125struct mlx5_ifc_lagc_bits {
8126 u8 reserved_at_0[0x1d];
8127 u8 lag_state[0x3];
8128
8129 u8 reserved_at_20[0x14];
8130 u8 tx_remap_affinity_2[0x4];
8131 u8 reserved_at_38[0x4];
8132 u8 tx_remap_affinity_1[0x4];
8133};
8134
8135struct mlx5_ifc_create_lag_out_bits {
8136 u8 status[0x8];
8137 u8 reserved_at_8[0x18];
8138
8139 u8 syndrome[0x20];
8140
8141 u8 reserved_at_40[0x40];
8142};
8143
8144struct mlx5_ifc_create_lag_in_bits {
8145 u8 opcode[0x10];
8146 u8 reserved_at_10[0x10];
8147
8148 u8 reserved_at_20[0x10];
8149 u8 op_mod[0x10];
8150
8151 struct mlx5_ifc_lagc_bits ctx;
8152};
8153
8154struct mlx5_ifc_modify_lag_out_bits {
8155 u8 status[0x8];
8156 u8 reserved_at_8[0x18];
8157
8158 u8 syndrome[0x20];
8159
8160 u8 reserved_at_40[0x40];
8161};
8162
8163struct mlx5_ifc_modify_lag_in_bits {
8164 u8 opcode[0x10];
8165 u8 reserved_at_10[0x10];
8166
8167 u8 reserved_at_20[0x10];
8168 u8 op_mod[0x10];
8169
8170 u8 reserved_at_40[0x20];
8171 u8 field_select[0x20];
8172
8173 struct mlx5_ifc_lagc_bits ctx;
8174};
8175
8176struct mlx5_ifc_query_lag_out_bits {
8177 u8 status[0x8];
8178 u8 reserved_at_8[0x18];
8179
8180 u8 syndrome[0x20];
8181
8182 u8 reserved_at_40[0x40];
8183
8184 struct mlx5_ifc_lagc_bits ctx;
8185};
8186
8187struct mlx5_ifc_query_lag_in_bits {
8188 u8 opcode[0x10];
8189 u8 reserved_at_10[0x10];
8190
8191 u8 reserved_at_20[0x10];
8192 u8 op_mod[0x10];
8193
8194 u8 reserved_at_40[0x40];
8195};
8196
8197struct mlx5_ifc_destroy_lag_out_bits {
8198 u8 status[0x8];
8199 u8 reserved_at_8[0x18];
8200
8201 u8 syndrome[0x20];
8202
8203 u8 reserved_at_40[0x40];
8204};
8205
8206struct mlx5_ifc_destroy_lag_in_bits {
8207 u8 opcode[0x10];
8208 u8 reserved_at_10[0x10];
8209
8210 u8 reserved_at_20[0x10];
8211 u8 op_mod[0x10];
8212
8213 u8 reserved_at_40[0x40];
8214};
8215
8216struct mlx5_ifc_create_vport_lag_out_bits {
8217 u8 status[0x8];
8218 u8 reserved_at_8[0x18];
8219
8220 u8 syndrome[0x20];
8221
8222 u8 reserved_at_40[0x40];
8223};
8224
8225struct mlx5_ifc_create_vport_lag_in_bits {
8226 u8 opcode[0x10];
8227 u8 reserved_at_10[0x10];
8228
8229 u8 reserved_at_20[0x10];
8230 u8 op_mod[0x10];
8231
8232 u8 reserved_at_40[0x40];
8233};
8234
8235struct mlx5_ifc_destroy_vport_lag_out_bits {
8236 u8 status[0x8];
8237 u8 reserved_at_8[0x18];
8238
8239 u8 syndrome[0x20];
8240
8241 u8 reserved_at_40[0x40];
8242};
8243
8244struct mlx5_ifc_destroy_vport_lag_in_bits {
8245 u8 opcode[0x10];
8246 u8 reserved_at_10[0x10];
8247
8248 u8 reserved_at_20[0x10];
8249 u8 op_mod[0x10];
8250
8251 u8 reserved_at_40[0x40];
8252};
8253
Eli Cohend29b7962014-10-02 12:19:43 +03008254#endif /* MLX5_IFC_H */