2 * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved.
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:
10 * Redistribution and use in source and binary forms, with or
11 * without modification, are permitted provided that the following
14 * - Redistributions of source code must retain the above
15 * copyright notice, this list of conditions and the following
18 * - Redistributions in binary form must reproduce the above
19 * copyright notice, this list of conditions and the following
20 * disclaimer in the documentation and/or other materials
21 * provided with the distribution.
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
36 MLX5_EVENT_TYPE_CODING_COMPLETION_EVENTS = 0x0,
37 MLX5_EVENT_TYPE_CODING_PATH_MIGRATED_SUCCEEDED = 0x1,
38 MLX5_EVENT_TYPE_CODING_COMMUNICATION_ESTABLISHED = 0x2,
39 MLX5_EVENT_TYPE_CODING_SEND_QUEUE_DRAINED = 0x3,
40 MLX5_EVENT_TYPE_CODING_LAST_WQE_REACHED = 0x13,
41 MLX5_EVENT_TYPE_CODING_SRQ_LIMIT = 0x14,
42 MLX5_EVENT_TYPE_CODING_DCT_ALL_CONNECTIONS_CLOSED = 0x1c,
43 MLX5_EVENT_TYPE_CODING_DCT_ACCESS_KEY_VIOLATION = 0x1d,
44 MLX5_EVENT_TYPE_CODING_CQ_ERROR = 0x4,
45 MLX5_EVENT_TYPE_CODING_LOCAL_WQ_CATASTROPHIC_ERROR = 0x5,
46 MLX5_EVENT_TYPE_CODING_PATH_MIGRATION_FAILED = 0x7,
47 MLX5_EVENT_TYPE_CODING_PAGE_FAULT_EVENT = 0xc,
48 MLX5_EVENT_TYPE_CODING_INVALID_REQUEST_LOCAL_WQ_ERROR = 0x10,
49 MLX5_EVENT_TYPE_CODING_LOCAL_ACCESS_VIOLATION_WQ_ERROR = 0x11,
50 MLX5_EVENT_TYPE_CODING_LOCAL_SRQ_CATASTROPHIC_ERROR = 0x12,
51 MLX5_EVENT_TYPE_CODING_INTERNAL_ERROR = 0x8,
52 MLX5_EVENT_TYPE_CODING_PORT_STATE_CHANGE = 0x9,
53 MLX5_EVENT_TYPE_CODING_GPIO_EVENT = 0x15,
54 MLX5_EVENT_TYPE_CODING_REMOTE_CONFIGURATION_PROTOCOL_EVENT = 0x19,
55 MLX5_EVENT_TYPE_CODING_DOORBELL_BLUEFLAME_CONGESTION_EVENT = 0x1a,
56 MLX5_EVENT_TYPE_CODING_STALL_VL_EVENT = 0x1b,
57 MLX5_EVENT_TYPE_CODING_DROPPED_PACKET_LOGGED_EVENT = 0x1f,
58 MLX5_EVENT_TYPE_CODING_COMMAND_INTERFACE_COMPLETION = 0xa,
59 MLX5_EVENT_TYPE_CODING_PAGE_REQUEST = 0xb
63 MLX5_MODIFY_TIR_BITMASK_LRO = 0x0,
64 MLX5_MODIFY_TIR_BITMASK_INDIRECT_TABLE = 0x1,
65 MLX5_MODIFY_TIR_BITMASK_HASH = 0x2,
66 MLX5_MODIFY_TIR_BITMASK_TUNNELED_OFFLOAD_EN = 0x3
70 MLX5_CMD_OP_QUERY_HCA_CAP = 0x100,
71 MLX5_CMD_OP_QUERY_ADAPTER = 0x101,
72 MLX5_CMD_OP_INIT_HCA = 0x102,
73 MLX5_CMD_OP_TEARDOWN_HCA = 0x103,
74 MLX5_CMD_OP_ENABLE_HCA = 0x104,
75 MLX5_CMD_OP_DISABLE_HCA = 0x105,
76 MLX5_CMD_OP_QUERY_PAGES = 0x107,
77 MLX5_CMD_OP_MANAGE_PAGES = 0x108,
78 MLX5_CMD_OP_SET_HCA_CAP = 0x109,
79 MLX5_CMD_OP_QUERY_ISSI = 0x10a,
80 MLX5_CMD_OP_SET_ISSI = 0x10b,
81 MLX5_CMD_OP_CREATE_MKEY = 0x200,
82 MLX5_CMD_OP_QUERY_MKEY = 0x201,
83 MLX5_CMD_OP_DESTROY_MKEY = 0x202,
84 MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS = 0x203,
85 MLX5_CMD_OP_PAGE_FAULT_RESUME = 0x204,
86 MLX5_CMD_OP_CREATE_EQ = 0x301,
87 MLX5_CMD_OP_DESTROY_EQ = 0x302,
88 MLX5_CMD_OP_QUERY_EQ = 0x303,
89 MLX5_CMD_OP_GEN_EQE = 0x304,
90 MLX5_CMD_OP_CREATE_CQ = 0x400,
91 MLX5_CMD_OP_DESTROY_CQ = 0x401,
92 MLX5_CMD_OP_QUERY_CQ = 0x402,
93 MLX5_CMD_OP_MODIFY_CQ = 0x403,
94 MLX5_CMD_OP_CREATE_QP = 0x500,
95 MLX5_CMD_OP_DESTROY_QP = 0x501,
96 MLX5_CMD_OP_RST2INIT_QP = 0x502,
97 MLX5_CMD_OP_INIT2RTR_QP = 0x503,
98 MLX5_CMD_OP_RTR2RTS_QP = 0x504,
99 MLX5_CMD_OP_RTS2RTS_QP = 0x505,
100 MLX5_CMD_OP_SQERR2RTS_QP = 0x506,
101 MLX5_CMD_OP_2ERR_QP = 0x507,
102 MLX5_CMD_OP_2RST_QP = 0x50a,
103 MLX5_CMD_OP_QUERY_QP = 0x50b,
104 MLX5_CMD_OP_SQD_RTS_QP = 0x50c,
105 MLX5_CMD_OP_INIT2INIT_QP = 0x50e,
106 MLX5_CMD_OP_CREATE_PSV = 0x600,
107 MLX5_CMD_OP_DESTROY_PSV = 0x601,
108 MLX5_CMD_OP_CREATE_SRQ = 0x700,
109 MLX5_CMD_OP_DESTROY_SRQ = 0x701,
110 MLX5_CMD_OP_QUERY_SRQ = 0x702,
111 MLX5_CMD_OP_ARM_RQ = 0x703,
112 MLX5_CMD_OP_CREATE_XRC_SRQ = 0x705,
113 MLX5_CMD_OP_DESTROY_XRC_SRQ = 0x706,
114 MLX5_CMD_OP_QUERY_XRC_SRQ = 0x707,
115 MLX5_CMD_OP_ARM_XRC_SRQ = 0x708,
116 MLX5_CMD_OP_CREATE_DCT = 0x710,
117 MLX5_CMD_OP_DESTROY_DCT = 0x711,
118 MLX5_CMD_OP_DRAIN_DCT = 0x712,
119 MLX5_CMD_OP_QUERY_DCT = 0x713,
120 MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION = 0x714,
121 MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750,
122 MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751,
123 MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752,
124 MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT = 0x753,
125 MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT = 0x754,
126 MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT = 0x755,
127 MLX5_CMD_OP_QUERY_ROCE_ADDRESS = 0x760,
128 MLX5_CMD_OP_SET_ROCE_ADDRESS = 0x761,
129 MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT = 0x762,
130 MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT = 0x763,
131 MLX5_CMD_OP_QUERY_HCA_VPORT_GID = 0x764,
132 MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY = 0x765,
133 MLX5_CMD_OP_QUERY_VPORT_COUNTER = 0x770,
134 MLX5_CMD_OP_ALLOC_Q_COUNTER = 0x771,
135 MLX5_CMD_OP_DEALLOC_Q_COUNTER = 0x772,
136 MLX5_CMD_OP_QUERY_Q_COUNTER = 0x773,
137 MLX5_CMD_OP_ALLOC_PD = 0x800,
138 MLX5_CMD_OP_DEALLOC_PD = 0x801,
139 MLX5_CMD_OP_ALLOC_UAR = 0x802,
140 MLX5_CMD_OP_DEALLOC_UAR = 0x803,
141 MLX5_CMD_OP_CONFIG_INT_MODERATION = 0x804,
142 MLX5_CMD_OP_ACCESS_REG = 0x805,
143 MLX5_CMD_OP_ATTACH_TO_MCG = 0x806,
144 MLX5_CMD_OP_DETTACH_FROM_MCG = 0x807,
145 MLX5_CMD_OP_GET_DROPPED_PACKET_LOG = 0x80a,
146 MLX5_CMD_OP_MAD_IFC = 0x50d,
147 MLX5_CMD_OP_QUERY_MAD_DEMUX = 0x80b,
148 MLX5_CMD_OP_SET_MAD_DEMUX = 0x80c,
149 MLX5_CMD_OP_NOP = 0x80d,
150 MLX5_CMD_OP_ALLOC_XRCD = 0x80e,
151 MLX5_CMD_OP_DEALLOC_XRCD = 0x80f,
152 MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN = 0x816,
153 MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN = 0x817,
154 MLX5_CMD_OP_QUERY_CONG_STATUS = 0x822,
155 MLX5_CMD_OP_MODIFY_CONG_STATUS = 0x823,
156 MLX5_CMD_OP_QUERY_CONG_PARAMS = 0x824,
157 MLX5_CMD_OP_MODIFY_CONG_PARAMS = 0x825,
158 MLX5_CMD_OP_QUERY_CONG_STATISTICS = 0x826,
159 MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT = 0x827,
160 MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT = 0x828,
161 MLX5_CMD_OP_SET_L2_TABLE_ENTRY = 0x829,
162 MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY = 0x82a,
163 MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY = 0x82b,
164 MLX5_CMD_OP_CREATE_TIR = 0x900,
165 MLX5_CMD_OP_MODIFY_TIR = 0x901,
166 MLX5_CMD_OP_DESTROY_TIR = 0x902,
167 MLX5_CMD_OP_QUERY_TIR = 0x903,
168 MLX5_CMD_OP_CREATE_SQ = 0x904,
169 MLX5_CMD_OP_MODIFY_SQ = 0x905,
170 MLX5_CMD_OP_DESTROY_SQ = 0x906,
171 MLX5_CMD_OP_QUERY_SQ = 0x907,
172 MLX5_CMD_OP_CREATE_RQ = 0x908,
173 MLX5_CMD_OP_MODIFY_RQ = 0x909,
174 MLX5_CMD_OP_DESTROY_RQ = 0x90a,
175 MLX5_CMD_OP_QUERY_RQ = 0x90b,
176 MLX5_CMD_OP_CREATE_RMP = 0x90c,
177 MLX5_CMD_OP_MODIFY_RMP = 0x90d,
178 MLX5_CMD_OP_DESTROY_RMP = 0x90e,
179 MLX5_CMD_OP_QUERY_RMP = 0x90f,
180 MLX5_CMD_OP_CREATE_TIS = 0x912,
181 MLX5_CMD_OP_MODIFY_TIS = 0x913,
182 MLX5_CMD_OP_DESTROY_TIS = 0x914,
183 MLX5_CMD_OP_QUERY_TIS = 0x915,
184 MLX5_CMD_OP_CREATE_RQT = 0x916,
185 MLX5_CMD_OP_MODIFY_RQT = 0x917,
186 MLX5_CMD_OP_DESTROY_RQT = 0x918,
187 MLX5_CMD_OP_QUERY_RQT = 0x919,
188 MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930,
189 MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931,
190 MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932,
191 MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933,
192 MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934,
193 MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935,
194 MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936,
195 MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937,
196 MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938
199 struct mlx5_ifc_flow_table_fields_supported_bits {
202 u8 outer_ether_type[0x1];
204 u8 outer_first_prio[0x1];
205 u8 outer_first_cfi[0x1];
206 u8 outer_first_vid[0x1];
208 u8 outer_second_prio[0x1];
209 u8 outer_second_cfi[0x1];
210 u8 outer_second_vid[0x1];
215 u8 outer_ip_protocol[0x1];
216 u8 outer_ip_ecn[0x1];
217 u8 outer_ip_dscp[0x1];
218 u8 outer_udp_sport[0x1];
219 u8 outer_udp_dport[0x1];
220 u8 outer_tcp_sport[0x1];
221 u8 outer_tcp_dport[0x1];
222 u8 outer_tcp_flags[0x1];
223 u8 outer_gre_protocol[0x1];
224 u8 outer_gre_key[0x1];
225 u8 outer_vxlan_vni[0x1];
227 u8 source_eswitch_port[0x1];
231 u8 inner_ether_type[0x1];
233 u8 inner_first_prio[0x1];
234 u8 inner_first_cfi[0x1];
235 u8 inner_first_vid[0x1];
237 u8 inner_second_prio[0x1];
238 u8 inner_second_cfi[0x1];
239 u8 inner_second_vid[0x1];
244 u8 inner_ip_protocol[0x1];
245 u8 inner_ip_ecn[0x1];
246 u8 inner_ip_dscp[0x1];
247 u8 inner_udp_sport[0x1];
248 u8 inner_udp_dport[0x1];
249 u8 inner_tcp_sport[0x1];
250 u8 inner_tcp_dport[0x1];
251 u8 inner_tcp_flags[0x1];
257 struct mlx5_ifc_flow_table_prop_layout_bits {
262 u8 log_max_ft_size[0x6];
264 u8 max_ft_level[0x8];
269 u8 log_max_ft_num[0x8];
272 u8 log_max_destination[0x8];
275 u8 log_max_flow[0x8];
279 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support;
281 struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support;
284 struct mlx5_ifc_odp_per_transport_service_cap_bits {
294 struct mlx5_ifc_fte_match_set_lyr_2_4_bits {
329 struct mlx5_ifc_fte_match_set_misc_bits {
333 u8 source_port[0x10];
335 u8 outer_second_prio[0x3];
336 u8 outer_second_cfi[0x1];
337 u8 outer_second_vid[0xc];
338 u8 inner_second_prio[0x3];
339 u8 inner_second_cfi[0x1];
340 u8 inner_second_vid[0xc];
342 u8 outer_second_vlan_tag[0x1];
343 u8 inner_second_vlan_tag[0x1];
345 u8 gre_protocol[0x10];
356 u8 outer_ipv6_flow_label[0x14];
359 u8 inner_ipv6_flow_label[0x14];
364 struct mlx5_ifc_cmd_pas_bits {
371 struct mlx5_ifc_uint64_bits {
378 MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0,
379 MLX5_ADS_STAT_RATE_2_5GBPS = 0x7,
380 MLX5_ADS_STAT_RATE_10GBPS = 0x8,
381 MLX5_ADS_STAT_RATE_30GBPS = 0x9,
382 MLX5_ADS_STAT_RATE_5GBPS = 0xa,
383 MLX5_ADS_STAT_RATE_20GBPS = 0xb,
384 MLX5_ADS_STAT_RATE_40GBPS = 0xc,
385 MLX5_ADS_STAT_RATE_60GBPS = 0xd,
386 MLX5_ADS_STAT_RATE_80GBPS = 0xe,
387 MLX5_ADS_STAT_RATE_120GBPS = 0xf,
390 struct mlx5_ifc_ads_bits {
403 u8 src_addr_index[0x8];
412 u8 rgid_rip[16][0x8];
432 struct mlx5_ifc_flow_table_nic_cap_bits {
433 u8 reserved_0[0x200];
435 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;
437 u8 reserved_1[0x200];
439 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;
441 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit;
443 u8 reserved_2[0x200];
445 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer;
447 u8 reserved_3[0x7200];
450 struct mlx5_ifc_per_protocol_networking_offload_caps_bits {
454 u8 lro_psh_flag[0x1];
455 u8 lro_time_stamp[0x1];
457 u8 self_lb_en_modifiable[0x1];
461 u8 rss_ind_tbl_cap[0x4];
463 u8 tunnel_lso_const_out_ip_id[0x1];
465 u8 tunnel_statless_gre[0x1];
466 u8 tunnel_stateless_vxlan[0x1];
471 u8 lro_min_mss_size[0x10];
473 u8 reserved_7[0x120];
475 u8 lro_timer_supported_periods[4][0x20];
477 u8 reserved_8[0x600];
480 struct mlx5_ifc_roce_cap_bits {
489 u8 roce_version[0x8];
492 u8 r_roce_dest_udp_port[0x10];
494 u8 r_roce_max_src_udp_port[0x10];
495 u8 r_roce_min_src_udp_port[0x10];
498 u8 roce_address_table_size[0x10];
500 u8 reserved_6[0x700];
504 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0,
505 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2,
506 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4,
507 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8,
508 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10,
509 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20,
510 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40,
511 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80,
512 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100,
516 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1,
517 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2,
518 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4,
519 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8,
520 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10,
521 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20,
522 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40,
523 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80,
524 MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100,
527 struct mlx5_ifc_atomic_caps_bits {
530 u8 atomic_req_endianness[0x1];
536 u8 atomic_operations[0x10];
539 u8 atomic_size_qp[0x10];
542 u8 atomic_size_dc[0x10];
544 u8 reserved_6[0x720];
547 struct mlx5_ifc_odp_cap_bits {
555 struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps;
557 struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps;
559 struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps;
561 u8 reserved_3[0x720];
565 MLX5_WQ_TYPE_LINKED_LIST = 0x0,
566 MLX5_WQ_TYPE_CYCLIC = 0x1,
567 MLX5_WQ_TYPE_STRQ = 0x2,
571 MLX5_WQ_END_PAD_MODE_NONE = 0x0,
572 MLX5_WQ_END_PAD_MODE_ALIGN = 0x1,
576 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0,
577 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1,
578 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2,
579 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3,
580 MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4,
584 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0,
585 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1,
586 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2,
587 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3,
588 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4,
589 MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5,
593 MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0,
594 MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1,
598 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0,
599 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1,
600 MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3,
604 MLX5_CAP_PORT_TYPE_IB = 0x0,
605 MLX5_CAP_PORT_TYPE_ETH = 0x1,
608 struct mlx5_ifc_cmd_hca_cap_bits {
611 u8 log_max_srq_sz[0x8];
612 u8 log_max_qp_sz[0x8];
621 u8 log_max_cq_sz[0x8];
625 u8 log_max_eq_sz[0x8];
627 u8 log_max_mkey[0x6];
631 u8 max_indirection[0x8];
633 u8 log_max_mrw_sz[0x7];
635 u8 log_max_bsf_list_size[0x6];
637 u8 log_max_klm_list_size[0x6];
640 u8 log_max_ra_req_dc[0x6];
642 u8 log_max_ra_res_dc[0x6];
645 u8 log_max_ra_req_qp[0x6];
647 u8 log_max_ra_res_qp[0x6];
650 u8 cc_query_allowed[0x1];
651 u8 cc_modify_allowed[0x1];
653 u8 gid_table_size[0x10];
655 u8 out_of_seq_cnt[0x1];
656 u8 vport_counters[0x1];
659 u8 pkey_table_size[0x10];
661 u8 vport_group_manager[0x1];
662 u8 vhca_group_manager[0x1];
667 u8 nic_flow_table[0x1];
668 u8 eswitch_flow_table[0x1];
671 u8 local_ca_ack_delay[0x5];
678 u8 reserved_21[0x18];
680 u8 stat_rate_support[0x10];
684 u8 compact_address_vector[0x1];
686 u8 drain_sigerr[0x1];
687 u8 cmdif_checksum[0x2];
690 u8 wq_signature[0x1];
691 u8 sctr_data_cqe[0x1];
698 u8 eth_net_offloads[0x1];
705 u8 cq_moderation[0x1];
711 u8 scqe_break_moderation[0x1];
732 u8 pad_tx_eth_packet[0x1];
734 u8 log_bf_reg_size[0x5];
735 u8 reserved_38[0x10];
737 u8 reserved_39[0x10];
738 u8 max_wqe_sz_sq[0x10];
740 u8 reserved_40[0x10];
741 u8 max_wqe_sz_rq[0x10];
743 u8 reserved_41[0x10];
744 u8 max_wqe_sz_sq_dc[0x10];
749 u8 reserved_43[0x18];
753 u8 log_max_transport_domain[0x5];
757 u8 log_max_xrcd[0x5];
759 u8 reserved_47[0x20];
770 u8 basic_cyclic_rcv_wqe[0x1];
776 u8 log_max_rqt_size[0x5];
778 u8 log_max_tis_per_sq[0x5];
781 u8 log_max_stride_sz_rq[0x5];
783 u8 log_min_stride_sz_rq[0x5];
785 u8 log_max_stride_sz_sq[0x5];
787 u8 log_min_stride_sz_sq[0x5];
789 u8 reserved_60[0x1b];
790 u8 log_max_wq_sz[0x5];
792 u8 nic_vport_change_event[0x1];
794 u8 log_max_vlan_list[0x5];
796 u8 log_max_current_mc_list[0x5];
798 u8 log_max_current_uc_list[0x5];
800 u8 reserved_64[0x80];
803 u8 log_max_l2_table[0x5];
805 u8 log_uar_page_sz[0x10];
807 u8 reserved_67[0xe0];
809 u8 reserved_68[0x1f];
812 u8 cqe_zip_timeout[0x10];
813 u8 cqe_zip_max_num[0x10];
815 u8 reserved_69[0x220];
819 MLX5_DEST_FORMAT_STRUCT_DESTINATION_TYPE_FLOW_TABLE_ = 0x1,
820 MLX5_DEST_FORMAT_STRUCT_DESTINATION_TYPE_TIR = 0x2,
823 struct mlx5_ifc_dest_format_struct_bits {
824 u8 destination_type[0x8];
825 u8 destination_id[0x18];
830 struct mlx5_ifc_fte_match_param_bits {
831 struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers;
833 struct mlx5_ifc_fte_match_set_misc_bits misc_parameters;
835 struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers;
837 u8 reserved_0[0xa00];
841 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0,
842 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1,
843 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2,
844 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3,
845 MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4,
848 struct mlx5_ifc_rx_hash_field_select_bits {
849 u8 l3_prot_type[0x1];
850 u8 l4_prot_type[0x1];
851 u8 selected_fields[0x1e];
855 MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0,
856 MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1,
860 MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0,
861 MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1,
864 struct mlx5_ifc_wq_bits {
866 u8 wq_signature[0x1];
867 u8 end_padding_mode[0x2];
871 u8 hds_skip_first_sge[0x1];
872 u8 log2_hds_buf_size[0x3];
890 u8 log_wq_stride[0x4];
892 u8 log_wq_pg_sz[0x5];
896 u8 reserved_7[0x4e0];
898 struct mlx5_ifc_cmd_pas_bits pas[0];
901 struct mlx5_ifc_rq_num_bits {
906 struct mlx5_ifc_mac_address_layout_bits {
908 u8 mac_addr_47_32[0x10];
910 u8 mac_addr_31_0[0x20];
913 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits {
916 u8 min_time_between_cnps[0x20];
921 u8 cnp_802p_prio[0x3];
923 u8 reserved_3[0x720];
926 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits {
930 u8 clamp_tgt_rate[0x1];
932 u8 clamp_tgt_rate_after_time_inc[0x1];
937 u8 rpg_time_reset[0x20];
939 u8 rpg_byte_reset[0x20];
941 u8 rpg_threshold[0x20];
943 u8 rpg_max_rate[0x20];
945 u8 rpg_ai_rate[0x20];
947 u8 rpg_hai_rate[0x20];
951 u8 rpg_min_dec_fac[0x20];
953 u8 rpg_min_rate[0x20];
957 u8 rate_to_set_on_first_cnp[0x20];
961 u8 dce_tcp_rtt[0x20];
963 u8 rate_reduce_monitor_period[0x20];
967 u8 initial_alpha_value[0x20];
969 u8 reserved_7[0x4a0];
972 struct mlx5_ifc_cong_control_802_1qau_rp_bits {
975 u8 rppp_max_rps[0x20];
977 u8 rpg_time_reset[0x20];
979 u8 rpg_byte_reset[0x20];
981 u8 rpg_threshold[0x20];
983 u8 rpg_max_rate[0x20];
985 u8 rpg_ai_rate[0x20];
987 u8 rpg_hai_rate[0x20];
991 u8 rpg_min_dec_fac[0x20];
993 u8 rpg_min_rate[0x20];
995 u8 reserved_1[0x640];
999 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1,
1000 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2,
1001 MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4,
1004 struct mlx5_ifc_resize_field_select_bits {
1005 u8 resize_field_select[0x20];
1009 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1,
1010 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2,
1011 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4,
1012 MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8,
1015 struct mlx5_ifc_modify_field_select_bits {
1016 u8 modify_field_select[0x20];
1019 struct mlx5_ifc_field_select_r_roce_np_bits {
1020 u8 field_select_r_roce_np[0x20];
1023 struct mlx5_ifc_field_select_r_roce_rp_bits {
1024 u8 field_select_r_roce_rp[0x20];
1028 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4,
1029 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8,
1030 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10,
1031 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20,
1032 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40,
1033 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80,
1034 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100,
1035 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200,
1036 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400,
1037 MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800,
1040 struct mlx5_ifc_field_select_802_1qau_rp_bits {
1041 u8 field_select_8021qaurp[0x20];
1044 struct mlx5_ifc_phys_layer_cntrs_bits {
1045 u8 time_since_last_clear_high[0x20];
1047 u8 time_since_last_clear_low[0x20];
1049 u8 symbol_errors_high[0x20];
1051 u8 symbol_errors_low[0x20];
1053 u8 sync_headers_errors_high[0x20];
1055 u8 sync_headers_errors_low[0x20];
1057 u8 edpl_bip_errors_lane0_high[0x20];
1059 u8 edpl_bip_errors_lane0_low[0x20];
1061 u8 edpl_bip_errors_lane1_high[0x20];
1063 u8 edpl_bip_errors_lane1_low[0x20];
1065 u8 edpl_bip_errors_lane2_high[0x20];
1067 u8 edpl_bip_errors_lane2_low[0x20];
1069 u8 edpl_bip_errors_lane3_high[0x20];
1071 u8 edpl_bip_errors_lane3_low[0x20];
1073 u8 fc_fec_corrected_blocks_lane0_high[0x20];
1075 u8 fc_fec_corrected_blocks_lane0_low[0x20];
1077 u8 fc_fec_corrected_blocks_lane1_high[0x20];
1079 u8 fc_fec_corrected_blocks_lane1_low[0x20];
1081 u8 fc_fec_corrected_blocks_lane2_high[0x20];
1083 u8 fc_fec_corrected_blocks_lane2_low[0x20];
1085 u8 fc_fec_corrected_blocks_lane3_high[0x20];
1087 u8 fc_fec_corrected_blocks_lane3_low[0x20];
1089 u8 fc_fec_uncorrectable_blocks_lane0_high[0x20];
1091 u8 fc_fec_uncorrectable_blocks_lane0_low[0x20];
1093 u8 fc_fec_uncorrectable_blocks_lane1_high[0x20];
1095 u8 fc_fec_uncorrectable_blocks_lane1_low[0x20];
1097 u8 fc_fec_uncorrectable_blocks_lane2_high[0x20];
1099 u8 fc_fec_uncorrectable_blocks_lane2_low[0x20];
1101 u8 fc_fec_uncorrectable_blocks_lane3_high[0x20];
1103 u8 fc_fec_uncorrectable_blocks_lane3_low[0x20];
1105 u8 rs_fec_corrected_blocks_high[0x20];
1107 u8 rs_fec_corrected_blocks_low[0x20];
1109 u8 rs_fec_uncorrectable_blocks_high[0x20];
1111 u8 rs_fec_uncorrectable_blocks_low[0x20];
1113 u8 rs_fec_no_errors_blocks_high[0x20];
1115 u8 rs_fec_no_errors_blocks_low[0x20];
1117 u8 rs_fec_single_error_blocks_high[0x20];
1119 u8 rs_fec_single_error_blocks_low[0x20];
1121 u8 rs_fec_corrected_symbols_total_high[0x20];
1123 u8 rs_fec_corrected_symbols_total_low[0x20];
1125 u8 rs_fec_corrected_symbols_lane0_high[0x20];
1127 u8 rs_fec_corrected_symbols_lane0_low[0x20];
1129 u8 rs_fec_corrected_symbols_lane1_high[0x20];
1131 u8 rs_fec_corrected_symbols_lane1_low[0x20];
1133 u8 rs_fec_corrected_symbols_lane2_high[0x20];
1135 u8 rs_fec_corrected_symbols_lane2_low[0x20];
1137 u8 rs_fec_corrected_symbols_lane3_high[0x20];
1139 u8 rs_fec_corrected_symbols_lane3_low[0x20];
1141 u8 link_down_events[0x20];
1143 u8 successful_recovery_events[0x20];
1145 u8 reserved_0[0x180];
1148 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {
1149 u8 transmit_queue_high[0x20];
1151 u8 transmit_queue_low[0x20];
1153 u8 reserved_0[0x780];
1156 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
1157 u8 rx_octets_high[0x20];
1159 u8 rx_octets_low[0x20];
1161 u8 reserved_0[0xc0];
1163 u8 rx_frames_high[0x20];
1165 u8 rx_frames_low[0x20];
1167 u8 tx_octets_high[0x20];
1169 u8 tx_octets_low[0x20];
1171 u8 reserved_1[0xc0];
1173 u8 tx_frames_high[0x20];
1175 u8 tx_frames_low[0x20];
1177 u8 rx_pause_high[0x20];
1179 u8 rx_pause_low[0x20];
1181 u8 rx_pause_duration_high[0x20];
1183 u8 rx_pause_duration_low[0x20];
1185 u8 tx_pause_high[0x20];
1187 u8 tx_pause_low[0x20];
1189 u8 tx_pause_duration_high[0x20];
1191 u8 tx_pause_duration_low[0x20];
1193 u8 rx_pause_transition_high[0x20];
1195 u8 rx_pause_transition_low[0x20];
1197 u8 reserved_2[0x400];
1200 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1201 u8 port_transmit_wait_high[0x20];
1203 u8 port_transmit_wait_low[0x20];
1205 u8 reserved_0[0x780];
1208 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
1209 u8 dot3stats_alignment_errors_high[0x20];
1211 u8 dot3stats_alignment_errors_low[0x20];
1213 u8 dot3stats_fcs_errors_high[0x20];
1215 u8 dot3stats_fcs_errors_low[0x20];
1217 u8 dot3stats_single_collision_frames_high[0x20];
1219 u8 dot3stats_single_collision_frames_low[0x20];
1221 u8 dot3stats_multiple_collision_frames_high[0x20];
1223 u8 dot3stats_multiple_collision_frames_low[0x20];
1225 u8 dot3stats_sqe_test_errors_high[0x20];
1227 u8 dot3stats_sqe_test_errors_low[0x20];
1229 u8 dot3stats_deferred_transmissions_high[0x20];
1231 u8 dot3stats_deferred_transmissions_low[0x20];
1233 u8 dot3stats_late_collisions_high[0x20];
1235 u8 dot3stats_late_collisions_low[0x20];
1237 u8 dot3stats_excessive_collisions_high[0x20];
1239 u8 dot3stats_excessive_collisions_low[0x20];
1241 u8 dot3stats_internal_mac_transmit_errors_high[0x20];
1243 u8 dot3stats_internal_mac_transmit_errors_low[0x20];
1245 u8 dot3stats_carrier_sense_errors_high[0x20];
1247 u8 dot3stats_carrier_sense_errors_low[0x20];
1249 u8 dot3stats_frame_too_longs_high[0x20];
1251 u8 dot3stats_frame_too_longs_low[0x20];
1253 u8 dot3stats_internal_mac_receive_errors_high[0x20];
1255 u8 dot3stats_internal_mac_receive_errors_low[0x20];
1257 u8 dot3stats_symbol_errors_high[0x20];
1259 u8 dot3stats_symbol_errors_low[0x20];
1261 u8 dot3control_in_unknown_opcodes_high[0x20];
1263 u8 dot3control_in_unknown_opcodes_low[0x20];
1265 u8 dot3in_pause_frames_high[0x20];
1267 u8 dot3in_pause_frames_low[0x20];
1269 u8 dot3out_pause_frames_high[0x20];
1271 u8 dot3out_pause_frames_low[0x20];
1273 u8 reserved_0[0x3c0];
1276 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits {
1277 u8 ether_stats_drop_events_high[0x20];
1279 u8 ether_stats_drop_events_low[0x20];
1281 u8 ether_stats_octets_high[0x20];
1283 u8 ether_stats_octets_low[0x20];
1285 u8 ether_stats_pkts_high[0x20];
1287 u8 ether_stats_pkts_low[0x20];
1289 u8 ether_stats_broadcast_pkts_high[0x20];
1291 u8 ether_stats_broadcast_pkts_low[0x20];
1293 u8 ether_stats_multicast_pkts_high[0x20];
1295 u8 ether_stats_multicast_pkts_low[0x20];
1297 u8 ether_stats_crc_align_errors_high[0x20];
1299 u8 ether_stats_crc_align_errors_low[0x20];
1301 u8 ether_stats_undersize_pkts_high[0x20];
1303 u8 ether_stats_undersize_pkts_low[0x20];
1305 u8 ether_stats_oversize_pkts_high[0x20];
1307 u8 ether_stats_oversize_pkts_low[0x20];
1309 u8 ether_stats_fragments_high[0x20];
1311 u8 ether_stats_fragments_low[0x20];
1313 u8 ether_stats_jabbers_high[0x20];
1315 u8 ether_stats_jabbers_low[0x20];
1317 u8 ether_stats_collisions_high[0x20];
1319 u8 ether_stats_collisions_low[0x20];
1321 u8 ether_stats_pkts64octets_high[0x20];
1323 u8 ether_stats_pkts64octets_low[0x20];
1325 u8 ether_stats_pkts65to127octets_high[0x20];
1327 u8 ether_stats_pkts65to127octets_low[0x20];
1329 u8 ether_stats_pkts128to255octets_high[0x20];
1331 u8 ether_stats_pkts128to255octets_low[0x20];
1333 u8 ether_stats_pkts256to511octets_high[0x20];
1335 u8 ether_stats_pkts256to511octets_low[0x20];
1337 u8 ether_stats_pkts512to1023octets_high[0x20];
1339 u8 ether_stats_pkts512to1023octets_low[0x20];
1341 u8 ether_stats_pkts1024to1518octets_high[0x20];
1343 u8 ether_stats_pkts1024to1518octets_low[0x20];
1345 u8 ether_stats_pkts1519to2047octets_high[0x20];
1347 u8 ether_stats_pkts1519to2047octets_low[0x20];
1349 u8 ether_stats_pkts2048to4095octets_high[0x20];
1351 u8 ether_stats_pkts2048to4095octets_low[0x20];
1353 u8 ether_stats_pkts4096to8191octets_high[0x20];
1355 u8 ether_stats_pkts4096to8191octets_low[0x20];
1357 u8 ether_stats_pkts8192to10239octets_high[0x20];
1359 u8 ether_stats_pkts8192to10239octets_low[0x20];
1361 u8 reserved_0[0x280];
1364 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits {
1365 u8 if_in_octets_high[0x20];
1367 u8 if_in_octets_low[0x20];
1369 u8 if_in_ucast_pkts_high[0x20];
1371 u8 if_in_ucast_pkts_low[0x20];
1373 u8 if_in_discards_high[0x20];
1375 u8 if_in_discards_low[0x20];
1377 u8 if_in_errors_high[0x20];
1379 u8 if_in_errors_low[0x20];
1381 u8 if_in_unknown_protos_high[0x20];
1383 u8 if_in_unknown_protos_low[0x20];
1385 u8 if_out_octets_high[0x20];
1387 u8 if_out_octets_low[0x20];
1389 u8 if_out_ucast_pkts_high[0x20];
1391 u8 if_out_ucast_pkts_low[0x20];
1393 u8 if_out_discards_high[0x20];
1395 u8 if_out_discards_low[0x20];
1397 u8 if_out_errors_high[0x20];
1399 u8 if_out_errors_low[0x20];
1401 u8 if_in_multicast_pkts_high[0x20];
1403 u8 if_in_multicast_pkts_low[0x20];
1405 u8 if_in_broadcast_pkts_high[0x20];
1407 u8 if_in_broadcast_pkts_low[0x20];
1409 u8 if_out_multicast_pkts_high[0x20];
1411 u8 if_out_multicast_pkts_low[0x20];
1413 u8 if_out_broadcast_pkts_high[0x20];
1415 u8 if_out_broadcast_pkts_low[0x20];
1417 u8 reserved_0[0x480];
1420 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits {
1421 u8 a_frames_transmitted_ok_high[0x20];
1423 u8 a_frames_transmitted_ok_low[0x20];
1425 u8 a_frames_received_ok_high[0x20];
1427 u8 a_frames_received_ok_low[0x20];
1429 u8 a_frame_check_sequence_errors_high[0x20];
1431 u8 a_frame_check_sequence_errors_low[0x20];
1433 u8 a_alignment_errors_high[0x20];
1435 u8 a_alignment_errors_low[0x20];
1437 u8 a_octets_transmitted_ok_high[0x20];
1439 u8 a_octets_transmitted_ok_low[0x20];
1441 u8 a_octets_received_ok_high[0x20];
1443 u8 a_octets_received_ok_low[0x20];
1445 u8 a_multicast_frames_xmitted_ok_high[0x20];
1447 u8 a_multicast_frames_xmitted_ok_low[0x20];
1449 u8 a_broadcast_frames_xmitted_ok_high[0x20];
1451 u8 a_broadcast_frames_xmitted_ok_low[0x20];
1453 u8 a_multicast_frames_received_ok_high[0x20];
1455 u8 a_multicast_frames_received_ok_low[0x20];
1457 u8 a_broadcast_frames_received_ok_high[0x20];
1459 u8 a_broadcast_frames_received_ok_low[0x20];
1461 u8 a_in_range_length_errors_high[0x20];
1463 u8 a_in_range_length_errors_low[0x20];
1465 u8 a_out_of_range_length_field_high[0x20];
1467 u8 a_out_of_range_length_field_low[0x20];
1469 u8 a_frame_too_long_errors_high[0x20];
1471 u8 a_frame_too_long_errors_low[0x20];
1473 u8 a_symbol_error_during_carrier_high[0x20];
1475 u8 a_symbol_error_during_carrier_low[0x20];
1477 u8 a_mac_control_frames_transmitted_high[0x20];
1479 u8 a_mac_control_frames_transmitted_low[0x20];
1481 u8 a_mac_control_frames_received_high[0x20];
1483 u8 a_mac_control_frames_received_low[0x20];
1485 u8 a_unsupported_opcodes_received_high[0x20];
1487 u8 a_unsupported_opcodes_received_low[0x20];
1489 u8 a_pause_mac_ctrl_frames_received_high[0x20];
1491 u8 a_pause_mac_ctrl_frames_received_low[0x20];
1493 u8 a_pause_mac_ctrl_frames_transmitted_high[0x20];
1495 u8 a_pause_mac_ctrl_frames_transmitted_low[0x20];
1497 u8 reserved_0[0x300];
1500 struct mlx5_ifc_cmd_inter_comp_event_bits {
1501 u8 command_completion_vector[0x20];
1503 u8 reserved_0[0xc0];
1506 struct mlx5_ifc_stall_vl_event_bits {
1507 u8 reserved_0[0x18];
1512 u8 reserved_2[0xa0];
1515 struct mlx5_ifc_db_bf_congestion_event_bits {
1516 u8 event_subtype[0x8];
1518 u8 congestion_level[0x8];
1521 u8 reserved_2[0xa0];
1524 struct mlx5_ifc_gpio_event_bits {
1525 u8 reserved_0[0x60];
1527 u8 gpio_event_hi[0x20];
1529 u8 gpio_event_lo[0x20];
1531 u8 reserved_1[0x40];
1534 struct mlx5_ifc_port_state_change_event_bits {
1535 u8 reserved_0[0x40];
1538 u8 reserved_1[0x1c];
1540 u8 reserved_2[0x80];
1543 struct mlx5_ifc_dropped_packet_logged_bits {
1544 u8 reserved_0[0xe0];
1548 MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1,
1549 MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2,
1552 struct mlx5_ifc_cq_error_bits {
1556 u8 reserved_1[0x20];
1558 u8 reserved_2[0x18];
1561 u8 reserved_3[0x80];
1564 struct mlx5_ifc_rdma_page_fault_event_bits {
1565 u8 bytes_committed[0x20];
1569 u8 reserved_0[0x10];
1570 u8 packet_len[0x10];
1572 u8 rdma_op_len[0x20];
1583 struct mlx5_ifc_wqe_associated_page_fault_event_bits {
1584 u8 bytes_committed[0x20];
1586 u8 reserved_0[0x10];
1589 u8 reserved_1[0x10];
1592 u8 reserved_2[0x60];
1601 struct mlx5_ifc_qp_events_bits {
1602 u8 reserved_0[0xa0];
1605 u8 reserved_1[0x18];
1608 u8 qpn_rqn_sqn[0x18];
1611 struct mlx5_ifc_dct_events_bits {
1612 u8 reserved_0[0xc0];
1615 u8 dct_number[0x18];
1618 struct mlx5_ifc_comp_event_bits {
1619 u8 reserved_0[0xc0];
1626 MLX5_QPC_STATE_RST = 0x0,
1627 MLX5_QPC_STATE_INIT = 0x1,
1628 MLX5_QPC_STATE_RTR = 0x2,
1629 MLX5_QPC_STATE_RTS = 0x3,
1630 MLX5_QPC_STATE_SQER = 0x4,
1631 MLX5_QPC_STATE_ERR = 0x6,
1632 MLX5_QPC_STATE_SQD = 0x7,
1633 MLX5_QPC_STATE_SUSPENDED = 0x9,
1637 MLX5_QPC_ST_RC = 0x0,
1638 MLX5_QPC_ST_UC = 0x1,
1639 MLX5_QPC_ST_UD = 0x2,
1640 MLX5_QPC_ST_XRC = 0x3,
1641 MLX5_QPC_ST_DCI = 0x5,
1642 MLX5_QPC_ST_QP0 = 0x7,
1643 MLX5_QPC_ST_QP1 = 0x8,
1644 MLX5_QPC_ST_RAW_DATAGRAM = 0x9,
1645 MLX5_QPC_ST_REG_UMR = 0xc,
1649 MLX5_QPC_PM_STATE_ARMED = 0x0,
1650 MLX5_QPC_PM_STATE_REARM = 0x1,
1651 MLX5_QPC_PM_STATE_RESERVED = 0x2,
1652 MLX5_QPC_PM_STATE_MIGRATED = 0x3,
1656 MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0,
1657 MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1,
1661 MLX5_QPC_MTU_256_BYTES = 0x1,
1662 MLX5_QPC_MTU_512_BYTES = 0x2,
1663 MLX5_QPC_MTU_1K_BYTES = 0x3,
1664 MLX5_QPC_MTU_2K_BYTES = 0x4,
1665 MLX5_QPC_MTU_4K_BYTES = 0x5,
1666 MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7,
1670 MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1,
1671 MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2,
1672 MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3,
1673 MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4,
1674 MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5,
1675 MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6,
1676 MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7,
1677 MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8,
1681 MLX5_QPC_CS_REQ_DISABLE = 0x0,
1682 MLX5_QPC_CS_REQ_UP_TO_32B = 0x11,
1683 MLX5_QPC_CS_REQ_UP_TO_64B = 0x22,
1687 MLX5_QPC_CS_RES_DISABLE = 0x0,
1688 MLX5_QPC_CS_RES_UP_TO_32B = 0x1,
1689 MLX5_QPC_CS_RES_UP_TO_64B = 0x2,
1692 struct mlx5_ifc_qpc_bits {
1699 u8 end_padding_mode[0x2];
1702 u8 wq_signature[0x1];
1703 u8 block_lb_mc[0x1];
1704 u8 atomic_like_write_en[0x1];
1705 u8 latency_sensitive[0x1];
1707 u8 drain_sigerr[0x1];
1712 u8 log_msg_max[0x5];
1714 u8 log_rq_size[0x4];
1715 u8 log_rq_stride[0x3];
1717 u8 log_sq_size[0x4];
1722 u8 counter_set_id[0x8];
1726 u8 user_index[0x18];
1728 u8 reserved_10[0x3];
1729 u8 log_page_size[0x5];
1730 u8 remote_qpn[0x18];
1732 struct mlx5_ifc_ads_bits primary_address_path;
1734 struct mlx5_ifc_ads_bits secondary_address_path;
1736 u8 log_ack_req_freq[0x4];
1737 u8 reserved_11[0x4];
1738 u8 log_sra_max[0x3];
1739 u8 reserved_12[0x2];
1740 u8 retry_count[0x3];
1742 u8 reserved_13[0x1];
1744 u8 cur_rnr_retry[0x3];
1745 u8 cur_retry_count[0x3];
1746 u8 reserved_14[0x5];
1748 u8 reserved_15[0x20];
1750 u8 reserved_16[0x8];
1751 u8 next_send_psn[0x18];
1753 u8 reserved_17[0x8];
1756 u8 reserved_18[0x40];
1758 u8 reserved_19[0x8];
1759 u8 last_acked_psn[0x18];
1761 u8 reserved_20[0x8];
1764 u8 reserved_21[0x8];
1765 u8 log_rra_max[0x3];
1766 u8 reserved_22[0x1];
1767 u8 atomic_mode[0x4];
1771 u8 reserved_23[0x1];
1772 u8 page_offset[0x6];
1773 u8 reserved_24[0x3];
1774 u8 cd_slave_receive[0x1];
1775 u8 cd_slave_send[0x1];
1778 u8 reserved_25[0x3];
1779 u8 min_rnr_nak[0x5];
1780 u8 next_rcv_psn[0x18];
1782 u8 reserved_26[0x8];
1785 u8 reserved_27[0x8];
1792 u8 reserved_28[0x5];
1796 u8 reserved_29[0x8];
1799 u8 hw_sq_wqebb_counter[0x10];
1800 u8 sw_sq_wqebb_counter[0x10];
1802 u8 hw_rq_counter[0x20];
1804 u8 sw_rq_counter[0x20];
1806 u8 reserved_30[0x20];
1808 u8 reserved_31[0xf];
1813 u8 dc_access_key[0x40];
1815 u8 reserved_32[0xc0];
1818 struct mlx5_ifc_roce_addr_layout_bits {
1819 u8 source_l3_address[16][0x8];
1824 u8 source_mac_47_32[0x10];
1826 u8 source_mac_31_0[0x20];
1828 u8 reserved_1[0x14];
1829 u8 roce_l3_type[0x4];
1830 u8 roce_version[0x8];
1832 u8 reserved_2[0x20];
1835 union mlx5_ifc_hca_cap_union_bits {
1836 struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap;
1837 struct mlx5_ifc_odp_cap_bits odp_cap;
1838 struct mlx5_ifc_atomic_caps_bits atomic_caps;
1839 struct mlx5_ifc_roce_cap_bits roce_cap;
1840 struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps;
1841 struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap;
1842 u8 reserved_0[0x8000];
1846 MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1,
1847 MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2,
1848 MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4,
1851 struct mlx5_ifc_flow_context_bits {
1852 u8 reserved_0[0x20];
1859 u8 reserved_2[0x10];
1863 u8 destination_list_size[0x18];
1865 u8 reserved_4[0x160];
1867 struct mlx5_ifc_fte_match_param_bits match_value;
1869 u8 reserved_5[0x600];
1871 struct mlx5_ifc_dest_format_struct_bits destination[0];
1875 MLX5_XRC_SRQC_STATE_GOOD = 0x0,
1876 MLX5_XRC_SRQC_STATE_ERROR = 0x1,
1879 struct mlx5_ifc_xrc_srqc_bits {
1881 u8 log_xrc_srq_size[0x4];
1882 u8 reserved_0[0x18];
1884 u8 wq_signature[0x1];
1888 u8 basic_cyclic_rcv_wqe[0x1];
1889 u8 log_rq_stride[0x3];
1892 u8 page_offset[0x6];
1896 u8 reserved_3[0x20];
1898 u8 user_index_equal_xrc_srqn[0x1];
1900 u8 log_page_size[0x6];
1901 u8 user_index[0x18];
1903 u8 reserved_5[0x20];
1911 u8 reserved_7[0x40];
1913 u8 db_record_addr_h[0x20];
1915 u8 db_record_addr_l[0x1e];
1918 u8 reserved_9[0x80];
1921 struct mlx5_ifc_traffic_counter_bits {
1927 struct mlx5_ifc_tisc_bits {
1930 u8 reserved_1[0x10];
1932 u8 reserved_2[0x100];
1935 u8 transport_domain[0x18];
1937 u8 reserved_4[0x3c0];
1941 MLX5_TIRC_DISP_TYPE_DIRECT = 0x0,
1942 MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1,
1946 MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1,
1947 MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2,
1951 MLX5_RX_HASH_FN_NONE = 0x0,
1952 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
1953 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
1957 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1,
1958 MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2,
1961 struct mlx5_ifc_tirc_bits {
1962 u8 reserved_0[0x20];
1965 u8 reserved_1[0x1c];
1967 u8 reserved_2[0x40];
1970 u8 lro_timeout_period_usecs[0x10];
1971 u8 lro_enable_mask[0x4];
1972 u8 lro_max_ip_payload_size[0x8];
1974 u8 reserved_4[0x40];
1977 u8 inline_rqn[0x18];
1979 u8 rx_hash_symmetric[0x1];
1981 u8 tunneled_offload_en[0x1];
1983 u8 indirect_table[0x18];
1987 u8 self_lb_block[0x2];
1988 u8 transport_domain[0x18];
1990 u8 rx_hash_toeplitz_key[10][0x20];
1992 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer;
1994 struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner;
1996 u8 reserved_9[0x4c0];
2000 MLX5_SRQC_STATE_GOOD = 0x0,
2001 MLX5_SRQC_STATE_ERROR = 0x1,
2004 struct mlx5_ifc_srqc_bits {
2006 u8 log_srq_size[0x4];
2007 u8 reserved_0[0x18];
2009 u8 wq_signature[0x1];
2014 u8 log_rq_stride[0x3];
2017 u8 page_offset[0x6];
2021 u8 reserved_4[0x20];
2024 u8 log_page_size[0x6];
2025 u8 reserved_6[0x18];
2027 u8 reserved_7[0x20];
2035 u8 reserved_9[0x40];
2039 u8 reserved_10[0x80];
2043 MLX5_SQC_STATE_RST = 0x0,
2044 MLX5_SQC_STATE_RDY = 0x1,
2045 MLX5_SQC_STATE_ERR = 0x3,
2048 struct mlx5_ifc_sqc_bits {
2052 u8 flush_in_error_en[0x1];
2055 u8 reserved_1[0x14];
2058 u8 user_index[0x18];
2063 u8 reserved_4[0xa0];
2065 u8 tis_lst_sz[0x10];
2066 u8 reserved_5[0x10];
2068 u8 reserved_6[0x40];
2073 struct mlx5_ifc_wq_bits wq;
2076 struct mlx5_ifc_rqtc_bits {
2077 u8 reserved_0[0xa0];
2079 u8 reserved_1[0x10];
2080 u8 rqt_max_size[0x10];
2082 u8 reserved_2[0x10];
2083 u8 rqt_actual_size[0x10];
2085 u8 reserved_3[0x6a0];
2087 struct mlx5_ifc_rq_num_bits rq_num[0];
2091 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
2092 MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1,
2096 MLX5_RQC_STATE_RST = 0x0,
2097 MLX5_RQC_STATE_RDY = 0x1,
2098 MLX5_RQC_STATE_ERR = 0x3,
2101 struct mlx5_ifc_rqc_bits {
2105 u8 mem_rq_type[0x4];
2108 u8 flush_in_error_en[0x1];
2109 u8 reserved_2[0x12];
2112 u8 user_index[0x18];
2117 u8 counter_set_id[0x8];
2118 u8 reserved_5[0x18];
2123 u8 reserved_7[0xe0];
2125 struct mlx5_ifc_wq_bits wq;
2129 MLX5_RMPC_STATE_RDY = 0x1,
2130 MLX5_RMPC_STATE_ERR = 0x3,
2133 struct mlx5_ifc_rmpc_bits {
2136 u8 reserved_1[0x14];
2138 u8 basic_cyclic_rcv_wqe[0x1];
2139 u8 reserved_2[0x1f];
2141 u8 reserved_3[0x140];
2143 struct mlx5_ifc_wq_bits wq;
2146 struct mlx5_ifc_nic_vport_context_bits {
2147 u8 reserved_0[0x1f];
2150 u8 reserved_1[0x760];
2153 u8 allowed_list_type[0x3];
2155 u8 allowed_list_size[0xc];
2157 struct mlx5_ifc_mac_address_layout_bits permanent_address;
2159 u8 reserved_4[0x20];
2161 u8 current_uc_mac_address[0][0x40];
2165 MLX5_MKC_ACCESS_MODE_PA = 0x0,
2166 MLX5_MKC_ACCESS_MODE_MTT = 0x1,
2167 MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
2170 struct mlx5_ifc_mkc_bits {
2174 u8 small_fence_on_rdma_read_response[0x1];
2181 u8 access_mode[0x2];
2187 u8 reserved_3[0x20];
2193 u8 expected_sigerr_count[0x1];
2198 u8 start_addr[0x40];
2202 u8 bsf_octword_size[0x20];
2204 u8 reserved_6[0x80];
2206 u8 translations_octword_size[0x20];
2208 u8 reserved_7[0x1b];
2209 u8 log_page_size[0x5];
2211 u8 reserved_8[0x20];
2214 struct mlx5_ifc_pkey_bits {
2215 u8 reserved_0[0x10];
2219 struct mlx5_ifc_array128_auto_bits {
2220 u8 array128_auto[16][0x8];
2223 struct mlx5_ifc_hca_vport_context_bits {
2224 u8 field_select[0x20];
2226 u8 reserved_0[0xe0];
2228 u8 sm_virt_aware[0x1];
2231 u8 grh_required[0x1];
2233 u8 port_physical_state[0x4];
2234 u8 vport_state_policy[0x4];
2236 u8 vport_state[0x4];
2238 u8 reserved_2[0x20];
2240 u8 system_image_guid[0x40];
2248 u8 cap_mask1_field_select[0x20];
2252 u8 cap_mask2_field_select[0x20];
2254 u8 reserved_3[0x80];
2258 u8 init_type_reply[0x4];
2260 u8 subnet_timeout[0x5];
2266 u8 qkey_violation_counter[0x10];
2267 u8 pkey_violation_counter[0x10];
2269 u8 reserved_6[0xca0];
2273 MLX5_EQC_STATUS_OK = 0x0,
2274 MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa,
2278 MLX5_EQC_ST_ARMED = 0x9,
2279 MLX5_EQC_ST_FIRED = 0xa,
2282 struct mlx5_ifc_eqc_bits {
2291 u8 reserved_3[0x20];
2293 u8 reserved_4[0x14];
2294 u8 page_offset[0x6];
2298 u8 log_eq_size[0x5];
2301 u8 reserved_7[0x20];
2303 u8 reserved_8[0x18];
2307 u8 log_page_size[0x5];
2308 u8 reserved_10[0x18];
2310 u8 reserved_11[0x60];
2312 u8 reserved_12[0x8];
2313 u8 consumer_counter[0x18];
2315 u8 reserved_13[0x8];
2316 u8 producer_counter[0x18];
2318 u8 reserved_14[0x80];
2322 MLX5_DCTC_STATE_ACTIVE = 0x0,
2323 MLX5_DCTC_STATE_DRAINING = 0x1,
2324 MLX5_DCTC_STATE_DRAINED = 0x2,
2328 MLX5_DCTC_CS_RES_DISABLE = 0x0,
2329 MLX5_DCTC_CS_RES_NA = 0x1,
2330 MLX5_DCTC_CS_RES_UP_TO_64B = 0x2,
2334 MLX5_DCTC_MTU_256_BYTES = 0x1,
2335 MLX5_DCTC_MTU_512_BYTES = 0x2,
2336 MLX5_DCTC_MTU_1K_BYTES = 0x3,
2337 MLX5_DCTC_MTU_2K_BYTES = 0x4,
2338 MLX5_DCTC_MTU_4K_BYTES = 0x5,
2341 struct mlx5_ifc_dctc_bits {
2344 u8 reserved_1[0x18];
2347 u8 user_index[0x18];
2352 u8 counter_set_id[0x8];
2353 u8 atomic_mode[0x4];
2357 u8 atomic_like_write_en[0x1];
2358 u8 latency_sensitive[0x1];
2366 u8 min_rnr_nak[0x5];
2376 u8 reserved_10[0x4];
2377 u8 flow_label[0x14];
2379 u8 dc_access_key[0x40];
2381 u8 reserved_11[0x5];
2384 u8 pkey_index[0x10];
2386 u8 reserved_12[0x8];
2387 u8 my_addr_index[0x8];
2388 u8 reserved_13[0x8];
2391 u8 dc_access_key_violation_count[0x20];
2393 u8 reserved_14[0x14];
2399 u8 reserved_15[0x40];
2403 MLX5_CQC_STATUS_OK = 0x0,
2404 MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9,
2405 MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa,
2409 MLX5_CQC_CQE_SZ_64_BYTES = 0x0,
2410 MLX5_CQC_CQE_SZ_128_BYTES = 0x1,
2414 MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6,
2415 MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9,
2416 MLX5_CQC_ST_FIRED = 0xa,
2419 struct mlx5_ifc_cqc_bits {
2425 u8 scqe_break_moderation_en[0x1];
2429 u8 mini_cqe_res_format[0x2];
2433 u8 reserved_4[0x20];
2435 u8 reserved_5[0x14];
2436 u8 page_offset[0x6];
2440 u8 log_cq_size[0x5];
2445 u8 cq_max_count[0x10];
2447 u8 reserved_9[0x18];
2450 u8 reserved_10[0x3];
2451 u8 log_page_size[0x5];
2452 u8 reserved_11[0x18];
2454 u8 reserved_12[0x20];
2456 u8 reserved_13[0x8];
2457 u8 last_notified_index[0x18];
2459 u8 reserved_14[0x8];
2460 u8 last_solicit_index[0x18];
2462 u8 reserved_15[0x8];
2463 u8 consumer_counter[0x18];
2465 u8 reserved_16[0x8];
2466 u8 producer_counter[0x18];
2468 u8 reserved_17[0x40];
2473 union mlx5_ifc_cong_control_roce_ecn_auto_bits {
2474 struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp;
2475 struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp;
2476 struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np;
2477 u8 reserved_0[0x800];
2480 struct mlx5_ifc_query_adapter_param_block_bits {
2481 u8 reserved_0[0xc0];
2484 u8 ieee_vendor_id[0x18];
2486 u8 reserved_2[0x10];
2487 u8 vsd_vendor_id[0x10];
2491 u8 vsd_contd_psid[16][0x8];
2494 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits {
2495 struct mlx5_ifc_modify_field_select_bits modify_field_select;
2496 struct mlx5_ifc_resize_field_select_bits resize_field_select;
2497 u8 reserved_0[0x20];
2500 union mlx5_ifc_field_select_802_1_r_roce_auto_bits {
2501 struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp;
2502 struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp;
2503 struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np;
2504 u8 reserved_0[0x20];
2507 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
2508 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
2509 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
2510 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
2511 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
2512 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
2513 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
2514 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
2515 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
2516 u8 reserved_0[0x7c0];
2519 union mlx5_ifc_event_auto_bits {
2520 struct mlx5_ifc_comp_event_bits comp_event;
2521 struct mlx5_ifc_dct_events_bits dct_events;
2522 struct mlx5_ifc_qp_events_bits qp_events;
2523 struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event;
2524 struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event;
2525 struct mlx5_ifc_cq_error_bits cq_error;
2526 struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged;
2527 struct mlx5_ifc_port_state_change_event_bits port_state_change_event;
2528 struct mlx5_ifc_gpio_event_bits gpio_event;
2529 struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event;
2530 struct mlx5_ifc_stall_vl_event_bits stall_vl_event;
2531 struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event;
2532 u8 reserved_0[0xe0];
2535 struct mlx5_ifc_health_buffer_bits {
2536 u8 reserved_0[0x100];
2538 u8 assert_existptr[0x20];
2540 u8 assert_callra[0x20];
2542 u8 reserved_1[0x40];
2544 u8 fw_version[0x20];
2548 u8 reserved_2[0x20];
2550 u8 irisc_index[0x8];
2555 struct mlx5_ifc_register_loopback_control_bits {
2559 u8 reserved_1[0x10];
2561 u8 reserved_2[0x60];
2564 struct mlx5_ifc_teardown_hca_out_bits {
2566 u8 reserved_0[0x18];
2570 u8 reserved_1[0x40];
2574 MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0,
2575 MLX5_TEARDOWN_HCA_IN_PROFILE_PANIC_CLOSE = 0x1,
2578 struct mlx5_ifc_teardown_hca_in_bits {
2580 u8 reserved_0[0x10];
2582 u8 reserved_1[0x10];
2585 u8 reserved_2[0x10];
2588 u8 reserved_3[0x20];
2591 struct mlx5_ifc_sqerr2rts_qp_out_bits {
2593 u8 reserved_0[0x18];
2597 u8 reserved_1[0x40];
2600 struct mlx5_ifc_sqerr2rts_qp_in_bits {
2602 u8 reserved_0[0x10];
2604 u8 reserved_1[0x10];
2610 u8 reserved_3[0x20];
2612 u8 opt_param_mask[0x20];
2614 u8 reserved_4[0x20];
2616 struct mlx5_ifc_qpc_bits qpc;
2618 u8 reserved_5[0x80];
2621 struct mlx5_ifc_sqd2rts_qp_out_bits {
2623 u8 reserved_0[0x18];
2627 u8 reserved_1[0x40];
2630 struct mlx5_ifc_sqd2rts_qp_in_bits {
2632 u8 reserved_0[0x10];
2634 u8 reserved_1[0x10];
2640 u8 reserved_3[0x20];
2642 u8 opt_param_mask[0x20];
2644 u8 reserved_4[0x20];
2646 struct mlx5_ifc_qpc_bits qpc;
2648 u8 reserved_5[0x80];
2651 struct mlx5_ifc_set_roce_address_out_bits {
2653 u8 reserved_0[0x18];
2657 u8 reserved_1[0x40];
2660 struct mlx5_ifc_set_roce_address_in_bits {
2662 u8 reserved_0[0x10];
2664 u8 reserved_1[0x10];
2667 u8 roce_address_index[0x10];
2668 u8 reserved_2[0x10];
2670 u8 reserved_3[0x20];
2672 struct mlx5_ifc_roce_addr_layout_bits roce_address;
2675 struct mlx5_ifc_set_mad_demux_out_bits {
2677 u8 reserved_0[0x18];
2681 u8 reserved_1[0x40];
2685 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0,
2686 MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2,
2689 struct mlx5_ifc_set_mad_demux_in_bits {
2691 u8 reserved_0[0x10];
2693 u8 reserved_1[0x10];
2696 u8 reserved_2[0x20];
2700 u8 reserved_4[0x18];
2703 struct mlx5_ifc_set_l2_table_entry_out_bits {
2705 u8 reserved_0[0x18];
2709 u8 reserved_1[0x40];
2712 struct mlx5_ifc_set_l2_table_entry_in_bits {
2714 u8 reserved_0[0x10];
2716 u8 reserved_1[0x10];
2719 u8 reserved_2[0x60];
2722 u8 table_index[0x18];
2724 u8 reserved_4[0x20];
2726 u8 reserved_5[0x13];
2730 struct mlx5_ifc_mac_address_layout_bits mac_address;
2732 u8 reserved_6[0xc0];
2735 struct mlx5_ifc_set_issi_out_bits {
2737 u8 reserved_0[0x18];
2741 u8 reserved_1[0x40];
2744 struct mlx5_ifc_set_issi_in_bits {
2746 u8 reserved_0[0x10];
2748 u8 reserved_1[0x10];
2751 u8 reserved_2[0x10];
2752 u8 current_issi[0x10];
2754 u8 reserved_3[0x20];
2757 struct mlx5_ifc_set_hca_cap_out_bits {
2759 u8 reserved_0[0x18];
2763 u8 reserved_1[0x40];
2766 struct mlx5_ifc_set_hca_cap_in_bits {
2768 u8 reserved_0[0x10];
2770 u8 reserved_1[0x10];
2773 u8 reserved_2[0x40];
2775 union mlx5_ifc_hca_cap_union_bits capability;
2778 struct mlx5_ifc_set_fte_out_bits {
2780 u8 reserved_0[0x18];
2784 u8 reserved_1[0x40];
2787 struct mlx5_ifc_set_fte_in_bits {
2789 u8 reserved_0[0x10];
2791 u8 reserved_1[0x10];
2794 u8 reserved_2[0x40];
2797 u8 reserved_3[0x18];
2802 u8 reserved_5[0x40];
2804 u8 flow_index[0x20];
2806 u8 reserved_6[0xe0];
2808 struct mlx5_ifc_flow_context_bits flow_context;
2811 struct mlx5_ifc_rts2rts_qp_out_bits {
2813 u8 reserved_0[0x18];
2817 u8 reserved_1[0x40];
2820 struct mlx5_ifc_rts2rts_qp_in_bits {
2822 u8 reserved_0[0x10];
2824 u8 reserved_1[0x10];
2830 u8 reserved_3[0x20];
2832 u8 opt_param_mask[0x20];
2834 u8 reserved_4[0x20];
2836 struct mlx5_ifc_qpc_bits qpc;
2838 u8 reserved_5[0x80];
2841 struct mlx5_ifc_rtr2rts_qp_out_bits {
2843 u8 reserved_0[0x18];
2847 u8 reserved_1[0x40];
2850 struct mlx5_ifc_rtr2rts_qp_in_bits {
2852 u8 reserved_0[0x10];
2854 u8 reserved_1[0x10];
2860 u8 reserved_3[0x20];
2862 u8 opt_param_mask[0x20];
2864 u8 reserved_4[0x20];
2866 struct mlx5_ifc_qpc_bits qpc;
2868 u8 reserved_5[0x80];
2871 struct mlx5_ifc_rst2init_qp_out_bits {
2873 u8 reserved_0[0x18];
2877 u8 reserved_1[0x40];
2880 struct mlx5_ifc_rst2init_qp_in_bits {
2882 u8 reserved_0[0x10];
2884 u8 reserved_1[0x10];
2890 u8 reserved_3[0x20];
2892 u8 opt_param_mask[0x20];
2894 u8 reserved_4[0x20];
2896 struct mlx5_ifc_qpc_bits qpc;
2898 u8 reserved_5[0x80];
2901 struct mlx5_ifc_query_xrc_srq_out_bits {
2903 u8 reserved_0[0x18];
2907 u8 reserved_1[0x40];
2909 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
2911 u8 reserved_2[0x600];
2916 struct mlx5_ifc_query_xrc_srq_in_bits {
2918 u8 reserved_0[0x10];
2920 u8 reserved_1[0x10];
2926 u8 reserved_3[0x20];
2930 MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0,
2931 MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1,
2934 struct mlx5_ifc_query_vport_state_out_bits {
2936 u8 reserved_0[0x18];
2940 u8 reserved_1[0x20];
2942 u8 reserved_2[0x18];
2943 u8 admin_state[0x4];
2948 MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0,
2951 struct mlx5_ifc_query_vport_state_in_bits {
2953 u8 reserved_0[0x10];
2955 u8 reserved_1[0x10];
2958 u8 other_vport[0x1];
2960 u8 vport_number[0x10];
2962 u8 reserved_3[0x20];
2965 struct mlx5_ifc_query_vport_counter_out_bits {
2967 u8 reserved_0[0x18];
2971 u8 reserved_1[0x40];
2973 struct mlx5_ifc_traffic_counter_bits received_errors;
2975 struct mlx5_ifc_traffic_counter_bits transmit_errors;
2977 struct mlx5_ifc_traffic_counter_bits received_ib_unicast;
2979 struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast;
2981 struct mlx5_ifc_traffic_counter_bits received_ib_multicast;
2983 struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast;
2985 struct mlx5_ifc_traffic_counter_bits received_eth_broadcast;
2987 struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast;
2989 struct mlx5_ifc_traffic_counter_bits received_eth_unicast;
2991 struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast;
2993 struct mlx5_ifc_traffic_counter_bits received_eth_multicast;
2995 struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast;
2997 u8 reserved_2[0xa00];
3001 MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0,
3004 struct mlx5_ifc_query_vport_counter_in_bits {
3006 u8 reserved_0[0x10];
3008 u8 reserved_1[0x10];
3011 u8 other_vport[0x1];
3013 u8 vport_number[0x10];
3015 u8 reserved_3[0x60];
3018 u8 reserved_4[0x1f];
3020 u8 reserved_5[0x20];
3023 struct mlx5_ifc_query_tis_out_bits {
3025 u8 reserved_0[0x18];
3029 u8 reserved_1[0x40];
3031 struct mlx5_ifc_tisc_bits tis_context;
3034 struct mlx5_ifc_query_tis_in_bits {
3036 u8 reserved_0[0x10];
3038 u8 reserved_1[0x10];
3044 u8 reserved_3[0x20];
3047 struct mlx5_ifc_query_tir_out_bits {
3049 u8 reserved_0[0x18];
3053 u8 reserved_1[0xc0];
3055 struct mlx5_ifc_tirc_bits tir_context;
3058 struct mlx5_ifc_query_tir_in_bits {
3060 u8 reserved_0[0x10];
3062 u8 reserved_1[0x10];
3068 u8 reserved_3[0x20];
3071 struct mlx5_ifc_query_srq_out_bits {
3073 u8 reserved_0[0x18];
3077 u8 reserved_1[0x40];
3079 struct mlx5_ifc_srqc_bits srq_context_entry;
3081 u8 reserved_2[0x600];
3086 struct mlx5_ifc_query_srq_in_bits {
3088 u8 reserved_0[0x10];
3090 u8 reserved_1[0x10];
3096 u8 reserved_3[0x20];
3099 struct mlx5_ifc_query_sq_out_bits {
3101 u8 reserved_0[0x18];
3105 u8 reserved_1[0xc0];
3107 struct mlx5_ifc_sqc_bits sq_context;
3110 struct mlx5_ifc_query_sq_in_bits {
3112 u8 reserved_0[0x10];
3114 u8 reserved_1[0x10];
3120 u8 reserved_3[0x20];
3123 struct mlx5_ifc_query_special_contexts_out_bits {
3125 u8 reserved_0[0x18];
3129 u8 reserved_1[0x20];
3134 struct mlx5_ifc_query_special_contexts_in_bits {
3136 u8 reserved_0[0x10];
3138 u8 reserved_1[0x10];
3141 u8 reserved_2[0x40];
3144 struct mlx5_ifc_query_rqt_out_bits {
3146 u8 reserved_0[0x18];
3150 u8 reserved_1[0xc0];
3152 struct mlx5_ifc_rqtc_bits rqt_context;
3155 struct mlx5_ifc_query_rqt_in_bits {
3157 u8 reserved_0[0x10];
3159 u8 reserved_1[0x10];
3165 u8 reserved_3[0x20];
3168 struct mlx5_ifc_query_rq_out_bits {
3170 u8 reserved_0[0x18];
3174 u8 reserved_1[0xc0];
3176 struct mlx5_ifc_rqc_bits rq_context;
3179 struct mlx5_ifc_query_rq_in_bits {
3181 u8 reserved_0[0x10];
3183 u8 reserved_1[0x10];
3189 u8 reserved_3[0x20];
3192 struct mlx5_ifc_query_roce_address_out_bits {
3194 u8 reserved_0[0x18];
3198 u8 reserved_1[0x40];
3200 struct mlx5_ifc_roce_addr_layout_bits roce_address;
3203 struct mlx5_ifc_query_roce_address_in_bits {
3205 u8 reserved_0[0x10];
3207 u8 reserved_1[0x10];
3210 u8 roce_address_index[0x10];
3211 u8 reserved_2[0x10];
3213 u8 reserved_3[0x20];
3216 struct mlx5_ifc_query_rmp_out_bits {
3218 u8 reserved_0[0x18];
3222 u8 reserved_1[0xc0];
3224 struct mlx5_ifc_rmpc_bits rmp_context;
3227 struct mlx5_ifc_query_rmp_in_bits {
3229 u8 reserved_0[0x10];
3231 u8 reserved_1[0x10];
3237 u8 reserved_3[0x20];
3240 struct mlx5_ifc_query_qp_out_bits {
3242 u8 reserved_0[0x18];
3246 u8 reserved_1[0x40];
3248 u8 opt_param_mask[0x20];
3250 u8 reserved_2[0x20];
3252 struct mlx5_ifc_qpc_bits qpc;
3254 u8 reserved_3[0x80];
3259 struct mlx5_ifc_query_qp_in_bits {
3261 u8 reserved_0[0x10];
3263 u8 reserved_1[0x10];
3269 u8 reserved_3[0x20];
3272 struct mlx5_ifc_query_q_counter_out_bits {
3274 u8 reserved_0[0x18];
3278 u8 reserved_1[0x40];
3280 u8 rx_write_requests[0x20];
3282 u8 reserved_2[0x20];
3284 u8 rx_read_requests[0x20];
3286 u8 reserved_3[0x20];
3288 u8 rx_atomic_requests[0x20];
3290 u8 reserved_4[0x20];
3292 u8 rx_dct_connect[0x20];
3294 u8 reserved_5[0x20];
3296 u8 out_of_buffer[0x20];
3298 u8 reserved_6[0x20];
3300 u8 out_of_sequence[0x20];
3302 u8 reserved_7[0x620];
3305 struct mlx5_ifc_query_q_counter_in_bits {
3307 u8 reserved_0[0x10];
3309 u8 reserved_1[0x10];
3312 u8 reserved_2[0x80];
3315 u8 reserved_3[0x1f];
3317 u8 reserved_4[0x18];
3318 u8 counter_set_id[0x8];
3321 struct mlx5_ifc_query_pages_out_bits {
3323 u8 reserved_0[0x18];
3327 u8 reserved_1[0x10];
3328 u8 function_id[0x10];
3334 MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1,
3335 MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2,
3336 MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3,
3339 struct mlx5_ifc_query_pages_in_bits {
3341 u8 reserved_0[0x10];
3343 u8 reserved_1[0x10];
3346 u8 reserved_2[0x10];
3347 u8 function_id[0x10];
3349 u8 reserved_3[0x20];
3352 struct mlx5_ifc_query_nic_vport_context_out_bits {
3354 u8 reserved_0[0x18];
3358 u8 reserved_1[0x40];
3360 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
3363 struct mlx5_ifc_query_nic_vport_context_in_bits {
3365 u8 reserved_0[0x10];
3367 u8 reserved_1[0x10];
3370 u8 other_vport[0x1];
3372 u8 vport_number[0x10];
3375 u8 allowed_list_type[0x3];
3376 u8 reserved_4[0x18];
3379 struct mlx5_ifc_query_mkey_out_bits {
3381 u8 reserved_0[0x18];
3385 u8 reserved_1[0x40];
3387 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
3389 u8 reserved_2[0x600];
3391 u8 bsf0_klm0_pas_mtt0_1[16][0x8];
3393 u8 bsf1_klm1_pas_mtt2_3[16][0x8];
3396 struct mlx5_ifc_query_mkey_in_bits {
3398 u8 reserved_0[0x10];
3400 u8 reserved_1[0x10];
3404 u8 mkey_index[0x18];
3407 u8 reserved_3[0x1f];
3410 struct mlx5_ifc_query_mad_demux_out_bits {
3412 u8 reserved_0[0x18];
3416 u8 reserved_1[0x40];
3418 u8 mad_dumux_parameters_block[0x20];
3421 struct mlx5_ifc_query_mad_demux_in_bits {
3423 u8 reserved_0[0x10];
3425 u8 reserved_1[0x10];
3428 u8 reserved_2[0x40];
3431 struct mlx5_ifc_query_l2_table_entry_out_bits {
3433 u8 reserved_0[0x18];
3437 u8 reserved_1[0xa0];
3439 u8 reserved_2[0x13];
3443 struct mlx5_ifc_mac_address_layout_bits mac_address;
3445 u8 reserved_3[0xc0];
3448 struct mlx5_ifc_query_l2_table_entry_in_bits {
3450 u8 reserved_0[0x10];
3452 u8 reserved_1[0x10];
3455 u8 reserved_2[0x60];
3458 u8 table_index[0x18];
3460 u8 reserved_4[0x140];
3463 struct mlx5_ifc_query_issi_out_bits {
3465 u8 reserved_0[0x18];
3469 u8 reserved_1[0x10];
3470 u8 current_issi[0x10];
3472 u8 reserved_2[0xa0];
3474 u8 supported_issi_reserved[76][0x8];
3475 u8 supported_issi_dw0[0x20];
3478 struct mlx5_ifc_query_issi_in_bits {
3480 u8 reserved_0[0x10];
3482 u8 reserved_1[0x10];
3485 u8 reserved_2[0x40];
3488 struct mlx5_ifc_query_hca_vport_pkey_out_bits {
3490 u8 reserved_0[0x18];
3494 u8 reserved_1[0x40];
3496 struct mlx5_ifc_pkey_bits pkey[0];
3499 struct mlx5_ifc_query_hca_vport_pkey_in_bits {
3501 u8 reserved_0[0x10];
3503 u8 reserved_1[0x10];
3506 u8 other_vport[0x1];
3509 u8 vport_number[0x10];
3511 u8 reserved_3[0x10];
3512 u8 pkey_index[0x10];
3515 struct mlx5_ifc_query_hca_vport_gid_out_bits {
3517 u8 reserved_0[0x18];
3521 u8 reserved_1[0x20];
3524 u8 reserved_2[0x10];
3526 struct mlx5_ifc_array128_auto_bits gid[0];
3529 struct mlx5_ifc_query_hca_vport_gid_in_bits {
3531 u8 reserved_0[0x10];
3533 u8 reserved_1[0x10];
3536 u8 other_vport[0x1];
3539 u8 vport_number[0x10];
3541 u8 reserved_3[0x10];
3545 struct mlx5_ifc_query_hca_vport_context_out_bits {
3547 u8 reserved_0[0x18];
3551 u8 reserved_1[0x40];
3553 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
3556 struct mlx5_ifc_query_hca_vport_context_in_bits {
3558 u8 reserved_0[0x10];
3560 u8 reserved_1[0x10];
3563 u8 other_vport[0x1];
3566 u8 vport_number[0x10];
3568 u8 reserved_3[0x20];
3571 struct mlx5_ifc_query_hca_cap_out_bits {
3573 u8 reserved_0[0x18];
3577 u8 reserved_1[0x40];
3579 union mlx5_ifc_hca_cap_union_bits capability;
3582 struct mlx5_ifc_query_hca_cap_in_bits {
3584 u8 reserved_0[0x10];
3586 u8 reserved_1[0x10];
3589 u8 reserved_2[0x40];
3592 struct mlx5_ifc_query_flow_table_out_bits {
3594 u8 reserved_0[0x18];
3598 u8 reserved_1[0x80];
3605 u8 reserved_4[0x120];
3608 struct mlx5_ifc_query_flow_table_in_bits {
3610 u8 reserved_0[0x10];
3612 u8 reserved_1[0x10];
3615 u8 reserved_2[0x40];
3618 u8 reserved_3[0x18];
3623 u8 reserved_5[0x140];
3626 struct mlx5_ifc_query_fte_out_bits {
3628 u8 reserved_0[0x18];
3632 u8 reserved_1[0x1c0];
3634 struct mlx5_ifc_flow_context_bits flow_context;
3637 struct mlx5_ifc_query_fte_in_bits {
3639 u8 reserved_0[0x10];
3641 u8 reserved_1[0x10];
3644 u8 reserved_2[0x40];
3647 u8 reserved_3[0x18];
3652 u8 reserved_5[0x40];
3654 u8 flow_index[0x20];
3656 u8 reserved_6[0xe0];
3660 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
3661 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
3662 MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
3665 struct mlx5_ifc_query_flow_group_out_bits {
3667 u8 reserved_0[0x18];
3671 u8 reserved_1[0xa0];
3673 u8 start_flow_index[0x20];
3675 u8 reserved_2[0x20];
3677 u8 end_flow_index[0x20];
3679 u8 reserved_3[0xa0];
3681 u8 reserved_4[0x18];
3682 u8 match_criteria_enable[0x8];
3684 struct mlx5_ifc_fte_match_param_bits match_criteria;
3686 u8 reserved_5[0xe00];
3689 struct mlx5_ifc_query_flow_group_in_bits {
3691 u8 reserved_0[0x10];
3693 u8 reserved_1[0x10];
3696 u8 reserved_2[0x40];
3699 u8 reserved_3[0x18];
3706 u8 reserved_5[0x120];
3709 struct mlx5_ifc_query_eq_out_bits {
3711 u8 reserved_0[0x18];
3715 u8 reserved_1[0x40];
3717 struct mlx5_ifc_eqc_bits eq_context_entry;
3719 u8 reserved_2[0x40];
3721 u8 event_bitmask[0x40];
3723 u8 reserved_3[0x580];
3728 struct mlx5_ifc_query_eq_in_bits {
3730 u8 reserved_0[0x10];
3732 u8 reserved_1[0x10];
3735 u8 reserved_2[0x18];
3738 u8 reserved_3[0x20];
3741 struct mlx5_ifc_query_dct_out_bits {
3743 u8 reserved_0[0x18];
3747 u8 reserved_1[0x40];
3749 struct mlx5_ifc_dctc_bits dct_context_entry;
3751 u8 reserved_2[0x180];
3754 struct mlx5_ifc_query_dct_in_bits {
3756 u8 reserved_0[0x10];
3758 u8 reserved_1[0x10];
3764 u8 reserved_3[0x20];
3767 struct mlx5_ifc_query_cq_out_bits {
3769 u8 reserved_0[0x18];
3773 u8 reserved_1[0x40];
3775 struct mlx5_ifc_cqc_bits cq_context;
3777 u8 reserved_2[0x600];
3782 struct mlx5_ifc_query_cq_in_bits {
3784 u8 reserved_0[0x10];
3786 u8 reserved_1[0x10];
3792 u8 reserved_3[0x20];
3795 struct mlx5_ifc_query_cong_status_out_bits {
3797 u8 reserved_0[0x18];
3801 u8 reserved_1[0x20];
3805 u8 reserved_2[0x1e];
3808 struct mlx5_ifc_query_cong_status_in_bits {
3810 u8 reserved_0[0x10];
3812 u8 reserved_1[0x10];
3815 u8 reserved_2[0x18];
3817 u8 cong_protocol[0x4];
3819 u8 reserved_3[0x20];
3822 struct mlx5_ifc_query_cong_statistics_out_bits {
3824 u8 reserved_0[0x18];
3828 u8 reserved_1[0x40];
3834 u8 cnp_ignored_high[0x20];
3836 u8 cnp_ignored_low[0x20];
3838 u8 cnp_handled_high[0x20];
3840 u8 cnp_handled_low[0x20];
3842 u8 reserved_2[0x100];
3844 u8 time_stamp_high[0x20];
3846 u8 time_stamp_low[0x20];
3848 u8 accumulators_period[0x20];
3850 u8 ecn_marked_roce_packets_high[0x20];
3852 u8 ecn_marked_roce_packets_low[0x20];
3854 u8 cnps_sent_high[0x20];
3856 u8 cnps_sent_low[0x20];
3858 u8 reserved_3[0x560];
3861 struct mlx5_ifc_query_cong_statistics_in_bits {
3863 u8 reserved_0[0x10];
3865 u8 reserved_1[0x10];
3869 u8 reserved_2[0x1f];
3871 u8 reserved_3[0x20];
3874 struct mlx5_ifc_query_cong_params_out_bits {
3876 u8 reserved_0[0x18];
3880 u8 reserved_1[0x40];
3882 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
3885 struct mlx5_ifc_query_cong_params_in_bits {
3887 u8 reserved_0[0x10];
3889 u8 reserved_1[0x10];
3892 u8 reserved_2[0x1c];
3893 u8 cong_protocol[0x4];
3895 u8 reserved_3[0x20];
3898 struct mlx5_ifc_query_adapter_out_bits {
3900 u8 reserved_0[0x18];
3904 u8 reserved_1[0x40];
3906 struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct;
3909 struct mlx5_ifc_query_adapter_in_bits {
3911 u8 reserved_0[0x10];
3913 u8 reserved_1[0x10];
3916 u8 reserved_2[0x40];
3919 struct mlx5_ifc_qp_2rst_out_bits {
3921 u8 reserved_0[0x18];
3925 u8 reserved_1[0x40];
3928 struct mlx5_ifc_qp_2rst_in_bits {
3930 u8 reserved_0[0x10];
3932 u8 reserved_1[0x10];
3938 u8 reserved_3[0x20];
3941 struct mlx5_ifc_qp_2err_out_bits {
3943 u8 reserved_0[0x18];
3947 u8 reserved_1[0x40];
3950 struct mlx5_ifc_qp_2err_in_bits {
3952 u8 reserved_0[0x10];
3954 u8 reserved_1[0x10];
3960 u8 reserved_3[0x20];
3963 struct mlx5_ifc_page_fault_resume_out_bits {
3965 u8 reserved_0[0x18];
3969 u8 reserved_1[0x40];
3972 struct mlx5_ifc_page_fault_resume_in_bits {
3974 u8 reserved_0[0x10];
3976 u8 reserved_1[0x10];
3986 u8 reserved_3[0x20];
3989 struct mlx5_ifc_nop_out_bits {
3991 u8 reserved_0[0x18];
3995 u8 reserved_1[0x40];
3998 struct mlx5_ifc_nop_in_bits {
4000 u8 reserved_0[0x10];
4002 u8 reserved_1[0x10];
4005 u8 reserved_2[0x40];
4008 struct mlx5_ifc_modify_vport_state_out_bits {
4010 u8 reserved_0[0x18];
4014 u8 reserved_1[0x40];
4017 struct mlx5_ifc_modify_vport_state_in_bits {
4019 u8 reserved_0[0x10];
4021 u8 reserved_1[0x10];
4024 u8 other_vport[0x1];
4026 u8 vport_number[0x10];
4028 u8 reserved_3[0x18];
4029 u8 admin_state[0x4];
4033 struct mlx5_ifc_modify_tis_out_bits {
4035 u8 reserved_0[0x18];
4039 u8 reserved_1[0x40];
4042 struct mlx5_ifc_modify_tis_in_bits {
4044 u8 reserved_0[0x10];
4046 u8 reserved_1[0x10];
4052 u8 reserved_3[0x20];
4054 u8 modify_bitmask[0x40];
4056 u8 reserved_4[0x40];
4058 struct mlx5_ifc_tisc_bits ctx;
4061 struct mlx5_ifc_modify_tir_bitmask_bits {
4062 u8 reserved_0[0x20];
4064 u8 reserved_1[0x1b];
4070 struct mlx5_ifc_modify_tir_out_bits {
4072 u8 reserved_0[0x18];
4076 u8 reserved_1[0x40];
4079 struct mlx5_ifc_modify_tir_in_bits {
4081 u8 reserved_0[0x10];
4083 u8 reserved_1[0x10];
4089 u8 reserved_3[0x20];
4091 struct mlx5_ifc_modify_tir_bitmask_bits bitmask;
4093 u8 reserved_4[0x40];
4095 struct mlx5_ifc_tirc_bits ctx;
4098 struct mlx5_ifc_modify_sq_out_bits {
4100 u8 reserved_0[0x18];
4104 u8 reserved_1[0x40];
4107 struct mlx5_ifc_modify_sq_in_bits {
4109 u8 reserved_0[0x10];
4111 u8 reserved_1[0x10];
4118 u8 reserved_3[0x20];
4120 u8 modify_bitmask[0x40];
4122 u8 reserved_4[0x40];
4124 struct mlx5_ifc_sqc_bits ctx;
4127 struct mlx5_ifc_modify_rqt_out_bits {
4129 u8 reserved_0[0x18];
4133 u8 reserved_1[0x40];
4136 struct mlx5_ifc_rqt_bitmask_bits {
4143 struct mlx5_ifc_modify_rqt_in_bits {
4145 u8 reserved_0[0x10];
4147 u8 reserved_1[0x10];
4153 u8 reserved_3[0x20];
4155 struct mlx5_ifc_rqt_bitmask_bits bitmask;
4157 u8 reserved_4[0x40];
4159 struct mlx5_ifc_rqtc_bits ctx;
4162 struct mlx5_ifc_modify_rq_out_bits {
4164 u8 reserved_0[0x18];
4168 u8 reserved_1[0x40];
4171 struct mlx5_ifc_modify_rq_in_bits {
4173 u8 reserved_0[0x10];
4175 u8 reserved_1[0x10];
4182 u8 reserved_3[0x20];
4184 u8 modify_bitmask[0x40];
4186 u8 reserved_4[0x40];
4188 struct mlx5_ifc_rqc_bits ctx;
4191 struct mlx5_ifc_modify_rmp_out_bits {
4193 u8 reserved_0[0x18];
4197 u8 reserved_1[0x40];
4200 struct mlx5_ifc_rmp_bitmask_bits {
4207 struct mlx5_ifc_modify_rmp_in_bits {
4209 u8 reserved_0[0x10];
4211 u8 reserved_1[0x10];
4218 u8 reserved_3[0x20];
4220 struct mlx5_ifc_rmp_bitmask_bits bitmask;
4222 u8 reserved_4[0x40];
4224 struct mlx5_ifc_rmpc_bits ctx;
4227 struct mlx5_ifc_modify_nic_vport_context_out_bits {
4229 u8 reserved_0[0x18];
4233 u8 reserved_1[0x40];
4236 struct mlx5_ifc_modify_nic_vport_field_select_bits {
4237 u8 reserved_0[0x1c];
4238 u8 permanent_address[0x1];
4239 u8 addresses_list[0x1];
4244 struct mlx5_ifc_modify_nic_vport_context_in_bits {
4246 u8 reserved_0[0x10];
4248 u8 reserved_1[0x10];
4251 u8 other_vport[0x1];
4253 u8 vport_number[0x10];
4255 struct mlx5_ifc_modify_nic_vport_field_select_bits field_select;
4257 u8 reserved_3[0x780];
4259 struct mlx5_ifc_nic_vport_context_bits nic_vport_context;
4262 struct mlx5_ifc_modify_hca_vport_context_out_bits {
4264 u8 reserved_0[0x18];
4268 u8 reserved_1[0x40];
4271 struct mlx5_ifc_modify_hca_vport_context_in_bits {
4273 u8 reserved_0[0x10];
4275 u8 reserved_1[0x10];
4278 u8 other_vport[0x1];
4281 u8 vport_number[0x10];
4283 u8 reserved_3[0x20];
4285 struct mlx5_ifc_hca_vport_context_bits hca_vport_context;
4288 struct mlx5_ifc_modify_cq_out_bits {
4290 u8 reserved_0[0x18];
4294 u8 reserved_1[0x40];
4298 MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0,
4299 MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1,
4302 struct mlx5_ifc_modify_cq_in_bits {
4304 u8 reserved_0[0x10];
4306 u8 reserved_1[0x10];
4312 union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select;
4314 struct mlx5_ifc_cqc_bits cq_context;
4316 u8 reserved_3[0x600];
4321 struct mlx5_ifc_modify_cong_status_out_bits {
4323 u8 reserved_0[0x18];
4327 u8 reserved_1[0x40];
4330 struct mlx5_ifc_modify_cong_status_in_bits {
4332 u8 reserved_0[0x10];
4334 u8 reserved_1[0x10];
4337 u8 reserved_2[0x18];
4339 u8 cong_protocol[0x4];
4343 u8 reserved_3[0x1e];
4346 struct mlx5_ifc_modify_cong_params_out_bits {
4348 u8 reserved_0[0x18];
4352 u8 reserved_1[0x40];
4355 struct mlx5_ifc_modify_cong_params_in_bits {
4357 u8 reserved_0[0x10];
4359 u8 reserved_1[0x10];
4362 u8 reserved_2[0x1c];
4363 u8 cong_protocol[0x4];
4365 union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select;
4367 u8 reserved_3[0x80];
4369 union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters;
4372 struct mlx5_ifc_manage_pages_out_bits {
4374 u8 reserved_0[0x18];
4378 u8 output_num_entries[0x20];
4380 u8 reserved_1[0x20];
4386 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0,
4387 MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1,
4388 MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2,
4391 struct mlx5_ifc_manage_pages_in_bits {
4393 u8 reserved_0[0x10];
4395 u8 reserved_1[0x10];
4398 u8 reserved_2[0x10];
4399 u8 function_id[0x10];
4401 u8 input_num_entries[0x20];
4406 struct mlx5_ifc_mad_ifc_out_bits {
4408 u8 reserved_0[0x18];
4412 u8 reserved_1[0x40];
4414 u8 response_mad_packet[256][0x8];
4417 struct mlx5_ifc_mad_ifc_in_bits {
4419 u8 reserved_0[0x10];
4421 u8 reserved_1[0x10];
4424 u8 remote_lid[0x10];
4428 u8 reserved_3[0x20];
4433 struct mlx5_ifc_init_hca_out_bits {
4435 u8 reserved_0[0x18];
4439 u8 reserved_1[0x40];
4442 struct mlx5_ifc_init_hca_in_bits {
4444 u8 reserved_0[0x10];
4446 u8 reserved_1[0x10];
4449 u8 reserved_2[0x40];
4452 struct mlx5_ifc_init2rtr_qp_out_bits {
4454 u8 reserved_0[0x18];
4458 u8 reserved_1[0x40];
4461 struct mlx5_ifc_init2rtr_qp_in_bits {
4463 u8 reserved_0[0x10];
4465 u8 reserved_1[0x10];
4471 u8 reserved_3[0x20];
4473 u8 opt_param_mask[0x20];
4475 u8 reserved_4[0x20];
4477 struct mlx5_ifc_qpc_bits qpc;
4479 u8 reserved_5[0x80];
4482 struct mlx5_ifc_init2init_qp_out_bits {
4484 u8 reserved_0[0x18];
4488 u8 reserved_1[0x40];
4491 struct mlx5_ifc_init2init_qp_in_bits {
4493 u8 reserved_0[0x10];
4495 u8 reserved_1[0x10];
4501 u8 reserved_3[0x20];
4503 u8 opt_param_mask[0x20];
4505 u8 reserved_4[0x20];
4507 struct mlx5_ifc_qpc_bits qpc;
4509 u8 reserved_5[0x80];
4512 struct mlx5_ifc_get_dropped_packet_log_out_bits {
4514 u8 reserved_0[0x18];
4518 u8 reserved_1[0x40];
4520 u8 packet_headers_log[128][0x8];
4522 u8 packet_syndrome[64][0x8];
4525 struct mlx5_ifc_get_dropped_packet_log_in_bits {
4527 u8 reserved_0[0x10];
4529 u8 reserved_1[0x10];
4532 u8 reserved_2[0x40];
4535 struct mlx5_ifc_gen_eqe_in_bits {
4537 u8 reserved_0[0x10];
4539 u8 reserved_1[0x10];
4542 u8 reserved_2[0x18];
4545 u8 reserved_3[0x20];
4550 struct mlx5_ifc_gen_eq_out_bits {
4552 u8 reserved_0[0x18];
4556 u8 reserved_1[0x40];
4559 struct mlx5_ifc_enable_hca_out_bits {
4561 u8 reserved_0[0x18];
4565 u8 reserved_1[0x20];
4568 struct mlx5_ifc_enable_hca_in_bits {
4570 u8 reserved_0[0x10];
4572 u8 reserved_1[0x10];
4575 u8 reserved_2[0x10];
4576 u8 function_id[0x10];
4578 u8 reserved_3[0x20];
4581 struct mlx5_ifc_drain_dct_out_bits {
4583 u8 reserved_0[0x18];
4587 u8 reserved_1[0x40];
4590 struct mlx5_ifc_drain_dct_in_bits {
4592 u8 reserved_0[0x10];
4594 u8 reserved_1[0x10];
4600 u8 reserved_3[0x20];
4603 struct mlx5_ifc_disable_hca_out_bits {
4605 u8 reserved_0[0x18];
4609 u8 reserved_1[0x20];
4612 struct mlx5_ifc_disable_hca_in_bits {
4614 u8 reserved_0[0x10];
4616 u8 reserved_1[0x10];
4619 u8 reserved_2[0x10];
4620 u8 function_id[0x10];
4622 u8 reserved_3[0x20];
4625 struct mlx5_ifc_detach_from_mcg_out_bits {
4627 u8 reserved_0[0x18];
4631 u8 reserved_1[0x40];
4634 struct mlx5_ifc_detach_from_mcg_in_bits {
4636 u8 reserved_0[0x10];
4638 u8 reserved_1[0x10];
4644 u8 reserved_3[0x20];
4646 u8 multicast_gid[16][0x8];
4649 struct mlx5_ifc_destroy_xrc_srq_out_bits {
4651 u8 reserved_0[0x18];
4655 u8 reserved_1[0x40];
4658 struct mlx5_ifc_destroy_xrc_srq_in_bits {
4660 u8 reserved_0[0x10];
4662 u8 reserved_1[0x10];
4668 u8 reserved_3[0x20];
4671 struct mlx5_ifc_destroy_tis_out_bits {
4673 u8 reserved_0[0x18];
4677 u8 reserved_1[0x40];
4680 struct mlx5_ifc_destroy_tis_in_bits {
4682 u8 reserved_0[0x10];
4684 u8 reserved_1[0x10];
4690 u8 reserved_3[0x20];
4693 struct mlx5_ifc_destroy_tir_out_bits {
4695 u8 reserved_0[0x18];
4699 u8 reserved_1[0x40];
4702 struct mlx5_ifc_destroy_tir_in_bits {
4704 u8 reserved_0[0x10];
4706 u8 reserved_1[0x10];
4712 u8 reserved_3[0x20];
4715 struct mlx5_ifc_destroy_srq_out_bits {
4717 u8 reserved_0[0x18];
4721 u8 reserved_1[0x40];
4724 struct mlx5_ifc_destroy_srq_in_bits {
4726 u8 reserved_0[0x10];
4728 u8 reserved_1[0x10];
4734 u8 reserved_3[0x20];
4737 struct mlx5_ifc_destroy_sq_out_bits {
4739 u8 reserved_0[0x18];
4743 u8 reserved_1[0x40];
4746 struct mlx5_ifc_destroy_sq_in_bits {
4748 u8 reserved_0[0x10];
4750 u8 reserved_1[0x10];
4756 u8 reserved_3[0x20];
4759 struct mlx5_ifc_destroy_rqt_out_bits {
4761 u8 reserved_0[0x18];
4765 u8 reserved_1[0x40];
4768 struct mlx5_ifc_destroy_rqt_in_bits {
4770 u8 reserved_0[0x10];
4772 u8 reserved_1[0x10];
4778 u8 reserved_3[0x20];
4781 struct mlx5_ifc_destroy_rq_out_bits {
4783 u8 reserved_0[0x18];
4787 u8 reserved_1[0x40];
4790 struct mlx5_ifc_destroy_rq_in_bits {
4792 u8 reserved_0[0x10];
4794 u8 reserved_1[0x10];
4800 u8 reserved_3[0x20];
4803 struct mlx5_ifc_destroy_rmp_out_bits {
4805 u8 reserved_0[0x18];
4809 u8 reserved_1[0x40];
4812 struct mlx5_ifc_destroy_rmp_in_bits {
4814 u8 reserved_0[0x10];
4816 u8 reserved_1[0x10];
4822 u8 reserved_3[0x20];
4825 struct mlx5_ifc_destroy_qp_out_bits {
4827 u8 reserved_0[0x18];
4831 u8 reserved_1[0x40];
4834 struct mlx5_ifc_destroy_qp_in_bits {
4836 u8 reserved_0[0x10];
4838 u8 reserved_1[0x10];
4844 u8 reserved_3[0x20];
4847 struct mlx5_ifc_destroy_psv_out_bits {
4849 u8 reserved_0[0x18];
4853 u8 reserved_1[0x40];
4856 struct mlx5_ifc_destroy_psv_in_bits {
4858 u8 reserved_0[0x10];
4860 u8 reserved_1[0x10];
4866 u8 reserved_3[0x20];
4869 struct mlx5_ifc_destroy_mkey_out_bits {
4871 u8 reserved_0[0x18];
4875 u8 reserved_1[0x40];
4878 struct mlx5_ifc_destroy_mkey_in_bits {
4880 u8 reserved_0[0x10];
4882 u8 reserved_1[0x10];
4886 u8 mkey_index[0x18];
4888 u8 reserved_3[0x20];
4891 struct mlx5_ifc_destroy_flow_table_out_bits {
4893 u8 reserved_0[0x18];
4897 u8 reserved_1[0x40];
4900 struct mlx5_ifc_destroy_flow_table_in_bits {
4902 u8 reserved_0[0x10];
4904 u8 reserved_1[0x10];
4907 u8 reserved_2[0x40];
4910 u8 reserved_3[0x18];
4915 u8 reserved_5[0x140];
4918 struct mlx5_ifc_destroy_flow_group_out_bits {
4920 u8 reserved_0[0x18];
4924 u8 reserved_1[0x40];
4927 struct mlx5_ifc_destroy_flow_group_in_bits {
4929 u8 reserved_0[0x10];
4931 u8 reserved_1[0x10];
4934 u8 reserved_2[0x40];
4937 u8 reserved_3[0x18];
4944 u8 reserved_5[0x120];
4947 struct mlx5_ifc_destroy_eq_out_bits {
4949 u8 reserved_0[0x18];
4953 u8 reserved_1[0x40];
4956 struct mlx5_ifc_destroy_eq_in_bits {
4958 u8 reserved_0[0x10];
4960 u8 reserved_1[0x10];
4963 u8 reserved_2[0x18];
4966 u8 reserved_3[0x20];
4969 struct mlx5_ifc_destroy_dct_out_bits {
4971 u8 reserved_0[0x18];
4975 u8 reserved_1[0x40];
4978 struct mlx5_ifc_destroy_dct_in_bits {
4980 u8 reserved_0[0x10];
4982 u8 reserved_1[0x10];
4988 u8 reserved_3[0x20];
4991 struct mlx5_ifc_destroy_cq_out_bits {
4993 u8 reserved_0[0x18];
4997 u8 reserved_1[0x40];
5000 struct mlx5_ifc_destroy_cq_in_bits {
5002 u8 reserved_0[0x10];
5004 u8 reserved_1[0x10];
5010 u8 reserved_3[0x20];
5013 struct mlx5_ifc_delete_vxlan_udp_dport_out_bits {
5015 u8 reserved_0[0x18];
5019 u8 reserved_1[0x40];
5022 struct mlx5_ifc_delete_vxlan_udp_dport_in_bits {
5024 u8 reserved_0[0x10];
5026 u8 reserved_1[0x10];
5029 u8 reserved_2[0x20];
5031 u8 reserved_3[0x10];
5032 u8 vxlan_udp_port[0x10];
5035 struct mlx5_ifc_delete_l2_table_entry_out_bits {
5037 u8 reserved_0[0x18];
5041 u8 reserved_1[0x40];
5044 struct mlx5_ifc_delete_l2_table_entry_in_bits {
5046 u8 reserved_0[0x10];
5048 u8 reserved_1[0x10];
5051 u8 reserved_2[0x60];
5054 u8 table_index[0x18];
5056 u8 reserved_4[0x140];
5059 struct mlx5_ifc_delete_fte_out_bits {
5061 u8 reserved_0[0x18];
5065 u8 reserved_1[0x40];
5068 struct mlx5_ifc_delete_fte_in_bits {
5070 u8 reserved_0[0x10];
5072 u8 reserved_1[0x10];
5075 u8 reserved_2[0x40];
5078 u8 reserved_3[0x18];
5083 u8 reserved_5[0x40];
5085 u8 flow_index[0x20];
5087 u8 reserved_6[0xe0];
5090 struct mlx5_ifc_dealloc_xrcd_out_bits {
5092 u8 reserved_0[0x18];
5096 u8 reserved_1[0x40];
5099 struct mlx5_ifc_dealloc_xrcd_in_bits {
5101 u8 reserved_0[0x10];
5103 u8 reserved_1[0x10];
5109 u8 reserved_3[0x20];
5112 struct mlx5_ifc_dealloc_uar_out_bits {
5114 u8 reserved_0[0x18];
5118 u8 reserved_1[0x40];
5121 struct mlx5_ifc_dealloc_uar_in_bits {
5123 u8 reserved_0[0x10];
5125 u8 reserved_1[0x10];
5131 u8 reserved_3[0x20];
5134 struct mlx5_ifc_dealloc_transport_domain_out_bits {
5136 u8 reserved_0[0x18];
5140 u8 reserved_1[0x40];
5143 struct mlx5_ifc_dealloc_transport_domain_in_bits {
5145 u8 reserved_0[0x10];
5147 u8 reserved_1[0x10];
5151 u8 transport_domain[0x18];
5153 u8 reserved_3[0x20];
5156 struct mlx5_ifc_dealloc_q_counter_out_bits {
5158 u8 reserved_0[0x18];
5162 u8 reserved_1[0x40];
5165 struct mlx5_ifc_dealloc_q_counter_in_bits {
5167 u8 reserved_0[0x10];
5169 u8 reserved_1[0x10];
5172 u8 reserved_2[0x18];
5173 u8 counter_set_id[0x8];
5175 u8 reserved_3[0x20];
5178 struct mlx5_ifc_dealloc_pd_out_bits {
5180 u8 reserved_0[0x18];
5184 u8 reserved_1[0x40];
5187 struct mlx5_ifc_dealloc_pd_in_bits {
5189 u8 reserved_0[0x10];
5191 u8 reserved_1[0x10];
5197 u8 reserved_3[0x20];
5200 struct mlx5_ifc_create_xrc_srq_out_bits {
5202 u8 reserved_0[0x18];
5209 u8 reserved_2[0x20];
5212 struct mlx5_ifc_create_xrc_srq_in_bits {
5214 u8 reserved_0[0x10];
5216 u8 reserved_1[0x10];
5219 u8 reserved_2[0x40];
5221 struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
5223 u8 reserved_3[0x600];
5228 struct mlx5_ifc_create_tis_out_bits {
5230 u8 reserved_0[0x18];
5237 u8 reserved_2[0x20];
5240 struct mlx5_ifc_create_tis_in_bits {
5242 u8 reserved_0[0x10];
5244 u8 reserved_1[0x10];
5247 u8 reserved_2[0xc0];
5249 struct mlx5_ifc_tisc_bits ctx;
5252 struct mlx5_ifc_create_tir_out_bits {
5254 u8 reserved_0[0x18];
5261 u8 reserved_2[0x20];
5264 struct mlx5_ifc_create_tir_in_bits {
5266 u8 reserved_0[0x10];
5268 u8 reserved_1[0x10];
5271 u8 reserved_2[0xc0];
5273 struct mlx5_ifc_tirc_bits ctx;
5276 struct mlx5_ifc_create_srq_out_bits {
5278 u8 reserved_0[0x18];
5285 u8 reserved_2[0x20];
5288 struct mlx5_ifc_create_srq_in_bits {
5290 u8 reserved_0[0x10];
5292 u8 reserved_1[0x10];
5295 u8 reserved_2[0x40];
5297 struct mlx5_ifc_srqc_bits srq_context_entry;
5299 u8 reserved_3[0x600];
5304 struct mlx5_ifc_create_sq_out_bits {
5306 u8 reserved_0[0x18];
5313 u8 reserved_2[0x20];
5316 struct mlx5_ifc_create_sq_in_bits {
5318 u8 reserved_0[0x10];
5320 u8 reserved_1[0x10];
5323 u8 reserved_2[0xc0];
5325 struct mlx5_ifc_sqc_bits ctx;
5328 struct mlx5_ifc_create_rqt_out_bits {
5330 u8 reserved_0[0x18];
5337 u8 reserved_2[0x20];
5340 struct mlx5_ifc_create_rqt_in_bits {
5342 u8 reserved_0[0x10];
5344 u8 reserved_1[0x10];
5347 u8 reserved_2[0xc0];
5349 struct mlx5_ifc_rqtc_bits rqt_context;
5352 struct mlx5_ifc_create_rq_out_bits {
5354 u8 reserved_0[0x18];
5361 u8 reserved_2[0x20];
5364 struct mlx5_ifc_create_rq_in_bits {
5366 u8 reserved_0[0x10];
5368 u8 reserved_1[0x10];
5371 u8 reserved_2[0xc0];
5373 struct mlx5_ifc_rqc_bits ctx;
5376 struct mlx5_ifc_create_rmp_out_bits {
5378 u8 reserved_0[0x18];
5385 u8 reserved_2[0x20];
5388 struct mlx5_ifc_create_rmp_in_bits {
5390 u8 reserved_0[0x10];
5392 u8 reserved_1[0x10];
5395 u8 reserved_2[0xc0];
5397 struct mlx5_ifc_rmpc_bits ctx;
5400 struct mlx5_ifc_create_qp_out_bits {
5402 u8 reserved_0[0x18];
5409 u8 reserved_2[0x20];
5412 struct mlx5_ifc_create_qp_in_bits {
5414 u8 reserved_0[0x10];
5416 u8 reserved_1[0x10];
5419 u8 reserved_2[0x40];
5421 u8 opt_param_mask[0x20];
5423 u8 reserved_3[0x20];
5425 struct mlx5_ifc_qpc_bits qpc;
5427 u8 reserved_4[0x80];
5432 struct mlx5_ifc_create_psv_out_bits {
5434 u8 reserved_0[0x18];
5438 u8 reserved_1[0x40];
5441 u8 psv0_index[0x18];
5444 u8 psv1_index[0x18];
5447 u8 psv2_index[0x18];
5450 u8 psv3_index[0x18];
5453 struct mlx5_ifc_create_psv_in_bits {
5455 u8 reserved_0[0x10];
5457 u8 reserved_1[0x10];
5464 u8 reserved_3[0x20];
5467 struct mlx5_ifc_create_mkey_out_bits {
5469 u8 reserved_0[0x18];
5474 u8 mkey_index[0x18];
5476 u8 reserved_2[0x20];
5479 struct mlx5_ifc_create_mkey_in_bits {
5481 u8 reserved_0[0x10];
5483 u8 reserved_1[0x10];
5486 u8 reserved_2[0x20];
5489 u8 reserved_3[0x1f];
5491 struct mlx5_ifc_mkc_bits memory_key_mkey_entry;
5493 u8 reserved_4[0x80];
5495 u8 translations_octword_actual_size[0x20];
5497 u8 reserved_5[0x560];
5499 u8 klm_pas_mtt[0][0x20];
5502 struct mlx5_ifc_create_flow_table_out_bits {
5504 u8 reserved_0[0x18];
5511 u8 reserved_2[0x20];
5514 struct mlx5_ifc_create_flow_table_in_bits {
5516 u8 reserved_0[0x10];
5518 u8 reserved_1[0x10];
5521 u8 reserved_2[0x40];
5524 u8 reserved_3[0x18];
5526 u8 reserved_4[0x20];
5533 u8 reserved_7[0x120];
5536 struct mlx5_ifc_create_flow_group_out_bits {
5538 u8 reserved_0[0x18];
5545 u8 reserved_2[0x20];
5549 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0,
5550 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1,
5551 MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2,
5554 struct mlx5_ifc_create_flow_group_in_bits {
5556 u8 reserved_0[0x10];
5558 u8 reserved_1[0x10];
5561 u8 reserved_2[0x40];
5564 u8 reserved_3[0x18];
5569 u8 reserved_5[0x20];
5571 u8 start_flow_index[0x20];
5573 u8 reserved_6[0x20];
5575 u8 end_flow_index[0x20];
5577 u8 reserved_7[0xa0];
5579 u8 reserved_8[0x18];
5580 u8 match_criteria_enable[0x8];
5582 struct mlx5_ifc_fte_match_param_bits match_criteria;
5584 u8 reserved_9[0xe00];
5587 struct mlx5_ifc_create_eq_out_bits {
5589 u8 reserved_0[0x18];
5593 u8 reserved_1[0x18];
5596 u8 reserved_2[0x20];
5599 struct mlx5_ifc_create_eq_in_bits {
5601 u8 reserved_0[0x10];
5603 u8 reserved_1[0x10];
5606 u8 reserved_2[0x40];
5608 struct mlx5_ifc_eqc_bits eq_context_entry;
5610 u8 reserved_3[0x40];
5612 u8 event_bitmask[0x40];
5614 u8 reserved_4[0x580];
5619 struct mlx5_ifc_create_dct_out_bits {
5621 u8 reserved_0[0x18];
5628 u8 reserved_2[0x20];
5631 struct mlx5_ifc_create_dct_in_bits {
5633 u8 reserved_0[0x10];
5635 u8 reserved_1[0x10];
5638 u8 reserved_2[0x40];
5640 struct mlx5_ifc_dctc_bits dct_context_entry;
5642 u8 reserved_3[0x180];
5645 struct mlx5_ifc_create_cq_out_bits {
5647 u8 reserved_0[0x18];
5654 u8 reserved_2[0x20];
5657 struct mlx5_ifc_create_cq_in_bits {
5659 u8 reserved_0[0x10];
5661 u8 reserved_1[0x10];
5664 u8 reserved_2[0x40];
5666 struct mlx5_ifc_cqc_bits cq_context;
5668 u8 reserved_3[0x600];
5673 struct mlx5_ifc_config_int_moderation_out_bits {
5675 u8 reserved_0[0x18];
5681 u8 int_vector[0x10];
5683 u8 reserved_2[0x20];
5687 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0,
5688 MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1,
5691 struct mlx5_ifc_config_int_moderation_in_bits {
5693 u8 reserved_0[0x10];
5695 u8 reserved_1[0x10];
5700 u8 int_vector[0x10];
5702 u8 reserved_3[0x20];
5705 struct mlx5_ifc_attach_to_mcg_out_bits {
5707 u8 reserved_0[0x18];
5711 u8 reserved_1[0x40];
5714 struct mlx5_ifc_attach_to_mcg_in_bits {
5716 u8 reserved_0[0x10];
5718 u8 reserved_1[0x10];
5724 u8 reserved_3[0x20];
5726 u8 multicast_gid[16][0x8];
5729 struct mlx5_ifc_arm_xrc_srq_out_bits {
5731 u8 reserved_0[0x18];
5735 u8 reserved_1[0x40];
5739 MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1,
5742 struct mlx5_ifc_arm_xrc_srq_in_bits {
5744 u8 reserved_0[0x10];
5746 u8 reserved_1[0x10];
5752 u8 reserved_3[0x10];
5756 struct mlx5_ifc_arm_rq_out_bits {
5758 u8 reserved_0[0x18];
5762 u8 reserved_1[0x40];
5766 MLX5_ARM_RQ_IN_OP_MOD_SRQ_ = 0x1,
5769 struct mlx5_ifc_arm_rq_in_bits {
5771 u8 reserved_0[0x10];
5773 u8 reserved_1[0x10];
5777 u8 srq_number[0x18];
5779 u8 reserved_3[0x10];
5783 struct mlx5_ifc_arm_dct_out_bits {
5785 u8 reserved_0[0x18];
5789 u8 reserved_1[0x40];
5792 struct mlx5_ifc_arm_dct_in_bits {
5794 u8 reserved_0[0x10];
5796 u8 reserved_1[0x10];
5800 u8 dct_number[0x18];
5802 u8 reserved_3[0x20];
5805 struct mlx5_ifc_alloc_xrcd_out_bits {
5807 u8 reserved_0[0x18];
5814 u8 reserved_2[0x20];
5817 struct mlx5_ifc_alloc_xrcd_in_bits {
5819 u8 reserved_0[0x10];
5821 u8 reserved_1[0x10];
5824 u8 reserved_2[0x40];
5827 struct mlx5_ifc_alloc_uar_out_bits {
5829 u8 reserved_0[0x18];
5836 u8 reserved_2[0x20];
5839 struct mlx5_ifc_alloc_uar_in_bits {
5841 u8 reserved_0[0x10];
5843 u8 reserved_1[0x10];
5846 u8 reserved_2[0x40];
5849 struct mlx5_ifc_alloc_transport_domain_out_bits {
5851 u8 reserved_0[0x18];
5856 u8 transport_domain[0x18];
5858 u8 reserved_2[0x20];
5861 struct mlx5_ifc_alloc_transport_domain_in_bits {
5863 u8 reserved_0[0x10];
5865 u8 reserved_1[0x10];
5868 u8 reserved_2[0x40];
5871 struct mlx5_ifc_alloc_q_counter_out_bits {
5873 u8 reserved_0[0x18];
5877 u8 reserved_1[0x18];
5878 u8 counter_set_id[0x8];
5880 u8 reserved_2[0x20];
5883 struct mlx5_ifc_alloc_q_counter_in_bits {
5885 u8 reserved_0[0x10];
5887 u8 reserved_1[0x10];
5890 u8 reserved_2[0x40];
5893 struct mlx5_ifc_alloc_pd_out_bits {
5895 u8 reserved_0[0x18];
5902 u8 reserved_2[0x20];
5905 struct mlx5_ifc_alloc_pd_in_bits {
5907 u8 reserved_0[0x10];
5909 u8 reserved_1[0x10];
5912 u8 reserved_2[0x40];
5915 struct mlx5_ifc_add_vxlan_udp_dport_out_bits {
5917 u8 reserved_0[0x18];
5921 u8 reserved_1[0x40];
5924 struct mlx5_ifc_add_vxlan_udp_dport_in_bits {
5926 u8 reserved_0[0x10];
5928 u8 reserved_1[0x10];
5931 u8 reserved_2[0x20];
5933 u8 reserved_3[0x10];
5934 u8 vxlan_udp_port[0x10];
5937 struct mlx5_ifc_access_register_out_bits {
5939 u8 reserved_0[0x18];
5943 u8 reserved_1[0x40];
5945 u8 register_data[0][0x20];
5949 MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0,
5950 MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1,
5953 struct mlx5_ifc_access_register_in_bits {
5955 u8 reserved_0[0x10];
5957 u8 reserved_1[0x10];
5960 u8 reserved_2[0x10];
5961 u8 register_id[0x10];
5965 u8 register_data[0][0x20];
5968 struct mlx5_ifc_sltp_reg_bits {
5977 u8 reserved_2[0x20];
5986 u8 ob_preemp_mode[0x4];
5990 u8 reserved_5[0x20];
5993 struct mlx5_ifc_slrg_reg_bits {
6002 u8 time_to_link_up[0x10];
6004 u8 grade_lane_speed[0x4];
6006 u8 grade_version[0x8];
6010 u8 height_grade_type[0x4];
6011 u8 height_grade[0x18];
6016 u8 reserved_4[0x10];
6017 u8 height_sigma[0x10];
6019 u8 reserved_5[0x20];
6022 u8 phase_grade_type[0x4];
6023 u8 phase_grade[0x18];
6026 u8 phase_eo_pos[0x8];
6028 u8 phase_eo_neg[0x8];
6030 u8 ffe_set_tested[0x10];
6031 u8 test_errors_per_lane[0x10];
6034 struct mlx5_ifc_pvlc_reg_bits {
6037 u8 reserved_1[0x10];
6039 u8 reserved_2[0x1c];
6042 u8 reserved_3[0x1c];
6045 u8 reserved_4[0x1c];
6046 u8 vl_operational[0x4];
6049 struct mlx5_ifc_pude_reg_bits {
6053 u8 admin_status[0x4];
6055 u8 oper_status[0x4];
6057 u8 reserved_2[0x60];
6060 struct mlx5_ifc_ptys_reg_bits {
6066 u8 reserved_2[0x40];
6068 u8 eth_proto_capability[0x20];
6070 u8 ib_link_width_capability[0x10];
6071 u8 ib_proto_capability[0x10];
6073 u8 reserved_3[0x20];
6075 u8 eth_proto_admin[0x20];
6077 u8 ib_link_width_admin[0x10];
6078 u8 ib_proto_admin[0x10];
6080 u8 reserved_4[0x20];
6082 u8 eth_proto_oper[0x20];
6084 u8 ib_link_width_oper[0x10];
6085 u8 ib_proto_oper[0x10];
6087 u8 reserved_5[0x20];
6089 u8 eth_proto_lp_advertise[0x20];
6091 u8 reserved_6[0x60];
6094 struct mlx5_ifc_ptas_reg_bits {
6095 u8 reserved_0[0x20];
6097 u8 algorithm_options[0x10];
6099 u8 repetitions_mode[0x4];
6100 u8 num_of_repetitions[0x8];
6102 u8 grade_version[0x8];
6103 u8 height_grade_type[0x4];
6104 u8 phase_grade_type[0x4];
6105 u8 height_grade_weight[0x8];
6106 u8 phase_grade_weight[0x8];
6108 u8 gisim_measure_bits[0x10];
6109 u8 adaptive_tap_measure_bits[0x10];
6111 u8 ber_bath_high_error_threshold[0x10];
6112 u8 ber_bath_mid_error_threshold[0x10];
6114 u8 ber_bath_low_error_threshold[0x10];
6115 u8 one_ratio_high_threshold[0x10];
6117 u8 one_ratio_high_mid_threshold[0x10];
6118 u8 one_ratio_low_mid_threshold[0x10];
6120 u8 one_ratio_low_threshold[0x10];
6121 u8 ndeo_error_threshold[0x10];
6123 u8 mixer_offset_step_size[0x10];
6125 u8 mix90_phase_for_voltage_bath[0x8];
6127 u8 mixer_offset_start[0x10];
6128 u8 mixer_offset_end[0x10];
6130 u8 reserved_3[0x15];
6131 u8 ber_test_time[0xb];
6134 struct mlx5_ifc_pspa_reg_bits {
6140 u8 reserved_1[0x20];
6143 struct mlx5_ifc_pqdr_reg_bits {
6151 u8 reserved_3[0x20];
6153 u8 reserved_4[0x10];
6154 u8 min_threshold[0x10];
6156 u8 reserved_5[0x10];
6157 u8 max_threshold[0x10];
6159 u8 reserved_6[0x10];
6160 u8 mark_probability_denominator[0x10];
6162 u8 reserved_7[0x60];
6165 struct mlx5_ifc_ppsc_reg_bits {
6168 u8 reserved_1[0x10];
6170 u8 reserved_2[0x60];
6172 u8 reserved_3[0x1c];
6175 u8 reserved_4[0x1c];
6176 u8 wrps_status[0x4];
6179 u8 up_threshold[0x8];
6181 u8 down_threshold[0x8];
6183 u8 reserved_7[0x20];
6185 u8 reserved_8[0x1c];
6188 u8 reserved_9[0x1c];
6189 u8 srps_status[0x4];
6191 u8 reserved_10[0x40];
6194 struct mlx5_ifc_pplr_reg_bits {
6197 u8 reserved_1[0x10];
6205 struct mlx5_ifc_pplm_reg_bits {
6208 u8 reserved_1[0x10];
6210 u8 reserved_2[0x20];
6212 u8 port_profile_mode[0x8];
6213 u8 static_port_profile[0x8];
6214 u8 active_port_profile[0x8];
6217 u8 retransmission_active[0x8];
6218 u8 fec_mode_active[0x18];
6220 u8 reserved_4[0x20];
6223 struct mlx5_ifc_ppcnt_reg_bits {
6231 u8 reserved_1[0x1c];
6234 union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
6237 struct mlx5_ifc_ppad_reg_bits {
6246 u8 reserved_2[0x40];
6249 struct mlx5_ifc_pmtu_reg_bits {
6252 u8 reserved_1[0x10];
6255 u8 reserved_2[0x10];
6258 u8 reserved_3[0x10];
6261 u8 reserved_4[0x10];
6264 struct mlx5_ifc_pmpr_reg_bits {
6267 u8 reserved_1[0x10];
6269 u8 reserved_2[0x18];
6270 u8 attenuation_5g[0x8];
6272 u8 reserved_3[0x18];
6273 u8 attenuation_7g[0x8];
6275 u8 reserved_4[0x18];
6276 u8 attenuation_12g[0x8];
6279 struct mlx5_ifc_pmpe_reg_bits {
6283 u8 module_status[0x4];
6285 u8 reserved_2[0x60];
6288 struct mlx5_ifc_pmpc_reg_bits {
6289 u8 module_state_updated[32][0x8];
6292 struct mlx5_ifc_pmlpn_reg_bits {
6294 u8 mlpn_status[0x4];
6296 u8 reserved_1[0x10];
6299 u8 reserved_2[0x1f];
6302 struct mlx5_ifc_pmlp_reg_bits {
6309 u8 lane0_module_mapping[0x20];
6311 u8 lane1_module_mapping[0x20];
6313 u8 lane2_module_mapping[0x20];
6315 u8 lane3_module_mapping[0x20];
6317 u8 reserved_2[0x160];
6320 struct mlx5_ifc_pmaos_reg_bits {
6324 u8 admin_status[0x4];
6326 u8 oper_status[0x4];
6330 u8 reserved_3[0x1c];
6333 u8 reserved_4[0x40];
6336 struct mlx5_ifc_plpc_reg_bits {
6343 u8 reserved_3[0x10];
6344 u8 lane_speed[0x10];
6346 u8 reserved_4[0x17];
6348 u8 fec_mode_policy[0x8];
6350 u8 retransmission_capability[0x8];
6351 u8 fec_mode_capability[0x18];
6353 u8 retransmission_support_admin[0x8];
6354 u8 fec_mode_support_admin[0x18];
6356 u8 retransmission_request_admin[0x8];
6357 u8 fec_mode_request_admin[0x18];
6359 u8 reserved_5[0x80];
6362 struct mlx5_ifc_plib_reg_bits {
6368 u8 reserved_2[0x60];
6371 struct mlx5_ifc_plbf_reg_bits {
6377 u8 reserved_2[0x20];
6380 struct mlx5_ifc_pipg_reg_bits {
6383 u8 reserved_1[0x10];
6386 u8 reserved_2[0x19];
6391 struct mlx5_ifc_pifr_reg_bits {
6394 u8 reserved_1[0x10];
6396 u8 reserved_2[0xe0];
6398 u8 port_filter[8][0x20];
6400 u8 port_filter_update_en[8][0x20];
6403 struct mlx5_ifc_pfcc_reg_bits {
6406 u8 reserved_1[0x10];
6410 u8 prio_mask_tx[0x8];
6412 u8 prio_mask_rx[0x8];
6418 u8 reserved_5[0x10];
6424 u8 reserved_7[0x10];
6426 u8 reserved_8[0x80];
6429 struct mlx5_ifc_pelc_reg_bits {
6433 u8 reserved_1[0x10];
6436 u8 op_capability[0x8];
6442 u8 capability[0x40];
6448 u8 reserved_2[0x80];
6451 struct mlx5_ifc_peir_reg_bits {
6454 u8 reserved_1[0x10];
6457 u8 error_count[0x4];
6458 u8 reserved_3[0x10];
6466 struct mlx5_ifc_pcap_reg_bits {
6469 u8 reserved_1[0x10];
6471 u8 port_capability_mask[4][0x20];
6474 struct mlx5_ifc_paos_reg_bits {
6478 u8 admin_status[0x4];
6480 u8 oper_status[0x4];
6484 u8 reserved_2[0x1c];
6487 u8 reserved_3[0x40];
6490 struct mlx5_ifc_pamp_reg_bits {
6492 u8 opamp_group[0x8];
6494 u8 opamp_group_type[0x4];
6496 u8 start_index[0x10];
6498 u8 num_of_indices[0xc];
6500 u8 index_data[18][0x10];
6503 struct mlx5_ifc_lane_2_module_mapping_bits {
6512 struct mlx5_ifc_bufferx_reg_bits {
6519 u8 xoff_threshold[0x10];
6520 u8 xon_threshold[0x10];
6523 struct mlx5_ifc_set_node_in_bits {
6524 u8 node_description[64][0x8];
6527 struct mlx5_ifc_register_power_settings_bits {
6528 u8 reserved_0[0x18];
6529 u8 power_settings_level[0x8];
6531 u8 reserved_1[0x60];
6534 struct mlx5_ifc_register_host_endianness_bits {
6536 u8 reserved_0[0x1f];
6538 u8 reserved_1[0x60];
6541 struct mlx5_ifc_umr_pointer_desc_argument_bits {
6542 u8 reserved_0[0x20];
6546 u8 addressh_63_32[0x20];
6548 u8 addressl_31_0[0x20];
6551 struct mlx5_ifc_ud_adrs_vector_bits {
6556 u8 destination_qp_dct[0x18];
6558 u8 static_rate[0x4];
6559 u8 sl_eth_prio[0x4];
6562 u8 rlid_udp_sport[0x10];
6564 u8 reserved_1[0x20];
6566 u8 rmac_47_16[0x20];
6575 u8 src_addr_index[0x8];
6576 u8 flow_label[0x14];
6578 u8 rgid_rip[16][0x8];
6581 struct mlx5_ifc_pages_req_event_bits {
6582 u8 reserved_0[0x10];
6583 u8 function_id[0x10];
6587 u8 reserved_1[0xa0];
6590 struct mlx5_ifc_eqe_bits {
6594 u8 event_sub_type[0x8];
6596 u8 reserved_2[0xe0];
6598 union mlx5_ifc_event_auto_bits event_data;
6600 u8 reserved_3[0x10];
6607 MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7,
6610 struct mlx5_ifc_cmd_queue_entry_bits {
6612 u8 reserved_0[0x18];
6614 u8 input_length[0x20];
6616 u8 input_mailbox_pointer_63_32[0x20];
6618 u8 input_mailbox_pointer_31_9[0x17];
6621 u8 command_input_inline_data[16][0x8];
6623 u8 command_output_inline_data[16][0x8];
6625 u8 output_mailbox_pointer_63_32[0x20];
6627 u8 output_mailbox_pointer_31_9[0x17];
6630 u8 output_length[0x20];
6639 struct mlx5_ifc_cmd_out_bits {
6641 u8 reserved_0[0x18];
6645 u8 command_output[0x20];
6648 struct mlx5_ifc_cmd_in_bits {
6650 u8 reserved_0[0x10];
6652 u8 reserved_1[0x10];
6655 u8 command[0][0x20];
6658 struct mlx5_ifc_cmd_if_box_bits {
6659 u8 mailbox_data[512][0x8];
6661 u8 reserved_0[0x180];
6663 u8 next_pointer_63_32[0x20];
6665 u8 next_pointer_31_10[0x16];
6668 u8 block_number[0x20];
6672 u8 ctrl_signature[0x8];
6676 struct mlx5_ifc_mtt_bits {
6677 u8 ptag_63_32[0x20];
6686 MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0,
6687 MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1,
6688 MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2,
6692 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0,
6693 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1,
6694 MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2,
6698 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1,
6699 MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7,
6700 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8,
6701 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9,
6702 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa,
6703 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb,
6704 MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc,
6705 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd,
6706 MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe,
6707 MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf,
6708 MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10,
6711 struct mlx5_ifc_initial_seg_bits {
6712 u8 fw_rev_minor[0x10];
6713 u8 fw_rev_major[0x10];
6715 u8 cmd_interface_rev[0x10];
6716 u8 fw_rev_subminor[0x10];
6718 u8 reserved_0[0x40];
6720 u8 cmdq_phy_addr_63_32[0x20];
6722 u8 cmdq_phy_addr_31_12[0x14];
6724 u8 nic_interface[0x2];
6725 u8 log_cmdq_size[0x4];
6726 u8 log_cmdq_stride[0x4];
6728 u8 command_doorbell_vector[0x20];
6730 u8 reserved_2[0xf00];
6732 u8 initializing[0x1];
6734 u8 nic_interface_supported[0x3];
6735 u8 reserved_4[0x18];
6737 struct mlx5_ifc_health_buffer_bits health_buffer;
6739 u8 no_dram_nic_offset[0x20];
6741 u8 reserved_5[0x6e40];
6743 u8 reserved_6[0x1f];
6746 u8 health_syndrome[0x8];
6747 u8 health_counter[0x18];
6749 u8 reserved_7[0x17fc0];
6752 union mlx5_ifc_ports_control_registers_document_bits {
6753 struct mlx5_ifc_bufferx_reg_bits bufferx_reg;
6754 struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout;
6755 struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout;
6756 struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout;
6757 struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout;
6758 struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout;
6759 struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout;
6760 struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout;
6761 struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping;
6762 struct mlx5_ifc_pamp_reg_bits pamp_reg;
6763 struct mlx5_ifc_paos_reg_bits paos_reg;
6764 struct mlx5_ifc_pcap_reg_bits pcap_reg;
6765 struct mlx5_ifc_peir_reg_bits peir_reg;
6766 struct mlx5_ifc_pelc_reg_bits pelc_reg;
6767 struct mlx5_ifc_pfcc_reg_bits pfcc_reg;
6768 struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
6769 struct mlx5_ifc_pifr_reg_bits pifr_reg;
6770 struct mlx5_ifc_pipg_reg_bits pipg_reg;
6771 struct mlx5_ifc_plbf_reg_bits plbf_reg;
6772 struct mlx5_ifc_plib_reg_bits plib_reg;
6773 struct mlx5_ifc_plpc_reg_bits plpc_reg;
6774 struct mlx5_ifc_pmaos_reg_bits pmaos_reg;
6775 struct mlx5_ifc_pmlp_reg_bits pmlp_reg;
6776 struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg;
6777 struct mlx5_ifc_pmpc_reg_bits pmpc_reg;
6778 struct mlx5_ifc_pmpe_reg_bits pmpe_reg;
6779 struct mlx5_ifc_pmpr_reg_bits pmpr_reg;
6780 struct mlx5_ifc_pmtu_reg_bits pmtu_reg;
6781 struct mlx5_ifc_ppad_reg_bits ppad_reg;
6782 struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg;
6783 struct mlx5_ifc_pplm_reg_bits pplm_reg;
6784 struct mlx5_ifc_pplr_reg_bits pplr_reg;
6785 struct mlx5_ifc_ppsc_reg_bits ppsc_reg;
6786 struct mlx5_ifc_pqdr_reg_bits pqdr_reg;
6787 struct mlx5_ifc_pspa_reg_bits pspa_reg;
6788 struct mlx5_ifc_ptas_reg_bits ptas_reg;
6789 struct mlx5_ifc_ptys_reg_bits ptys_reg;
6790 struct mlx5_ifc_pude_reg_bits pude_reg;
6791 struct mlx5_ifc_pvlc_reg_bits pvlc_reg;
6792 struct mlx5_ifc_slrg_reg_bits slrg_reg;
6793 struct mlx5_ifc_sltp_reg_bits sltp_reg;
6794 u8 reserved_0[0x60e0];
6797 union mlx5_ifc_debug_enhancements_document_bits {
6798 struct mlx5_ifc_health_buffer_bits health_buffer;
6799 u8 reserved_0[0x200];
6802 union mlx5_ifc_uplink_pci_interface_document_bits {
6803 struct mlx5_ifc_initial_seg_bits initial_seg;
6804 u8 reserved_0[0x20060];
6807 #endif /* MLX5_IFC_H */