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 {
260 u8 flow_modify_en[0x1];
264 u8 log_max_ft_size[0x6];
266 u8 max_ft_level[0x8];
271 u8 log_max_ft_num[0x8];
274 u8 log_max_destination[0x8];
277 u8 log_max_flow[0x8];
281 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support;
283 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support;
286 struct mlx5_ifc_odp_per_transport_service_cap_bits {
296 struct mlx5_ifc_fte_match_set_lyr_2_4_bits {
331 struct mlx5_ifc_fte_match_set_misc_bits {
335 u8 source_port[0x10];
337 u8 outer_second_prio[0x3];
338 u8 outer_second_cfi[0x1];
339 u8 outer_second_vid[0xc];
340 u8 inner_second_prio[0x3];
341 u8 inner_second_cfi[0x1];
342 u8 inner_second_vid[0xc];
344 u8 outer_second_vlan_tag[0x1];
345 u8 inner_second_vlan_tag[0x1];
347 u8 gre_protocol[0x10];
358 u8 outer_ipv6_flow_label[0x14];
361 u8 inner_ipv6_flow_label[0x14];
366 struct mlx5_ifc_cmd_pas_bits {
373 struct mlx5_ifc_uint64_bits {
380 MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0,
381 MLX5_ADS_STAT_RATE_2_5GBPS = 0x7,
382 MLX5_ADS_STAT_RATE_10GBPS = 0x8,
383 MLX5_ADS_STAT_RATE_30GBPS = 0x9,
384 MLX5_ADS_STAT_RATE_5GBPS = 0xa,
385 MLX5_ADS_STAT_RATE_20GBPS = 0xb,
386 MLX5_ADS_STAT_RATE_40GBPS = 0xc,
387 MLX5_ADS_STAT_RATE_60GBPS = 0xd,
388 MLX5_ADS_STAT_RATE_80GBPS = 0xe,
389 MLX5_ADS_STAT_RATE_120GBPS = 0xf,
392 struct mlx5_ifc_ads_bits {
405 u8 src_addr_index[0x8];
414 u8 rgid_rip[16][0x8];
434 struct mlx5_ifc_flow_table_nic_cap_bits {
435 u8 reserved_0[0x200];
437 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;
439 u8 reserved_1[0x200];
441 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;
443 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit;
445 u8 reserved_2[0x200];
447 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer;
449 u8 reserved_3[0x7200];
452 struct mlx5_ifc_flow_table_eswitch_cap_bits {
453 u8 reserved_0[0x200];
455 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb;
457 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress;
459 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress;
461 u8 reserved_1[0x7800];
464 struct mlx5_ifc_e_switch_cap_bits {
465 u8 vport_svlan_strip[0x1];
466 u8 vport_cvlan_strip[0x1];
467 u8 vport_svlan_insert[0x1];
468 u8 vport_cvlan_insert_if_not_exist[0x1];
469 u8 vport_cvlan_insert_overwrite[0x1];
472 u8 reserved_1[0x7e0];
475 struct mlx5_ifc_per_protocol_networking_offload_caps_bits {
479 u8 lro_psh_flag[0x1];
480 u8 lro_time_stamp[0x1];
482 u8 self_lb_en_modifiable[0x1];
486 u8 rss_ind_tbl_cap[0x4];
488 u8 tunnel_lso_const_out_ip_id[0x1];
490 u8 tunnel_statless_gre[0x1];
491 u8 tunnel_stateless_vxlan[0x1];
496 u8 lro_min_mss_size[0x10];
498 u8 reserved_7[0x120];
500 u8 lro_timer_supported_periods[4][0x20];
502 u8 reserved_8[0x600];
505 struct mlx5_ifc_roce_cap_bits {
514 u8 roce_version[0x8];
517 u8 r_roce_dest_udp_port[0x10];
519 u8 r_roce_max_src_udp_port[0x10];
520 u8 r_roce_min_src_udp_port[0x10];
523 u8 roce_address_table_size[0x10];
525 u8 reserved_6[0x700];
529 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0,
530 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2,
531 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4,
532 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8,
533 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10,
534 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20,
535 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40,
536 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80,
537 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100,
541 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1,
542 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2,
543 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4,
544 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8,
545 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10,
546 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20,
547 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40,
548 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80,
549 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100,
552 struct mlx5_ifc_atomic_caps_bits {
555 u8 atomic_req_endianness[0x1];
561 u8 atomic_operations[0x10];
564 u8 atomic_size_qp[0x10];
567 u8 atomic_size_dc[0x10];
569 u8 reserved_6[0x720];
572 struct mlx5_ifc_odp_cap_bits {
580 struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps;
582 struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps;
584 struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps;
586 u8 reserved_3[0x720];
590 MLX5_WQ_TYPE_LINKED_LIST = 0x0,
591 MLX5_WQ_TYPE_CYCLIC = 0x1,
592 MLX5_WQ_TYPE_STRQ = 0x2,
596 MLX5_WQ_END_PAD_MODE_NONE = 0x0,
597 MLX5_WQ_END_PAD_MODE_ALIGN = 0x1,
601 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0,
602 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1,
603 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2,
604 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3,
605 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4,
609 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0,
610 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1,
611 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2,
612 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3,
613 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4,
614 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5,
618 MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0,
619 MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1,
623 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0,
624 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1,
625 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3,
629 MLX5_CAP_PORT_TYPE_IB = 0x0,
630 MLX5_CAP_PORT_TYPE_ETH = 0x1,
633 struct mlx5_ifc_cmd_hca_cap_bits {
636 u8 log_max_srq_sz[0x8];
637 u8 log_max_qp_sz[0x8];
646 u8 log_max_cq_sz[0x8];
650 u8 log_max_eq_sz[0x8];
652 u8 log_max_mkey[0x6];
656 u8 max_indirection[0x8];
658 u8 log_max_mrw_sz[0x7];
660 u8 log_max_bsf_list_size[0x6];
662 u8 log_max_klm_list_size[0x6];
665 u8 log_max_ra_req_dc[0x6];
667 u8 log_max_ra_res_dc[0x6];
670 u8 log_max_ra_req_qp[0x6];
672 u8 log_max_ra_res_qp[0x6];
675 u8 cc_query_allowed[0x1];
676 u8 cc_modify_allowed[0x1];
678 u8 gid_table_size[0x10];
680 u8 out_of_seq_cnt[0x1];
681 u8 vport_counters[0x1];
684 u8 pkey_table_size[0x10];
686 u8 vport_group_manager[0x1];
687 u8 vhca_group_manager[0x1];
692 u8 nic_flow_table[0x1];
693 u8 eswitch_flow_table[0x1];
696 u8 local_ca_ack_delay[0x5];
703 u8 reserved_21[0x18];
705 u8 stat_rate_support[0x10];
709 u8 compact_address_vector[0x1];
711 u8 drain_sigerr[0x1];
712 u8 cmdif_checksum[0x2];
715 u8 wq_signature[0x1];
716 u8 sctr_data_cqe[0x1];
723 u8 eth_net_offloads[0x1];
730 u8 cq_moderation[0x1];
736 u8 scqe_break_moderation[0x1];
757 u8 pad_tx_eth_packet[0x1];
759 u8 log_bf_reg_size[0x5];
760 u8 reserved_38[0x10];
762 u8 reserved_39[0x10];
763 u8 max_wqe_sz_sq[0x10];
765 u8 reserved_40[0x10];
766 u8 max_wqe_sz_rq[0x10];
768 u8 reserved_41[0x10];
769 u8 max_wqe_sz_sq_dc[0x10];
774 u8 reserved_43[0x18];
778 u8 log_max_transport_domain[0x5];
782 u8 log_max_xrcd[0x5];
784 u8 reserved_47[0x20];
795 u8 basic_cyclic_rcv_wqe[0x1];
801 u8 log_max_rqt_size[0x5];
803 u8 log_max_tis_per_sq[0x5];
806 u8 log_max_stride_sz_rq[0x5];
808 u8 log_min_stride_sz_rq[0x5];
810 u8 log_max_stride_sz_sq[0x5];
812 u8 log_min_stride_sz_sq[0x5];
814 u8 reserved_60[0x1b];
815 u8 log_max_wq_sz[0x5];
817 u8 nic_vport_change_event[0x1];
819 u8 log_max_vlan_list[0x5];
821 u8 log_max_current_mc_list[0x5];
823 u8 log_max_current_uc_list[0x5];
825 u8 reserved_64[0x80];
828 u8 log_max_l2_table[0x5];
830 u8 log_uar_page_sz[0x10];
832 u8 reserved_67[0x40];
833 u8 device_frequency_khz[0x20];
834 u8 reserved_68[0x5f];
837 u8 cqe_zip_timeout[0x10];
838 u8 cqe_zip_max_num[0x10];
840 u8 reserved_69[0x220];
843 enum mlx5_flow_destination_type {
844 MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0,
845 MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1,
846 MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2,
849 struct mlx5_ifc_dest_format_struct_bits {
850 u8 destination_type[0x8];
851 u8 destination_id[0x18];
856 struct mlx5_ifc_fte_match_param_bits {
857 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
859 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
861 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
863 u8 reserved_0[0xa00];
867 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
868 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
869 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
870 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
871 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
874 struct mlx5_ifc_rx_hash_field_select_bits {
875 u8 l3_prot_type[0x1];
876 u8 l4_prot_type[0x1];
877 u8 selected_fields[0x1e];
881 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
882 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
886 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
887 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
890 struct mlx5_ifc_wq_bits {
892 u8 wq_signature[0x1];
893 u8 end_padding_mode[0x2];
897 u8 hds_skip_first_sge[0x1];
898 u8 log2_hds_buf_size[0x3];
916 u8 log_wq_stride[0x4];
918 u8 log_wq_pg_sz[0x5];
922 u8 reserved_7[0x4e0];
924 struct mlx5_ifc_cmd_pas_bits pas[0];
927 struct mlx5_ifc_rq_num_bits {
932 struct mlx5_ifc_mac_address_layout_bits {
934 u8 mac_addr_47_32[0x10];
936 u8 mac_addr_31_0[0x20];
939 struct mlx5_ifc_vlan_layout_bits {
946 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
949 u8 min_time_between_cnps[0x20];
954 u8 cnp_802p_prio[0x3];
956 u8 reserved_3[0x720];
959 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
963 u8 clamp_tgt_rate[0x1];
965 u8 clamp_tgt_rate_after_time_inc[0x1];
970 u8 rpg_time_reset[0x20];
972 u8 rpg_byte_reset[0x20];
974 u8 rpg_threshold[0x20];
976 u8 rpg_max_rate[0x20];
978 u8 rpg_ai_rate[0x20];
980 u8 rpg_hai_rate[0x20];
984 u8 rpg_min_dec_fac[0x20];
986 u8 rpg_min_rate[0x20];
990 u8 rate_to_set_on_first_cnp[0x20];
994 u8 dce_tcp_rtt[0x20];
996 u8 rate_reduce_monitor_period[0x20];
1000 u8 initial_alpha_value[0x20];
1002 u8 reserved_7[0x4a0];
1005 struct mlx5_ifc_cong_control_802_1qau_rp_bits {
1006 u8 reserved_0[0x80];
1008 u8 rppp_max_rps[0x20];
1010 u8 rpg_time_reset[0x20];
1012 u8 rpg_byte_reset[0x20];
1014 u8 rpg_threshold[0x20];
1016 u8 rpg_max_rate[0x20];
1018 u8 rpg_ai_rate[0x20];
1020 u8 rpg_hai_rate[0x20];
1024 u8 rpg_min_dec_fac[0x20];
1026 u8 rpg_min_rate[0x20];
1028 u8 reserved_1[0x640];
1032 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1033 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1034 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1037 struct mlx5_ifc_resize_field_select_bits {
1038 u8 resize_field_select[0x20];
1042 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1043 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1044 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1045 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1048 struct mlx5_ifc_modify_field_select_bits {
1049 u8 modify_field_select[0x20];
1052 struct mlx5_ifc_field_select_r_roce_np_bits {
1053 u8 field_select_r_roce_np[0x20];
1056 struct mlx5_ifc_field_select_r_roce_rp_bits {
1057 u8 field_select_r_roce_rp[0x20];
1061 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1062 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1063 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1064 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1065 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1066 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1067 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1068 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1069 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1070 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1073 struct mlx5_ifc_field_select_802_1qau_rp_bits {
1074 u8 field_select_8021qaurp[0x20];
1077 struct mlx5_ifc_phys_layer_cntrs_bits {
1078 u8 time_since_last_clear_high[0x20];
1080 u8 time_since_last_clear_low[0x20];
1082 u8 symbol_errors_high[0x20];
1084 u8 symbol_errors_low[0x20];
1086 u8 sync_headers_errors_high[0x20];
1088 u8 sync_headers_errors_low[0x20];
1090 u8 edpl_bip_errors_lane0_high[0x20];
1092 u8 edpl_bip_errors_lane0_low[0x20];
1094 u8 edpl_bip_errors_lane1_high[0x20];
1096 u8 edpl_bip_errors_lane1_low[0x20];
1098 u8 edpl_bip_errors_lane2_high[0x20];
1100 u8 edpl_bip_errors_lane2_low[0x20];
1102 u8 edpl_bip_errors_lane3_high[0x20];
1104 u8 edpl_bip_errors_lane3_low[0x20];
1106 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1108 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1110 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1112 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1114 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1116 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1118 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1120 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1122 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1124 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1126 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1128 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1130 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1132 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1134 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1136 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1138 u8 rs_fec_corrected_blocks_high[0x20];
1140 u8 rs_fec_corrected_blocks_low[0x20];
1142 u8 rs_fec_uncorrectable_blocks_high[0x20];
1144 u8 rs_fec_uncorrectable_blocks_low[0x20];
1146 u8 rs_fec_no_errors_blocks_high[0x20];
1148 u8 rs_fec_no_errors_blocks_low[0x20];
1150 u8 rs_fec_single_error_blocks_high[0x20];
1152 u8 rs_fec_single_error_blocks_low[0x20];
1154 u8 rs_fec_corrected_symbols_total_high[0x20];
1156 u8 rs_fec_corrected_symbols_total_low[0x20];
1158 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1160 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1162 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1164 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1166 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1168 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1170 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1172 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1174 u8 link_down_events[0x20];
1176 u8 successful_recovery_events[0x20];
1178 u8 reserved_0[0x180];
1181 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1182 u8 transmit_queue_high[0x20];
1184 u8 transmit_queue_low[0x20];
1186 u8 reserved_0[0x780];
1189 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1190 u8 rx_octets_high[0x20];
1192 u8 rx_octets_low[0x20];
1194 u8 reserved_0[0xc0];
1196 u8 rx_frames_high[0x20];
1198 u8 rx_frames_low[0x20];
1200 u8 tx_octets_high[0x20];
1202 u8 tx_octets_low[0x20];
1204 u8 reserved_1[0xc0];
1206 u8 tx_frames_high[0x20];
1208 u8 tx_frames_low[0x20];
1210 u8 rx_pause_high[0x20];
1212 u8 rx_pause_low[0x20];
1214 u8 rx_pause_duration_high[0x20];
1216 u8 rx_pause_duration_low[0x20];
1218 u8 tx_pause_high[0x20];
1220 u8 tx_pause_low[0x20];
1222 u8 tx_pause_duration_high[0x20];
1224 u8 tx_pause_duration_low[0x20];
1226 u8 rx_pause_transition_high[0x20];
1228 u8 rx_pause_transition_low[0x20];
1230 u8 reserved_2[0x400];
1233 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1234 u8 port_transmit_wait_high[0x20];
1236 u8 port_transmit_wait_low[0x20];
1238 u8 reserved_0[0x780];
1241 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1242 u8 dot3stats_alignment_errors_high[0x20];
1244 u8 dot3stats_alignment_errors_low[0x20];
1246 u8 dot3stats_fcs_errors_high[0x20];
1248 u8 dot3stats_fcs_errors_low[0x20];
1250 u8 dot3stats_single_collision_frames_high[0x20];
1252 u8 dot3stats_single_collision_frames_low[0x20];
1254 u8 dot3stats_multiple_collision_frames_high[0x20];
1256 u8 dot3stats_multiple_collision_frames_low[0x20];
1258 u8 dot3stats_sqe_test_errors_high[0x20];
1260 u8 dot3stats_sqe_test_errors_low[0x20];
1262 u8 dot3stats_deferred_transmissions_high[0x20];
1264 u8 dot3stats_deferred_transmissions_low[0x20];
1266 u8 dot3stats_late_collisions_high[0x20];
1268 u8 dot3stats_late_collisions_low[0x20];
1270 u8 dot3stats_excessive_collisions_high[0x20];
1272 u8 dot3stats_excessive_collisions_low[0x20];
1274 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1276 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1278 u8 dot3stats_carrier_sense_errors_high[0x20];
1280 u8 dot3stats_carrier_sense_errors_low[0x20];
1282 u8 dot3stats_frame_too_longs_high[0x20];
1284 u8 dot3stats_frame_too_longs_low[0x20];
1286 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1288 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1290 u8 dot3stats_symbol_errors_high[0x20];
1292 u8 dot3stats_symbol_errors_low[0x20];
1294 u8 dot3control_in_unknown_opcodes_high[0x20];
1296 u8 dot3control_in_unknown_opcodes_low[0x20];
1298 u8 dot3in_pause_frames_high[0x20];
1300 u8 dot3in_pause_frames_low[0x20];
1302 u8 dot3out_pause_frames_high[0x20];
1304 u8 dot3out_pause_frames_low[0x20];
1306 u8 reserved_0[0x3c0];
1309 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1310 u8 ether_stats_drop_events_high[0x20];
1312 u8 ether_stats_drop_events_low[0x20];
1314 u8 ether_stats_octets_high[0x20];
1316 u8 ether_stats_octets_low[0x20];
1318 u8 ether_stats_pkts_high[0x20];
1320 u8 ether_stats_pkts_low[0x20];
1322 u8 ether_stats_broadcast_pkts_high[0x20];
1324 u8 ether_stats_broadcast_pkts_low[0x20];
1326 u8 ether_stats_multicast_pkts_high[0x20];
1328 u8 ether_stats_multicast_pkts_low[0x20];
1330 u8 ether_stats_crc_align_errors_high[0x20];
1332 u8 ether_stats_crc_align_errors_low[0x20];
1334 u8 ether_stats_undersize_pkts_high[0x20];
1336 u8 ether_stats_undersize_pkts_low[0x20];
1338 u8 ether_stats_oversize_pkts_high[0x20];
1340 u8 ether_stats_oversize_pkts_low[0x20];
1342 u8 ether_stats_fragments_high[0x20];
1344 u8 ether_stats_fragments_low[0x20];
1346 u8 ether_stats_jabbers_high[0x20];
1348 u8 ether_stats_jabbers_low[0x20];
1350 u8 ether_stats_collisions_high[0x20];
1352 u8 ether_stats_collisions_low[0x20];
1354 u8 ether_stats_pkts64octets_high[0x20];
1356 u8 ether_stats_pkts64octets_low[0x20];
1358 u8 ether_stats_pkts65to127octets_high[0x20];
1360 u8 ether_stats_pkts65to127octets_low[0x20];
1362 u8 ether_stats_pkts128to255octets_high[0x20];
1364 u8 ether_stats_pkts128to255octets_low[0x20];
1366 u8 ether_stats_pkts256to511octets_high[0x20];
1368 u8 ether_stats_pkts256to511octets_low[0x20];
1370 u8 ether_stats_pkts512to1023octets_high[0x20];
1372 u8 ether_stats_pkts512to1023octets_low[0x20];
1374 u8 ether_stats_pkts1024to1518octets_high[0x20];
1376 u8 ether_stats_pkts1024to1518octets_low[0x20];
1378 u8 ether_stats_pkts1519to2047octets_high[0x20];
1380 u8 ether_stats_pkts1519to2047octets_low[0x20];
1382 u8 ether_stats_pkts2048to4095octets_high[0x20];
1384 u8 ether_stats_pkts2048to4095octets_low[0x20];
1386 u8 ether_stats_pkts4096to8191octets_high[0x20];
1388 u8 ether_stats_pkts4096to8191octets_low[0x20];
1390 u8 ether_stats_pkts8192to10239octets_high[0x20];
1392 u8 ether_stats_pkts8192to10239octets_low[0x20];
1394 u8 reserved_0[0x280];
1397 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1398 u8 if_in_octets_high[0x20];
1400 u8 if_in_octets_low[0x20];
1402 u8 if_in_ucast_pkts_high[0x20];
1404 u8 if_in_ucast_pkts_low[0x20];
1406 u8 if_in_discards_high[0x20];
1408 u8 if_in_discards_low[0x20];
1410 u8 if_in_errors_high[0x20];
1412 u8 if_in_errors_low[0x20];
1414 u8 if_in_unknown_protos_high[0x20];
1416 u8 if_in_unknown_protos_low[0x20];
1418 u8 if_out_octets_high[0x20];
1420 u8 if_out_octets_low[0x20];
1422 u8 if_out_ucast_pkts_high[0x20];
1424 u8 if_out_ucast_pkts_low[0x20];
1426 u8 if_out_discards_high[0x20];
1428 u8 if_out_discards_low[0x20];
1430 u8 if_out_errors_high[0x20];
1432 u8 if_out_errors_low[0x20];
1434 u8 if_in_multicast_pkts_high[0x20];
1436 u8 if_in_multicast_pkts_low[0x20];
1438 u8 if_in_broadcast_pkts_high[0x20];
1440 u8 if_in_broadcast_pkts_low[0x20];
1442 u8 if_out_multicast_pkts_high[0x20];
1444 u8 if_out_multicast_pkts_low[0x20];
1446 u8 if_out_broadcast_pkts_high[0x20];
1448 u8 if_out_broadcast_pkts_low[0x20];
1450 u8 reserved_0[0x480];
1453 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
1454 u8 a_frames_transmitted_ok_high[0x20];
1456 u8 a_frames_transmitted_ok_low[0x20];
1458 u8 a_frames_received_ok_high[0x20];
1460 u8 a_frames_received_ok_low[0x20];
1462 u8 a_frame_check_sequence_errors_high[0x20];
1464 u8 a_frame_check_sequence_errors_low[0x20];
1466 u8 a_alignment_errors_high[0x20];
1468 u8 a_alignment_errors_low[0x20];
1470 u8 a_octets_transmitted_ok_high[0x20];
1472 u8 a_octets_transmitted_ok_low[0x20];
1474 u8 a_octets_received_ok_high[0x20];
1476 u8 a_octets_received_ok_low[0x20];
1478 u8 a_multicast_frames_xmitted_ok_high[0x20];
1480 u8 a_multicast_frames_xmitted_ok_low[0x20];
1482 u8 a_broadcast_frames_xmitted_ok_high[0x20];
1484 u8 a_broadcast_frames_xmitted_ok_low[0x20];
1486 u8 a_multicast_frames_received_ok_high[0x20];
1488 u8 a_multicast_frames_received_ok_low[0x20];
1490 u8 a_broadcast_frames_received_ok_high[0x20];
1492 u8 a_broadcast_frames_received_ok_low[0x20];
1494 u8 a_in_range_length_errors_high[0x20];
1496 u8 a_in_range_length_errors_low[0x20];
1498 u8 a_out_of_range_length_field_high[0x20];
1500 u8 a_out_of_range_length_field_low[0x20];
1502 u8 a_frame_too_long_errors_high[0x20];
1504 u8 a_frame_too_long_errors_low[0x20];
1506 u8 a_symbol_error_during_carrier_high[0x20];
1508 u8 a_symbol_error_during_carrier_low[0x20];
1510 u8 a_mac_control_frames_transmitted_high[0x20];
1512 u8 a_mac_control_frames_transmitted_low[0x20];
1514 u8 a_mac_control_frames_received_high[0x20];
1516 u8 a_mac_control_frames_received_low[0x20];
1518 u8 a_unsupported_opcodes_received_high[0x20];
1520 u8 a_unsupported_opcodes_received_low[0x20];
1522 u8 a_pause_mac_ctrl_frames_received_high[0x20];
1524 u8 a_pause_mac_ctrl_frames_received_low[0x20];
1526 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
1528 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
1530 u8 reserved_0[0x300];
1533 struct mlx5_ifc_cmd_inter_comp_event_bits {
1534 u8 command_completion_vector[0x20];
1536 u8 reserved_0[0xc0];
1539 struct mlx5_ifc_stall_vl_event_bits {
1540 u8 reserved_0[0x18];
1545 u8 reserved_2[0xa0];
1548 struct mlx5_ifc_db_bf_congestion_event_bits {
1549 u8 event_subtype[0x8];
1551 u8 congestion_level[0x8];
1554 u8 reserved_2[0xa0];
1557 struct mlx5_ifc_gpio_event_bits {
1558 u8 reserved_0[0x60];
1560 u8 gpio_event_hi[0x20];
1562 u8 gpio_event_lo[0x20];
1564 u8 reserved_1[0x40];
1567 struct mlx5_ifc_port_state_change_event_bits {
1568 u8 reserved_0[0x40];
1571 u8 reserved_1[0x1c];
1573 u8 reserved_2[0x80];
1576 struct mlx5_ifc_dropped_packet_logged_bits {
1577 u8 reserved_0[0xe0];
1581 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
1582 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
1585 struct mlx5_ifc_cq_error_bits {
1589 u8 reserved_1[0x20];
1591 u8 reserved_2[0x18];
1594 u8 reserved_3[0x80];
1597 struct mlx5_ifc_rdma_page_fault_event_bits {
1598 u8 bytes_committed[0x20];
1602 u8 reserved_0[0x10];
1603 u8 packet_len[0x10];
1605 u8 rdma_op_len[0x20];
1616 struct mlx5_ifc_wqe_associated_page_fault_event_bits {
1617 u8 bytes_committed[0x20];
1619 u8 reserved_0[0x10];
1622 u8 reserved_1[0x10];
1625 u8 reserved_2[0x60];
1634 struct mlx5_ifc_qp_events_bits {
1635 u8 reserved_0[0xa0];
1638 u8 reserved_1[0x18];
1641 u8 qpn_rqn_sqn[0x18];
1644 struct mlx5_ifc_dct_events_bits {
1645 u8 reserved_0[0xc0];
1648 u8 dct_number[0x18];
1651 struct mlx5_ifc_comp_event_bits {
1652 u8 reserved_0[0xc0];
1659 MLX5_QPC_STATE_RST = 0x0,
1660 MLX5_QPC_STATE_INIT = 0x1,
1661 MLX5_QPC_STATE_RTR = 0x2,
1662 MLX5_QPC_STATE_RTS = 0x3,
1663 MLX5_QPC_STATE_SQER = 0x4,
1664 MLX5_QPC_STATE_ERR = 0x6,
1665 MLX5_QPC_STATE_SQD = 0x7,
1666 MLX5_QPC_STATE_SUSPENDED = 0x9,
1670 MLX5_QPC_ST_RC = 0x0,
1671 MLX5_QPC_ST_UC = 0x1,
1672 MLX5_QPC_ST_UD = 0x2,
1673 MLX5_QPC_ST_XRC = 0x3,
1674 MLX5_QPC_ST_DCI = 0x5,
1675 MLX5_QPC_ST_QP0 = 0x7,
1676 MLX5_QPC_ST_QP1 = 0x8,
1677 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
1678 MLX5_QPC_ST_REG_UMR = 0xc,
1682 MLX5_QPC_PM_STATE_ARMED = 0x0,
1683 MLX5_QPC_PM_STATE_REARM = 0x1,
1684 MLX5_QPC_PM_STATE_RESERVED = 0x2,
1685 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
1689 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
1690 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
1694 MLX5_QPC_MTU_256_BYTES = 0x1,
1695 MLX5_QPC_MTU_512_BYTES = 0x2,
1696 MLX5_QPC_MTU_1K_BYTES = 0x3,
1697 MLX5_QPC_MTU_2K_BYTES = 0x4,
1698 MLX5_QPC_MTU_4K_BYTES = 0x5,
1699 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
1703 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
1704 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
1705 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
1706 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
1707 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
1708 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
1709 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
1710 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
1714 MLX5_QPC_CS_REQ_DISABLE = 0x0,
1715 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
1716 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
1720 MLX5_QPC_CS_RES_DISABLE = 0x0,
1721 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
1722 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
1725 struct mlx5_ifc_qpc_bits {
1732 u8 end_padding_mode[0x2];
1735 u8 wq_signature[0x1];
1736 u8 block_lb_mc[0x1];
1737 u8 atomic_like_write_en[0x1];
1738 u8 latency_sensitive[0x1];
1740 u8 drain_sigerr[0x1];
1745 u8 log_msg_max[0x5];
1747 u8 log_rq_size[0x4];
1748 u8 log_rq_stride[0x3];
1750 u8 log_sq_size[0x4];
1755 u8 counter_set_id[0x8];
1759 u8 user_index[0x18];
1761 u8 reserved_10[0x3];
1762 u8 log_page_size[0x5];
1763 u8 remote_qpn[0x18];
1765 struct mlx5_ifc_ads_bits primary_address_path;
1767 struct mlx5_ifc_ads_bits secondary_address_path;
1769 u8 log_ack_req_freq[0x4];
1770 u8 reserved_11[0x4];
1771 u8 log_sra_max[0x3];
1772 u8 reserved_12[0x2];
1773 u8 retry_count[0x3];
1775 u8 reserved_13[0x1];
1777 u8 cur_rnr_retry[0x3];
1778 u8 cur_retry_count[0x3];
1779 u8 reserved_14[0x5];
1781 u8 reserved_15[0x20];
1783 u8 reserved_16[0x8];
1784 u8 next_send_psn[0x18];
1786 u8 reserved_17[0x8];
1789 u8 reserved_18[0x40];
1791 u8 reserved_19[0x8];
1792 u8 last_acked_psn[0x18];
1794 u8 reserved_20[0x8];
1797 u8 reserved_21[0x8];
1798 u8 log_rra_max[0x3];
1799 u8 reserved_22[0x1];
1800 u8 atomic_mode[0x4];
1804 u8 reserved_23[0x1];
1805 u8 page_offset[0x6];
1806 u8 reserved_24[0x3];
1807 u8 cd_slave_receive[0x1];
1808 u8 cd_slave_send[0x1];
1811 u8 reserved_25[0x3];
1812 u8 min_rnr_nak[0x5];
1813 u8 next_rcv_psn[0x18];
1815 u8 reserved_26[0x8];
1818 u8 reserved_27[0x8];
1825 u8 reserved_28[0x5];
1829 u8 reserved_29[0x8];
1832 u8 hw_sq_wqebb_counter[0x10];
1833 u8 sw_sq_wqebb_counter[0x10];
1835 u8 hw_rq_counter[0x20];
1837 u8 sw_rq_counter[0x20];
1839 u8 reserved_30[0x20];
1841 u8 reserved_31[0xf];
1846 u8 dc_access_key[0x40];
1848 u8 reserved_32[0xc0];
1851 struct mlx5_ifc_roce_addr_layout_bits {
1852 u8 source_l3_address[16][0x8];
1857 u8 source_mac_47_32[0x10];
1859 u8 source_mac_31_0[0x20];
1861 u8 reserved_1[0x14];
1862 u8 roce_l3_type[0x4];
1863 u8 roce_version[0x8];
1865 u8 reserved_2[0x20];
1868 union mlx5_ifc_hca_cap_union_bits {
1869 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
1870 struct mlx5_ifc_odp_cap_bits odp_cap;
1871 struct mlx5_ifc_atomic_caps_bits atomic_caps;
1872 struct mlx5_ifc_roce_cap_bits roce_cap;
1873 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
1874 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
1875 struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap;
1876 struct mlx5_ifc_e_switch_cap_bits e_switch_cap;
1877 u8 reserved_0[0x8000];
1881 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
1882 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
1883 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
1886 struct mlx5_ifc_flow_context_bits {
1887 u8 reserved_0[0x20];
1894 u8 reserved_2[0x10];
1898 u8 destination_list_size[0x18];
1900 u8 reserved_4[0x160];
1902 struct mlx5_ifc_fte_match_param_bits match_value;
1904 u8 reserved_5[0x600];
1906 struct mlx5_ifc_dest_format_struct_bits destination[0];
1910 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
1911 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
1914 struct mlx5_ifc_xrc_srqc_bits {
1916 u8 log_xrc_srq_size[0x4];
1917 u8 reserved_0[0x18];
1919 u8 wq_signature[0x1];
1923 u8 basic_cyclic_rcv_wqe[0x1];
1924 u8 log_rq_stride[0x3];
1927 u8 page_offset[0x6];
1931 u8 reserved_3[0x20];
1933 u8 user_index_equal_xrc_srqn[0x1];
1935 u8 log_page_size[0x6];
1936 u8 user_index[0x18];
1938 u8 reserved_5[0x20];
1946 u8 reserved_7[0x40];
1948 u8 db_record_addr_h[0x20];
1950 u8 db_record_addr_l[0x1e];
1953 u8 reserved_9[0x80];
1956 struct mlx5_ifc_traffic_counter_bits {
1962 struct mlx5_ifc_tisc_bits {
1965 u8 reserved_1[0x10];
1967 u8 reserved_2[0x100];
1970 u8 transport_domain[0x18];
1972 u8 reserved_4[0x3c0];
1976 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
1977 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
1981 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
1982 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
1986 MLX5_RX_HASH_FN_NONE = 0x0,
1987 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
1988 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
1992 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1,
1993 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2,
1996 struct mlx5_ifc_tirc_bits {
1997 u8 reserved_0[0x20];
2000 u8 reserved_1[0x1c];
2002 u8 reserved_2[0x40];
2005 u8 lro_timeout_period_usecs[0x10];
2006 u8 lro_enable_mask[0x4];
2007 u8 lro_max_ip_payload_size[0x8];
2009 u8 reserved_4[0x40];
2012 u8 inline_rqn[0x18];
2014 u8 rx_hash_symmetric[0x1];
2016 u8 tunneled_offload_en[0x1];
2018 u8 indirect_table[0x18];
2022 u8 self_lb_block[0x2];
2023 u8 transport_domain[0x18];
2025 u8 rx_hash_toeplitz_key[10][0x20];
2027 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
2029 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
2031 u8 reserved_9[0x4c0];
2035 MLX5_SRQC_STATE_GOOD = 0x0,
2036 MLX5_SRQC_STATE_ERROR = 0x1,
2039 struct mlx5_ifc_srqc_bits {
2041 u8 log_srq_size[0x4];
2042 u8 reserved_0[0x18];
2044 u8 wq_signature[0x1];
2049 u8 log_rq_stride[0x3];
2052 u8 page_offset[0x6];
2056 u8 reserved_4[0x20];
2059 u8 log_page_size[0x6];
2060 u8 reserved_6[0x18];
2062 u8 reserved_7[0x20];
2070 u8 reserved_9[0x40];
2074 u8 reserved_10[0x80];
2078 MLX5_SQC_STATE_RST = 0x0,
2079 MLX5_SQC_STATE_RDY = 0x1,
2080 MLX5_SQC_STATE_ERR = 0x3,
2083 struct mlx5_ifc_sqc_bits {
2087 u8 flush_in_error_en[0x1];
2090 u8 reserved_1[0x14];
2093 u8 user_index[0x18];
2098 u8 reserved_4[0xa0];
2100 u8 tis_lst_sz[0x10];
2101 u8 reserved_5[0x10];
2103 u8 reserved_6[0x40];
2108 struct mlx5_ifc_wq_bits wq;
2111 struct mlx5_ifc_rqtc_bits {
2112 u8 reserved_0[0xa0];
2114 u8 reserved_1[0x10];
2115 u8 rqt_max_size[0x10];
2117 u8 reserved_2[0x10];
2118 u8 rqt_actual_size[0x10];
2120 u8 reserved_3[0x6a0];
2122 struct mlx5_ifc_rq_num_bits rq_num[0];
2126 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2127 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2131 MLX5_RQC_STATE_RST = 0x0,
2132 MLX5_RQC_STATE_RDY = 0x1,
2133 MLX5_RQC_STATE_ERR = 0x3,
2136 struct mlx5_ifc_rqc_bits {
2140 u8 mem_rq_type[0x4];
2143 u8 flush_in_error_en[0x1];
2144 u8 reserved_2[0x12];
2147 u8 user_index[0x18];
2152 u8 counter_set_id[0x8];
2153 u8 reserved_5[0x18];
2158 u8 reserved_7[0xe0];
2160 struct mlx5_ifc_wq_bits wq;
2164 MLX5_RMPC_STATE_RDY = 0x1,
2165 MLX5_RMPC_STATE_ERR = 0x3,
2168 struct mlx5_ifc_rmpc_bits {
2171 u8 reserved_1[0x14];
2173 u8 basic_cyclic_rcv_wqe[0x1];
2174 u8 reserved_2[0x1f];
2176 u8 reserved_3[0x140];
2178 struct mlx5_ifc_wq_bits wq;
2181 struct mlx5_ifc_nic_vport_context_bits {
2182 u8 reserved_0[0x1f];
2185 u8 arm_change_event[0x1];
2186 u8 reserved_1[0x1a];
2187 u8 event_on_mtu[0x1];
2188 u8 event_on_promisc_change[0x1];
2189 u8 event_on_vlan_change[0x1];
2190 u8 event_on_mc_address_change[0x1];
2191 u8 event_on_uc_address_change[0x1];
2193 u8 reserved_2[0xf0];
2197 u8 reserved_3[0x640];
2201 u8 promisc_all[0x1];
2203 u8 allowed_list_type[0x3];
2205 u8 allowed_list_size[0xc];
2207 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2209 u8 reserved_6[0x20];
2211 u8 current_uc_mac_address[0][0x40];
2215 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2216 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2217 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
2220 struct mlx5_ifc_mkc_bits {
2224 u8 small_fence_on_rdma_read_response[0x1];
2231 u8 access_mode[0x2];
2237 u8 reserved_3[0x20];
2243 u8 expected_sigerr_count[0x1];
2248 u8 start_addr[0x40];
2252 u8 bsf_octword_size[0x20];
2254 u8 reserved_6[0x80];
2256 u8 translations_octword_size[0x20];
2258 u8 reserved_7[0x1b];
2259 u8 log_page_size[0x5];
2261 u8 reserved_8[0x20];
2264 struct mlx5_ifc_pkey_bits {
2265 u8 reserved_0[0x10];
2269 struct mlx5_ifc_array128_auto_bits {
2270 u8 array128_auto[16][0x8];
2273 struct mlx5_ifc_hca_vport_context_bits {
2274 u8 field_select[0x20];
2276 u8 reserved_0[0xe0];
2278 u8 sm_virt_aware[0x1];
2281 u8 grh_required[0x1];
2283 u8 port_physical_state[0x4];
2284 u8 vport_state_policy[0x4];
2286 u8 vport_state[0x4];
2288 u8 reserved_2[0x20];
2290 u8 system_image_guid[0x40];
2298 u8 cap_mask1_field_select[0x20];
2302 u8 cap_mask2_field_select[0x20];
2304 u8 reserved_3[0x80];
2308 u8 init_type_reply[0x4];
2310 u8 subnet_timeout[0x5];
2316 u8 qkey_violation_counter[0x10];
2317 u8 pkey_violation_counter[0x10];
2319 u8 reserved_6[0xca0];
2322 struct mlx5_ifc_esw_vport_context_bits {
2324 u8 vport_svlan_strip[0x1];
2325 u8 vport_cvlan_strip[0x1];
2326 u8 vport_svlan_insert[0x1];
2327 u8 vport_cvlan_insert[0x2];
2328 u8 reserved_1[0x18];
2330 u8 reserved_2[0x20];
2339 u8 reserved_3[0x7a0];
2343 MLX5_EQC_STATUS_OK = 0x0,
2344 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
2348 MLX5_EQC_ST_ARMED = 0x9,
2349 MLX5_EQC_ST_FIRED = 0xa,
2352 struct mlx5_ifc_eqc_bits {
2361 u8 reserved_3[0x20];
2363 u8 reserved_4[0x14];
2364 u8 page_offset[0x6];
2368 u8 log_eq_size[0x5];
2371 u8 reserved_7[0x20];
2373 u8 reserved_8[0x18];
2377 u8 log_page_size[0x5];
2378 u8 reserved_10[0x18];
2380 u8 reserved_11[0x60];
2382 u8 reserved_12[0x8];
2383 u8 consumer_counter[0x18];
2385 u8 reserved_13[0x8];
2386 u8 producer_counter[0x18];
2388 u8 reserved_14[0x80];
2392 MLX5_DCTC_STATE_ACTIVE = 0x0,
2393 MLX5_DCTC_STATE_DRAINING = 0x1,
2394 MLX5_DCTC_STATE_DRAINED = 0x2,
2398 MLX5_DCTC_CS_RES_DISABLE = 0x0,
2399 MLX5_DCTC_CS_RES_NA = 0x1,
2400 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
2404 MLX5_DCTC_MTU_256_BYTES = 0x1,
2405 MLX5_DCTC_MTU_512_BYTES = 0x2,
2406 MLX5_DCTC_MTU_1K_BYTES = 0x3,
2407 MLX5_DCTC_MTU_2K_BYTES = 0x4,
2408 MLX5_DCTC_MTU_4K_BYTES = 0x5,
2411 struct mlx5_ifc_dctc_bits {
2414 u8 reserved_1[0x18];
2417 u8 user_index[0x18];
2422 u8 counter_set_id[0x8];
2423 u8 atomic_mode[0x4];
2427 u8 atomic_like_write_en[0x1];
2428 u8 latency_sensitive[0x1];
2436 u8 min_rnr_nak[0x5];
2446 u8 reserved_10[0x4];
2447 u8 flow_label[0x14];
2449 u8 dc_access_key[0x40];
2451 u8 reserved_11[0x5];
2454 u8 pkey_index[0x10];
2456 u8 reserved_12[0x8];
2457 u8 my_addr_index[0x8];
2458 u8 reserved_13[0x8];
2461 u8 dc_access_key_violation_count[0x20];
2463 u8 reserved_14[0x14];
2469 u8 reserved_15[0x40];
2473 MLX5_CQC_STATUS_OK = 0x0,
2474 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
2475 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
2479 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
2480 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
2484 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
2485 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
2486 MLX5_CQC_ST_FIRED = 0xa,
2489 struct mlx5_ifc_cqc_bits {
2495 u8 scqe_break_moderation_en[0x1];
2499 u8 mini_cqe_res_format[0x2];
2503 u8 reserved_4[0x20];
2505 u8 reserved_5[0x14];
2506 u8 page_offset[0x6];
2510 u8 log_cq_size[0x5];
2515 u8 cq_max_count[0x10];
2517 u8 reserved_9[0x18];
2520 u8 reserved_10[0x3];
2521 u8 log_page_size[0x5];
2522 u8 reserved_11[0x18];
2524 u8 reserved_12[0x20];
2526 u8 reserved_13[0x8];
2527 u8 last_notified_index[0x18];
2529 u8 reserved_14[0x8];
2530 u8 last_solicit_index[0x18];
2532 u8 reserved_15[0x8];
2533 u8 consumer_counter[0x18];
2535 u8 reserved_16[0x8];
2536 u8 producer_counter[0x18];
2538 u8 reserved_17[0x40];
2543 union mlx5_ifc_cong_control_roce_ecn_auto_bits {
2544 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
2545 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
2546 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
2547 u8 reserved_0[0x800];
2550 struct mlx5_ifc_query_adapter_param_block_bits {
2551 u8 reserved_0[0xc0];
2554 u8 ieee_vendor_id[0x18];
2556 u8 reserved_2[0x10];
2557 u8 vsd_vendor_id[0x10];
2561 u8 vsd_contd_psid[16][0x8];
2564 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
2565 struct mlx5_ifc_modify_field_select_bits modify_field_select;
2566 struct mlx5_ifc_resize_field_select_bits resize_field_select;
2567 u8 reserved_0[0x20];
2570 union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
2571 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
2572 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
2573 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
2574 u8 reserved_0[0x20];
2577 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
2578 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
2579 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
2580 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
2581 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
2582 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
2583 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
2584 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
2585 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
2586 u8 reserved_0[0x7c0];
2589 union mlx5_ifc_event_auto_bits {
2590 struct mlx5_ifc_comp_event_bits comp_event;
2591 struct mlx5_ifc_dct_events_bits dct_events;
2592 struct mlx5_ifc_qp_events_bits qp_events;
2593 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
2594 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
2595 struct mlx5_ifc_cq_error_bits cq_error;
2596 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
2597 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
2598 struct mlx5_ifc_gpio_event_bits gpio_event;
2599 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
2600 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
2601 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
2602 u8 reserved_0[0xe0];
2605 struct mlx5_ifc_health_buffer_bits {
2606 u8 reserved_0[0x100];
2608 u8 assert_existptr[0x20];
2610 u8 assert_callra[0x20];
2612 u8 reserved_1[0x40];
2614 u8 fw_version[0x20];
2618 u8 reserved_2[0x20];
2620 u8 irisc_index[0x8];
2625 struct mlx5_ifc_register_loopback_control_bits {
2629 u8 reserved_1[0x10];
2631 u8 reserved_2[0x60];
2634 struct mlx5_ifc_teardown_hca_out_bits {
2636 u8 reserved_0[0x18];
2640 u8 reserved_1[0x40];
2644 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
2645 MLX5_TEARDOWN_HCA_IN_PROFILE_PANIC_CLOSE = 0x1,
2648 struct mlx5_ifc_teardown_hca_in_bits {
2650 u8 reserved_0[0x10];
2652 u8 reserved_1[0x10];
2655 u8 reserved_2[0x10];
2658 u8 reserved_3[0x20];
2661 struct mlx5_ifc_sqerr2rts_qp_out_bits {
2663 u8 reserved_0[0x18];
2667 u8 reserved_1[0x40];
2670 struct mlx5_ifc_sqerr2rts_qp_in_bits {
2672 u8 reserved_0[0x10];
2674 u8 reserved_1[0x10];
2680 u8 reserved_3[0x20];
2682 u8 opt_param_mask[0x20];
2684 u8 reserved_4[0x20];
2686 struct mlx5_ifc_qpc_bits qpc;
2688 u8 reserved_5[0x80];
2691 struct mlx5_ifc_sqd2rts_qp_out_bits {
2693 u8 reserved_0[0x18];
2697 u8 reserved_1[0x40];
2700 struct mlx5_ifc_sqd2rts_qp_in_bits {
2702 u8 reserved_0[0x10];
2704 u8 reserved_1[0x10];
2710 u8 reserved_3[0x20];
2712 u8 opt_param_mask[0x20];
2714 u8 reserved_4[0x20];
2716 struct mlx5_ifc_qpc_bits qpc;
2718 u8 reserved_5[0x80];
2721 struct mlx5_ifc_set_roce_address_out_bits {
2723 u8 reserved_0[0x18];
2727 u8 reserved_1[0x40];
2730 struct mlx5_ifc_set_roce_address_in_bits {
2732 u8 reserved_0[0x10];
2734 u8 reserved_1[0x10];
2737 u8 roce_address_index[0x10];
2738 u8 reserved_2[0x10];
2740 u8 reserved_3[0x20];
2742 struct mlx5_ifc_roce_addr_layout_bits roce_address;
2745 struct mlx5_ifc_set_mad_demux_out_bits {
2747 u8 reserved_0[0x18];
2751 u8 reserved_1[0x40];
2755 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
2756 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
2759 struct mlx5_ifc_set_mad_demux_in_bits {
2761 u8 reserved_0[0x10];
2763 u8 reserved_1[0x10];
2766 u8 reserved_2[0x20];
2770 u8 reserved_4[0x18];
2773 struct mlx5_ifc_set_l2_table_entry_out_bits {
2775 u8 reserved_0[0x18];
2779 u8 reserved_1[0x40];
2782 struct mlx5_ifc_set_l2_table_entry_in_bits {
2784 u8 reserved_0[0x10];
2786 u8 reserved_1[0x10];
2789 u8 reserved_2[0x60];
2792 u8 table_index[0x18];
2794 u8 reserved_4[0x20];
2796 u8 reserved_5[0x13];
2800 struct mlx5_ifc_mac_address_layout_bits mac_address;
2802 u8 reserved_6[0xc0];
2805 struct mlx5_ifc_set_issi_out_bits {
2807 u8 reserved_0[0x18];
2811 u8 reserved_1[0x40];
2814 struct mlx5_ifc_set_issi_in_bits {
2816 u8 reserved_0[0x10];
2818 u8 reserved_1[0x10];
2821 u8 reserved_2[0x10];
2822 u8 current_issi[0x10];
2824 u8 reserved_3[0x20];
2827 struct mlx5_ifc_set_hca_cap_out_bits {
2829 u8 reserved_0[0x18];
2833 u8 reserved_1[0x40];
2836 struct mlx5_ifc_set_hca_cap_in_bits {
2838 u8 reserved_0[0x10];
2840 u8 reserved_1[0x10];
2843 u8 reserved_2[0x40];
2845 union mlx5_ifc_hca_cap_union_bits capability;
2849 MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0,
2850 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1,
2851 MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2,
2852 MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3
2855 struct mlx5_ifc_set_fte_out_bits {
2857 u8 reserved_0[0x18];
2861 u8 reserved_1[0x40];
2864 struct mlx5_ifc_set_fte_in_bits {
2866 u8 reserved_0[0x10];
2868 u8 reserved_1[0x10];
2871 u8 reserved_2[0x40];
2874 u8 reserved_3[0x18];
2879 u8 reserved_5[0x18];
2880 u8 modify_enable_mask[0x8];
2882 u8 reserved_6[0x20];
2884 u8 flow_index[0x20];
2886 u8 reserved_7[0xe0];
2888 struct mlx5_ifc_flow_context_bits flow_context;
2891 struct mlx5_ifc_rts2rts_qp_out_bits {
2893 u8 reserved_0[0x18];
2897 u8 reserved_1[0x40];
2900 struct mlx5_ifc_rts2rts_qp_in_bits {
2902 u8 reserved_0[0x10];
2904 u8 reserved_1[0x10];
2910 u8 reserved_3[0x20];
2912 u8 opt_param_mask[0x20];
2914 u8 reserved_4[0x20];
2916 struct mlx5_ifc_qpc_bits qpc;
2918 u8 reserved_5[0x80];
2921 struct mlx5_ifc_rtr2rts_qp_out_bits {
2923 u8 reserved_0[0x18];
2927 u8 reserved_1[0x40];
2930 struct mlx5_ifc_rtr2rts_qp_in_bits {
2932 u8 reserved_0[0x10];
2934 u8 reserved_1[0x10];
2940 u8 reserved_3[0x20];
2942 u8 opt_param_mask[0x20];
2944 u8 reserved_4[0x20];
2946 struct mlx5_ifc_qpc_bits qpc;
2948 u8 reserved_5[0x80];
2951 struct mlx5_ifc_rst2init_qp_out_bits {
2953 u8 reserved_0[0x18];
2957 u8 reserved_1[0x40];
2960 struct mlx5_ifc_rst2init_qp_in_bits {
2962 u8 reserved_0[0x10];
2964 u8 reserved_1[0x10];
2970 u8 reserved_3[0x20];
2972 u8 opt_param_mask[0x20];
2974 u8 reserved_4[0x20];
2976 struct mlx5_ifc_qpc_bits qpc;
2978 u8 reserved_5[0x80];
2981 struct mlx5_ifc_query_xrc_srq_out_bits {
2983 u8 reserved_0[0x18];
2987 u8 reserved_1[0x40];
2989 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
2991 u8 reserved_2[0x600];
2996 struct mlx5_ifc_query_xrc_srq_in_bits {
2998 u8 reserved_0[0x10];
3000 u8 reserved_1[0x10];
3006 u8 reserved_3[0x20];
3010 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
3011 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
3014 struct mlx5_ifc_query_vport_state_out_bits {
3016 u8 reserved_0[0x18];
3020 u8 reserved_1[0x20];
3022 u8 reserved_2[0x18];
3023 u8 admin_state[0x4];
3028 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0,
3029 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1,
3032 struct mlx5_ifc_query_vport_state_in_bits {
3034 u8 reserved_0[0x10];
3036 u8 reserved_1[0x10];
3039 u8 other_vport[0x1];
3041 u8 vport_number[0x10];
3043 u8 reserved_3[0x20];
3046 struct mlx5_ifc_query_vport_counter_out_bits {
3048 u8 reserved_0[0x18];
3052 u8 reserved_1[0x40];
3054 struct mlx5_ifc_traffic_counter_bits received_errors;
3056 struct mlx5_ifc_traffic_counter_bits transmit_errors;
3058 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
3060 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
3062 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
3064 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
3066 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
3068 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
3070 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
3072 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
3074 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
3076 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
3078 u8 reserved_2[0xa00];
3082 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
3085 struct mlx5_ifc_query_vport_counter_in_bits {
3087 u8 reserved_0[0x10];
3089 u8 reserved_1[0x10];
3092 u8 other_vport[0x1];
3094 u8 vport_number[0x10];
3096 u8 reserved_3[0x60];
3099 u8 reserved_4[0x1f];
3101 u8 reserved_5[0x20];
3104 struct mlx5_ifc_query_tis_out_bits {
3106 u8 reserved_0[0x18];
3110 u8 reserved_1[0x40];
3112 struct mlx5_ifc_tisc_bits tis_context;
3115 struct mlx5_ifc_query_tis_in_bits {
3117 u8 reserved_0[0x10];
3119 u8 reserved_1[0x10];
3125 u8 reserved_3[0x20];
3128 struct mlx5_ifc_query_tir_out_bits {
3130 u8 reserved_0[0x18];
3134 u8 reserved_1[0xc0];
3136 struct mlx5_ifc_tirc_bits tir_context;
3139 struct mlx5_ifc_query_tir_in_bits {
3141 u8 reserved_0[0x10];
3143 u8 reserved_1[0x10];
3149 u8 reserved_3[0x20];
3152 struct mlx5_ifc_query_srq_out_bits {
3154 u8 reserved_0[0x18];
3158 u8 reserved_1[0x40];
3160 struct mlx5_ifc_srqc_bits srq_context_entry;
3162 u8 reserved_2[0x600];
3167 struct mlx5_ifc_query_srq_in_bits {
3169 u8 reserved_0[0x10];
3171 u8 reserved_1[0x10];
3177 u8 reserved_3[0x20];
3180 struct mlx5_ifc_query_sq_out_bits {
3182 u8 reserved_0[0x18];
3186 u8 reserved_1[0xc0];
3188 struct mlx5_ifc_sqc_bits sq_context;
3191 struct mlx5_ifc_query_sq_in_bits {
3193 u8 reserved_0[0x10];
3195 u8 reserved_1[0x10];
3201 u8 reserved_3[0x20];
3204 struct mlx5_ifc_query_special_contexts_out_bits {
3206 u8 reserved_0[0x18];
3210 u8 reserved_1[0x20];
3215 struct mlx5_ifc_query_special_contexts_in_bits {
3217 u8 reserved_0[0x10];
3219 u8 reserved_1[0x10];
3222 u8 reserved_2[0x40];
3225 struct mlx5_ifc_query_rqt_out_bits {
3227 u8 reserved_0[0x18];
3231 u8 reserved_1[0xc0];
3233 struct mlx5_ifc_rqtc_bits rqt_context;
3236 struct mlx5_ifc_query_rqt_in_bits {
3238 u8 reserved_0[0x10];
3240 u8 reserved_1[0x10];
3246 u8 reserved_3[0x20];
3249 struct mlx5_ifc_query_rq_out_bits {
3251 u8 reserved_0[0x18];
3255 u8 reserved_1[0xc0];
3257 struct mlx5_ifc_rqc_bits rq_context;
3260 struct mlx5_ifc_query_rq_in_bits {
3262 u8 reserved_0[0x10];
3264 u8 reserved_1[0x10];
3270 u8 reserved_3[0x20];
3273 struct mlx5_ifc_query_roce_address_out_bits {
3275 u8 reserved_0[0x18];
3279 u8 reserved_1[0x40];
3281 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3284 struct mlx5_ifc_query_roce_address_in_bits {
3286 u8 reserved_0[0x10];
3288 u8 reserved_1[0x10];
3291 u8 roce_address_index[0x10];
3292 u8 reserved_2[0x10];
3294 u8 reserved_3[0x20];
3297 struct mlx5_ifc_query_rmp_out_bits {
3299 u8 reserved_0[0x18];
3303 u8 reserved_1[0xc0];
3305 struct mlx5_ifc_rmpc_bits rmp_context;
3308 struct mlx5_ifc_query_rmp_in_bits {
3310 u8 reserved_0[0x10];
3312 u8 reserved_1[0x10];
3318 u8 reserved_3[0x20];
3321 struct mlx5_ifc_query_qp_out_bits {
3323 u8 reserved_0[0x18];
3327 u8 reserved_1[0x40];
3329 u8 opt_param_mask[0x20];
3331 u8 reserved_2[0x20];
3333 struct mlx5_ifc_qpc_bits qpc;
3335 u8 reserved_3[0x80];
3340 struct mlx5_ifc_query_qp_in_bits {
3342 u8 reserved_0[0x10];
3344 u8 reserved_1[0x10];
3350 u8 reserved_3[0x20];
3353 struct mlx5_ifc_query_q_counter_out_bits {
3355 u8 reserved_0[0x18];
3359 u8 reserved_1[0x40];
3361 u8 rx_write_requests[0x20];
3363 u8 reserved_2[0x20];
3365 u8 rx_read_requests[0x20];
3367 u8 reserved_3[0x20];
3369 u8 rx_atomic_requests[0x20];
3371 u8 reserved_4[0x20];
3373 u8 rx_dct_connect[0x20];
3375 u8 reserved_5[0x20];
3377 u8 out_of_buffer[0x20];
3379 u8 reserved_6[0x20];
3381 u8 out_of_sequence[0x20];
3383 u8 reserved_7[0x620];
3386 struct mlx5_ifc_query_q_counter_in_bits {
3388 u8 reserved_0[0x10];
3390 u8 reserved_1[0x10];
3393 u8 reserved_2[0x80];
3396 u8 reserved_3[0x1f];
3398 u8 reserved_4[0x18];
3399 u8 counter_set_id[0x8];
3402 struct mlx5_ifc_query_pages_out_bits {
3404 u8 reserved_0[0x18];
3408 u8 reserved_1[0x10];
3409 u8 function_id[0x10];
3415 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
3416 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
3417 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
3420 struct mlx5_ifc_query_pages_in_bits {
3422 u8 reserved_0[0x10];
3424 u8 reserved_1[0x10];
3427 u8 reserved_2[0x10];
3428 u8 function_id[0x10];
3430 u8 reserved_3[0x20];
3433 struct mlx5_ifc_query_nic_vport_context_out_bits {
3435 u8 reserved_0[0x18];
3439 u8 reserved_1[0x40];
3441 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
3444 struct mlx5_ifc_query_nic_vport_context_in_bits {
3446 u8 reserved_0[0x10];
3448 u8 reserved_1[0x10];
3451 u8 other_vport[0x1];
3453 u8 vport_number[0x10];
3456 u8 allowed_list_type[0x3];
3457 u8 reserved_4[0x18];
3460 struct mlx5_ifc_query_mkey_out_bits {
3462 u8 reserved_0[0x18];
3466 u8 reserved_1[0x40];
3468 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
3470 u8 reserved_2[0x600];
3472 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
3474 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
3477 struct mlx5_ifc_query_mkey_in_bits {
3479 u8 reserved_0[0x10];
3481 u8 reserved_1[0x10];
3485 u8 mkey_index[0x18];
3488 u8 reserved_3[0x1f];
3491 struct mlx5_ifc_query_mad_demux_out_bits {
3493 u8 reserved_0[0x18];
3497 u8 reserved_1[0x40];
3499 u8 mad_dumux_parameters_block[0x20];
3502 struct mlx5_ifc_query_mad_demux_in_bits {
3504 u8 reserved_0[0x10];
3506 u8 reserved_1[0x10];
3509 u8 reserved_2[0x40];
3512 struct mlx5_ifc_query_l2_table_entry_out_bits {
3514 u8 reserved_0[0x18];
3518 u8 reserved_1[0xa0];
3520 u8 reserved_2[0x13];
3524 struct mlx5_ifc_mac_address_layout_bits mac_address;
3526 u8 reserved_3[0xc0];
3529 struct mlx5_ifc_query_l2_table_entry_in_bits {
3531 u8 reserved_0[0x10];
3533 u8 reserved_1[0x10];
3536 u8 reserved_2[0x60];
3539 u8 table_index[0x18];
3541 u8 reserved_4[0x140];
3544 struct mlx5_ifc_query_issi_out_bits {
3546 u8 reserved_0[0x18];
3550 u8 reserved_1[0x10];
3551 u8 current_issi[0x10];
3553 u8 reserved_2[0xa0];
3555 u8 supported_issi_reserved[76][0x8];
3556 u8 supported_issi_dw0[0x20];
3559 struct mlx5_ifc_query_issi_in_bits {
3561 u8 reserved_0[0x10];
3563 u8 reserved_1[0x10];
3566 u8 reserved_2[0x40];
3569 struct mlx5_ifc_query_hca_vport_pkey_out_bits {
3571 u8 reserved_0[0x18];
3575 u8 reserved_1[0x40];
3577 struct mlx5_ifc_pkey_bits pkey[0];
3580 struct mlx5_ifc_query_hca_vport_pkey_in_bits {
3582 u8 reserved_0[0x10];
3584 u8 reserved_1[0x10];
3587 u8 other_vport[0x1];
3590 u8 vport_number[0x10];
3592 u8 reserved_3[0x10];
3593 u8 pkey_index[0x10];
3596 struct mlx5_ifc_query_hca_vport_gid_out_bits {
3598 u8 reserved_0[0x18];
3602 u8 reserved_1[0x20];
3605 u8 reserved_2[0x10];
3607 struct mlx5_ifc_array128_auto_bits gid[0];
3610 struct mlx5_ifc_query_hca_vport_gid_in_bits {
3612 u8 reserved_0[0x10];
3614 u8 reserved_1[0x10];
3617 u8 other_vport[0x1];
3620 u8 vport_number[0x10];
3622 u8 reserved_3[0x10];
3626 struct mlx5_ifc_query_hca_vport_context_out_bits {
3628 u8 reserved_0[0x18];
3632 u8 reserved_1[0x40];
3634 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
3637 struct mlx5_ifc_query_hca_vport_context_in_bits {
3639 u8 reserved_0[0x10];
3641 u8 reserved_1[0x10];
3644 u8 other_vport[0x1];
3647 u8 vport_number[0x10];
3649 u8 reserved_3[0x20];
3652 struct mlx5_ifc_query_hca_cap_out_bits {
3654 u8 reserved_0[0x18];
3658 u8 reserved_1[0x40];
3660 union mlx5_ifc_hca_cap_union_bits capability;
3663 struct mlx5_ifc_query_hca_cap_in_bits {
3665 u8 reserved_0[0x10];
3667 u8 reserved_1[0x10];
3670 u8 reserved_2[0x40];
3673 struct mlx5_ifc_query_flow_table_out_bits {
3675 u8 reserved_0[0x18];
3679 u8 reserved_1[0x80];
3686 u8 reserved_4[0x120];
3689 struct mlx5_ifc_query_flow_table_in_bits {
3691 u8 reserved_0[0x10];
3693 u8 reserved_1[0x10];
3696 u8 reserved_2[0x40];
3699 u8 reserved_3[0x18];
3704 u8 reserved_5[0x140];
3707 struct mlx5_ifc_query_fte_out_bits {
3709 u8 reserved_0[0x18];
3713 u8 reserved_1[0x1c0];
3715 struct mlx5_ifc_flow_context_bits flow_context;
3718 struct mlx5_ifc_query_fte_in_bits {
3720 u8 reserved_0[0x10];
3722 u8 reserved_1[0x10];
3725 u8 reserved_2[0x40];
3728 u8 reserved_3[0x18];
3733 u8 reserved_5[0x40];
3735 u8 flow_index[0x20];
3737 u8 reserved_6[0xe0];
3741 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
3742 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
3743 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
3746 struct mlx5_ifc_query_flow_group_out_bits {
3748 u8 reserved_0[0x18];
3752 u8 reserved_1[0xa0];
3754 u8 start_flow_index[0x20];
3756 u8 reserved_2[0x20];
3758 u8 end_flow_index[0x20];
3760 u8 reserved_3[0xa0];
3762 u8 reserved_4[0x18];
3763 u8 match_criteria_enable[0x8];
3765 struct mlx5_ifc_fte_match_param_bits match_criteria;
3767 u8 reserved_5[0xe00];
3770 struct mlx5_ifc_query_flow_group_in_bits {
3772 u8 reserved_0[0x10];
3774 u8 reserved_1[0x10];
3777 u8 reserved_2[0x40];
3780 u8 reserved_3[0x18];
3787 u8 reserved_5[0x120];
3790 struct mlx5_ifc_query_esw_vport_context_out_bits {
3792 u8 reserved_0[0x18];
3796 u8 reserved_1[0x40];
3798 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
3801 struct mlx5_ifc_query_esw_vport_context_in_bits {
3803 u8 reserved_0[0x10];
3805 u8 reserved_1[0x10];
3808 u8 other_vport[0x1];
3810 u8 vport_number[0x10];
3812 u8 reserved_3[0x20];
3815 struct mlx5_ifc_modify_esw_vport_context_out_bits {
3817 u8 reserved_0[0x18];
3821 u8 reserved_1[0x40];
3824 struct mlx5_ifc_esw_vport_context_fields_select_bits {
3826 u8 vport_cvlan_insert[0x1];
3827 u8 vport_svlan_insert[0x1];
3828 u8 vport_cvlan_strip[0x1];
3829 u8 vport_svlan_strip[0x1];
3832 struct mlx5_ifc_modify_esw_vport_context_in_bits {
3834 u8 reserved_0[0x10];
3836 u8 reserved_1[0x10];
3839 u8 other_vport[0x1];
3841 u8 vport_number[0x10];
3843 struct mlx5_ifc_esw_vport_context_fields_select_bits field_select;
3845 struct mlx5_ifc_esw_vport_context_bits esw_vport_context;
3848 struct mlx5_ifc_query_eq_out_bits {
3850 u8 reserved_0[0x18];
3854 u8 reserved_1[0x40];
3856 struct mlx5_ifc_eqc_bits eq_context_entry;
3858 u8 reserved_2[0x40];
3860 u8 event_bitmask[0x40];
3862 u8 reserved_3[0x580];
3867 struct mlx5_ifc_query_eq_in_bits {
3869 u8 reserved_0[0x10];
3871 u8 reserved_1[0x10];
3874 u8 reserved_2[0x18];
3877 u8 reserved_3[0x20];
3880 struct mlx5_ifc_query_dct_out_bits {
3882 u8 reserved_0[0x18];
3886 u8 reserved_1[0x40];
3888 struct mlx5_ifc_dctc_bits dct_context_entry;
3890 u8 reserved_2[0x180];
3893 struct mlx5_ifc_query_dct_in_bits {
3895 u8 reserved_0[0x10];
3897 u8 reserved_1[0x10];
3903 u8 reserved_3[0x20];
3906 struct mlx5_ifc_query_cq_out_bits {
3908 u8 reserved_0[0x18];
3912 u8 reserved_1[0x40];
3914 struct mlx5_ifc_cqc_bits cq_context;
3916 u8 reserved_2[0x600];
3921 struct mlx5_ifc_query_cq_in_bits {
3923 u8 reserved_0[0x10];
3925 u8 reserved_1[0x10];
3931 u8 reserved_3[0x20];
3934 struct mlx5_ifc_query_cong_status_out_bits {
3936 u8 reserved_0[0x18];
3940 u8 reserved_1[0x20];
3944 u8 reserved_2[0x1e];
3947 struct mlx5_ifc_query_cong_status_in_bits {
3949 u8 reserved_0[0x10];
3951 u8 reserved_1[0x10];
3954 u8 reserved_2[0x18];
3956 u8 cong_protocol[0x4];
3958 u8 reserved_3[0x20];
3961 struct mlx5_ifc_query_cong_statistics_out_bits {
3963 u8 reserved_0[0x18];
3967 u8 reserved_1[0x40];
3973 u8 cnp_ignored_high[0x20];
3975 u8 cnp_ignored_low[0x20];
3977 u8 cnp_handled_high[0x20];
3979 u8 cnp_handled_low[0x20];
3981 u8 reserved_2[0x100];
3983 u8 time_stamp_high[0x20];
3985 u8 time_stamp_low[0x20];
3987 u8 accumulators_period[0x20];
3989 u8 ecn_marked_roce_packets_high[0x20];
3991 u8 ecn_marked_roce_packets_low[0x20];
3993 u8 cnps_sent_high[0x20];
3995 u8 cnps_sent_low[0x20];
3997 u8 reserved_3[0x560];
4000 struct mlx5_ifc_query_cong_statistics_in_bits {
4002 u8 reserved_0[0x10];
4004 u8 reserved_1[0x10];
4008 u8 reserved_2[0x1f];
4010 u8 reserved_3[0x20];
4013 struct mlx5_ifc_query_cong_params_out_bits {
4015 u8 reserved_0[0x18];
4019 u8 reserved_1[0x40];
4021 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
4024 struct mlx5_ifc_query_cong_params_in_bits {
4026 u8 reserved_0[0x10];
4028 u8 reserved_1[0x10];
4031 u8 reserved_2[0x1c];
4032 u8 cong_protocol[0x4];
4034 u8 reserved_3[0x20];
4037 struct mlx5_ifc_query_adapter_out_bits {
4039 u8 reserved_0[0x18];
4043 u8 reserved_1[0x40];
4045 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
4048 struct mlx5_ifc_query_adapter_in_bits {
4050 u8 reserved_0[0x10];
4052 u8 reserved_1[0x10];
4055 u8 reserved_2[0x40];
4058 struct mlx5_ifc_qp_2rst_out_bits {
4060 u8 reserved_0[0x18];
4064 u8 reserved_1[0x40];
4067 struct mlx5_ifc_qp_2rst_in_bits {
4069 u8 reserved_0[0x10];
4071 u8 reserved_1[0x10];
4077 u8 reserved_3[0x20];
4080 struct mlx5_ifc_qp_2err_out_bits {
4082 u8 reserved_0[0x18];
4086 u8 reserved_1[0x40];
4089 struct mlx5_ifc_qp_2err_in_bits {
4091 u8 reserved_0[0x10];
4093 u8 reserved_1[0x10];
4099 u8 reserved_3[0x20];
4102 struct mlx5_ifc_page_fault_resume_out_bits {
4104 u8 reserved_0[0x18];
4108 u8 reserved_1[0x40];
4111 struct mlx5_ifc_page_fault_resume_in_bits {
4113 u8 reserved_0[0x10];
4115 u8 reserved_1[0x10];
4125 u8 reserved_3[0x20];
4128 struct mlx5_ifc_nop_out_bits {
4130 u8 reserved_0[0x18];
4134 u8 reserved_1[0x40];
4137 struct mlx5_ifc_nop_in_bits {
4139 u8 reserved_0[0x10];
4141 u8 reserved_1[0x10];
4144 u8 reserved_2[0x40];
4147 struct mlx5_ifc_modify_vport_state_out_bits {
4149 u8 reserved_0[0x18];
4153 u8 reserved_1[0x40];
4156 struct mlx5_ifc_modify_vport_state_in_bits {
4158 u8 reserved_0[0x10];
4160 u8 reserved_1[0x10];
4163 u8 other_vport[0x1];
4165 u8 vport_number[0x10];
4167 u8 reserved_3[0x18];
4168 u8 admin_state[0x4];
4172 struct mlx5_ifc_modify_tis_out_bits {
4174 u8 reserved_0[0x18];
4178 u8 reserved_1[0x40];
4181 struct mlx5_ifc_modify_tis_in_bits {
4183 u8 reserved_0[0x10];
4185 u8 reserved_1[0x10];
4191 u8 reserved_3[0x20];
4193 u8 modify_bitmask[0x40];
4195 u8 reserved_4[0x40];
4197 struct mlx5_ifc_tisc_bits ctx;
4200 struct mlx5_ifc_modify_tir_bitmask_bits {
4201 u8 reserved_0[0x20];
4203 u8 reserved_1[0x1b];
4209 struct mlx5_ifc_modify_tir_out_bits {
4211 u8 reserved_0[0x18];
4215 u8 reserved_1[0x40];
4218 struct mlx5_ifc_modify_tir_in_bits {
4220 u8 reserved_0[0x10];
4222 u8 reserved_1[0x10];
4228 u8 reserved_3[0x20];
4230 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
4232 u8 reserved_4[0x40];
4234 struct mlx5_ifc_tirc_bits ctx;
4237 struct mlx5_ifc_modify_sq_out_bits {
4239 u8 reserved_0[0x18];
4243 u8 reserved_1[0x40];
4246 struct mlx5_ifc_modify_sq_in_bits {
4248 u8 reserved_0[0x10];
4250 u8 reserved_1[0x10];
4257 u8 reserved_3[0x20];
4259 u8 modify_bitmask[0x40];
4261 u8 reserved_4[0x40];
4263 struct mlx5_ifc_sqc_bits ctx;
4266 struct mlx5_ifc_modify_rqt_out_bits {
4268 u8 reserved_0[0x18];
4272 u8 reserved_1[0x40];
4275 struct mlx5_ifc_rqt_bitmask_bits {
4282 struct mlx5_ifc_modify_rqt_in_bits {
4284 u8 reserved_0[0x10];
4286 u8 reserved_1[0x10];
4292 u8 reserved_3[0x20];
4294 struct mlx5_ifc_rqt_bitmask_bits bitmask;
4296 u8 reserved_4[0x40];
4298 struct mlx5_ifc_rqtc_bits ctx;
4301 struct mlx5_ifc_modify_rq_out_bits {
4303 u8 reserved_0[0x18];
4307 u8 reserved_1[0x40];
4310 struct mlx5_ifc_modify_rq_in_bits {
4312 u8 reserved_0[0x10];
4314 u8 reserved_1[0x10];
4321 u8 reserved_3[0x20];
4323 u8 modify_bitmask[0x40];
4325 u8 reserved_4[0x40];
4327 struct mlx5_ifc_rqc_bits ctx;
4330 struct mlx5_ifc_modify_rmp_out_bits {
4332 u8 reserved_0[0x18];
4336 u8 reserved_1[0x40];
4339 struct mlx5_ifc_rmp_bitmask_bits {
4346 struct mlx5_ifc_modify_rmp_in_bits {
4348 u8 reserved_0[0x10];
4350 u8 reserved_1[0x10];
4357 u8 reserved_3[0x20];
4359 struct mlx5_ifc_rmp_bitmask_bits bitmask;
4361 u8 reserved_4[0x40];
4363 struct mlx5_ifc_rmpc_bits ctx;
4366 struct mlx5_ifc_modify_nic_vport_context_out_bits {
4368 u8 reserved_0[0x18];
4372 u8 reserved_1[0x40];
4375 struct mlx5_ifc_modify_nic_vport_field_select_bits {
4376 u8 reserved_0[0x19];
4378 u8 change_event[0x1];
4380 u8 permanent_address[0x1];
4381 u8 addresses_list[0x1];
4386 struct mlx5_ifc_modify_nic_vport_context_in_bits {
4388 u8 reserved_0[0x10];
4390 u8 reserved_1[0x10];
4393 u8 other_vport[0x1];
4395 u8 vport_number[0x10];
4397 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
4399 u8 reserved_3[0x780];
4401 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
4404 struct mlx5_ifc_modify_hca_vport_context_out_bits {
4406 u8 reserved_0[0x18];
4410 u8 reserved_1[0x40];
4413 struct mlx5_ifc_modify_hca_vport_context_in_bits {
4415 u8 reserved_0[0x10];
4417 u8 reserved_1[0x10];
4420 u8 other_vport[0x1];
4423 u8 vport_number[0x10];
4425 u8 reserved_3[0x20];
4427 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4430 struct mlx5_ifc_modify_cq_out_bits {
4432 u8 reserved_0[0x18];
4436 u8 reserved_1[0x40];
4440 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
4441 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
4444 struct mlx5_ifc_modify_cq_in_bits {
4446 u8 reserved_0[0x10];
4448 u8 reserved_1[0x10];
4454 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
4456 struct mlx5_ifc_cqc_bits cq_context;
4458 u8 reserved_3[0x600];
4463 struct mlx5_ifc_modify_cong_status_out_bits {
4465 u8 reserved_0[0x18];
4469 u8 reserved_1[0x40];
4472 struct mlx5_ifc_modify_cong_status_in_bits {
4474 u8 reserved_0[0x10];
4476 u8 reserved_1[0x10];
4479 u8 reserved_2[0x18];
4481 u8 cong_protocol[0x4];
4485 u8 reserved_3[0x1e];
4488 struct mlx5_ifc_modify_cong_params_out_bits {
4490 u8 reserved_0[0x18];
4494 u8 reserved_1[0x40];
4497 struct mlx5_ifc_modify_cong_params_in_bits {
4499 u8 reserved_0[0x10];
4501 u8 reserved_1[0x10];
4504 u8 reserved_2[0x1c];
4505 u8 cong_protocol[0x4];
4507 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
4509 u8 reserved_3[0x80];
4511 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
4514 struct mlx5_ifc_manage_pages_out_bits {
4516 u8 reserved_0[0x18];
4520 u8 output_num_entries[0x20];
4522 u8 reserved_1[0x20];
4528 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
4529 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
4530 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
4533 struct mlx5_ifc_manage_pages_in_bits {
4535 u8 reserved_0[0x10];
4537 u8 reserved_1[0x10];
4540 u8 reserved_2[0x10];
4541 u8 function_id[0x10];
4543 u8 input_num_entries[0x20];
4548 struct mlx5_ifc_mad_ifc_out_bits {
4550 u8 reserved_0[0x18];
4554 u8 reserved_1[0x40];
4556 u8 response_mad_packet[256][0x8];
4559 struct mlx5_ifc_mad_ifc_in_bits {
4561 u8 reserved_0[0x10];
4563 u8 reserved_1[0x10];
4566 u8 remote_lid[0x10];
4570 u8 reserved_3[0x20];
4575 struct mlx5_ifc_init_hca_out_bits {
4577 u8 reserved_0[0x18];
4581 u8 reserved_1[0x40];
4584 struct mlx5_ifc_init_hca_in_bits {
4586 u8 reserved_0[0x10];
4588 u8 reserved_1[0x10];
4591 u8 reserved_2[0x40];
4594 struct mlx5_ifc_init2rtr_qp_out_bits {
4596 u8 reserved_0[0x18];
4600 u8 reserved_1[0x40];
4603 struct mlx5_ifc_init2rtr_qp_in_bits {
4605 u8 reserved_0[0x10];
4607 u8 reserved_1[0x10];
4613 u8 reserved_3[0x20];
4615 u8 opt_param_mask[0x20];
4617 u8 reserved_4[0x20];
4619 struct mlx5_ifc_qpc_bits qpc;
4621 u8 reserved_5[0x80];
4624 struct mlx5_ifc_init2init_qp_out_bits {
4626 u8 reserved_0[0x18];
4630 u8 reserved_1[0x40];
4633 struct mlx5_ifc_init2init_qp_in_bits {
4635 u8 reserved_0[0x10];
4637 u8 reserved_1[0x10];
4643 u8 reserved_3[0x20];
4645 u8 opt_param_mask[0x20];
4647 u8 reserved_4[0x20];
4649 struct mlx5_ifc_qpc_bits qpc;
4651 u8 reserved_5[0x80];
4654 struct mlx5_ifc_get_dropped_packet_log_out_bits {
4656 u8 reserved_0[0x18];
4660 u8 reserved_1[0x40];
4662 u8 packet_headers_log[128][0x8];
4664 u8 packet_syndrome[64][0x8];
4667 struct mlx5_ifc_get_dropped_packet_log_in_bits {
4669 u8 reserved_0[0x10];
4671 u8 reserved_1[0x10];
4674 u8 reserved_2[0x40];
4677 struct mlx5_ifc_gen_eqe_in_bits {
4679 u8 reserved_0[0x10];
4681 u8 reserved_1[0x10];
4684 u8 reserved_2[0x18];
4687 u8 reserved_3[0x20];
4692 struct mlx5_ifc_gen_eq_out_bits {
4694 u8 reserved_0[0x18];
4698 u8 reserved_1[0x40];
4701 struct mlx5_ifc_enable_hca_out_bits {
4703 u8 reserved_0[0x18];
4707 u8 reserved_1[0x20];
4710 struct mlx5_ifc_enable_hca_in_bits {
4712 u8 reserved_0[0x10];
4714 u8 reserved_1[0x10];
4717 u8 reserved_2[0x10];
4718 u8 function_id[0x10];
4720 u8 reserved_3[0x20];
4723 struct mlx5_ifc_drain_dct_out_bits {
4725 u8 reserved_0[0x18];
4729 u8 reserved_1[0x40];
4732 struct mlx5_ifc_drain_dct_in_bits {
4734 u8 reserved_0[0x10];
4736 u8 reserved_1[0x10];
4742 u8 reserved_3[0x20];
4745 struct mlx5_ifc_disable_hca_out_bits {
4747 u8 reserved_0[0x18];
4751 u8 reserved_1[0x20];
4754 struct mlx5_ifc_disable_hca_in_bits {
4756 u8 reserved_0[0x10];
4758 u8 reserved_1[0x10];
4761 u8 reserved_2[0x10];
4762 u8 function_id[0x10];
4764 u8 reserved_3[0x20];
4767 struct mlx5_ifc_detach_from_mcg_out_bits {
4769 u8 reserved_0[0x18];
4773 u8 reserved_1[0x40];
4776 struct mlx5_ifc_detach_from_mcg_in_bits {
4778 u8 reserved_0[0x10];
4780 u8 reserved_1[0x10];
4786 u8 reserved_3[0x20];
4788 u8 multicast_gid[16][0x8];
4791 struct mlx5_ifc_destroy_xrc_srq_out_bits {
4793 u8 reserved_0[0x18];
4797 u8 reserved_1[0x40];
4800 struct mlx5_ifc_destroy_xrc_srq_in_bits {
4802 u8 reserved_0[0x10];
4804 u8 reserved_1[0x10];
4810 u8 reserved_3[0x20];
4813 struct mlx5_ifc_destroy_tis_out_bits {
4815 u8 reserved_0[0x18];
4819 u8 reserved_1[0x40];
4822 struct mlx5_ifc_destroy_tis_in_bits {
4824 u8 reserved_0[0x10];
4826 u8 reserved_1[0x10];
4832 u8 reserved_3[0x20];
4835 struct mlx5_ifc_destroy_tir_out_bits {
4837 u8 reserved_0[0x18];
4841 u8 reserved_1[0x40];
4844 struct mlx5_ifc_destroy_tir_in_bits {
4846 u8 reserved_0[0x10];
4848 u8 reserved_1[0x10];
4854 u8 reserved_3[0x20];
4857 struct mlx5_ifc_destroy_srq_out_bits {
4859 u8 reserved_0[0x18];
4863 u8 reserved_1[0x40];
4866 struct mlx5_ifc_destroy_srq_in_bits {
4868 u8 reserved_0[0x10];
4870 u8 reserved_1[0x10];
4876 u8 reserved_3[0x20];
4879 struct mlx5_ifc_destroy_sq_out_bits {
4881 u8 reserved_0[0x18];
4885 u8 reserved_1[0x40];
4888 struct mlx5_ifc_destroy_sq_in_bits {
4890 u8 reserved_0[0x10];
4892 u8 reserved_1[0x10];
4898 u8 reserved_3[0x20];
4901 struct mlx5_ifc_destroy_rqt_out_bits {
4903 u8 reserved_0[0x18];
4907 u8 reserved_1[0x40];
4910 struct mlx5_ifc_destroy_rqt_in_bits {
4912 u8 reserved_0[0x10];
4914 u8 reserved_1[0x10];
4920 u8 reserved_3[0x20];
4923 struct mlx5_ifc_destroy_rq_out_bits {
4925 u8 reserved_0[0x18];
4929 u8 reserved_1[0x40];
4932 struct mlx5_ifc_destroy_rq_in_bits {
4934 u8 reserved_0[0x10];
4936 u8 reserved_1[0x10];
4942 u8 reserved_3[0x20];
4945 struct mlx5_ifc_destroy_rmp_out_bits {
4947 u8 reserved_0[0x18];
4951 u8 reserved_1[0x40];
4954 struct mlx5_ifc_destroy_rmp_in_bits {
4956 u8 reserved_0[0x10];
4958 u8 reserved_1[0x10];
4964 u8 reserved_3[0x20];
4967 struct mlx5_ifc_destroy_qp_out_bits {
4969 u8 reserved_0[0x18];
4973 u8 reserved_1[0x40];
4976 struct mlx5_ifc_destroy_qp_in_bits {
4978 u8 reserved_0[0x10];
4980 u8 reserved_1[0x10];
4986 u8 reserved_3[0x20];
4989 struct mlx5_ifc_destroy_psv_out_bits {
4991 u8 reserved_0[0x18];
4995 u8 reserved_1[0x40];
4998 struct mlx5_ifc_destroy_psv_in_bits {
5000 u8 reserved_0[0x10];
5002 u8 reserved_1[0x10];
5008 u8 reserved_3[0x20];
5011 struct mlx5_ifc_destroy_mkey_out_bits {
5013 u8 reserved_0[0x18];
5017 u8 reserved_1[0x40];
5020 struct mlx5_ifc_destroy_mkey_in_bits {
5022 u8 reserved_0[0x10];
5024 u8 reserved_1[0x10];
5028 u8 mkey_index[0x18];
5030 u8 reserved_3[0x20];
5033 struct mlx5_ifc_destroy_flow_table_out_bits {
5035 u8 reserved_0[0x18];
5039 u8 reserved_1[0x40];
5042 struct mlx5_ifc_destroy_flow_table_in_bits {
5044 u8 reserved_0[0x10];
5046 u8 reserved_1[0x10];
5049 u8 reserved_2[0x40];
5052 u8 reserved_3[0x18];
5057 u8 reserved_5[0x140];
5060 struct mlx5_ifc_destroy_flow_group_out_bits {
5062 u8 reserved_0[0x18];
5066 u8 reserved_1[0x40];
5069 struct mlx5_ifc_destroy_flow_group_in_bits {
5071 u8 reserved_0[0x10];
5073 u8 reserved_1[0x10];
5076 u8 reserved_2[0x40];
5079 u8 reserved_3[0x18];
5086 u8 reserved_5[0x120];
5089 struct mlx5_ifc_destroy_eq_out_bits {
5091 u8 reserved_0[0x18];
5095 u8 reserved_1[0x40];
5098 struct mlx5_ifc_destroy_eq_in_bits {
5100 u8 reserved_0[0x10];
5102 u8 reserved_1[0x10];
5105 u8 reserved_2[0x18];
5108 u8 reserved_3[0x20];
5111 struct mlx5_ifc_destroy_dct_out_bits {
5113 u8 reserved_0[0x18];
5117 u8 reserved_1[0x40];
5120 struct mlx5_ifc_destroy_dct_in_bits {
5122 u8 reserved_0[0x10];
5124 u8 reserved_1[0x10];
5130 u8 reserved_3[0x20];
5133 struct mlx5_ifc_destroy_cq_out_bits {
5135 u8 reserved_0[0x18];
5139 u8 reserved_1[0x40];
5142 struct mlx5_ifc_destroy_cq_in_bits {
5144 u8 reserved_0[0x10];
5146 u8 reserved_1[0x10];
5152 u8 reserved_3[0x20];
5155 struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
5157 u8 reserved_0[0x18];
5161 u8 reserved_1[0x40];
5164 struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
5166 u8 reserved_0[0x10];
5168 u8 reserved_1[0x10];
5171 u8 reserved_2[0x20];
5173 u8 reserved_3[0x10];
5174 u8 vxlan_udp_port[0x10];
5177 struct mlx5_ifc_delete_l2_table_entry_out_bits {
5179 u8 reserved_0[0x18];
5183 u8 reserved_1[0x40];
5186 struct mlx5_ifc_delete_l2_table_entry_in_bits {
5188 u8 reserved_0[0x10];
5190 u8 reserved_1[0x10];
5193 u8 reserved_2[0x60];
5196 u8 table_index[0x18];
5198 u8 reserved_4[0x140];
5201 struct mlx5_ifc_delete_fte_out_bits {
5203 u8 reserved_0[0x18];
5207 u8 reserved_1[0x40];
5210 struct mlx5_ifc_delete_fte_in_bits {
5212 u8 reserved_0[0x10];
5214 u8 reserved_1[0x10];
5217 u8 reserved_2[0x40];
5220 u8 reserved_3[0x18];
5225 u8 reserved_5[0x40];
5227 u8 flow_index[0x20];
5229 u8 reserved_6[0xe0];
5232 struct mlx5_ifc_dealloc_xrcd_out_bits {
5234 u8 reserved_0[0x18];
5238 u8 reserved_1[0x40];
5241 struct mlx5_ifc_dealloc_xrcd_in_bits {
5243 u8 reserved_0[0x10];
5245 u8 reserved_1[0x10];
5251 u8 reserved_3[0x20];
5254 struct mlx5_ifc_dealloc_uar_out_bits {
5256 u8 reserved_0[0x18];
5260 u8 reserved_1[0x40];
5263 struct mlx5_ifc_dealloc_uar_in_bits {
5265 u8 reserved_0[0x10];
5267 u8 reserved_1[0x10];
5273 u8 reserved_3[0x20];
5276 struct mlx5_ifc_dealloc_transport_domain_out_bits {
5278 u8 reserved_0[0x18];
5282 u8 reserved_1[0x40];
5285 struct mlx5_ifc_dealloc_transport_domain_in_bits {
5287 u8 reserved_0[0x10];
5289 u8 reserved_1[0x10];
5293 u8 transport_domain[0x18];
5295 u8 reserved_3[0x20];
5298 struct mlx5_ifc_dealloc_q_counter_out_bits {
5300 u8 reserved_0[0x18];
5304 u8 reserved_1[0x40];
5307 struct mlx5_ifc_dealloc_q_counter_in_bits {
5309 u8 reserved_0[0x10];
5311 u8 reserved_1[0x10];
5314 u8 reserved_2[0x18];
5315 u8 counter_set_id[0x8];
5317 u8 reserved_3[0x20];
5320 struct mlx5_ifc_dealloc_pd_out_bits {
5322 u8 reserved_0[0x18];
5326 u8 reserved_1[0x40];
5329 struct mlx5_ifc_dealloc_pd_in_bits {
5331 u8 reserved_0[0x10];
5333 u8 reserved_1[0x10];
5339 u8 reserved_3[0x20];
5342 struct mlx5_ifc_create_xrc_srq_out_bits {
5344 u8 reserved_0[0x18];
5351 u8 reserved_2[0x20];
5354 struct mlx5_ifc_create_xrc_srq_in_bits {
5356 u8 reserved_0[0x10];
5358 u8 reserved_1[0x10];
5361 u8 reserved_2[0x40];
5363 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
5365 u8 reserved_3[0x600];
5370 struct mlx5_ifc_create_tis_out_bits {
5372 u8 reserved_0[0x18];
5379 u8 reserved_2[0x20];
5382 struct mlx5_ifc_create_tis_in_bits {
5384 u8 reserved_0[0x10];
5386 u8 reserved_1[0x10];
5389 u8 reserved_2[0xc0];
5391 struct mlx5_ifc_tisc_bits ctx;
5394 struct mlx5_ifc_create_tir_out_bits {
5396 u8 reserved_0[0x18];
5403 u8 reserved_2[0x20];
5406 struct mlx5_ifc_create_tir_in_bits {
5408 u8 reserved_0[0x10];
5410 u8 reserved_1[0x10];
5413 u8 reserved_2[0xc0];
5415 struct mlx5_ifc_tirc_bits ctx;
5418 struct mlx5_ifc_create_srq_out_bits {
5420 u8 reserved_0[0x18];
5427 u8 reserved_2[0x20];
5430 struct mlx5_ifc_create_srq_in_bits {
5432 u8 reserved_0[0x10];
5434 u8 reserved_1[0x10];
5437 u8 reserved_2[0x40];
5439 struct mlx5_ifc_srqc_bits srq_context_entry;
5441 u8 reserved_3[0x600];
5446 struct mlx5_ifc_create_sq_out_bits {
5448 u8 reserved_0[0x18];
5455 u8 reserved_2[0x20];
5458 struct mlx5_ifc_create_sq_in_bits {
5460 u8 reserved_0[0x10];
5462 u8 reserved_1[0x10];
5465 u8 reserved_2[0xc0];
5467 struct mlx5_ifc_sqc_bits ctx;
5470 struct mlx5_ifc_create_rqt_out_bits {
5472 u8 reserved_0[0x18];
5479 u8 reserved_2[0x20];
5482 struct mlx5_ifc_create_rqt_in_bits {
5484 u8 reserved_0[0x10];
5486 u8 reserved_1[0x10];
5489 u8 reserved_2[0xc0];
5491 struct mlx5_ifc_rqtc_bits rqt_context;
5494 struct mlx5_ifc_create_rq_out_bits {
5496 u8 reserved_0[0x18];
5503 u8 reserved_2[0x20];
5506 struct mlx5_ifc_create_rq_in_bits {
5508 u8 reserved_0[0x10];
5510 u8 reserved_1[0x10];
5513 u8 reserved_2[0xc0];
5515 struct mlx5_ifc_rqc_bits ctx;
5518 struct mlx5_ifc_create_rmp_out_bits {
5520 u8 reserved_0[0x18];
5527 u8 reserved_2[0x20];
5530 struct mlx5_ifc_create_rmp_in_bits {
5532 u8 reserved_0[0x10];
5534 u8 reserved_1[0x10];
5537 u8 reserved_2[0xc0];
5539 struct mlx5_ifc_rmpc_bits ctx;
5542 struct mlx5_ifc_create_qp_out_bits {
5544 u8 reserved_0[0x18];
5551 u8 reserved_2[0x20];
5554 struct mlx5_ifc_create_qp_in_bits {
5556 u8 reserved_0[0x10];
5558 u8 reserved_1[0x10];
5561 u8 reserved_2[0x40];
5563 u8 opt_param_mask[0x20];
5565 u8 reserved_3[0x20];
5567 struct mlx5_ifc_qpc_bits qpc;
5569 u8 reserved_4[0x80];
5574 struct mlx5_ifc_create_psv_out_bits {
5576 u8 reserved_0[0x18];
5580 u8 reserved_1[0x40];
5583 u8 psv0_index[0x18];
5586 u8 psv1_index[0x18];
5589 u8 psv2_index[0x18];
5592 u8 psv3_index[0x18];
5595 struct mlx5_ifc_create_psv_in_bits {
5597 u8 reserved_0[0x10];
5599 u8 reserved_1[0x10];
5606 u8 reserved_3[0x20];
5609 struct mlx5_ifc_create_mkey_out_bits {
5611 u8 reserved_0[0x18];
5616 u8 mkey_index[0x18];
5618 u8 reserved_2[0x20];
5621 struct mlx5_ifc_create_mkey_in_bits {
5623 u8 reserved_0[0x10];
5625 u8 reserved_1[0x10];
5628 u8 reserved_2[0x20];
5631 u8 reserved_3[0x1f];
5633 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
5635 u8 reserved_4[0x80];
5637 u8 translations_octword_actual_size[0x20];
5639 u8 reserved_5[0x560];
5641 u8 klm_pas_mtt[0][0x20];
5644 struct mlx5_ifc_create_flow_table_out_bits {
5646 u8 reserved_0[0x18];
5653 u8 reserved_2[0x20];
5656 struct mlx5_ifc_create_flow_table_in_bits {
5658 u8 reserved_0[0x10];
5660 u8 reserved_1[0x10];
5663 u8 reserved_2[0x40];
5666 u8 reserved_3[0x18];
5668 u8 reserved_4[0x20];
5675 u8 reserved_7[0x120];
5678 struct mlx5_ifc_create_flow_group_out_bits {
5680 u8 reserved_0[0x18];
5687 u8 reserved_2[0x20];
5691 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
5692 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
5693 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
5696 struct mlx5_ifc_create_flow_group_in_bits {
5698 u8 reserved_0[0x10];
5700 u8 reserved_1[0x10];
5703 u8 reserved_2[0x40];
5706 u8 reserved_3[0x18];
5711 u8 reserved_5[0x20];
5713 u8 start_flow_index[0x20];
5715 u8 reserved_6[0x20];
5717 u8 end_flow_index[0x20];
5719 u8 reserved_7[0xa0];
5721 u8 reserved_8[0x18];
5722 u8 match_criteria_enable[0x8];
5724 struct mlx5_ifc_fte_match_param_bits match_criteria;
5726 u8 reserved_9[0xe00];
5729 struct mlx5_ifc_create_eq_out_bits {
5731 u8 reserved_0[0x18];
5735 u8 reserved_1[0x18];
5738 u8 reserved_2[0x20];
5741 struct mlx5_ifc_create_eq_in_bits {
5743 u8 reserved_0[0x10];
5745 u8 reserved_1[0x10];
5748 u8 reserved_2[0x40];
5750 struct mlx5_ifc_eqc_bits eq_context_entry;
5752 u8 reserved_3[0x40];
5754 u8 event_bitmask[0x40];
5756 u8 reserved_4[0x580];
5761 struct mlx5_ifc_create_dct_out_bits {
5763 u8 reserved_0[0x18];
5770 u8 reserved_2[0x20];
5773 struct mlx5_ifc_create_dct_in_bits {
5775 u8 reserved_0[0x10];
5777 u8 reserved_1[0x10];
5780 u8 reserved_2[0x40];
5782 struct mlx5_ifc_dctc_bits dct_context_entry;
5784 u8 reserved_3[0x180];
5787 struct mlx5_ifc_create_cq_out_bits {
5789 u8 reserved_0[0x18];
5796 u8 reserved_2[0x20];
5799 struct mlx5_ifc_create_cq_in_bits {
5801 u8 reserved_0[0x10];
5803 u8 reserved_1[0x10];
5806 u8 reserved_2[0x40];
5808 struct mlx5_ifc_cqc_bits cq_context;
5810 u8 reserved_3[0x600];
5815 struct mlx5_ifc_config_int_moderation_out_bits {
5817 u8 reserved_0[0x18];
5823 u8 int_vector[0x10];
5825 u8 reserved_2[0x20];
5829 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
5830 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
5833 struct mlx5_ifc_config_int_moderation_in_bits {
5835 u8 reserved_0[0x10];
5837 u8 reserved_1[0x10];
5842 u8 int_vector[0x10];
5844 u8 reserved_3[0x20];
5847 struct mlx5_ifc_attach_to_mcg_out_bits {
5849 u8 reserved_0[0x18];
5853 u8 reserved_1[0x40];
5856 struct mlx5_ifc_attach_to_mcg_in_bits {
5858 u8 reserved_0[0x10];
5860 u8 reserved_1[0x10];
5866 u8 reserved_3[0x20];
5868 u8 multicast_gid[16][0x8];
5871 struct mlx5_ifc_arm_xrc_srq_out_bits {
5873 u8 reserved_0[0x18];
5877 u8 reserved_1[0x40];
5881 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
5884 struct mlx5_ifc_arm_xrc_srq_in_bits {
5886 u8 reserved_0[0x10];
5888 u8 reserved_1[0x10];
5894 u8 reserved_3[0x10];
5898 struct mlx5_ifc_arm_rq_out_bits {
5900 u8 reserved_0[0x18];
5904 u8 reserved_1[0x40];
5908 MLX5_ARM_RQ_IN_OP_MOD_SRQ_ = 0x1,
5911 struct mlx5_ifc_arm_rq_in_bits {
5913 u8 reserved_0[0x10];
5915 u8 reserved_1[0x10];
5919 u8 srq_number[0x18];
5921 u8 reserved_3[0x10];
5925 struct mlx5_ifc_arm_dct_out_bits {
5927 u8 reserved_0[0x18];
5931 u8 reserved_1[0x40];
5934 struct mlx5_ifc_arm_dct_in_bits {
5936 u8 reserved_0[0x10];
5938 u8 reserved_1[0x10];
5942 u8 dct_number[0x18];
5944 u8 reserved_3[0x20];
5947 struct mlx5_ifc_alloc_xrcd_out_bits {
5949 u8 reserved_0[0x18];
5956 u8 reserved_2[0x20];
5959 struct mlx5_ifc_alloc_xrcd_in_bits {
5961 u8 reserved_0[0x10];
5963 u8 reserved_1[0x10];
5966 u8 reserved_2[0x40];
5969 struct mlx5_ifc_alloc_uar_out_bits {
5971 u8 reserved_0[0x18];
5978 u8 reserved_2[0x20];
5981 struct mlx5_ifc_alloc_uar_in_bits {
5983 u8 reserved_0[0x10];
5985 u8 reserved_1[0x10];
5988 u8 reserved_2[0x40];
5991 struct mlx5_ifc_alloc_transport_domain_out_bits {
5993 u8 reserved_0[0x18];
5998 u8 transport_domain[0x18];
6000 u8 reserved_2[0x20];
6003 struct mlx5_ifc_alloc_transport_domain_in_bits {
6005 u8 reserved_0[0x10];
6007 u8 reserved_1[0x10];
6010 u8 reserved_2[0x40];
6013 struct mlx5_ifc_alloc_q_counter_out_bits {
6015 u8 reserved_0[0x18];
6019 u8 reserved_1[0x18];
6020 u8 counter_set_id[0x8];
6022 u8 reserved_2[0x20];
6025 struct mlx5_ifc_alloc_q_counter_in_bits {
6027 u8 reserved_0[0x10];
6029 u8 reserved_1[0x10];
6032 u8 reserved_2[0x40];
6035 struct mlx5_ifc_alloc_pd_out_bits {
6037 u8 reserved_0[0x18];
6044 u8 reserved_2[0x20];
6047 struct mlx5_ifc_alloc_pd_in_bits {
6049 u8 reserved_0[0x10];
6051 u8 reserved_1[0x10];
6054 u8 reserved_2[0x40];
6057 struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
6059 u8 reserved_0[0x18];
6063 u8 reserved_1[0x40];
6066 struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
6068 u8 reserved_0[0x10];
6070 u8 reserved_1[0x10];
6073 u8 reserved_2[0x20];
6075 u8 reserved_3[0x10];
6076 u8 vxlan_udp_port[0x10];
6079 struct mlx5_ifc_access_register_out_bits {
6081 u8 reserved_0[0x18];
6085 u8 reserved_1[0x40];
6087 u8 register_data[0][0x20];
6091 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
6092 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
6095 struct mlx5_ifc_access_register_in_bits {
6097 u8 reserved_0[0x10];
6099 u8 reserved_1[0x10];
6102 u8 reserved_2[0x10];
6103 u8 register_id[0x10];
6107 u8 register_data[0][0x20];
6110 struct mlx5_ifc_sltp_reg_bits {
6119 u8 reserved_2[0x20];
6128 u8 ob_preemp_mode[0x4];
6132 u8 reserved_5[0x20];
6135 struct mlx5_ifc_slrg_reg_bits {
6144 u8 time_to_link_up[0x10];
6146 u8 grade_lane_speed[0x4];
6148 u8 grade_version[0x8];
6152 u8 height_grade_type[0x4];
6153 u8 height_grade[0x18];
6158 u8 reserved_4[0x10];
6159 u8 height_sigma[0x10];
6161 u8 reserved_5[0x20];
6164 u8 phase_grade_type[0x4];
6165 u8 phase_grade[0x18];
6168 u8 phase_eo_pos[0x8];
6170 u8 phase_eo_neg[0x8];
6172 u8 ffe_set_tested[0x10];
6173 u8 test_errors_per_lane[0x10];
6176 struct mlx5_ifc_pvlc_reg_bits {
6179 u8 reserved_1[0x10];
6181 u8 reserved_2[0x1c];
6184 u8 reserved_3[0x1c];
6187 u8 reserved_4[0x1c];
6188 u8 vl_operational[0x4];
6191 struct mlx5_ifc_pude_reg_bits {
6195 u8 admin_status[0x4];
6197 u8 oper_status[0x4];
6199 u8 reserved_2[0x60];
6202 struct mlx5_ifc_ptys_reg_bits {
6208 u8 reserved_2[0x40];
6210 u8 eth_proto_capability[0x20];
6212 u8 ib_link_width_capability[0x10];
6213 u8 ib_proto_capability[0x10];
6215 u8 reserved_3[0x20];
6217 u8 eth_proto_admin[0x20];
6219 u8 ib_link_width_admin[0x10];
6220 u8 ib_proto_admin[0x10];
6222 u8 reserved_4[0x20];
6224 u8 eth_proto_oper[0x20];
6226 u8 ib_link_width_oper[0x10];
6227 u8 ib_proto_oper[0x10];
6229 u8 reserved_5[0x20];
6231 u8 eth_proto_lp_advertise[0x20];
6233 u8 reserved_6[0x60];
6236 struct mlx5_ifc_ptas_reg_bits {
6237 u8 reserved_0[0x20];
6239 u8 algorithm_options[0x10];
6241 u8 repetitions_mode[0x4];
6242 u8 num_of_repetitions[0x8];
6244 u8 grade_version[0x8];
6245 u8 height_grade_type[0x4];
6246 u8 phase_grade_type[0x4];
6247 u8 height_grade_weight[0x8];
6248 u8 phase_grade_weight[0x8];
6250 u8 gisim_measure_bits[0x10];
6251 u8 adaptive_tap_measure_bits[0x10];
6253 u8 ber_bath_high_error_threshold[0x10];
6254 u8 ber_bath_mid_error_threshold[0x10];
6256 u8 ber_bath_low_error_threshold[0x10];
6257 u8 one_ratio_high_threshold[0x10];
6259 u8 one_ratio_high_mid_threshold[0x10];
6260 u8 one_ratio_low_mid_threshold[0x10];
6262 u8 one_ratio_low_threshold[0x10];
6263 u8 ndeo_error_threshold[0x10];
6265 u8 mixer_offset_step_size[0x10];
6267 u8 mix90_phase_for_voltage_bath[0x8];
6269 u8 mixer_offset_start[0x10];
6270 u8 mixer_offset_end[0x10];
6272 u8 reserved_3[0x15];
6273 u8 ber_test_time[0xb];
6276 struct mlx5_ifc_pspa_reg_bits {
6282 u8 reserved_1[0x20];
6285 struct mlx5_ifc_pqdr_reg_bits {
6293 u8 reserved_3[0x20];
6295 u8 reserved_4[0x10];
6296 u8 min_threshold[0x10];
6298 u8 reserved_5[0x10];
6299 u8 max_threshold[0x10];
6301 u8 reserved_6[0x10];
6302 u8 mark_probability_denominator[0x10];
6304 u8 reserved_7[0x60];
6307 struct mlx5_ifc_ppsc_reg_bits {
6310 u8 reserved_1[0x10];
6312 u8 reserved_2[0x60];
6314 u8 reserved_3[0x1c];
6317 u8 reserved_4[0x1c];
6318 u8 wrps_status[0x4];
6321 u8 up_threshold[0x8];
6323 u8 down_threshold[0x8];
6325 u8 reserved_7[0x20];
6327 u8 reserved_8[0x1c];
6330 u8 reserved_9[0x1c];
6331 u8 srps_status[0x4];
6333 u8 reserved_10[0x40];
6336 struct mlx5_ifc_pplr_reg_bits {
6339 u8 reserved_1[0x10];
6347 struct mlx5_ifc_pplm_reg_bits {
6350 u8 reserved_1[0x10];
6352 u8 reserved_2[0x20];
6354 u8 port_profile_mode[0x8];
6355 u8 static_port_profile[0x8];
6356 u8 active_port_profile[0x8];
6359 u8 retransmission_active[0x8];
6360 u8 fec_mode_active[0x18];
6362 u8 reserved_4[0x20];
6365 struct mlx5_ifc_ppcnt_reg_bits {
6373 u8 reserved_1[0x1c];
6376 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
6379 struct mlx5_ifc_ppad_reg_bits {
6388 u8 reserved_2[0x40];
6391 struct mlx5_ifc_pmtu_reg_bits {
6394 u8 reserved_1[0x10];
6397 u8 reserved_2[0x10];
6400 u8 reserved_3[0x10];
6403 u8 reserved_4[0x10];
6406 struct mlx5_ifc_pmpr_reg_bits {
6409 u8 reserved_1[0x10];
6411 u8 reserved_2[0x18];
6412 u8 attenuation_5g[0x8];
6414 u8 reserved_3[0x18];
6415 u8 attenuation_7g[0x8];
6417 u8 reserved_4[0x18];
6418 u8 attenuation_12g[0x8];
6421 struct mlx5_ifc_pmpe_reg_bits {
6425 u8 module_status[0x4];
6427 u8 reserved_2[0x60];
6430 struct mlx5_ifc_pmpc_reg_bits {
6431 u8 module_state_updated[32][0x8];
6434 struct mlx5_ifc_pmlpn_reg_bits {
6436 u8 mlpn_status[0x4];
6438 u8 reserved_1[0x10];
6441 u8 reserved_2[0x1f];
6444 struct mlx5_ifc_pmlp_reg_bits {
6451 u8 lane0_module_mapping[0x20];
6453 u8 lane1_module_mapping[0x20];
6455 u8 lane2_module_mapping[0x20];
6457 u8 lane3_module_mapping[0x20];
6459 u8 reserved_2[0x160];
6462 struct mlx5_ifc_pmaos_reg_bits {
6466 u8 admin_status[0x4];
6468 u8 oper_status[0x4];
6472 u8 reserved_3[0x1c];
6475 u8 reserved_4[0x40];
6478 struct mlx5_ifc_plpc_reg_bits {
6485 u8 reserved_3[0x10];
6486 u8 lane_speed[0x10];
6488 u8 reserved_4[0x17];
6490 u8 fec_mode_policy[0x8];
6492 u8 retransmission_capability[0x8];
6493 u8 fec_mode_capability[0x18];
6495 u8 retransmission_support_admin[0x8];
6496 u8 fec_mode_support_admin[0x18];
6498 u8 retransmission_request_admin[0x8];
6499 u8 fec_mode_request_admin[0x18];
6501 u8 reserved_5[0x80];
6504 struct mlx5_ifc_plib_reg_bits {
6510 u8 reserved_2[0x60];
6513 struct mlx5_ifc_plbf_reg_bits {
6519 u8 reserved_2[0x20];
6522 struct mlx5_ifc_pipg_reg_bits {
6525 u8 reserved_1[0x10];
6528 u8 reserved_2[0x19];
6533 struct mlx5_ifc_pifr_reg_bits {
6536 u8 reserved_1[0x10];
6538 u8 reserved_2[0xe0];
6540 u8 port_filter[8][0x20];
6542 u8 port_filter_update_en[8][0x20];
6545 struct mlx5_ifc_pfcc_reg_bits {
6548 u8 reserved_1[0x10];
6552 u8 prio_mask_tx[0x8];
6554 u8 prio_mask_rx[0x8];
6560 u8 reserved_5[0x10];
6566 u8 reserved_7[0x10];
6568 u8 reserved_8[0x80];
6571 struct mlx5_ifc_pelc_reg_bits {
6575 u8 reserved_1[0x10];
6578 u8 op_capability[0x8];
6584 u8 capability[0x40];
6590 u8 reserved_2[0x80];
6593 struct mlx5_ifc_peir_reg_bits {
6596 u8 reserved_1[0x10];
6599 u8 error_count[0x4];
6600 u8 reserved_3[0x10];
6608 struct mlx5_ifc_pcap_reg_bits {
6611 u8 reserved_1[0x10];
6613 u8 port_capability_mask[4][0x20];
6616 struct mlx5_ifc_paos_reg_bits {
6620 u8 admin_status[0x4];
6622 u8 oper_status[0x4];
6626 u8 reserved_2[0x1c];
6629 u8 reserved_3[0x40];
6632 struct mlx5_ifc_pamp_reg_bits {
6634 u8 opamp_group[0x8];
6636 u8 opamp_group_type[0x4];
6638 u8 start_index[0x10];
6640 u8 num_of_indices[0xc];
6642 u8 index_data[18][0x10];
6645 struct mlx5_ifc_lane_2_module_mapping_bits {
6654 struct mlx5_ifc_bufferx_reg_bits {
6661 u8 xoff_threshold[0x10];
6662 u8 xon_threshold[0x10];
6665 struct mlx5_ifc_set_node_in_bits {
6666 u8 node_description[64][0x8];
6669 struct mlx5_ifc_register_power_settings_bits {
6670 u8 reserved_0[0x18];
6671 u8 power_settings_level[0x8];
6673 u8 reserved_1[0x60];
6676 struct mlx5_ifc_register_host_endianness_bits {
6678 u8 reserved_0[0x1f];
6680 u8 reserved_1[0x60];
6683 struct mlx5_ifc_umr_pointer_desc_argument_bits {
6684 u8 reserved_0[0x20];
6688 u8 addressh_63_32[0x20];
6690 u8 addressl_31_0[0x20];
6693 struct mlx5_ifc_ud_adrs_vector_bits {
6698 u8 destination_qp_dct[0x18];
6700 u8 static_rate[0x4];
6701 u8 sl_eth_prio[0x4];
6704 u8 rlid_udp_sport[0x10];
6706 u8 reserved_1[0x20];
6708 u8 rmac_47_16[0x20];
6717 u8 src_addr_index[0x8];
6718 u8 flow_label[0x14];
6720 u8 rgid_rip[16][0x8];
6723 struct mlx5_ifc_pages_req_event_bits {
6724 u8 reserved_0[0x10];
6725 u8 function_id[0x10];
6729 u8 reserved_1[0xa0];
6732 struct mlx5_ifc_eqe_bits {
6736 u8 event_sub_type[0x8];
6738 u8 reserved_2[0xe0];
6740 union mlx5_ifc_event_auto_bits event_data;
6742 u8 reserved_3[0x10];
6749 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
6752 struct mlx5_ifc_cmd_queue_entry_bits {
6754 u8 reserved_0[0x18];
6756 u8 input_length[0x20];
6758 u8 input_mailbox_pointer_63_32[0x20];
6760 u8 input_mailbox_pointer_31_9[0x17];
6763 u8 command_input_inline_data[16][0x8];
6765 u8 command_output_inline_data[16][0x8];
6767 u8 output_mailbox_pointer_63_32[0x20];
6769 u8 output_mailbox_pointer_31_9[0x17];
6772 u8 output_length[0x20];
6781 struct mlx5_ifc_cmd_out_bits {
6783 u8 reserved_0[0x18];
6787 u8 command_output[0x20];
6790 struct mlx5_ifc_cmd_in_bits {
6792 u8 reserved_0[0x10];
6794 u8 reserved_1[0x10];
6797 u8 command[0][0x20];
6800 struct mlx5_ifc_cmd_if_box_bits {
6801 u8 mailbox_data[512][0x8];
6803 u8 reserved_0[0x180];
6805 u8 next_pointer_63_32[0x20];
6807 u8 next_pointer_31_10[0x16];
6810 u8 block_number[0x20];
6814 u8 ctrl_signature[0x8];
6818 struct mlx5_ifc_mtt_bits {
6819 u8 ptag_63_32[0x20];
6828 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
6829 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
6830 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
6834 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
6835 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
6836 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
6840 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
6841 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
6842 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
6843 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
6844 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
6845 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
6846 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
6847 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
6848 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
6849 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
6850 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
6853 struct mlx5_ifc_initial_seg_bits {
6854 u8 fw_rev_minor[0x10];
6855 u8 fw_rev_major[0x10];
6857 u8 cmd_interface_rev[0x10];
6858 u8 fw_rev_subminor[0x10];
6860 u8 reserved_0[0x40];
6862 u8 cmdq_phy_addr_63_32[0x20];
6864 u8 cmdq_phy_addr_31_12[0x14];
6866 u8 nic_interface[0x2];
6867 u8 log_cmdq_size[0x4];
6868 u8 log_cmdq_stride[0x4];
6870 u8 command_doorbell_vector[0x20];
6872 u8 reserved_2[0xf00];
6874 u8 initializing[0x1];
6876 u8 nic_interface_supported[0x3];
6877 u8 reserved_4[0x18];
6879 struct mlx5_ifc_health_buffer_bits health_buffer;
6881 u8 no_dram_nic_offset[0x20];
6883 u8 reserved_5[0x6e40];
6885 u8 reserved_6[0x1f];
6888 u8 health_syndrome[0x8];
6889 u8 health_counter[0x18];
6891 u8 reserved_7[0x17fc0];
6894 union mlx5_ifc_ports_control_registers_document_bits {
6895 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
6896 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
6897 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
6898 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
6899 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
6900 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
6901 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
6902 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
6903 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
6904 struct mlx5_ifc_pamp_reg_bits pamp_reg;
6905 struct mlx5_ifc_paos_reg_bits paos_reg;
6906 struct mlx5_ifc_pcap_reg_bits pcap_reg;
6907 struct mlx5_ifc_peir_reg_bits peir_reg;
6908 struct mlx5_ifc_pelc_reg_bits pelc_reg;
6909 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
6910 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
6911 struct mlx5_ifc_pifr_reg_bits pifr_reg;
6912 struct mlx5_ifc_pipg_reg_bits pipg_reg;
6913 struct mlx5_ifc_plbf_reg_bits plbf_reg;
6914 struct mlx5_ifc_plib_reg_bits plib_reg;
6915 struct mlx5_ifc_plpc_reg_bits plpc_reg;
6916 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
6917 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
6918 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
6919 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
6920 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
6921 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
6922 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
6923 struct mlx5_ifc_ppad_reg_bits ppad_reg;
6924 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
6925 struct mlx5_ifc_pplm_reg_bits pplm_reg;
6926 struct mlx5_ifc_pplr_reg_bits pplr_reg;
6927 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
6928 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
6929 struct mlx5_ifc_pspa_reg_bits pspa_reg;
6930 struct mlx5_ifc_ptas_reg_bits ptas_reg;
6931 struct mlx5_ifc_ptys_reg_bits ptys_reg;
6932 struct mlx5_ifc_pude_reg_bits pude_reg;
6933 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
6934 struct mlx5_ifc_slrg_reg_bits slrg_reg;
6935 struct mlx5_ifc_sltp_reg_bits sltp_reg;
6936 u8 reserved_0[0x60e0];
6939 union mlx5_ifc_debug_enhancements_document_bits {
6940 struct mlx5_ifc_health_buffer_bits health_buffer;
6941 u8 reserved_0[0x200];
6944 union mlx5_ifc_uplink_pci_interface_document_bits {
6945 struct mlx5_ifc_initial_seg_bits initial_seg;
6946 u8 reserved_0[0x20060];
6949 #endif /* MLX5_IFC_H */