2 * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved.
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:
10 * Redistribution and use in source and binary forms, with or
11 * without modification, are permitted provided that the following
14 * - Redistributions of source code must retain the above
15 * copyright notice, this list of conditions and the following
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.
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
36 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
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
70 MLX5_CMD_OP_QUERY_HCA_CAP = 0x100,
71 MLX5_CMD_OP_QUERY_ADAPTER = 0x101,
72 MLX5_CMD_OP_INIT_HCA = 0x102,
73 MLX5_CMD_OP_TEARDOWN_HCA = 0x103,
74 MLX5_CMD_OP_ENABLE_HCA = 0x104,
75 MLX5_CMD_OP_DISABLE_HCA = 0x105,
76 MLX5_CMD_OP_QUERY_PAGES = 0x107,
77 MLX5_CMD_OP_MANAGE_PAGES = 0x108,
78 MLX5_CMD_OP_SET_HCA_CAP = 0x109,
79 MLX5_CMD_OP_QUERY_ISSI = 0x10a,
80 MLX5_CMD_OP_SET_ISSI = 0x10b,
81 MLX5_CMD_OP_CREATE_MKEY = 0x200,
82 MLX5_CMD_OP_QUERY_MKEY = 0x201,
83 MLX5_CMD_OP_DESTROY_MKEY = 0x202,
84 MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS = 0x203,
85 MLX5_CMD_OP_PAGE_FAULT_RESUME = 0x204,
86 MLX5_CMD_OP_CREATE_EQ = 0x301,
87 MLX5_CMD_OP_DESTROY_EQ = 0x302,
88 MLX5_CMD_OP_QUERY_EQ = 0x303,
89 MLX5_CMD_OP_GEN_EQE = 0x304,
90 MLX5_CMD_OP_CREATE_CQ = 0x400,
91 MLX5_CMD_OP_DESTROY_CQ = 0x401,
92 MLX5_CMD_OP_QUERY_CQ = 0x402,
93 MLX5_CMD_OP_MODIFY_CQ = 0x403,
94 MLX5_CMD_OP_CREATE_QP = 0x500,
95 MLX5_CMD_OP_DESTROY_QP = 0x501,
96 MLX5_CMD_OP_RST2INIT_QP = 0x502,
97 MLX5_CMD_OP_INIT2RTR_QP = 0x503,
98 MLX5_CMD_OP_RTR2RTS_QP = 0x504,
99 MLX5_CMD_OP_RTS2RTS_QP = 0x505,
100 MLX5_CMD_OP_SQERR2RTS_QP = 0x506,
101 MLX5_CMD_OP_2ERR_QP = 0x507,
102 MLX5_CMD_OP_2RST_QP = 0x50a,
103 MLX5_CMD_OP_QUERY_QP = 0x50b,
104 MLX5_CMD_OP_SQD_RTS_QP = 0x50c,
105 MLX5_CMD_OP_INIT2INIT_QP = 0x50e,
106 MLX5_CMD_OP_CREATE_PSV = 0x600,
107 MLX5_CMD_OP_DESTROY_PSV = 0x601,
108 MLX5_CMD_OP_CREATE_SRQ = 0x700,
109 MLX5_CMD_OP_DESTROY_SRQ = 0x701,
110 MLX5_CMD_OP_QUERY_SRQ = 0x702,
111 MLX5_CMD_OP_ARM_RQ = 0x703,
112 MLX5_CMD_OP_CREATE_XRC_SRQ = 0x705,
113 MLX5_CMD_OP_DESTROY_XRC_SRQ = 0x706,
114 MLX5_CMD_OP_QUERY_XRC_SRQ = 0x707,
115 MLX5_CMD_OP_ARM_XRC_SRQ = 0x708,
116 MLX5_CMD_OP_CREATE_DCT = 0x710,
117 MLX5_CMD_OP_DESTROY_DCT = 0x711,
118 MLX5_CMD_OP_DRAIN_DCT = 0x712,
119 MLX5_CMD_OP_QUERY_DCT = 0x713,
120 MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION = 0x714,
121 MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750,
122 MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751,
123 MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752,
124 MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT = 0x753,
125 MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT = 0x754,
126 MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT = 0x755,
127 MLX5_CMD_OP_QUERY_ROCE_ADDRESS = 0x760,
128 MLX5_CMD_OP_SET_ROCE_ADDRESS = 0x761,
129 MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT = 0x762,
130 MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT = 0x763,
131 MLX5_CMD_OP_QUERY_HCA_VPORT_GID = 0x764,
132 MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY = 0x765,
133 MLX5_CMD_OP_QUERY_VPORT_COUNTER = 0x770,
134 MLX5_CMD_OP_ALLOC_Q_COUNTER = 0x771,
135 MLX5_CMD_OP_DEALLOC_Q_COUNTER = 0x772,
136 MLX5_CMD_OP_QUERY_Q_COUNTER = 0x773,
137 MLX5_CMD_OP_ALLOC_PD = 0x800,
138 MLX5_CMD_OP_DEALLOC_PD = 0x801,
139 MLX5_CMD_OP_ALLOC_UAR = 0x802,
140 MLX5_CMD_OP_DEALLOC_UAR = 0x803,
141 MLX5_CMD_OP_CONFIG_INT_MODERATION = 0x804,
142 MLX5_CMD_OP_ACCESS_REG = 0x805,
143 MLX5_CMD_OP_ATTACH_TO_MCG = 0x806,
144 MLX5_CMD_OP_DETTACH_FROM_MCG = 0x807,
145 MLX5_CMD_OP_GET_DROPPED_PACKET_LOG = 0x80a,
146 MLX5_CMD_OP_MAD_IFC = 0x50d,
147 MLX5_CMD_OP_QUERY_MAD_DEMUX = 0x80b,
148 MLX5_CMD_OP_SET_MAD_DEMUX = 0x80c,
149 MLX5_CMD_OP_NOP = 0x80d,
150 MLX5_CMD_OP_ALLOC_XRCD = 0x80e,
151 MLX5_CMD_OP_DEALLOC_XRCD = 0x80f,
152 MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN = 0x816,
153 MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN = 0x817,
154 MLX5_CMD_OP_QUERY_CONG_STATUS = 0x822,
155 MLX5_CMD_OP_MODIFY_CONG_STATUS = 0x823,
156 MLX5_CMD_OP_QUERY_CONG_PARAMS = 0x824,
157 MLX5_CMD_OP_MODIFY_CONG_PARAMS = 0x825,
158 MLX5_CMD_OP_QUERY_CONG_STATISTICS = 0x826,
159 MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT = 0x827,
160 MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT = 0x828,
161 MLX5_CMD_OP_SET_L2_TABLE_ENTRY = 0x829,
162 MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY = 0x82a,
163 MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY = 0x82b,
164 MLX5_CMD_OP_CREATE_TIR = 0x900,
165 MLX5_CMD_OP_MODIFY_TIR = 0x901,
166 MLX5_CMD_OP_DESTROY_TIR = 0x902,
167 MLX5_CMD_OP_QUERY_TIR = 0x903,
168 MLX5_CMD_OP_CREATE_SQ = 0x904,
169 MLX5_CMD_OP_MODIFY_SQ = 0x905,
170 MLX5_CMD_OP_DESTROY_SQ = 0x906,
171 MLX5_CMD_OP_QUERY_SQ = 0x907,
172 MLX5_CMD_OP_CREATE_RQ = 0x908,
173 MLX5_CMD_OP_MODIFY_RQ = 0x909,
174 MLX5_CMD_OP_DESTROY_RQ = 0x90a,
175 MLX5_CMD_OP_QUERY_RQ = 0x90b,
176 MLX5_CMD_OP_CREATE_RMP = 0x90c,
177 MLX5_CMD_OP_MODIFY_RMP = 0x90d,
178 MLX5_CMD_OP_DESTROY_RMP = 0x90e,
179 MLX5_CMD_OP_QUERY_RMP = 0x90f,
180 MLX5_CMD_OP_CREATE_TIS = 0x912,
181 MLX5_CMD_OP_MODIFY_TIS = 0x913,
182 MLX5_CMD_OP_DESTROY_TIS = 0x914,
183 MLX5_CMD_OP_QUERY_TIS = 0x915,
184 MLX5_CMD_OP_CREATE_RQT = 0x916,
185 MLX5_CMD_OP_MODIFY_RQT = 0x917,
186 MLX5_CMD_OP_DESTROY_RQT = 0x918,
187 MLX5_CMD_OP_QUERY_RQT = 0x919,
188 MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930,
189 MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931,
190 MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932,
191 MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933,
192 MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934,
193 MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935,
194 MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936,
195 MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937,
196 MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938
199 struct mlx5_ifc_flow_table_fields_supported_bits {
202 u8 outer_ether_type[0x1];
204 u8 outer_first_prio[0x1];
205 u8 outer_first_cfi[0x1];
206 u8 outer_first_vid[0x1];
208 u8 outer_second_prio[0x1];
209 u8 outer_second_cfi[0x1];
210 u8 outer_second_vid[0x1];
215 u8 outer_ip_protocol[0x1];
216 u8 outer_ip_ecn[0x1];
217 u8 outer_ip_dscp[0x1];
218 u8 outer_udp_sport[0x1];
219 u8 outer_udp_dport[0x1];
220 u8 outer_tcp_sport[0x1];
221 u8 outer_tcp_dport[0x1];
222 u8 outer_tcp_flags[0x1];
223 u8 outer_gre_protocol[0x1];
224 u8 outer_gre_key[0x1];
225 u8 outer_vxlan_vni[0x1];
227 u8 source_eswitch_port[0x1];
231 u8 inner_ether_type[0x1];
233 u8 inner_first_prio[0x1];
234 u8 inner_first_cfi[0x1];
235 u8 inner_first_vid[0x1];
237 u8 inner_second_prio[0x1];
238 u8 inner_second_cfi[0x1];
239 u8 inner_second_vid[0x1];
244 u8 inner_ip_protocol[0x1];
245 u8 inner_ip_ecn[0x1];
246 u8 inner_ip_dscp[0x1];
247 u8 inner_udp_sport[0x1];
248 u8 inner_udp_dport[0x1];
249 u8 inner_tcp_sport[0x1];
250 u8 inner_tcp_dport[0x1];
251 u8 inner_tcp_flags[0x1];
257 struct mlx5_ifc_flow_table_prop_layout_bits {
262 u8 log_max_ft_size[0x6];
264 u8 max_ft_level[0x8];
269 u8 log_max_ft_num[0x8];
272 u8 log_max_destination[0x8];
275 u8 log_max_flow[0x8];
279 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support;
281 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support;
284 struct mlx5_ifc_odp_per_transport_service_cap_bits {
294 struct mlx5_ifc_fte_match_set_lyr_2_4_bits {
329 struct mlx5_ifc_fte_match_set_misc_bits {
333 u8 source_port[0x10];
335 u8 outer_second_prio[0x3];
336 u8 outer_second_cfi[0x1];
337 u8 outer_second_vid[0xc];
338 u8 inner_second_prio[0x3];
339 u8 inner_second_cfi[0x1];
340 u8 inner_second_vid[0xc];
342 u8 outer_second_vlan_tag[0x1];
343 u8 inner_second_vlan_tag[0x1];
345 u8 gre_protocol[0x10];
356 u8 outer_ipv6_flow_label[0x14];
359 u8 inner_ipv6_flow_label[0x14];
364 struct mlx5_ifc_cmd_pas_bits {
371 struct mlx5_ifc_uint64_bits {
378 MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0,
379 MLX5_ADS_STAT_RATE_2_5GBPS = 0x7,
380 MLX5_ADS_STAT_RATE_10GBPS = 0x8,
381 MLX5_ADS_STAT_RATE_30GBPS = 0x9,
382 MLX5_ADS_STAT_RATE_5GBPS = 0xa,
383 MLX5_ADS_STAT_RATE_20GBPS = 0xb,
384 MLX5_ADS_STAT_RATE_40GBPS = 0xc,
385 MLX5_ADS_STAT_RATE_60GBPS = 0xd,
386 MLX5_ADS_STAT_RATE_80GBPS = 0xe,
387 MLX5_ADS_STAT_RATE_120GBPS = 0xf,
390 struct mlx5_ifc_ads_bits {
403 u8 src_addr_index[0x8];
412 u8 rgid_rip[16][0x8];
432 struct mlx5_ifc_flow_table_nic_cap_bits {
433 u8 reserved_0[0x200];
435 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;
437 u8 reserved_1[0x200];
439 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;
441 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit;
443 u8 reserved_2[0x200];
445 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer;
447 u8 reserved_3[0x7200];
450 struct mlx5_ifc_flow_table_eswitch_cap_bits {
451 u8 reserved_0[0x200];
453 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb;
455 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress;
457 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress;
459 u8 reserved_1[0x7800];
462 struct mlx5_ifc_per_protocol_networking_offload_caps_bits {
466 u8 lro_psh_flag[0x1];
467 u8 lro_time_stamp[0x1];
469 u8 self_lb_en_modifiable[0x1];
473 u8 rss_ind_tbl_cap[0x4];
475 u8 tunnel_lso_const_out_ip_id[0x1];
477 u8 tunnel_statless_gre[0x1];
478 u8 tunnel_stateless_vxlan[0x1];
483 u8 lro_min_mss_size[0x10];
485 u8 reserved_7[0x120];
487 u8 lro_timer_supported_periods[4][0x20];
489 u8 reserved_8[0x600];
492 struct mlx5_ifc_roce_cap_bits {
501 u8 roce_version[0x8];
504 u8 r_roce_dest_udp_port[0x10];
506 u8 r_roce_max_src_udp_port[0x10];
507 u8 r_roce_min_src_udp_port[0x10];
510 u8 roce_address_table_size[0x10];
512 u8 reserved_6[0x700];
516 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0,
517 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2,
518 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4,
519 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8,
520 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10,
521 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20,
522 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40,
523 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80,
524 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100,
528 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1,
529 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2,
530 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4,
531 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8,
532 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10,
533 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20,
534 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40,
535 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80,
536 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100,
539 struct mlx5_ifc_atomic_caps_bits {
542 u8 atomic_req_endianness[0x1];
548 u8 atomic_operations[0x10];
551 u8 atomic_size_qp[0x10];
554 u8 atomic_size_dc[0x10];
556 u8 reserved_6[0x720];
559 struct mlx5_ifc_odp_cap_bits {
567 struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps;
569 struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps;
571 struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps;
573 u8 reserved_3[0x720];
577 MLX5_WQ_TYPE_LINKED_LIST = 0x0,
578 MLX5_WQ_TYPE_CYCLIC = 0x1,
579 MLX5_WQ_TYPE_STRQ = 0x2,
583 MLX5_WQ_END_PAD_MODE_NONE = 0x0,
584 MLX5_WQ_END_PAD_MODE_ALIGN = 0x1,
588 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0,
589 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1,
590 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2,
591 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3,
592 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4,
596 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0,
597 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1,
598 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2,
599 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3,
600 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4,
601 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5,
605 MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0,
606 MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1,
610 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0,
611 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1,
612 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3,
616 MLX5_CAP_PORT_TYPE_IB = 0x0,
617 MLX5_CAP_PORT_TYPE_ETH = 0x1,
620 struct mlx5_ifc_cmd_hca_cap_bits {
623 u8 log_max_srq_sz[0x8];
624 u8 log_max_qp_sz[0x8];
633 u8 log_max_cq_sz[0x8];
637 u8 log_max_eq_sz[0x8];
639 u8 log_max_mkey[0x6];
643 u8 max_indirection[0x8];
645 u8 log_max_mrw_sz[0x7];
647 u8 log_max_bsf_list_size[0x6];
649 u8 log_max_klm_list_size[0x6];
652 u8 log_max_ra_req_dc[0x6];
654 u8 log_max_ra_res_dc[0x6];
657 u8 log_max_ra_req_qp[0x6];
659 u8 log_max_ra_res_qp[0x6];
662 u8 cc_query_allowed[0x1];
663 u8 cc_modify_allowed[0x1];
665 u8 gid_table_size[0x10];
667 u8 out_of_seq_cnt[0x1];
668 u8 vport_counters[0x1];
671 u8 pkey_table_size[0x10];
673 u8 vport_group_manager[0x1];
674 u8 vhca_group_manager[0x1];
679 u8 nic_flow_table[0x1];
680 u8 eswitch_flow_table[0x1];
683 u8 local_ca_ack_delay[0x5];
690 u8 reserved_21[0x18];
692 u8 stat_rate_support[0x10];
696 u8 compact_address_vector[0x1];
698 u8 drain_sigerr[0x1];
699 u8 cmdif_checksum[0x2];
702 u8 wq_signature[0x1];
703 u8 sctr_data_cqe[0x1];
710 u8 eth_net_offloads[0x1];
717 u8 cq_moderation[0x1];
723 u8 scqe_break_moderation[0x1];
744 u8 pad_tx_eth_packet[0x1];
746 u8 log_bf_reg_size[0x5];
747 u8 reserved_38[0x10];
749 u8 reserved_39[0x10];
750 u8 max_wqe_sz_sq[0x10];
752 u8 reserved_40[0x10];
753 u8 max_wqe_sz_rq[0x10];
755 u8 reserved_41[0x10];
756 u8 max_wqe_sz_sq_dc[0x10];
761 u8 reserved_43[0x18];
765 u8 log_max_transport_domain[0x5];
769 u8 log_max_xrcd[0x5];
771 u8 reserved_47[0x20];
782 u8 basic_cyclic_rcv_wqe[0x1];
788 u8 log_max_rqt_size[0x5];
790 u8 log_max_tis_per_sq[0x5];
793 u8 log_max_stride_sz_rq[0x5];
795 u8 log_min_stride_sz_rq[0x5];
797 u8 log_max_stride_sz_sq[0x5];
799 u8 log_min_stride_sz_sq[0x5];
801 u8 reserved_60[0x1b];
802 u8 log_max_wq_sz[0x5];
804 u8 nic_vport_change_event[0x1];
806 u8 log_max_vlan_list[0x5];
808 u8 log_max_current_mc_list[0x5];
810 u8 log_max_current_uc_list[0x5];
812 u8 reserved_64[0x80];
815 u8 log_max_l2_table[0x5];
817 u8 log_uar_page_sz[0x10];
819 u8 reserved_67[0xe0];
821 u8 reserved_68[0x1f];
824 u8 cqe_zip_timeout[0x10];
825 u8 cqe_zip_max_num[0x10];
827 u8 reserved_69[0x220];
830 enum mlx5_flow_destination_type {
831 MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0,
832 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1,
833 MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2,
836 struct mlx5_ifc_dest_format_struct_bits {
837 u8 destination_type[0x8];
838 u8 destination_id[0x18];
843 struct mlx5_ifc_fte_match_param_bits {
844 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
846 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
848 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
850 u8 reserved_0[0xa00];
854 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
855 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
856 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
857 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
858 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
861 struct mlx5_ifc_rx_hash_field_select_bits {
862 u8 l3_prot_type[0x1];
863 u8 l4_prot_type[0x1];
864 u8 selected_fields[0x1e];
868 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
869 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
873 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
874 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
877 struct mlx5_ifc_wq_bits {
879 u8 wq_signature[0x1];
880 u8 end_padding_mode[0x2];
884 u8 hds_skip_first_sge[0x1];
885 u8 log2_hds_buf_size[0x3];
903 u8 log_wq_stride[0x4];
905 u8 log_wq_pg_sz[0x5];
909 u8 reserved_7[0x4e0];
911 struct mlx5_ifc_cmd_pas_bits pas[0];
914 struct mlx5_ifc_rq_num_bits {
919 struct mlx5_ifc_mac_address_layout_bits {
921 u8 mac_addr_47_32[0x10];
923 u8 mac_addr_31_0[0x20];
926 struct mlx5_ifc_vlan_layout_bits {
933 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
936 u8 min_time_between_cnps[0x20];
941 u8 cnp_802p_prio[0x3];
943 u8 reserved_3[0x720];
946 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
950 u8 clamp_tgt_rate[0x1];
952 u8 clamp_tgt_rate_after_time_inc[0x1];
957 u8 rpg_time_reset[0x20];
959 u8 rpg_byte_reset[0x20];
961 u8 rpg_threshold[0x20];
963 u8 rpg_max_rate[0x20];
965 u8 rpg_ai_rate[0x20];
967 u8 rpg_hai_rate[0x20];
971 u8 rpg_min_dec_fac[0x20];
973 u8 rpg_min_rate[0x20];
977 u8 rate_to_set_on_first_cnp[0x20];
981 u8 dce_tcp_rtt[0x20];
983 u8 rate_reduce_monitor_period[0x20];
987 u8 initial_alpha_value[0x20];
989 u8 reserved_7[0x4a0];
992 struct mlx5_ifc_cong_control_802_1qau_rp_bits {
995 u8 rppp_max_rps[0x20];
997 u8 rpg_time_reset[0x20];
999 u8 rpg_byte_reset[0x20];
1001 u8 rpg_threshold[0x20];
1003 u8 rpg_max_rate[0x20];
1005 u8 rpg_ai_rate[0x20];
1007 u8 rpg_hai_rate[0x20];
1011 u8 rpg_min_dec_fac[0x20];
1013 u8 rpg_min_rate[0x20];
1015 u8 reserved_1[0x640];
1019 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1020 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1021 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1024 struct mlx5_ifc_resize_field_select_bits {
1025 u8 resize_field_select[0x20];
1029 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1030 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1031 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1032 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1035 struct mlx5_ifc_modify_field_select_bits {
1036 u8 modify_field_select[0x20];
1039 struct mlx5_ifc_field_select_r_roce_np_bits {
1040 u8 field_select_r_roce_np[0x20];
1043 struct mlx5_ifc_field_select_r_roce_rp_bits {
1044 u8 field_select_r_roce_rp[0x20];
1048 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1049 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1050 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1051 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1052 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1053 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1054 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1055 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1056 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1057 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1060 struct mlx5_ifc_field_select_802_1qau_rp_bits {
1061 u8 field_select_8021qaurp[0x20];
1064 struct mlx5_ifc_phys_layer_cntrs_bits {
1065 u8 time_since_last_clear_high[0x20];
1067 u8 time_since_last_clear_low[0x20];
1069 u8 symbol_errors_high[0x20];
1071 u8 symbol_errors_low[0x20];
1073 u8 sync_headers_errors_high[0x20];
1075 u8 sync_headers_errors_low[0x20];
1077 u8 edpl_bip_errors_lane0_high[0x20];
1079 u8 edpl_bip_errors_lane0_low[0x20];
1081 u8 edpl_bip_errors_lane1_high[0x20];
1083 u8 edpl_bip_errors_lane1_low[0x20];
1085 u8 edpl_bip_errors_lane2_high[0x20];
1087 u8 edpl_bip_errors_lane2_low[0x20];
1089 u8 edpl_bip_errors_lane3_high[0x20];
1091 u8 edpl_bip_errors_lane3_low[0x20];
1093 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1095 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1097 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1099 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1101 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1103 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1105 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1107 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1109 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1111 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1113 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1115 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1117 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1119 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1121 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1123 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1125 u8 rs_fec_corrected_blocks_high[0x20];
1127 u8 rs_fec_corrected_blocks_low[0x20];
1129 u8 rs_fec_uncorrectable_blocks_high[0x20];
1131 u8 rs_fec_uncorrectable_blocks_low[0x20];
1133 u8 rs_fec_no_errors_blocks_high[0x20];
1135 u8 rs_fec_no_errors_blocks_low[0x20];
1137 u8 rs_fec_single_error_blocks_high[0x20];
1139 u8 rs_fec_single_error_blocks_low[0x20];
1141 u8 rs_fec_corrected_symbols_total_high[0x20];
1143 u8 rs_fec_corrected_symbols_total_low[0x20];
1145 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1147 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1149 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1151 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1153 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1155 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1157 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1159 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1161 u8 link_down_events[0x20];
1163 u8 successful_recovery_events[0x20];
1165 u8 reserved_0[0x180];
1168 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1169 u8 transmit_queue_high[0x20];
1171 u8 transmit_queue_low[0x20];
1173 u8 reserved_0[0x780];
1176 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1177 u8 rx_octets_high[0x20];
1179 u8 rx_octets_low[0x20];
1181 u8 reserved_0[0xc0];
1183 u8 rx_frames_high[0x20];
1185 u8 rx_frames_low[0x20];
1187 u8 tx_octets_high[0x20];
1189 u8 tx_octets_low[0x20];
1191 u8 reserved_1[0xc0];
1193 u8 tx_frames_high[0x20];
1195 u8 tx_frames_low[0x20];
1197 u8 rx_pause_high[0x20];
1199 u8 rx_pause_low[0x20];
1201 u8 rx_pause_duration_high[0x20];
1203 u8 rx_pause_duration_low[0x20];
1205 u8 tx_pause_high[0x20];
1207 u8 tx_pause_low[0x20];
1209 u8 tx_pause_duration_high[0x20];
1211 u8 tx_pause_duration_low[0x20];
1213 u8 rx_pause_transition_high[0x20];
1215 u8 rx_pause_transition_low[0x20];
1217 u8 reserved_2[0x400];
1220 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1221 u8 port_transmit_wait_high[0x20];
1223 u8 port_transmit_wait_low[0x20];
1225 u8 reserved_0[0x780];
1228 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1229 u8 dot3stats_alignment_errors_high[0x20];
1231 u8 dot3stats_alignment_errors_low[0x20];
1233 u8 dot3stats_fcs_errors_high[0x20];
1235 u8 dot3stats_fcs_errors_low[0x20];
1237 u8 dot3stats_single_collision_frames_high[0x20];
1239 u8 dot3stats_single_collision_frames_low[0x20];
1241 u8 dot3stats_multiple_collision_frames_high[0x20];
1243 u8 dot3stats_multiple_collision_frames_low[0x20];
1245 u8 dot3stats_sqe_test_errors_high[0x20];
1247 u8 dot3stats_sqe_test_errors_low[0x20];
1249 u8 dot3stats_deferred_transmissions_high[0x20];
1251 u8 dot3stats_deferred_transmissions_low[0x20];
1253 u8 dot3stats_late_collisions_high[0x20];
1255 u8 dot3stats_late_collisions_low[0x20];
1257 u8 dot3stats_excessive_collisions_high[0x20];
1259 u8 dot3stats_excessive_collisions_low[0x20];
1261 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1263 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1265 u8 dot3stats_carrier_sense_errors_high[0x20];
1267 u8 dot3stats_carrier_sense_errors_low[0x20];
1269 u8 dot3stats_frame_too_longs_high[0x20];
1271 u8 dot3stats_frame_too_longs_low[0x20];
1273 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1275 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1277 u8 dot3stats_symbol_errors_high[0x20];
1279 u8 dot3stats_symbol_errors_low[0x20];
1281 u8 dot3control_in_unknown_opcodes_high[0x20];
1283 u8 dot3control_in_unknown_opcodes_low[0x20];
1285 u8 dot3in_pause_frames_high[0x20];
1287 u8 dot3in_pause_frames_low[0x20];
1289 u8 dot3out_pause_frames_high[0x20];
1291 u8 dot3out_pause_frames_low[0x20];
1293 u8 reserved_0[0x3c0];
1296 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1297 u8 ether_stats_drop_events_high[0x20];
1299 u8 ether_stats_drop_events_low[0x20];
1301 u8 ether_stats_octets_high[0x20];
1303 u8 ether_stats_octets_low[0x20];
1305 u8 ether_stats_pkts_high[0x20];
1307 u8 ether_stats_pkts_low[0x20];
1309 u8 ether_stats_broadcast_pkts_high[0x20];
1311 u8 ether_stats_broadcast_pkts_low[0x20];
1313 u8 ether_stats_multicast_pkts_high[0x20];
1315 u8 ether_stats_multicast_pkts_low[0x20];
1317 u8 ether_stats_crc_align_errors_high[0x20];
1319 u8 ether_stats_crc_align_errors_low[0x20];
1321 u8 ether_stats_undersize_pkts_high[0x20];
1323 u8 ether_stats_undersize_pkts_low[0x20];
1325 u8 ether_stats_oversize_pkts_high[0x20];
1327 u8 ether_stats_oversize_pkts_low[0x20];
1329 u8 ether_stats_fragments_high[0x20];
1331 u8 ether_stats_fragments_low[0x20];
1333 u8 ether_stats_jabbers_high[0x20];
1335 u8 ether_stats_jabbers_low[0x20];
1337 u8 ether_stats_collisions_high[0x20];
1339 u8 ether_stats_collisions_low[0x20];
1341 u8 ether_stats_pkts64octets_high[0x20];
1343 u8 ether_stats_pkts64octets_low[0x20];
1345 u8 ether_stats_pkts65to127octets_high[0x20];
1347 u8 ether_stats_pkts65to127octets_low[0x20];
1349 u8 ether_stats_pkts128to255octets_high[0x20];
1351 u8 ether_stats_pkts128to255octets_low[0x20];
1353 u8 ether_stats_pkts256to511octets_high[0x20];
1355 u8 ether_stats_pkts256to511octets_low[0x20];
1357 u8 ether_stats_pkts512to1023octets_high[0x20];
1359 u8 ether_stats_pkts512to1023octets_low[0x20];
1361 u8 ether_stats_pkts1024to1518octets_high[0x20];
1363 u8 ether_stats_pkts1024to1518octets_low[0x20];
1365 u8 ether_stats_pkts1519to2047octets_high[0x20];
1367 u8 ether_stats_pkts1519to2047octets_low[0x20];
1369 u8 ether_stats_pkts2048to4095octets_high[0x20];
1371 u8 ether_stats_pkts2048to4095octets_low[0x20];
1373 u8 ether_stats_pkts4096to8191octets_high[0x20];
1375 u8 ether_stats_pkts4096to8191octets_low[0x20];
1377 u8 ether_stats_pkts8192to10239octets_high[0x20];
1379 u8 ether_stats_pkts8192to10239octets_low[0x20];
1381 u8 reserved_0[0x280];
1384 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1385 u8 if_in_octets_high[0x20];
1387 u8 if_in_octets_low[0x20];
1389 u8 if_in_ucast_pkts_high[0x20];
1391 u8 if_in_ucast_pkts_low[0x20];
1393 u8 if_in_discards_high[0x20];
1395 u8 if_in_discards_low[0x20];
1397 u8 if_in_errors_high[0x20];
1399 u8 if_in_errors_low[0x20];
1401 u8 if_in_unknown_protos_high[0x20];
1403 u8 if_in_unknown_protos_low[0x20];
1405 u8 if_out_octets_high[0x20];
1407 u8 if_out_octets_low[0x20];
1409 u8 if_out_ucast_pkts_high[0x20];
1411 u8 if_out_ucast_pkts_low[0x20];
1413 u8 if_out_discards_high[0x20];
1415 u8 if_out_discards_low[0x20];
1417 u8 if_out_errors_high[0x20];
1419 u8 if_out_errors_low[0x20];
1421 u8 if_in_multicast_pkts_high[0x20];
1423 u8 if_in_multicast_pkts_low[0x20];
1425 u8 if_in_broadcast_pkts_high[0x20];
1427 u8 if_in_broadcast_pkts_low[0x20];
1429 u8 if_out_multicast_pkts_high[0x20];
1431 u8 if_out_multicast_pkts_low[0x20];
1433 u8 if_out_broadcast_pkts_high[0x20];
1435 u8 if_out_broadcast_pkts_low[0x20];
1437 u8 reserved_0[0x480];
1440 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
1441 u8 a_frames_transmitted_ok_high[0x20];
1443 u8 a_frames_transmitted_ok_low[0x20];
1445 u8 a_frames_received_ok_high[0x20];
1447 u8 a_frames_received_ok_low[0x20];
1449 u8 a_frame_check_sequence_errors_high[0x20];
1451 u8 a_frame_check_sequence_errors_low[0x20];
1453 u8 a_alignment_errors_high[0x20];
1455 u8 a_alignment_errors_low[0x20];
1457 u8 a_octets_transmitted_ok_high[0x20];
1459 u8 a_octets_transmitted_ok_low[0x20];
1461 u8 a_octets_received_ok_high[0x20];
1463 u8 a_octets_received_ok_low[0x20];
1465 u8 a_multicast_frames_xmitted_ok_high[0x20];
1467 u8 a_multicast_frames_xmitted_ok_low[0x20];
1469 u8 a_broadcast_frames_xmitted_ok_high[0x20];
1471 u8 a_broadcast_frames_xmitted_ok_low[0x20];
1473 u8 a_multicast_frames_received_ok_high[0x20];
1475 u8 a_multicast_frames_received_ok_low[0x20];
1477 u8 a_broadcast_frames_received_ok_high[0x20];
1479 u8 a_broadcast_frames_received_ok_low[0x20];
1481 u8 a_in_range_length_errors_high[0x20];
1483 u8 a_in_range_length_errors_low[0x20];
1485 u8 a_out_of_range_length_field_high[0x20];
1487 u8 a_out_of_range_length_field_low[0x20];
1489 u8 a_frame_too_long_errors_high[0x20];
1491 u8 a_frame_too_long_errors_low[0x20];
1493 u8 a_symbol_error_during_carrier_high[0x20];
1495 u8 a_symbol_error_during_carrier_low[0x20];
1497 u8 a_mac_control_frames_transmitted_high[0x20];
1499 u8 a_mac_control_frames_transmitted_low[0x20];
1501 u8 a_mac_control_frames_received_high[0x20];
1503 u8 a_mac_control_frames_received_low[0x20];
1505 u8 a_unsupported_opcodes_received_high[0x20];
1507 u8 a_unsupported_opcodes_received_low[0x20];
1509 u8 a_pause_mac_ctrl_frames_received_high[0x20];
1511 u8 a_pause_mac_ctrl_frames_received_low[0x20];
1513 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
1515 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
1517 u8 reserved_0[0x300];
1520 struct mlx5_ifc_cmd_inter_comp_event_bits {
1521 u8 command_completion_vector[0x20];
1523 u8 reserved_0[0xc0];
1526 struct mlx5_ifc_stall_vl_event_bits {
1527 u8 reserved_0[0x18];
1532 u8 reserved_2[0xa0];
1535 struct mlx5_ifc_db_bf_congestion_event_bits {
1536 u8 event_subtype[0x8];
1538 u8 congestion_level[0x8];
1541 u8 reserved_2[0xa0];
1544 struct mlx5_ifc_gpio_event_bits {
1545 u8 reserved_0[0x60];
1547 u8 gpio_event_hi[0x20];
1549 u8 gpio_event_lo[0x20];
1551 u8 reserved_1[0x40];
1554 struct mlx5_ifc_port_state_change_event_bits {
1555 u8 reserved_0[0x40];
1558 u8 reserved_1[0x1c];
1560 u8 reserved_2[0x80];
1563 struct mlx5_ifc_dropped_packet_logged_bits {
1564 u8 reserved_0[0xe0];
1568 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
1569 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
1572 struct mlx5_ifc_cq_error_bits {
1576 u8 reserved_1[0x20];
1578 u8 reserved_2[0x18];
1581 u8 reserved_3[0x80];
1584 struct mlx5_ifc_rdma_page_fault_event_bits {
1585 u8 bytes_committed[0x20];
1589 u8 reserved_0[0x10];
1590 u8 packet_len[0x10];
1592 u8 rdma_op_len[0x20];
1603 struct mlx5_ifc_wqe_associated_page_fault_event_bits {
1604 u8 bytes_committed[0x20];
1606 u8 reserved_0[0x10];
1609 u8 reserved_1[0x10];
1612 u8 reserved_2[0x60];
1621 struct mlx5_ifc_qp_events_bits {
1622 u8 reserved_0[0xa0];
1625 u8 reserved_1[0x18];
1628 u8 qpn_rqn_sqn[0x18];
1631 struct mlx5_ifc_dct_events_bits {
1632 u8 reserved_0[0xc0];
1635 u8 dct_number[0x18];
1638 struct mlx5_ifc_comp_event_bits {
1639 u8 reserved_0[0xc0];
1646 MLX5_QPC_STATE_RST = 0x0,
1647 MLX5_QPC_STATE_INIT = 0x1,
1648 MLX5_QPC_STATE_RTR = 0x2,
1649 MLX5_QPC_STATE_RTS = 0x3,
1650 MLX5_QPC_STATE_SQER = 0x4,
1651 MLX5_QPC_STATE_ERR = 0x6,
1652 MLX5_QPC_STATE_SQD = 0x7,
1653 MLX5_QPC_STATE_SUSPENDED = 0x9,
1657 MLX5_QPC_ST_RC = 0x0,
1658 MLX5_QPC_ST_UC = 0x1,
1659 MLX5_QPC_ST_UD = 0x2,
1660 MLX5_QPC_ST_XRC = 0x3,
1661 MLX5_QPC_ST_DCI = 0x5,
1662 MLX5_QPC_ST_QP0 = 0x7,
1663 MLX5_QPC_ST_QP1 = 0x8,
1664 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
1665 MLX5_QPC_ST_REG_UMR = 0xc,
1669 MLX5_QPC_PM_STATE_ARMED = 0x0,
1670 MLX5_QPC_PM_STATE_REARM = 0x1,
1671 MLX5_QPC_PM_STATE_RESERVED = 0x2,
1672 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
1676 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
1677 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
1681 MLX5_QPC_MTU_256_BYTES = 0x1,
1682 MLX5_QPC_MTU_512_BYTES = 0x2,
1683 MLX5_QPC_MTU_1K_BYTES = 0x3,
1684 MLX5_QPC_MTU_2K_BYTES = 0x4,
1685 MLX5_QPC_MTU_4K_BYTES = 0x5,
1686 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
1690 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
1691 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
1692 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
1693 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
1694 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
1695 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
1696 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
1697 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
1701 MLX5_QPC_CS_REQ_DISABLE = 0x0,
1702 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
1703 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
1707 MLX5_QPC_CS_RES_DISABLE = 0x0,
1708 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
1709 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
1712 struct mlx5_ifc_qpc_bits {
1719 u8 end_padding_mode[0x2];
1722 u8 wq_signature[0x1];
1723 u8 block_lb_mc[0x1];
1724 u8 atomic_like_write_en[0x1];
1725 u8 latency_sensitive[0x1];
1727 u8 drain_sigerr[0x1];
1732 u8 log_msg_max[0x5];
1734 u8 log_rq_size[0x4];
1735 u8 log_rq_stride[0x3];
1737 u8 log_sq_size[0x4];
1742 u8 counter_set_id[0x8];
1746 u8 user_index[0x18];
1748 u8 reserved_10[0x3];
1749 u8 log_page_size[0x5];
1750 u8 remote_qpn[0x18];
1752 struct mlx5_ifc_ads_bits primary_address_path;
1754 struct mlx5_ifc_ads_bits secondary_address_path;
1756 u8 log_ack_req_freq[0x4];
1757 u8 reserved_11[0x4];
1758 u8 log_sra_max[0x3];
1759 u8 reserved_12[0x2];
1760 u8 retry_count[0x3];
1762 u8 reserved_13[0x1];
1764 u8 cur_rnr_retry[0x3];
1765 u8 cur_retry_count[0x3];
1766 u8 reserved_14[0x5];
1768 u8 reserved_15[0x20];
1770 u8 reserved_16[0x8];
1771 u8 next_send_psn[0x18];
1773 u8 reserved_17[0x8];
1776 u8 reserved_18[0x40];
1778 u8 reserved_19[0x8];
1779 u8 last_acked_psn[0x18];
1781 u8 reserved_20[0x8];
1784 u8 reserved_21[0x8];
1785 u8 log_rra_max[0x3];
1786 u8 reserved_22[0x1];
1787 u8 atomic_mode[0x4];
1791 u8 reserved_23[0x1];
1792 u8 page_offset[0x6];
1793 u8 reserved_24[0x3];
1794 u8 cd_slave_receive[0x1];
1795 u8 cd_slave_send[0x1];
1798 u8 reserved_25[0x3];
1799 u8 min_rnr_nak[0x5];
1800 u8 next_rcv_psn[0x18];
1802 u8 reserved_26[0x8];
1805 u8 reserved_27[0x8];
1812 u8 reserved_28[0x5];
1816 u8 reserved_29[0x8];
1819 u8 hw_sq_wqebb_counter[0x10];
1820 u8 sw_sq_wqebb_counter[0x10];
1822 u8 hw_rq_counter[0x20];
1824 u8 sw_rq_counter[0x20];
1826 u8 reserved_30[0x20];
1828 u8 reserved_31[0xf];
1833 u8 dc_access_key[0x40];
1835 u8 reserved_32[0xc0];
1838 struct mlx5_ifc_roce_addr_layout_bits {
1839 u8 source_l3_address[16][0x8];
1844 u8 source_mac_47_32[0x10];
1846 u8 source_mac_31_0[0x20];
1848 u8 reserved_1[0x14];
1849 u8 roce_l3_type[0x4];
1850 u8 roce_version[0x8];
1852 u8 reserved_2[0x20];
1855 union mlx5_ifc_hca_cap_union_bits {
1856 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
1857 struct mlx5_ifc_odp_cap_bits odp_cap;
1858 struct mlx5_ifc_atomic_caps_bits atomic_caps;
1859 struct mlx5_ifc_roce_cap_bits roce_cap;
1860 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
1861 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
1862 struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap;
1863 u8 reserved_0[0x8000];
1867 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
1868 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
1869 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
1872 struct mlx5_ifc_flow_context_bits {
1873 u8 reserved_0[0x20];
1880 u8 reserved_2[0x10];
1884 u8 destination_list_size[0x18];
1886 u8 reserved_4[0x160];
1888 struct mlx5_ifc_fte_match_param_bits match_value;
1890 u8 reserved_5[0x600];
1892 struct mlx5_ifc_dest_format_struct_bits destination[0];
1896 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
1897 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
1900 struct mlx5_ifc_xrc_srqc_bits {
1902 u8 log_xrc_srq_size[0x4];
1903 u8 reserved_0[0x18];
1905 u8 wq_signature[0x1];
1909 u8 basic_cyclic_rcv_wqe[0x1];
1910 u8 log_rq_stride[0x3];
1913 u8 page_offset[0x6];
1917 u8 reserved_3[0x20];
1919 u8 user_index_equal_xrc_srqn[0x1];
1921 u8 log_page_size[0x6];
1922 u8 user_index[0x18];
1924 u8 reserved_5[0x20];
1932 u8 reserved_7[0x40];
1934 u8 db_record_addr_h[0x20];
1936 u8 db_record_addr_l[0x1e];
1939 u8 reserved_9[0x80];
1942 struct mlx5_ifc_traffic_counter_bits {
1948 struct mlx5_ifc_tisc_bits {
1951 u8 reserved_1[0x10];
1953 u8 reserved_2[0x100];
1956 u8 transport_domain[0x18];
1958 u8 reserved_4[0x3c0];
1962 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
1963 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
1967 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
1968 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
1972 MLX5_RX_HASH_FN_NONE = 0x0,
1973 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
1974 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
1978 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1,
1979 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2,
1982 struct mlx5_ifc_tirc_bits {
1983 u8 reserved_0[0x20];
1986 u8 reserved_1[0x1c];
1988 u8 reserved_2[0x40];
1991 u8 lro_timeout_period_usecs[0x10];
1992 u8 lro_enable_mask[0x4];
1993 u8 lro_max_ip_payload_size[0x8];
1995 u8 reserved_4[0x40];
1998 u8 inline_rqn[0x18];
2000 u8 rx_hash_symmetric[0x1];
2002 u8 tunneled_offload_en[0x1];
2004 u8 indirect_table[0x18];
2008 u8 self_lb_block[0x2];
2009 u8 transport_domain[0x18];
2011 u8 rx_hash_toeplitz_key[10][0x20];
2013 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
2015 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
2017 u8 reserved_9[0x4c0];
2021 MLX5_SRQC_STATE_GOOD = 0x0,
2022 MLX5_SRQC_STATE_ERROR = 0x1,
2025 struct mlx5_ifc_srqc_bits {
2027 u8 log_srq_size[0x4];
2028 u8 reserved_0[0x18];
2030 u8 wq_signature[0x1];
2035 u8 log_rq_stride[0x3];
2038 u8 page_offset[0x6];
2042 u8 reserved_4[0x20];
2045 u8 log_page_size[0x6];
2046 u8 reserved_6[0x18];
2048 u8 reserved_7[0x20];
2056 u8 reserved_9[0x40];
2060 u8 reserved_10[0x80];
2064 MLX5_SQC_STATE_RST = 0x0,
2065 MLX5_SQC_STATE_RDY = 0x1,
2066 MLX5_SQC_STATE_ERR = 0x3,
2069 struct mlx5_ifc_sqc_bits {
2073 u8 flush_in_error_en[0x1];
2076 u8 reserved_1[0x14];
2079 u8 user_index[0x18];
2084 u8 reserved_4[0xa0];
2086 u8 tis_lst_sz[0x10];
2087 u8 reserved_5[0x10];
2089 u8 reserved_6[0x40];
2094 struct mlx5_ifc_wq_bits wq;
2097 struct mlx5_ifc_rqtc_bits {
2098 u8 reserved_0[0xa0];
2100 u8 reserved_1[0x10];
2101 u8 rqt_max_size[0x10];
2103 u8 reserved_2[0x10];
2104 u8 rqt_actual_size[0x10];
2106 u8 reserved_3[0x6a0];
2108 struct mlx5_ifc_rq_num_bits rq_num[0];
2112 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2113 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2117 MLX5_RQC_STATE_RST = 0x0,
2118 MLX5_RQC_STATE_RDY = 0x1,
2119 MLX5_RQC_STATE_ERR = 0x3,
2122 struct mlx5_ifc_rqc_bits {
2126 u8 mem_rq_type[0x4];
2129 u8 flush_in_error_en[0x1];
2130 u8 reserved_2[0x12];
2133 u8 user_index[0x18];
2138 u8 counter_set_id[0x8];
2139 u8 reserved_5[0x18];
2144 u8 reserved_7[0xe0];
2146 struct mlx5_ifc_wq_bits wq;
2150 MLX5_RMPC_STATE_RDY = 0x1,
2151 MLX5_RMPC_STATE_ERR = 0x3,
2154 struct mlx5_ifc_rmpc_bits {
2157 u8 reserved_1[0x14];
2159 u8 basic_cyclic_rcv_wqe[0x1];
2160 u8 reserved_2[0x1f];
2162 u8 reserved_3[0x140];
2164 struct mlx5_ifc_wq_bits wq;
2167 struct mlx5_ifc_nic_vport_context_bits {
2168 u8 reserved_0[0x1f];
2171 u8 arm_change_event[0x1];
2172 u8 reserved_1[0x1a];
2173 u8 event_on_mtu[0x1];
2174 u8 event_on_promisc_change[0x1];
2175 u8 event_on_vlan_change[0x1];
2176 u8 event_on_mc_address_change[0x1];
2177 u8 event_on_uc_address_change[0x1];
2179 u8 reserved_2[0xf0];
2183 u8 reserved_3[0x640];
2187 u8 promisc_all[0x1];
2189 u8 allowed_list_type[0x3];
2191 u8 allowed_list_size[0xc];
2193 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2195 u8 reserved_6[0x20];
2197 u8 current_uc_mac_address[0][0x40];
2201 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2202 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2203 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
2206 struct mlx5_ifc_mkc_bits {
2210 u8 small_fence_on_rdma_read_response[0x1];
2217 u8 access_mode[0x2];
2223 u8 reserved_3[0x20];
2229 u8 expected_sigerr_count[0x1];
2234 u8 start_addr[0x40];
2238 u8 bsf_octword_size[0x20];
2240 u8 reserved_6[0x80];
2242 u8 translations_octword_size[0x20];
2244 u8 reserved_7[0x1b];
2245 u8 log_page_size[0x5];
2247 u8 reserved_8[0x20];
2250 struct mlx5_ifc_pkey_bits {
2251 u8 reserved_0[0x10];
2255 struct mlx5_ifc_array128_auto_bits {
2256 u8 array128_auto[16][0x8];
2259 struct mlx5_ifc_hca_vport_context_bits {
2260 u8 field_select[0x20];
2262 u8 reserved_0[0xe0];
2264 u8 sm_virt_aware[0x1];
2267 u8 grh_required[0x1];
2269 u8 port_physical_state[0x4];
2270 u8 vport_state_policy[0x4];
2272 u8 vport_state[0x4];
2274 u8 reserved_2[0x20];
2276 u8 system_image_guid[0x40];
2284 u8 cap_mask1_field_select[0x20];
2288 u8 cap_mask2_field_select[0x20];
2290 u8 reserved_3[0x80];
2294 u8 init_type_reply[0x4];
2296 u8 subnet_timeout[0x5];
2302 u8 qkey_violation_counter[0x10];
2303 u8 pkey_violation_counter[0x10];
2305 u8 reserved_6[0xca0];
2309 MLX5_EQC_STATUS_OK = 0x0,
2310 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
2314 MLX5_EQC_ST_ARMED = 0x9,
2315 MLX5_EQC_ST_FIRED = 0xa,
2318 struct mlx5_ifc_eqc_bits {
2327 u8 reserved_3[0x20];
2329 u8 reserved_4[0x14];
2330 u8 page_offset[0x6];
2334 u8 log_eq_size[0x5];
2337 u8 reserved_7[0x20];
2339 u8 reserved_8[0x18];
2343 u8 log_page_size[0x5];
2344 u8 reserved_10[0x18];
2346 u8 reserved_11[0x60];
2348 u8 reserved_12[0x8];
2349 u8 consumer_counter[0x18];
2351 u8 reserved_13[0x8];
2352 u8 producer_counter[0x18];
2354 u8 reserved_14[0x80];
2358 MLX5_DCTC_STATE_ACTIVE = 0x0,
2359 MLX5_DCTC_STATE_DRAINING = 0x1,
2360 MLX5_DCTC_STATE_DRAINED = 0x2,
2364 MLX5_DCTC_CS_RES_DISABLE = 0x0,
2365 MLX5_DCTC_CS_RES_NA = 0x1,
2366 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
2370 MLX5_DCTC_MTU_256_BYTES = 0x1,
2371 MLX5_DCTC_MTU_512_BYTES = 0x2,
2372 MLX5_DCTC_MTU_1K_BYTES = 0x3,
2373 MLX5_DCTC_MTU_2K_BYTES = 0x4,
2374 MLX5_DCTC_MTU_4K_BYTES = 0x5,
2377 struct mlx5_ifc_dctc_bits {
2380 u8 reserved_1[0x18];
2383 u8 user_index[0x18];
2388 u8 counter_set_id[0x8];
2389 u8 atomic_mode[0x4];
2393 u8 atomic_like_write_en[0x1];
2394 u8 latency_sensitive[0x1];
2402 u8 min_rnr_nak[0x5];
2412 u8 reserved_10[0x4];
2413 u8 flow_label[0x14];
2415 u8 dc_access_key[0x40];
2417 u8 reserved_11[0x5];
2420 u8 pkey_index[0x10];
2422 u8 reserved_12[0x8];
2423 u8 my_addr_index[0x8];
2424 u8 reserved_13[0x8];
2427 u8 dc_access_key_violation_count[0x20];
2429 u8 reserved_14[0x14];
2435 u8 reserved_15[0x40];
2439 MLX5_CQC_STATUS_OK = 0x0,
2440 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
2441 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
2445 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
2446 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
2450 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
2451 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
2452 MLX5_CQC_ST_FIRED = 0xa,
2455 struct mlx5_ifc_cqc_bits {
2461 u8 scqe_break_moderation_en[0x1];
2465 u8 mini_cqe_res_format[0x2];
2469 u8 reserved_4[0x20];
2471 u8 reserved_5[0x14];
2472 u8 page_offset[0x6];
2476 u8 log_cq_size[0x5];
2481 u8 cq_max_count[0x10];
2483 u8 reserved_9[0x18];
2486 u8 reserved_10[0x3];
2487 u8 log_page_size[0x5];
2488 u8 reserved_11[0x18];
2490 u8 reserved_12[0x20];
2492 u8 reserved_13[0x8];
2493 u8 last_notified_index[0x18];
2495 u8 reserved_14[0x8];
2496 u8 last_solicit_index[0x18];
2498 u8 reserved_15[0x8];
2499 u8 consumer_counter[0x18];
2501 u8 reserved_16[0x8];
2502 u8 producer_counter[0x18];
2504 u8 reserved_17[0x40];
2509 union mlx5_ifc_cong_control_roce_ecn_auto_bits {
2510 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
2511 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
2512 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
2513 u8 reserved_0[0x800];
2516 struct mlx5_ifc_query_adapter_param_block_bits {
2517 u8 reserved_0[0xc0];
2520 u8 ieee_vendor_id[0x18];
2522 u8 reserved_2[0x10];
2523 u8 vsd_vendor_id[0x10];
2527 u8 vsd_contd_psid[16][0x8];
2530 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
2531 struct mlx5_ifc_modify_field_select_bits modify_field_select;
2532 struct mlx5_ifc_resize_field_select_bits resize_field_select;
2533 u8 reserved_0[0x20];
2536 union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
2537 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
2538 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
2539 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
2540 u8 reserved_0[0x20];
2543 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
2544 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
2545 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
2546 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
2547 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
2548 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
2549 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
2550 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
2551 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
2552 u8 reserved_0[0x7c0];
2555 union mlx5_ifc_event_auto_bits {
2556 struct mlx5_ifc_comp_event_bits comp_event;
2557 struct mlx5_ifc_dct_events_bits dct_events;
2558 struct mlx5_ifc_qp_events_bits qp_events;
2559 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
2560 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
2561 struct mlx5_ifc_cq_error_bits cq_error;
2562 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
2563 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
2564 struct mlx5_ifc_gpio_event_bits gpio_event;
2565 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
2566 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
2567 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
2568 u8 reserved_0[0xe0];
2571 struct mlx5_ifc_health_buffer_bits {
2572 u8 reserved_0[0x100];
2574 u8 assert_existptr[0x20];
2576 u8 assert_callra[0x20];
2578 u8 reserved_1[0x40];
2580 u8 fw_version[0x20];
2584 u8 reserved_2[0x20];
2586 u8 irisc_index[0x8];
2591 struct mlx5_ifc_register_loopback_control_bits {
2595 u8 reserved_1[0x10];
2597 u8 reserved_2[0x60];
2600 struct mlx5_ifc_teardown_hca_out_bits {
2602 u8 reserved_0[0x18];
2606 u8 reserved_1[0x40];
2610 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
2611 MLX5_TEARDOWN_HCA_IN_PROFILE_PANIC_CLOSE = 0x1,
2614 struct mlx5_ifc_teardown_hca_in_bits {
2616 u8 reserved_0[0x10];
2618 u8 reserved_1[0x10];
2621 u8 reserved_2[0x10];
2624 u8 reserved_3[0x20];
2627 struct mlx5_ifc_sqerr2rts_qp_out_bits {
2629 u8 reserved_0[0x18];
2633 u8 reserved_1[0x40];
2636 struct mlx5_ifc_sqerr2rts_qp_in_bits {
2638 u8 reserved_0[0x10];
2640 u8 reserved_1[0x10];
2646 u8 reserved_3[0x20];
2648 u8 opt_param_mask[0x20];
2650 u8 reserved_4[0x20];
2652 struct mlx5_ifc_qpc_bits qpc;
2654 u8 reserved_5[0x80];
2657 struct mlx5_ifc_sqd2rts_qp_out_bits {
2659 u8 reserved_0[0x18];
2663 u8 reserved_1[0x40];
2666 struct mlx5_ifc_sqd2rts_qp_in_bits {
2668 u8 reserved_0[0x10];
2670 u8 reserved_1[0x10];
2676 u8 reserved_3[0x20];
2678 u8 opt_param_mask[0x20];
2680 u8 reserved_4[0x20];
2682 struct mlx5_ifc_qpc_bits qpc;
2684 u8 reserved_5[0x80];
2687 struct mlx5_ifc_set_roce_address_out_bits {
2689 u8 reserved_0[0x18];
2693 u8 reserved_1[0x40];
2696 struct mlx5_ifc_set_roce_address_in_bits {
2698 u8 reserved_0[0x10];
2700 u8 reserved_1[0x10];
2703 u8 roce_address_index[0x10];
2704 u8 reserved_2[0x10];
2706 u8 reserved_3[0x20];
2708 struct mlx5_ifc_roce_addr_layout_bits roce_address;
2711 struct mlx5_ifc_set_mad_demux_out_bits {
2713 u8 reserved_0[0x18];
2717 u8 reserved_1[0x40];
2721 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
2722 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
2725 struct mlx5_ifc_set_mad_demux_in_bits {
2727 u8 reserved_0[0x10];
2729 u8 reserved_1[0x10];
2732 u8 reserved_2[0x20];
2736 u8 reserved_4[0x18];
2739 struct mlx5_ifc_set_l2_table_entry_out_bits {
2741 u8 reserved_0[0x18];
2745 u8 reserved_1[0x40];
2748 struct mlx5_ifc_set_l2_table_entry_in_bits {
2750 u8 reserved_0[0x10];
2752 u8 reserved_1[0x10];
2755 u8 reserved_2[0x60];
2758 u8 table_index[0x18];
2760 u8 reserved_4[0x20];
2762 u8 reserved_5[0x13];
2766 struct mlx5_ifc_mac_address_layout_bits mac_address;
2768 u8 reserved_6[0xc0];
2771 struct mlx5_ifc_set_issi_out_bits {
2773 u8 reserved_0[0x18];
2777 u8 reserved_1[0x40];
2780 struct mlx5_ifc_set_issi_in_bits {
2782 u8 reserved_0[0x10];
2784 u8 reserved_1[0x10];
2787 u8 reserved_2[0x10];
2788 u8 current_issi[0x10];
2790 u8 reserved_3[0x20];
2793 struct mlx5_ifc_set_hca_cap_out_bits {
2795 u8 reserved_0[0x18];
2799 u8 reserved_1[0x40];
2802 struct mlx5_ifc_set_hca_cap_in_bits {
2804 u8 reserved_0[0x10];
2806 u8 reserved_1[0x10];
2809 u8 reserved_2[0x40];
2811 union mlx5_ifc_hca_cap_union_bits capability;
2814 struct mlx5_ifc_set_fte_out_bits {
2816 u8 reserved_0[0x18];
2820 u8 reserved_1[0x40];
2823 struct mlx5_ifc_set_fte_in_bits {
2825 u8 reserved_0[0x10];
2827 u8 reserved_1[0x10];
2830 u8 reserved_2[0x40];
2833 u8 reserved_3[0x18];
2838 u8 reserved_5[0x40];
2840 u8 flow_index[0x20];
2842 u8 reserved_6[0xe0];
2844 struct mlx5_ifc_flow_context_bits flow_context;
2847 struct mlx5_ifc_rts2rts_qp_out_bits {
2849 u8 reserved_0[0x18];
2853 u8 reserved_1[0x40];
2856 struct mlx5_ifc_rts2rts_qp_in_bits {
2858 u8 reserved_0[0x10];
2860 u8 reserved_1[0x10];
2866 u8 reserved_3[0x20];
2868 u8 opt_param_mask[0x20];
2870 u8 reserved_4[0x20];
2872 struct mlx5_ifc_qpc_bits qpc;
2874 u8 reserved_5[0x80];
2877 struct mlx5_ifc_rtr2rts_qp_out_bits {
2879 u8 reserved_0[0x18];
2883 u8 reserved_1[0x40];
2886 struct mlx5_ifc_rtr2rts_qp_in_bits {
2888 u8 reserved_0[0x10];
2890 u8 reserved_1[0x10];
2896 u8 reserved_3[0x20];
2898 u8 opt_param_mask[0x20];
2900 u8 reserved_4[0x20];
2902 struct mlx5_ifc_qpc_bits qpc;
2904 u8 reserved_5[0x80];
2907 struct mlx5_ifc_rst2init_qp_out_bits {
2909 u8 reserved_0[0x18];
2913 u8 reserved_1[0x40];
2916 struct mlx5_ifc_rst2init_qp_in_bits {
2918 u8 reserved_0[0x10];
2920 u8 reserved_1[0x10];
2926 u8 reserved_3[0x20];
2928 u8 opt_param_mask[0x20];
2930 u8 reserved_4[0x20];
2932 struct mlx5_ifc_qpc_bits qpc;
2934 u8 reserved_5[0x80];
2937 struct mlx5_ifc_query_xrc_srq_out_bits {
2939 u8 reserved_0[0x18];
2943 u8 reserved_1[0x40];
2945 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
2947 u8 reserved_2[0x600];
2952 struct mlx5_ifc_query_xrc_srq_in_bits {
2954 u8 reserved_0[0x10];
2956 u8 reserved_1[0x10];
2962 u8 reserved_3[0x20];
2966 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
2967 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
2970 struct mlx5_ifc_query_vport_state_out_bits {
2972 u8 reserved_0[0x18];
2976 u8 reserved_1[0x20];
2978 u8 reserved_2[0x18];
2979 u8 admin_state[0x4];
2984 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0,
2985 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1,
2988 struct mlx5_ifc_query_vport_state_in_bits {
2990 u8 reserved_0[0x10];
2992 u8 reserved_1[0x10];
2995 u8 other_vport[0x1];
2997 u8 vport_number[0x10];
2999 u8 reserved_3[0x20];
3002 struct mlx5_ifc_query_vport_counter_out_bits {
3004 u8 reserved_0[0x18];
3008 u8 reserved_1[0x40];
3010 struct mlx5_ifc_traffic_counter_bits received_errors;
3012 struct mlx5_ifc_traffic_counter_bits transmit_errors;
3014 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
3016 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
3018 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
3020 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
3022 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
3024 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
3026 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
3028 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
3030 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
3032 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
3034 u8 reserved_2[0xa00];
3038 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
3041 struct mlx5_ifc_query_vport_counter_in_bits {
3043 u8 reserved_0[0x10];
3045 u8 reserved_1[0x10];
3048 u8 other_vport[0x1];
3050 u8 vport_number[0x10];
3052 u8 reserved_3[0x60];
3055 u8 reserved_4[0x1f];
3057 u8 reserved_5[0x20];
3060 struct mlx5_ifc_query_tis_out_bits {
3062 u8 reserved_0[0x18];
3066 u8 reserved_1[0x40];
3068 struct mlx5_ifc_tisc_bits tis_context;
3071 struct mlx5_ifc_query_tis_in_bits {
3073 u8 reserved_0[0x10];
3075 u8 reserved_1[0x10];
3081 u8 reserved_3[0x20];
3084 struct mlx5_ifc_query_tir_out_bits {
3086 u8 reserved_0[0x18];
3090 u8 reserved_1[0xc0];
3092 struct mlx5_ifc_tirc_bits tir_context;
3095 struct mlx5_ifc_query_tir_in_bits {
3097 u8 reserved_0[0x10];
3099 u8 reserved_1[0x10];
3105 u8 reserved_3[0x20];
3108 struct mlx5_ifc_query_srq_out_bits {
3110 u8 reserved_0[0x18];
3114 u8 reserved_1[0x40];
3116 struct mlx5_ifc_srqc_bits srq_context_entry;
3118 u8 reserved_2[0x600];
3123 struct mlx5_ifc_query_srq_in_bits {
3125 u8 reserved_0[0x10];
3127 u8 reserved_1[0x10];
3133 u8 reserved_3[0x20];
3136 struct mlx5_ifc_query_sq_out_bits {
3138 u8 reserved_0[0x18];
3142 u8 reserved_1[0xc0];
3144 struct mlx5_ifc_sqc_bits sq_context;
3147 struct mlx5_ifc_query_sq_in_bits {
3149 u8 reserved_0[0x10];
3151 u8 reserved_1[0x10];
3157 u8 reserved_3[0x20];
3160 struct mlx5_ifc_query_special_contexts_out_bits {
3162 u8 reserved_0[0x18];
3166 u8 reserved_1[0x20];
3171 struct mlx5_ifc_query_special_contexts_in_bits {
3173 u8 reserved_0[0x10];
3175 u8 reserved_1[0x10];
3178 u8 reserved_2[0x40];
3181 struct mlx5_ifc_query_rqt_out_bits {
3183 u8 reserved_0[0x18];
3187 u8 reserved_1[0xc0];
3189 struct mlx5_ifc_rqtc_bits rqt_context;
3192 struct mlx5_ifc_query_rqt_in_bits {
3194 u8 reserved_0[0x10];
3196 u8 reserved_1[0x10];
3202 u8 reserved_3[0x20];
3205 struct mlx5_ifc_query_rq_out_bits {
3207 u8 reserved_0[0x18];
3211 u8 reserved_1[0xc0];
3213 struct mlx5_ifc_rqc_bits rq_context;
3216 struct mlx5_ifc_query_rq_in_bits {
3218 u8 reserved_0[0x10];
3220 u8 reserved_1[0x10];
3226 u8 reserved_3[0x20];
3229 struct mlx5_ifc_query_roce_address_out_bits {
3231 u8 reserved_0[0x18];
3235 u8 reserved_1[0x40];
3237 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3240 struct mlx5_ifc_query_roce_address_in_bits {
3242 u8 reserved_0[0x10];
3244 u8 reserved_1[0x10];
3247 u8 roce_address_index[0x10];
3248 u8 reserved_2[0x10];
3250 u8 reserved_3[0x20];
3253 struct mlx5_ifc_query_rmp_out_bits {
3255 u8 reserved_0[0x18];
3259 u8 reserved_1[0xc0];
3261 struct mlx5_ifc_rmpc_bits rmp_context;
3264 struct mlx5_ifc_query_rmp_in_bits {
3266 u8 reserved_0[0x10];
3268 u8 reserved_1[0x10];
3274 u8 reserved_3[0x20];
3277 struct mlx5_ifc_query_qp_out_bits {
3279 u8 reserved_0[0x18];
3283 u8 reserved_1[0x40];
3285 u8 opt_param_mask[0x20];
3287 u8 reserved_2[0x20];
3289 struct mlx5_ifc_qpc_bits qpc;
3291 u8 reserved_3[0x80];
3296 struct mlx5_ifc_query_qp_in_bits {
3298 u8 reserved_0[0x10];
3300 u8 reserved_1[0x10];
3306 u8 reserved_3[0x20];
3309 struct mlx5_ifc_query_q_counter_out_bits {
3311 u8 reserved_0[0x18];
3315 u8 reserved_1[0x40];
3317 u8 rx_write_requests[0x20];
3319 u8 reserved_2[0x20];
3321 u8 rx_read_requests[0x20];
3323 u8 reserved_3[0x20];
3325 u8 rx_atomic_requests[0x20];
3327 u8 reserved_4[0x20];
3329 u8 rx_dct_connect[0x20];
3331 u8 reserved_5[0x20];
3333 u8 out_of_buffer[0x20];
3335 u8 reserved_6[0x20];
3337 u8 out_of_sequence[0x20];
3339 u8 reserved_7[0x620];
3342 struct mlx5_ifc_query_q_counter_in_bits {
3344 u8 reserved_0[0x10];
3346 u8 reserved_1[0x10];
3349 u8 reserved_2[0x80];
3352 u8 reserved_3[0x1f];
3354 u8 reserved_4[0x18];
3355 u8 counter_set_id[0x8];
3358 struct mlx5_ifc_query_pages_out_bits {
3360 u8 reserved_0[0x18];
3364 u8 reserved_1[0x10];
3365 u8 function_id[0x10];
3371 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
3372 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
3373 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
3376 struct mlx5_ifc_query_pages_in_bits {
3378 u8 reserved_0[0x10];
3380 u8 reserved_1[0x10];
3383 u8 reserved_2[0x10];
3384 u8 function_id[0x10];
3386 u8 reserved_3[0x20];
3389 struct mlx5_ifc_query_nic_vport_context_out_bits {
3391 u8 reserved_0[0x18];
3395 u8 reserved_1[0x40];
3397 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
3400 struct mlx5_ifc_query_nic_vport_context_in_bits {
3402 u8 reserved_0[0x10];
3404 u8 reserved_1[0x10];
3407 u8 other_vport[0x1];
3409 u8 vport_number[0x10];
3412 u8 allowed_list_type[0x3];
3413 u8 reserved_4[0x18];
3416 struct mlx5_ifc_query_mkey_out_bits {
3418 u8 reserved_0[0x18];
3422 u8 reserved_1[0x40];
3424 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
3426 u8 reserved_2[0x600];
3428 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
3430 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
3433 struct mlx5_ifc_query_mkey_in_bits {
3435 u8 reserved_0[0x10];
3437 u8 reserved_1[0x10];
3441 u8 mkey_index[0x18];
3444 u8 reserved_3[0x1f];
3447 struct mlx5_ifc_query_mad_demux_out_bits {
3449 u8 reserved_0[0x18];
3453 u8 reserved_1[0x40];
3455 u8 mad_dumux_parameters_block[0x20];
3458 struct mlx5_ifc_query_mad_demux_in_bits {
3460 u8 reserved_0[0x10];
3462 u8 reserved_1[0x10];
3465 u8 reserved_2[0x40];
3468 struct mlx5_ifc_query_l2_table_entry_out_bits {
3470 u8 reserved_0[0x18];
3474 u8 reserved_1[0xa0];
3476 u8 reserved_2[0x13];
3480 struct mlx5_ifc_mac_address_layout_bits mac_address;
3482 u8 reserved_3[0xc0];
3485 struct mlx5_ifc_query_l2_table_entry_in_bits {
3487 u8 reserved_0[0x10];
3489 u8 reserved_1[0x10];
3492 u8 reserved_2[0x60];
3495 u8 table_index[0x18];
3497 u8 reserved_4[0x140];
3500 struct mlx5_ifc_query_issi_out_bits {
3502 u8 reserved_0[0x18];
3506 u8 reserved_1[0x10];
3507 u8 current_issi[0x10];
3509 u8 reserved_2[0xa0];
3511 u8 supported_issi_reserved[76][0x8];
3512 u8 supported_issi_dw0[0x20];
3515 struct mlx5_ifc_query_issi_in_bits {
3517 u8 reserved_0[0x10];
3519 u8 reserved_1[0x10];
3522 u8 reserved_2[0x40];
3525 struct mlx5_ifc_query_hca_vport_pkey_out_bits {
3527 u8 reserved_0[0x18];
3531 u8 reserved_1[0x40];
3533 struct mlx5_ifc_pkey_bits pkey[0];
3536 struct mlx5_ifc_query_hca_vport_pkey_in_bits {
3538 u8 reserved_0[0x10];
3540 u8 reserved_1[0x10];
3543 u8 other_vport[0x1];
3546 u8 vport_number[0x10];
3548 u8 reserved_3[0x10];
3549 u8 pkey_index[0x10];
3552 struct mlx5_ifc_query_hca_vport_gid_out_bits {
3554 u8 reserved_0[0x18];
3558 u8 reserved_1[0x20];
3561 u8 reserved_2[0x10];
3563 struct mlx5_ifc_array128_auto_bits gid[0];
3566 struct mlx5_ifc_query_hca_vport_gid_in_bits {
3568 u8 reserved_0[0x10];
3570 u8 reserved_1[0x10];
3573 u8 other_vport[0x1];
3576 u8 vport_number[0x10];
3578 u8 reserved_3[0x10];
3582 struct mlx5_ifc_query_hca_vport_context_out_bits {
3584 u8 reserved_0[0x18];
3588 u8 reserved_1[0x40];
3590 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
3593 struct mlx5_ifc_query_hca_vport_context_in_bits {
3595 u8 reserved_0[0x10];
3597 u8 reserved_1[0x10];
3600 u8 other_vport[0x1];
3603 u8 vport_number[0x10];
3605 u8 reserved_3[0x20];
3608 struct mlx5_ifc_query_hca_cap_out_bits {
3610 u8 reserved_0[0x18];
3614 u8 reserved_1[0x40];
3616 union mlx5_ifc_hca_cap_union_bits capability;
3619 struct mlx5_ifc_query_hca_cap_in_bits {
3621 u8 reserved_0[0x10];
3623 u8 reserved_1[0x10];
3626 u8 reserved_2[0x40];
3629 struct mlx5_ifc_query_flow_table_out_bits {
3631 u8 reserved_0[0x18];
3635 u8 reserved_1[0x80];
3642 u8 reserved_4[0x120];
3645 struct mlx5_ifc_query_flow_table_in_bits {
3647 u8 reserved_0[0x10];
3649 u8 reserved_1[0x10];
3652 u8 reserved_2[0x40];
3655 u8 reserved_3[0x18];
3660 u8 reserved_5[0x140];
3663 struct mlx5_ifc_query_fte_out_bits {
3665 u8 reserved_0[0x18];
3669 u8 reserved_1[0x1c0];
3671 struct mlx5_ifc_flow_context_bits flow_context;
3674 struct mlx5_ifc_query_fte_in_bits {
3676 u8 reserved_0[0x10];
3678 u8 reserved_1[0x10];
3681 u8 reserved_2[0x40];
3684 u8 reserved_3[0x18];
3689 u8 reserved_5[0x40];
3691 u8 flow_index[0x20];
3693 u8 reserved_6[0xe0];
3697 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
3698 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
3699 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
3702 struct mlx5_ifc_query_flow_group_out_bits {
3704 u8 reserved_0[0x18];
3708 u8 reserved_1[0xa0];
3710 u8 start_flow_index[0x20];
3712 u8 reserved_2[0x20];
3714 u8 end_flow_index[0x20];
3716 u8 reserved_3[0xa0];
3718 u8 reserved_4[0x18];
3719 u8 match_criteria_enable[0x8];
3721 struct mlx5_ifc_fte_match_param_bits match_criteria;
3723 u8 reserved_5[0xe00];
3726 struct mlx5_ifc_query_flow_group_in_bits {
3728 u8 reserved_0[0x10];
3730 u8 reserved_1[0x10];
3733 u8 reserved_2[0x40];
3736 u8 reserved_3[0x18];
3743 u8 reserved_5[0x120];
3746 struct mlx5_ifc_query_eq_out_bits {
3748 u8 reserved_0[0x18];
3752 u8 reserved_1[0x40];
3754 struct mlx5_ifc_eqc_bits eq_context_entry;
3756 u8 reserved_2[0x40];
3758 u8 event_bitmask[0x40];
3760 u8 reserved_3[0x580];
3765 struct mlx5_ifc_query_eq_in_bits {
3767 u8 reserved_0[0x10];
3769 u8 reserved_1[0x10];
3772 u8 reserved_2[0x18];
3775 u8 reserved_3[0x20];
3778 struct mlx5_ifc_query_dct_out_bits {
3780 u8 reserved_0[0x18];
3784 u8 reserved_1[0x40];
3786 struct mlx5_ifc_dctc_bits dct_context_entry;
3788 u8 reserved_2[0x180];
3791 struct mlx5_ifc_query_dct_in_bits {
3793 u8 reserved_0[0x10];
3795 u8 reserved_1[0x10];
3801 u8 reserved_3[0x20];
3804 struct mlx5_ifc_query_cq_out_bits {
3806 u8 reserved_0[0x18];
3810 u8 reserved_1[0x40];
3812 struct mlx5_ifc_cqc_bits cq_context;
3814 u8 reserved_2[0x600];
3819 struct mlx5_ifc_query_cq_in_bits {
3821 u8 reserved_0[0x10];
3823 u8 reserved_1[0x10];
3829 u8 reserved_3[0x20];
3832 struct mlx5_ifc_query_cong_status_out_bits {
3834 u8 reserved_0[0x18];
3838 u8 reserved_1[0x20];
3842 u8 reserved_2[0x1e];
3845 struct mlx5_ifc_query_cong_status_in_bits {
3847 u8 reserved_0[0x10];
3849 u8 reserved_1[0x10];
3852 u8 reserved_2[0x18];
3854 u8 cong_protocol[0x4];
3856 u8 reserved_3[0x20];
3859 struct mlx5_ifc_query_cong_statistics_out_bits {
3861 u8 reserved_0[0x18];
3865 u8 reserved_1[0x40];
3871 u8 cnp_ignored_high[0x20];
3873 u8 cnp_ignored_low[0x20];
3875 u8 cnp_handled_high[0x20];
3877 u8 cnp_handled_low[0x20];
3879 u8 reserved_2[0x100];
3881 u8 time_stamp_high[0x20];
3883 u8 time_stamp_low[0x20];
3885 u8 accumulators_period[0x20];
3887 u8 ecn_marked_roce_packets_high[0x20];
3889 u8 ecn_marked_roce_packets_low[0x20];
3891 u8 cnps_sent_high[0x20];
3893 u8 cnps_sent_low[0x20];
3895 u8 reserved_3[0x560];
3898 struct mlx5_ifc_query_cong_statistics_in_bits {
3900 u8 reserved_0[0x10];
3902 u8 reserved_1[0x10];
3906 u8 reserved_2[0x1f];
3908 u8 reserved_3[0x20];
3911 struct mlx5_ifc_query_cong_params_out_bits {
3913 u8 reserved_0[0x18];
3917 u8 reserved_1[0x40];
3919 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
3922 struct mlx5_ifc_query_cong_params_in_bits {
3924 u8 reserved_0[0x10];
3926 u8 reserved_1[0x10];
3929 u8 reserved_2[0x1c];
3930 u8 cong_protocol[0x4];
3932 u8 reserved_3[0x20];
3935 struct mlx5_ifc_query_adapter_out_bits {
3937 u8 reserved_0[0x18];
3941 u8 reserved_1[0x40];
3943 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
3946 struct mlx5_ifc_query_adapter_in_bits {
3948 u8 reserved_0[0x10];
3950 u8 reserved_1[0x10];
3953 u8 reserved_2[0x40];
3956 struct mlx5_ifc_qp_2rst_out_bits {
3958 u8 reserved_0[0x18];
3962 u8 reserved_1[0x40];
3965 struct mlx5_ifc_qp_2rst_in_bits {
3967 u8 reserved_0[0x10];
3969 u8 reserved_1[0x10];
3975 u8 reserved_3[0x20];
3978 struct mlx5_ifc_qp_2err_out_bits {
3980 u8 reserved_0[0x18];
3984 u8 reserved_1[0x40];
3987 struct mlx5_ifc_qp_2err_in_bits {
3989 u8 reserved_0[0x10];
3991 u8 reserved_1[0x10];
3997 u8 reserved_3[0x20];
4000 struct mlx5_ifc_page_fault_resume_out_bits {
4002 u8 reserved_0[0x18];
4006 u8 reserved_1[0x40];
4009 struct mlx5_ifc_page_fault_resume_in_bits {
4011 u8 reserved_0[0x10];
4013 u8 reserved_1[0x10];
4023 u8 reserved_3[0x20];
4026 struct mlx5_ifc_nop_out_bits {
4028 u8 reserved_0[0x18];
4032 u8 reserved_1[0x40];
4035 struct mlx5_ifc_nop_in_bits {
4037 u8 reserved_0[0x10];
4039 u8 reserved_1[0x10];
4042 u8 reserved_2[0x40];
4045 struct mlx5_ifc_modify_vport_state_out_bits {
4047 u8 reserved_0[0x18];
4051 u8 reserved_1[0x40];
4054 struct mlx5_ifc_modify_vport_state_in_bits {
4056 u8 reserved_0[0x10];
4058 u8 reserved_1[0x10];
4061 u8 other_vport[0x1];
4063 u8 vport_number[0x10];
4065 u8 reserved_3[0x18];
4066 u8 admin_state[0x4];
4070 struct mlx5_ifc_modify_tis_out_bits {
4072 u8 reserved_0[0x18];
4076 u8 reserved_1[0x40];
4079 struct mlx5_ifc_modify_tis_in_bits {
4081 u8 reserved_0[0x10];
4083 u8 reserved_1[0x10];
4089 u8 reserved_3[0x20];
4091 u8 modify_bitmask[0x40];
4093 u8 reserved_4[0x40];
4095 struct mlx5_ifc_tisc_bits ctx;
4098 struct mlx5_ifc_modify_tir_bitmask_bits {
4099 u8 reserved_0[0x20];
4101 u8 reserved_1[0x1b];
4107 struct mlx5_ifc_modify_tir_out_bits {
4109 u8 reserved_0[0x18];
4113 u8 reserved_1[0x40];
4116 struct mlx5_ifc_modify_tir_in_bits {
4118 u8 reserved_0[0x10];
4120 u8 reserved_1[0x10];
4126 u8 reserved_3[0x20];
4128 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
4130 u8 reserved_4[0x40];
4132 struct mlx5_ifc_tirc_bits ctx;
4135 struct mlx5_ifc_modify_sq_out_bits {
4137 u8 reserved_0[0x18];
4141 u8 reserved_1[0x40];
4144 struct mlx5_ifc_modify_sq_in_bits {
4146 u8 reserved_0[0x10];
4148 u8 reserved_1[0x10];
4155 u8 reserved_3[0x20];
4157 u8 modify_bitmask[0x40];
4159 u8 reserved_4[0x40];
4161 struct mlx5_ifc_sqc_bits ctx;
4164 struct mlx5_ifc_modify_rqt_out_bits {
4166 u8 reserved_0[0x18];
4170 u8 reserved_1[0x40];
4173 struct mlx5_ifc_rqt_bitmask_bits {
4180 struct mlx5_ifc_modify_rqt_in_bits {
4182 u8 reserved_0[0x10];
4184 u8 reserved_1[0x10];
4190 u8 reserved_3[0x20];
4192 struct mlx5_ifc_rqt_bitmask_bits bitmask;
4194 u8 reserved_4[0x40];
4196 struct mlx5_ifc_rqtc_bits ctx;
4199 struct mlx5_ifc_modify_rq_out_bits {
4201 u8 reserved_0[0x18];
4205 u8 reserved_1[0x40];
4208 struct mlx5_ifc_modify_rq_in_bits {
4210 u8 reserved_0[0x10];
4212 u8 reserved_1[0x10];
4219 u8 reserved_3[0x20];
4221 u8 modify_bitmask[0x40];
4223 u8 reserved_4[0x40];
4225 struct mlx5_ifc_rqc_bits ctx;
4228 struct mlx5_ifc_modify_rmp_out_bits {
4230 u8 reserved_0[0x18];
4234 u8 reserved_1[0x40];
4237 struct mlx5_ifc_rmp_bitmask_bits {
4244 struct mlx5_ifc_modify_rmp_in_bits {
4246 u8 reserved_0[0x10];
4248 u8 reserved_1[0x10];
4255 u8 reserved_3[0x20];
4257 struct mlx5_ifc_rmp_bitmask_bits bitmask;
4259 u8 reserved_4[0x40];
4261 struct mlx5_ifc_rmpc_bits ctx;
4264 struct mlx5_ifc_modify_nic_vport_context_out_bits {
4266 u8 reserved_0[0x18];
4270 u8 reserved_1[0x40];
4273 struct mlx5_ifc_modify_nic_vport_field_select_bits {
4274 u8 reserved_0[0x19];
4276 u8 change_event[0x1];
4278 u8 permanent_address[0x1];
4279 u8 addresses_list[0x1];
4284 struct mlx5_ifc_modify_nic_vport_context_in_bits {
4286 u8 reserved_0[0x10];
4288 u8 reserved_1[0x10];
4291 u8 other_vport[0x1];
4293 u8 vport_number[0x10];
4295 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
4297 u8 reserved_3[0x780];
4299 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
4302 struct mlx5_ifc_modify_hca_vport_context_out_bits {
4304 u8 reserved_0[0x18];
4308 u8 reserved_1[0x40];
4311 struct mlx5_ifc_modify_hca_vport_context_in_bits {
4313 u8 reserved_0[0x10];
4315 u8 reserved_1[0x10];
4318 u8 other_vport[0x1];
4321 u8 vport_number[0x10];
4323 u8 reserved_3[0x20];
4325 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4328 struct mlx5_ifc_modify_cq_out_bits {
4330 u8 reserved_0[0x18];
4334 u8 reserved_1[0x40];
4338 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
4339 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
4342 struct mlx5_ifc_modify_cq_in_bits {
4344 u8 reserved_0[0x10];
4346 u8 reserved_1[0x10];
4352 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
4354 struct mlx5_ifc_cqc_bits cq_context;
4356 u8 reserved_3[0x600];
4361 struct mlx5_ifc_modify_cong_status_out_bits {
4363 u8 reserved_0[0x18];
4367 u8 reserved_1[0x40];
4370 struct mlx5_ifc_modify_cong_status_in_bits {
4372 u8 reserved_0[0x10];
4374 u8 reserved_1[0x10];
4377 u8 reserved_2[0x18];
4379 u8 cong_protocol[0x4];
4383 u8 reserved_3[0x1e];
4386 struct mlx5_ifc_modify_cong_params_out_bits {
4388 u8 reserved_0[0x18];
4392 u8 reserved_1[0x40];
4395 struct mlx5_ifc_modify_cong_params_in_bits {
4397 u8 reserved_0[0x10];
4399 u8 reserved_1[0x10];
4402 u8 reserved_2[0x1c];
4403 u8 cong_protocol[0x4];
4405 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
4407 u8 reserved_3[0x80];
4409 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
4412 struct mlx5_ifc_manage_pages_out_bits {
4414 u8 reserved_0[0x18];
4418 u8 output_num_entries[0x20];
4420 u8 reserved_1[0x20];
4426 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
4427 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
4428 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
4431 struct mlx5_ifc_manage_pages_in_bits {
4433 u8 reserved_0[0x10];
4435 u8 reserved_1[0x10];
4438 u8 reserved_2[0x10];
4439 u8 function_id[0x10];
4441 u8 input_num_entries[0x20];
4446 struct mlx5_ifc_mad_ifc_out_bits {
4448 u8 reserved_0[0x18];
4452 u8 reserved_1[0x40];
4454 u8 response_mad_packet[256][0x8];
4457 struct mlx5_ifc_mad_ifc_in_bits {
4459 u8 reserved_0[0x10];
4461 u8 reserved_1[0x10];
4464 u8 remote_lid[0x10];
4468 u8 reserved_3[0x20];
4473 struct mlx5_ifc_init_hca_out_bits {
4475 u8 reserved_0[0x18];
4479 u8 reserved_1[0x40];
4482 struct mlx5_ifc_init_hca_in_bits {
4484 u8 reserved_0[0x10];
4486 u8 reserved_1[0x10];
4489 u8 reserved_2[0x40];
4492 struct mlx5_ifc_init2rtr_qp_out_bits {
4494 u8 reserved_0[0x18];
4498 u8 reserved_1[0x40];
4501 struct mlx5_ifc_init2rtr_qp_in_bits {
4503 u8 reserved_0[0x10];
4505 u8 reserved_1[0x10];
4511 u8 reserved_3[0x20];
4513 u8 opt_param_mask[0x20];
4515 u8 reserved_4[0x20];
4517 struct mlx5_ifc_qpc_bits qpc;
4519 u8 reserved_5[0x80];
4522 struct mlx5_ifc_init2init_qp_out_bits {
4524 u8 reserved_0[0x18];
4528 u8 reserved_1[0x40];
4531 struct mlx5_ifc_init2init_qp_in_bits {
4533 u8 reserved_0[0x10];
4535 u8 reserved_1[0x10];
4541 u8 reserved_3[0x20];
4543 u8 opt_param_mask[0x20];
4545 u8 reserved_4[0x20];
4547 struct mlx5_ifc_qpc_bits qpc;
4549 u8 reserved_5[0x80];
4552 struct mlx5_ifc_get_dropped_packet_log_out_bits {
4554 u8 reserved_0[0x18];
4558 u8 reserved_1[0x40];
4560 u8 packet_headers_log[128][0x8];
4562 u8 packet_syndrome[64][0x8];
4565 struct mlx5_ifc_get_dropped_packet_log_in_bits {
4567 u8 reserved_0[0x10];
4569 u8 reserved_1[0x10];
4572 u8 reserved_2[0x40];
4575 struct mlx5_ifc_gen_eqe_in_bits {
4577 u8 reserved_0[0x10];
4579 u8 reserved_1[0x10];
4582 u8 reserved_2[0x18];
4585 u8 reserved_3[0x20];
4590 struct mlx5_ifc_gen_eq_out_bits {
4592 u8 reserved_0[0x18];
4596 u8 reserved_1[0x40];
4599 struct mlx5_ifc_enable_hca_out_bits {
4601 u8 reserved_0[0x18];
4605 u8 reserved_1[0x20];
4608 struct mlx5_ifc_enable_hca_in_bits {
4610 u8 reserved_0[0x10];
4612 u8 reserved_1[0x10];
4615 u8 reserved_2[0x10];
4616 u8 function_id[0x10];
4618 u8 reserved_3[0x20];
4621 struct mlx5_ifc_drain_dct_out_bits {
4623 u8 reserved_0[0x18];
4627 u8 reserved_1[0x40];
4630 struct mlx5_ifc_drain_dct_in_bits {
4632 u8 reserved_0[0x10];
4634 u8 reserved_1[0x10];
4640 u8 reserved_3[0x20];
4643 struct mlx5_ifc_disable_hca_out_bits {
4645 u8 reserved_0[0x18];
4649 u8 reserved_1[0x20];
4652 struct mlx5_ifc_disable_hca_in_bits {
4654 u8 reserved_0[0x10];
4656 u8 reserved_1[0x10];
4659 u8 reserved_2[0x10];
4660 u8 function_id[0x10];
4662 u8 reserved_3[0x20];
4665 struct mlx5_ifc_detach_from_mcg_out_bits {
4667 u8 reserved_0[0x18];
4671 u8 reserved_1[0x40];
4674 struct mlx5_ifc_detach_from_mcg_in_bits {
4676 u8 reserved_0[0x10];
4678 u8 reserved_1[0x10];
4684 u8 reserved_3[0x20];
4686 u8 multicast_gid[16][0x8];
4689 struct mlx5_ifc_destroy_xrc_srq_out_bits {
4691 u8 reserved_0[0x18];
4695 u8 reserved_1[0x40];
4698 struct mlx5_ifc_destroy_xrc_srq_in_bits {
4700 u8 reserved_0[0x10];
4702 u8 reserved_1[0x10];
4708 u8 reserved_3[0x20];
4711 struct mlx5_ifc_destroy_tis_out_bits {
4713 u8 reserved_0[0x18];
4717 u8 reserved_1[0x40];
4720 struct mlx5_ifc_destroy_tis_in_bits {
4722 u8 reserved_0[0x10];
4724 u8 reserved_1[0x10];
4730 u8 reserved_3[0x20];
4733 struct mlx5_ifc_destroy_tir_out_bits {
4735 u8 reserved_0[0x18];
4739 u8 reserved_1[0x40];
4742 struct mlx5_ifc_destroy_tir_in_bits {
4744 u8 reserved_0[0x10];
4746 u8 reserved_1[0x10];
4752 u8 reserved_3[0x20];
4755 struct mlx5_ifc_destroy_srq_out_bits {
4757 u8 reserved_0[0x18];
4761 u8 reserved_1[0x40];
4764 struct mlx5_ifc_destroy_srq_in_bits {
4766 u8 reserved_0[0x10];
4768 u8 reserved_1[0x10];
4774 u8 reserved_3[0x20];
4777 struct mlx5_ifc_destroy_sq_out_bits {
4779 u8 reserved_0[0x18];
4783 u8 reserved_1[0x40];
4786 struct mlx5_ifc_destroy_sq_in_bits {
4788 u8 reserved_0[0x10];
4790 u8 reserved_1[0x10];
4796 u8 reserved_3[0x20];
4799 struct mlx5_ifc_destroy_rqt_out_bits {
4801 u8 reserved_0[0x18];
4805 u8 reserved_1[0x40];
4808 struct mlx5_ifc_destroy_rqt_in_bits {
4810 u8 reserved_0[0x10];
4812 u8 reserved_1[0x10];
4818 u8 reserved_3[0x20];
4821 struct mlx5_ifc_destroy_rq_out_bits {
4823 u8 reserved_0[0x18];
4827 u8 reserved_1[0x40];
4830 struct mlx5_ifc_destroy_rq_in_bits {
4832 u8 reserved_0[0x10];
4834 u8 reserved_1[0x10];
4840 u8 reserved_3[0x20];
4843 struct mlx5_ifc_destroy_rmp_out_bits {
4845 u8 reserved_0[0x18];
4849 u8 reserved_1[0x40];
4852 struct mlx5_ifc_destroy_rmp_in_bits {
4854 u8 reserved_0[0x10];
4856 u8 reserved_1[0x10];
4862 u8 reserved_3[0x20];
4865 struct mlx5_ifc_destroy_qp_out_bits {
4867 u8 reserved_0[0x18];
4871 u8 reserved_1[0x40];
4874 struct mlx5_ifc_destroy_qp_in_bits {
4876 u8 reserved_0[0x10];
4878 u8 reserved_1[0x10];
4884 u8 reserved_3[0x20];
4887 struct mlx5_ifc_destroy_psv_out_bits {
4889 u8 reserved_0[0x18];
4893 u8 reserved_1[0x40];
4896 struct mlx5_ifc_destroy_psv_in_bits {
4898 u8 reserved_0[0x10];
4900 u8 reserved_1[0x10];
4906 u8 reserved_3[0x20];
4909 struct mlx5_ifc_destroy_mkey_out_bits {
4911 u8 reserved_0[0x18];
4915 u8 reserved_1[0x40];
4918 struct mlx5_ifc_destroy_mkey_in_bits {
4920 u8 reserved_0[0x10];
4922 u8 reserved_1[0x10];
4926 u8 mkey_index[0x18];
4928 u8 reserved_3[0x20];
4931 struct mlx5_ifc_destroy_flow_table_out_bits {
4933 u8 reserved_0[0x18];
4937 u8 reserved_1[0x40];
4940 struct mlx5_ifc_destroy_flow_table_in_bits {
4942 u8 reserved_0[0x10];
4944 u8 reserved_1[0x10];
4947 u8 reserved_2[0x40];
4950 u8 reserved_3[0x18];
4955 u8 reserved_5[0x140];
4958 struct mlx5_ifc_destroy_flow_group_out_bits {
4960 u8 reserved_0[0x18];
4964 u8 reserved_1[0x40];
4967 struct mlx5_ifc_destroy_flow_group_in_bits {
4969 u8 reserved_0[0x10];
4971 u8 reserved_1[0x10];
4974 u8 reserved_2[0x40];
4977 u8 reserved_3[0x18];
4984 u8 reserved_5[0x120];
4987 struct mlx5_ifc_destroy_eq_out_bits {
4989 u8 reserved_0[0x18];
4993 u8 reserved_1[0x40];
4996 struct mlx5_ifc_destroy_eq_in_bits {
4998 u8 reserved_0[0x10];
5000 u8 reserved_1[0x10];
5003 u8 reserved_2[0x18];
5006 u8 reserved_3[0x20];
5009 struct mlx5_ifc_destroy_dct_out_bits {
5011 u8 reserved_0[0x18];
5015 u8 reserved_1[0x40];
5018 struct mlx5_ifc_destroy_dct_in_bits {
5020 u8 reserved_0[0x10];
5022 u8 reserved_1[0x10];
5028 u8 reserved_3[0x20];
5031 struct mlx5_ifc_destroy_cq_out_bits {
5033 u8 reserved_0[0x18];
5037 u8 reserved_1[0x40];
5040 struct mlx5_ifc_destroy_cq_in_bits {
5042 u8 reserved_0[0x10];
5044 u8 reserved_1[0x10];
5050 u8 reserved_3[0x20];
5053 struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
5055 u8 reserved_0[0x18];
5059 u8 reserved_1[0x40];
5062 struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
5064 u8 reserved_0[0x10];
5066 u8 reserved_1[0x10];
5069 u8 reserved_2[0x20];
5071 u8 reserved_3[0x10];
5072 u8 vxlan_udp_port[0x10];
5075 struct mlx5_ifc_delete_l2_table_entry_out_bits {
5077 u8 reserved_0[0x18];
5081 u8 reserved_1[0x40];
5084 struct mlx5_ifc_delete_l2_table_entry_in_bits {
5086 u8 reserved_0[0x10];
5088 u8 reserved_1[0x10];
5091 u8 reserved_2[0x60];
5094 u8 table_index[0x18];
5096 u8 reserved_4[0x140];
5099 struct mlx5_ifc_delete_fte_out_bits {
5101 u8 reserved_0[0x18];
5105 u8 reserved_1[0x40];
5108 struct mlx5_ifc_delete_fte_in_bits {
5110 u8 reserved_0[0x10];
5112 u8 reserved_1[0x10];
5115 u8 reserved_2[0x40];
5118 u8 reserved_3[0x18];
5123 u8 reserved_5[0x40];
5125 u8 flow_index[0x20];
5127 u8 reserved_6[0xe0];
5130 struct mlx5_ifc_dealloc_xrcd_out_bits {
5132 u8 reserved_0[0x18];
5136 u8 reserved_1[0x40];
5139 struct mlx5_ifc_dealloc_xrcd_in_bits {
5141 u8 reserved_0[0x10];
5143 u8 reserved_1[0x10];
5149 u8 reserved_3[0x20];
5152 struct mlx5_ifc_dealloc_uar_out_bits {
5154 u8 reserved_0[0x18];
5158 u8 reserved_1[0x40];
5161 struct mlx5_ifc_dealloc_uar_in_bits {
5163 u8 reserved_0[0x10];
5165 u8 reserved_1[0x10];
5171 u8 reserved_3[0x20];
5174 struct mlx5_ifc_dealloc_transport_domain_out_bits {
5176 u8 reserved_0[0x18];
5180 u8 reserved_1[0x40];
5183 struct mlx5_ifc_dealloc_transport_domain_in_bits {
5185 u8 reserved_0[0x10];
5187 u8 reserved_1[0x10];
5191 u8 transport_domain[0x18];
5193 u8 reserved_3[0x20];
5196 struct mlx5_ifc_dealloc_q_counter_out_bits {
5198 u8 reserved_0[0x18];
5202 u8 reserved_1[0x40];
5205 struct mlx5_ifc_dealloc_q_counter_in_bits {
5207 u8 reserved_0[0x10];
5209 u8 reserved_1[0x10];
5212 u8 reserved_2[0x18];
5213 u8 counter_set_id[0x8];
5215 u8 reserved_3[0x20];
5218 struct mlx5_ifc_dealloc_pd_out_bits {
5220 u8 reserved_0[0x18];
5224 u8 reserved_1[0x40];
5227 struct mlx5_ifc_dealloc_pd_in_bits {
5229 u8 reserved_0[0x10];
5231 u8 reserved_1[0x10];
5237 u8 reserved_3[0x20];
5240 struct mlx5_ifc_create_xrc_srq_out_bits {
5242 u8 reserved_0[0x18];
5249 u8 reserved_2[0x20];
5252 struct mlx5_ifc_create_xrc_srq_in_bits {
5254 u8 reserved_0[0x10];
5256 u8 reserved_1[0x10];
5259 u8 reserved_2[0x40];
5261 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
5263 u8 reserved_3[0x600];
5268 struct mlx5_ifc_create_tis_out_bits {
5270 u8 reserved_0[0x18];
5277 u8 reserved_2[0x20];
5280 struct mlx5_ifc_create_tis_in_bits {
5282 u8 reserved_0[0x10];
5284 u8 reserved_1[0x10];
5287 u8 reserved_2[0xc0];
5289 struct mlx5_ifc_tisc_bits ctx;
5292 struct mlx5_ifc_create_tir_out_bits {
5294 u8 reserved_0[0x18];
5301 u8 reserved_2[0x20];
5304 struct mlx5_ifc_create_tir_in_bits {
5306 u8 reserved_0[0x10];
5308 u8 reserved_1[0x10];
5311 u8 reserved_2[0xc0];
5313 struct mlx5_ifc_tirc_bits ctx;
5316 struct mlx5_ifc_create_srq_out_bits {
5318 u8 reserved_0[0x18];
5325 u8 reserved_2[0x20];
5328 struct mlx5_ifc_create_srq_in_bits {
5330 u8 reserved_0[0x10];
5332 u8 reserved_1[0x10];
5335 u8 reserved_2[0x40];
5337 struct mlx5_ifc_srqc_bits srq_context_entry;
5339 u8 reserved_3[0x600];
5344 struct mlx5_ifc_create_sq_out_bits {
5346 u8 reserved_0[0x18];
5353 u8 reserved_2[0x20];
5356 struct mlx5_ifc_create_sq_in_bits {
5358 u8 reserved_0[0x10];
5360 u8 reserved_1[0x10];
5363 u8 reserved_2[0xc0];
5365 struct mlx5_ifc_sqc_bits ctx;
5368 struct mlx5_ifc_create_rqt_out_bits {
5370 u8 reserved_0[0x18];
5377 u8 reserved_2[0x20];
5380 struct mlx5_ifc_create_rqt_in_bits {
5382 u8 reserved_0[0x10];
5384 u8 reserved_1[0x10];
5387 u8 reserved_2[0xc0];
5389 struct mlx5_ifc_rqtc_bits rqt_context;
5392 struct mlx5_ifc_create_rq_out_bits {
5394 u8 reserved_0[0x18];
5401 u8 reserved_2[0x20];
5404 struct mlx5_ifc_create_rq_in_bits {
5406 u8 reserved_0[0x10];
5408 u8 reserved_1[0x10];
5411 u8 reserved_2[0xc0];
5413 struct mlx5_ifc_rqc_bits ctx;
5416 struct mlx5_ifc_create_rmp_out_bits {
5418 u8 reserved_0[0x18];
5425 u8 reserved_2[0x20];
5428 struct mlx5_ifc_create_rmp_in_bits {
5430 u8 reserved_0[0x10];
5432 u8 reserved_1[0x10];
5435 u8 reserved_2[0xc0];
5437 struct mlx5_ifc_rmpc_bits ctx;
5440 struct mlx5_ifc_create_qp_out_bits {
5442 u8 reserved_0[0x18];
5449 u8 reserved_2[0x20];
5452 struct mlx5_ifc_create_qp_in_bits {
5454 u8 reserved_0[0x10];
5456 u8 reserved_1[0x10];
5459 u8 reserved_2[0x40];
5461 u8 opt_param_mask[0x20];
5463 u8 reserved_3[0x20];
5465 struct mlx5_ifc_qpc_bits qpc;
5467 u8 reserved_4[0x80];
5472 struct mlx5_ifc_create_psv_out_bits {
5474 u8 reserved_0[0x18];
5478 u8 reserved_1[0x40];
5481 u8 psv0_index[0x18];
5484 u8 psv1_index[0x18];
5487 u8 psv2_index[0x18];
5490 u8 psv3_index[0x18];
5493 struct mlx5_ifc_create_psv_in_bits {
5495 u8 reserved_0[0x10];
5497 u8 reserved_1[0x10];
5504 u8 reserved_3[0x20];
5507 struct mlx5_ifc_create_mkey_out_bits {
5509 u8 reserved_0[0x18];
5514 u8 mkey_index[0x18];
5516 u8 reserved_2[0x20];
5519 struct mlx5_ifc_create_mkey_in_bits {
5521 u8 reserved_0[0x10];
5523 u8 reserved_1[0x10];
5526 u8 reserved_2[0x20];
5529 u8 reserved_3[0x1f];
5531 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
5533 u8 reserved_4[0x80];
5535 u8 translations_octword_actual_size[0x20];
5537 u8 reserved_5[0x560];
5539 u8 klm_pas_mtt[0][0x20];
5542 struct mlx5_ifc_create_flow_table_out_bits {
5544 u8 reserved_0[0x18];
5551 u8 reserved_2[0x20];
5554 struct mlx5_ifc_create_flow_table_in_bits {
5556 u8 reserved_0[0x10];
5558 u8 reserved_1[0x10];
5561 u8 reserved_2[0x40];
5564 u8 reserved_3[0x18];
5566 u8 reserved_4[0x20];
5573 u8 reserved_7[0x120];
5576 struct mlx5_ifc_create_flow_group_out_bits {
5578 u8 reserved_0[0x18];
5585 u8 reserved_2[0x20];
5589 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
5590 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
5591 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
5594 struct mlx5_ifc_create_flow_group_in_bits {
5596 u8 reserved_0[0x10];
5598 u8 reserved_1[0x10];
5601 u8 reserved_2[0x40];
5604 u8 reserved_3[0x18];
5609 u8 reserved_5[0x20];
5611 u8 start_flow_index[0x20];
5613 u8 reserved_6[0x20];
5615 u8 end_flow_index[0x20];
5617 u8 reserved_7[0xa0];
5619 u8 reserved_8[0x18];
5620 u8 match_criteria_enable[0x8];
5622 struct mlx5_ifc_fte_match_param_bits match_criteria;
5624 u8 reserved_9[0xe00];
5627 struct mlx5_ifc_create_eq_out_bits {
5629 u8 reserved_0[0x18];
5633 u8 reserved_1[0x18];
5636 u8 reserved_2[0x20];
5639 struct mlx5_ifc_create_eq_in_bits {
5641 u8 reserved_0[0x10];
5643 u8 reserved_1[0x10];
5646 u8 reserved_2[0x40];
5648 struct mlx5_ifc_eqc_bits eq_context_entry;
5650 u8 reserved_3[0x40];
5652 u8 event_bitmask[0x40];
5654 u8 reserved_4[0x580];
5659 struct mlx5_ifc_create_dct_out_bits {
5661 u8 reserved_0[0x18];
5668 u8 reserved_2[0x20];
5671 struct mlx5_ifc_create_dct_in_bits {
5673 u8 reserved_0[0x10];
5675 u8 reserved_1[0x10];
5678 u8 reserved_2[0x40];
5680 struct mlx5_ifc_dctc_bits dct_context_entry;
5682 u8 reserved_3[0x180];
5685 struct mlx5_ifc_create_cq_out_bits {
5687 u8 reserved_0[0x18];
5694 u8 reserved_2[0x20];
5697 struct mlx5_ifc_create_cq_in_bits {
5699 u8 reserved_0[0x10];
5701 u8 reserved_1[0x10];
5704 u8 reserved_2[0x40];
5706 struct mlx5_ifc_cqc_bits cq_context;
5708 u8 reserved_3[0x600];
5713 struct mlx5_ifc_config_int_moderation_out_bits {
5715 u8 reserved_0[0x18];
5721 u8 int_vector[0x10];
5723 u8 reserved_2[0x20];
5727 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
5728 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
5731 struct mlx5_ifc_config_int_moderation_in_bits {
5733 u8 reserved_0[0x10];
5735 u8 reserved_1[0x10];
5740 u8 int_vector[0x10];
5742 u8 reserved_3[0x20];
5745 struct mlx5_ifc_attach_to_mcg_out_bits {
5747 u8 reserved_0[0x18];
5751 u8 reserved_1[0x40];
5754 struct mlx5_ifc_attach_to_mcg_in_bits {
5756 u8 reserved_0[0x10];
5758 u8 reserved_1[0x10];
5764 u8 reserved_3[0x20];
5766 u8 multicast_gid[16][0x8];
5769 struct mlx5_ifc_arm_xrc_srq_out_bits {
5771 u8 reserved_0[0x18];
5775 u8 reserved_1[0x40];
5779 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
5782 struct mlx5_ifc_arm_xrc_srq_in_bits {
5784 u8 reserved_0[0x10];
5786 u8 reserved_1[0x10];
5792 u8 reserved_3[0x10];
5796 struct mlx5_ifc_arm_rq_out_bits {
5798 u8 reserved_0[0x18];
5802 u8 reserved_1[0x40];
5806 MLX5_ARM_RQ_IN_OP_MOD_SRQ_ = 0x1,
5809 struct mlx5_ifc_arm_rq_in_bits {
5811 u8 reserved_0[0x10];
5813 u8 reserved_1[0x10];
5817 u8 srq_number[0x18];
5819 u8 reserved_3[0x10];
5823 struct mlx5_ifc_arm_dct_out_bits {
5825 u8 reserved_0[0x18];
5829 u8 reserved_1[0x40];
5832 struct mlx5_ifc_arm_dct_in_bits {
5834 u8 reserved_0[0x10];
5836 u8 reserved_1[0x10];
5840 u8 dct_number[0x18];
5842 u8 reserved_3[0x20];
5845 struct mlx5_ifc_alloc_xrcd_out_bits {
5847 u8 reserved_0[0x18];
5854 u8 reserved_2[0x20];
5857 struct mlx5_ifc_alloc_xrcd_in_bits {
5859 u8 reserved_0[0x10];
5861 u8 reserved_1[0x10];
5864 u8 reserved_2[0x40];
5867 struct mlx5_ifc_alloc_uar_out_bits {
5869 u8 reserved_0[0x18];
5876 u8 reserved_2[0x20];
5879 struct mlx5_ifc_alloc_uar_in_bits {
5881 u8 reserved_0[0x10];
5883 u8 reserved_1[0x10];
5886 u8 reserved_2[0x40];
5889 struct mlx5_ifc_alloc_transport_domain_out_bits {
5891 u8 reserved_0[0x18];
5896 u8 transport_domain[0x18];
5898 u8 reserved_2[0x20];
5901 struct mlx5_ifc_alloc_transport_domain_in_bits {
5903 u8 reserved_0[0x10];
5905 u8 reserved_1[0x10];
5908 u8 reserved_2[0x40];
5911 struct mlx5_ifc_alloc_q_counter_out_bits {
5913 u8 reserved_0[0x18];
5917 u8 reserved_1[0x18];
5918 u8 counter_set_id[0x8];
5920 u8 reserved_2[0x20];
5923 struct mlx5_ifc_alloc_q_counter_in_bits {
5925 u8 reserved_0[0x10];
5927 u8 reserved_1[0x10];
5930 u8 reserved_2[0x40];
5933 struct mlx5_ifc_alloc_pd_out_bits {
5935 u8 reserved_0[0x18];
5942 u8 reserved_2[0x20];
5945 struct mlx5_ifc_alloc_pd_in_bits {
5947 u8 reserved_0[0x10];
5949 u8 reserved_1[0x10];
5952 u8 reserved_2[0x40];
5955 struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
5957 u8 reserved_0[0x18];
5961 u8 reserved_1[0x40];
5964 struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
5966 u8 reserved_0[0x10];
5968 u8 reserved_1[0x10];
5971 u8 reserved_2[0x20];
5973 u8 reserved_3[0x10];
5974 u8 vxlan_udp_port[0x10];
5977 struct mlx5_ifc_access_register_out_bits {
5979 u8 reserved_0[0x18];
5983 u8 reserved_1[0x40];
5985 u8 register_data[0][0x20];
5989 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
5990 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
5993 struct mlx5_ifc_access_register_in_bits {
5995 u8 reserved_0[0x10];
5997 u8 reserved_1[0x10];
6000 u8 reserved_2[0x10];
6001 u8 register_id[0x10];
6005 u8 register_data[0][0x20];
6008 struct mlx5_ifc_sltp_reg_bits {
6017 u8 reserved_2[0x20];
6026 u8 ob_preemp_mode[0x4];
6030 u8 reserved_5[0x20];
6033 struct mlx5_ifc_slrg_reg_bits {
6042 u8 time_to_link_up[0x10];
6044 u8 grade_lane_speed[0x4];
6046 u8 grade_version[0x8];
6050 u8 height_grade_type[0x4];
6051 u8 height_grade[0x18];
6056 u8 reserved_4[0x10];
6057 u8 height_sigma[0x10];
6059 u8 reserved_5[0x20];
6062 u8 phase_grade_type[0x4];
6063 u8 phase_grade[0x18];
6066 u8 phase_eo_pos[0x8];
6068 u8 phase_eo_neg[0x8];
6070 u8 ffe_set_tested[0x10];
6071 u8 test_errors_per_lane[0x10];
6074 struct mlx5_ifc_pvlc_reg_bits {
6077 u8 reserved_1[0x10];
6079 u8 reserved_2[0x1c];
6082 u8 reserved_3[0x1c];
6085 u8 reserved_4[0x1c];
6086 u8 vl_operational[0x4];
6089 struct mlx5_ifc_pude_reg_bits {
6093 u8 admin_status[0x4];
6095 u8 oper_status[0x4];
6097 u8 reserved_2[0x60];
6100 struct mlx5_ifc_ptys_reg_bits {
6106 u8 reserved_2[0x40];
6108 u8 eth_proto_capability[0x20];
6110 u8 ib_link_width_capability[0x10];
6111 u8 ib_proto_capability[0x10];
6113 u8 reserved_3[0x20];
6115 u8 eth_proto_admin[0x20];
6117 u8 ib_link_width_admin[0x10];
6118 u8 ib_proto_admin[0x10];
6120 u8 reserved_4[0x20];
6122 u8 eth_proto_oper[0x20];
6124 u8 ib_link_width_oper[0x10];
6125 u8 ib_proto_oper[0x10];
6127 u8 reserved_5[0x20];
6129 u8 eth_proto_lp_advertise[0x20];
6131 u8 reserved_6[0x60];
6134 struct mlx5_ifc_ptas_reg_bits {
6135 u8 reserved_0[0x20];
6137 u8 algorithm_options[0x10];
6139 u8 repetitions_mode[0x4];
6140 u8 num_of_repetitions[0x8];
6142 u8 grade_version[0x8];
6143 u8 height_grade_type[0x4];
6144 u8 phase_grade_type[0x4];
6145 u8 height_grade_weight[0x8];
6146 u8 phase_grade_weight[0x8];
6148 u8 gisim_measure_bits[0x10];
6149 u8 adaptive_tap_measure_bits[0x10];
6151 u8 ber_bath_high_error_threshold[0x10];
6152 u8 ber_bath_mid_error_threshold[0x10];
6154 u8 ber_bath_low_error_threshold[0x10];
6155 u8 one_ratio_high_threshold[0x10];
6157 u8 one_ratio_high_mid_threshold[0x10];
6158 u8 one_ratio_low_mid_threshold[0x10];
6160 u8 one_ratio_low_threshold[0x10];
6161 u8 ndeo_error_threshold[0x10];
6163 u8 mixer_offset_step_size[0x10];
6165 u8 mix90_phase_for_voltage_bath[0x8];
6167 u8 mixer_offset_start[0x10];
6168 u8 mixer_offset_end[0x10];
6170 u8 reserved_3[0x15];
6171 u8 ber_test_time[0xb];
6174 struct mlx5_ifc_pspa_reg_bits {
6180 u8 reserved_1[0x20];
6183 struct mlx5_ifc_pqdr_reg_bits {
6191 u8 reserved_3[0x20];
6193 u8 reserved_4[0x10];
6194 u8 min_threshold[0x10];
6196 u8 reserved_5[0x10];
6197 u8 max_threshold[0x10];
6199 u8 reserved_6[0x10];
6200 u8 mark_probability_denominator[0x10];
6202 u8 reserved_7[0x60];
6205 struct mlx5_ifc_ppsc_reg_bits {
6208 u8 reserved_1[0x10];
6210 u8 reserved_2[0x60];
6212 u8 reserved_3[0x1c];
6215 u8 reserved_4[0x1c];
6216 u8 wrps_status[0x4];
6219 u8 up_threshold[0x8];
6221 u8 down_threshold[0x8];
6223 u8 reserved_7[0x20];
6225 u8 reserved_8[0x1c];
6228 u8 reserved_9[0x1c];
6229 u8 srps_status[0x4];
6231 u8 reserved_10[0x40];
6234 struct mlx5_ifc_pplr_reg_bits {
6237 u8 reserved_1[0x10];
6245 struct mlx5_ifc_pplm_reg_bits {
6248 u8 reserved_1[0x10];
6250 u8 reserved_2[0x20];
6252 u8 port_profile_mode[0x8];
6253 u8 static_port_profile[0x8];
6254 u8 active_port_profile[0x8];
6257 u8 retransmission_active[0x8];
6258 u8 fec_mode_active[0x18];
6260 u8 reserved_4[0x20];
6263 struct mlx5_ifc_ppcnt_reg_bits {
6271 u8 reserved_1[0x1c];
6274 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
6277 struct mlx5_ifc_ppad_reg_bits {
6286 u8 reserved_2[0x40];
6289 struct mlx5_ifc_pmtu_reg_bits {
6292 u8 reserved_1[0x10];
6295 u8 reserved_2[0x10];
6298 u8 reserved_3[0x10];
6301 u8 reserved_4[0x10];
6304 struct mlx5_ifc_pmpr_reg_bits {
6307 u8 reserved_1[0x10];
6309 u8 reserved_2[0x18];
6310 u8 attenuation_5g[0x8];
6312 u8 reserved_3[0x18];
6313 u8 attenuation_7g[0x8];
6315 u8 reserved_4[0x18];
6316 u8 attenuation_12g[0x8];
6319 struct mlx5_ifc_pmpe_reg_bits {
6323 u8 module_status[0x4];
6325 u8 reserved_2[0x60];
6328 struct mlx5_ifc_pmpc_reg_bits {
6329 u8 module_state_updated[32][0x8];
6332 struct mlx5_ifc_pmlpn_reg_bits {
6334 u8 mlpn_status[0x4];
6336 u8 reserved_1[0x10];
6339 u8 reserved_2[0x1f];
6342 struct mlx5_ifc_pmlp_reg_bits {
6349 u8 lane0_module_mapping[0x20];
6351 u8 lane1_module_mapping[0x20];
6353 u8 lane2_module_mapping[0x20];
6355 u8 lane3_module_mapping[0x20];
6357 u8 reserved_2[0x160];
6360 struct mlx5_ifc_pmaos_reg_bits {
6364 u8 admin_status[0x4];
6366 u8 oper_status[0x4];
6370 u8 reserved_3[0x1c];
6373 u8 reserved_4[0x40];
6376 struct mlx5_ifc_plpc_reg_bits {
6383 u8 reserved_3[0x10];
6384 u8 lane_speed[0x10];
6386 u8 reserved_4[0x17];
6388 u8 fec_mode_policy[0x8];
6390 u8 retransmission_capability[0x8];
6391 u8 fec_mode_capability[0x18];
6393 u8 retransmission_support_admin[0x8];
6394 u8 fec_mode_support_admin[0x18];
6396 u8 retransmission_request_admin[0x8];
6397 u8 fec_mode_request_admin[0x18];
6399 u8 reserved_5[0x80];
6402 struct mlx5_ifc_plib_reg_bits {
6408 u8 reserved_2[0x60];
6411 struct mlx5_ifc_plbf_reg_bits {
6417 u8 reserved_2[0x20];
6420 struct mlx5_ifc_pipg_reg_bits {
6423 u8 reserved_1[0x10];
6426 u8 reserved_2[0x19];
6431 struct mlx5_ifc_pifr_reg_bits {
6434 u8 reserved_1[0x10];
6436 u8 reserved_2[0xe0];
6438 u8 port_filter[8][0x20];
6440 u8 port_filter_update_en[8][0x20];
6443 struct mlx5_ifc_pfcc_reg_bits {
6446 u8 reserved_1[0x10];
6450 u8 prio_mask_tx[0x8];
6452 u8 prio_mask_rx[0x8];
6458 u8 reserved_5[0x10];
6464 u8 reserved_7[0x10];
6466 u8 reserved_8[0x80];
6469 struct mlx5_ifc_pelc_reg_bits {
6473 u8 reserved_1[0x10];
6476 u8 op_capability[0x8];
6482 u8 capability[0x40];
6488 u8 reserved_2[0x80];
6491 struct mlx5_ifc_peir_reg_bits {
6494 u8 reserved_1[0x10];
6497 u8 error_count[0x4];
6498 u8 reserved_3[0x10];
6506 struct mlx5_ifc_pcap_reg_bits {
6509 u8 reserved_1[0x10];
6511 u8 port_capability_mask[4][0x20];
6514 struct mlx5_ifc_paos_reg_bits {
6518 u8 admin_status[0x4];
6520 u8 oper_status[0x4];
6524 u8 reserved_2[0x1c];
6527 u8 reserved_3[0x40];
6530 struct mlx5_ifc_pamp_reg_bits {
6532 u8 opamp_group[0x8];
6534 u8 opamp_group_type[0x4];
6536 u8 start_index[0x10];
6538 u8 num_of_indices[0xc];
6540 u8 index_data[18][0x10];
6543 struct mlx5_ifc_lane_2_module_mapping_bits {
6552 struct mlx5_ifc_bufferx_reg_bits {
6559 u8 xoff_threshold[0x10];
6560 u8 xon_threshold[0x10];
6563 struct mlx5_ifc_set_node_in_bits {
6564 u8 node_description[64][0x8];
6567 struct mlx5_ifc_register_power_settings_bits {
6568 u8 reserved_0[0x18];
6569 u8 power_settings_level[0x8];
6571 u8 reserved_1[0x60];
6574 struct mlx5_ifc_register_host_endianness_bits {
6576 u8 reserved_0[0x1f];
6578 u8 reserved_1[0x60];
6581 struct mlx5_ifc_umr_pointer_desc_argument_bits {
6582 u8 reserved_0[0x20];
6586 u8 addressh_63_32[0x20];
6588 u8 addressl_31_0[0x20];
6591 struct mlx5_ifc_ud_adrs_vector_bits {
6596 u8 destination_qp_dct[0x18];
6598 u8 static_rate[0x4];
6599 u8 sl_eth_prio[0x4];
6602 u8 rlid_udp_sport[0x10];
6604 u8 reserved_1[0x20];
6606 u8 rmac_47_16[0x20];
6615 u8 src_addr_index[0x8];
6616 u8 flow_label[0x14];
6618 u8 rgid_rip[16][0x8];
6621 struct mlx5_ifc_pages_req_event_bits {
6622 u8 reserved_0[0x10];
6623 u8 function_id[0x10];
6627 u8 reserved_1[0xa0];
6630 struct mlx5_ifc_eqe_bits {
6634 u8 event_sub_type[0x8];
6636 u8 reserved_2[0xe0];
6638 union mlx5_ifc_event_auto_bits event_data;
6640 u8 reserved_3[0x10];
6647 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
6650 struct mlx5_ifc_cmd_queue_entry_bits {
6652 u8 reserved_0[0x18];
6654 u8 input_length[0x20];
6656 u8 input_mailbox_pointer_63_32[0x20];
6658 u8 input_mailbox_pointer_31_9[0x17];
6661 u8 command_input_inline_data[16][0x8];
6663 u8 command_output_inline_data[16][0x8];
6665 u8 output_mailbox_pointer_63_32[0x20];
6667 u8 output_mailbox_pointer_31_9[0x17];
6670 u8 output_length[0x20];
6679 struct mlx5_ifc_cmd_out_bits {
6681 u8 reserved_0[0x18];
6685 u8 command_output[0x20];
6688 struct mlx5_ifc_cmd_in_bits {
6690 u8 reserved_0[0x10];
6692 u8 reserved_1[0x10];
6695 u8 command[0][0x20];
6698 struct mlx5_ifc_cmd_if_box_bits {
6699 u8 mailbox_data[512][0x8];
6701 u8 reserved_0[0x180];
6703 u8 next_pointer_63_32[0x20];
6705 u8 next_pointer_31_10[0x16];
6708 u8 block_number[0x20];
6712 u8 ctrl_signature[0x8];
6716 struct mlx5_ifc_mtt_bits {
6717 u8 ptag_63_32[0x20];
6726 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
6727 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
6728 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
6732 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
6733 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
6734 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
6738 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
6739 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
6740 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
6741 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
6742 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
6743 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
6744 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
6745 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
6746 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
6747 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
6748 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
6751 struct mlx5_ifc_initial_seg_bits {
6752 u8 fw_rev_minor[0x10];
6753 u8 fw_rev_major[0x10];
6755 u8 cmd_interface_rev[0x10];
6756 u8 fw_rev_subminor[0x10];
6758 u8 reserved_0[0x40];
6760 u8 cmdq_phy_addr_63_32[0x20];
6762 u8 cmdq_phy_addr_31_12[0x14];
6764 u8 nic_interface[0x2];
6765 u8 log_cmdq_size[0x4];
6766 u8 log_cmdq_stride[0x4];
6768 u8 command_doorbell_vector[0x20];
6770 u8 reserved_2[0xf00];
6772 u8 initializing[0x1];
6774 u8 nic_interface_supported[0x3];
6775 u8 reserved_4[0x18];
6777 struct mlx5_ifc_health_buffer_bits health_buffer;
6779 u8 no_dram_nic_offset[0x20];
6781 u8 reserved_5[0x6e40];
6783 u8 reserved_6[0x1f];
6786 u8 health_syndrome[0x8];
6787 u8 health_counter[0x18];
6789 u8 reserved_7[0x17fc0];
6792 union mlx5_ifc_ports_control_registers_document_bits {
6793 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
6794 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
6795 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
6796 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
6797 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
6798 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
6799 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
6800 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
6801 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
6802 struct mlx5_ifc_pamp_reg_bits pamp_reg;
6803 struct mlx5_ifc_paos_reg_bits paos_reg;
6804 struct mlx5_ifc_pcap_reg_bits pcap_reg;
6805 struct mlx5_ifc_peir_reg_bits peir_reg;
6806 struct mlx5_ifc_pelc_reg_bits pelc_reg;
6807 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
6808 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
6809 struct mlx5_ifc_pifr_reg_bits pifr_reg;
6810 struct mlx5_ifc_pipg_reg_bits pipg_reg;
6811 struct mlx5_ifc_plbf_reg_bits plbf_reg;
6812 struct mlx5_ifc_plib_reg_bits plib_reg;
6813 struct mlx5_ifc_plpc_reg_bits plpc_reg;
6814 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
6815 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
6816 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
6817 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
6818 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
6819 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
6820 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
6821 struct mlx5_ifc_ppad_reg_bits ppad_reg;
6822 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
6823 struct mlx5_ifc_pplm_reg_bits pplm_reg;
6824 struct mlx5_ifc_pplr_reg_bits pplr_reg;
6825 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
6826 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
6827 struct mlx5_ifc_pspa_reg_bits pspa_reg;
6828 struct mlx5_ifc_ptas_reg_bits ptas_reg;
6829 struct mlx5_ifc_ptys_reg_bits ptys_reg;
6830 struct mlx5_ifc_pude_reg_bits pude_reg;
6831 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
6832 struct mlx5_ifc_slrg_reg_bits slrg_reg;
6833 struct mlx5_ifc_sltp_reg_bits sltp_reg;
6834 u8 reserved_0[0x60e0];
6837 union mlx5_ifc_debug_enhancements_document_bits {
6838 struct mlx5_ifc_health_buffer_bits health_buffer;
6839 u8 reserved_0[0x200];
6842 union mlx5_ifc_uplink_pci_interface_document_bits {
6843 struct mlx5_ifc_initial_seg_bits initial_seg;
6844 u8 reserved_0[0x20060];
6847 #endif /* MLX5_IFC_H */