Lines Matching +full:0 +full:x0202

43 #define IAVF_FW_API_VERSION_MAJOR	0x0001
44 #define IAVF_FW_API_VERSION_MINOR_X722 0x0006
45 #define IAVF_FW_API_VERSION_MINOR_X710 0x0007
52 #define IAVF_MINOR_VER_GET_LINK_INFO_XL710 0x0007
54 #define IAVF_MINOR_VER_FW_LLDP_STOPPABLE_X722 0x0006
81 * |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |10 |11 |12 |13 |14 |15 |
86 #define IAVF_AQ_FLAG_DD_SHIFT 0
98 #define IAVF_AQ_FLAG_DD (1 << IAVF_AQ_FLAG_DD_SHIFT) /* 0x1 */
99 #define IAVF_AQ_FLAG_CMP (1 << IAVF_AQ_FLAG_CMP_SHIFT) /* 0x2 */
100 #define IAVF_AQ_FLAG_ERR (1 << IAVF_AQ_FLAG_ERR_SHIFT) /* 0x4 */
101 #define IAVF_AQ_FLAG_VFE (1 << IAVF_AQ_FLAG_VFE_SHIFT) /* 0x8 */
102 #define IAVF_AQ_FLAG_LB (1 << IAVF_AQ_FLAG_LB_SHIFT) /* 0x200 */
103 #define IAVF_AQ_FLAG_RD (1 << IAVF_AQ_FLAG_RD_SHIFT) /* 0x400 */
104 #define IAVF_AQ_FLAG_VFC (1 << IAVF_AQ_FLAG_VFC_SHIFT) /* 0x800 */
105 #define IAVF_AQ_FLAG_BUF (1 << IAVF_AQ_FLAG_BUF_SHIFT) /* 0x1000 */
106 #define IAVF_AQ_FLAG_SI (1 << IAVF_AQ_FLAG_SI_SHIFT) /* 0x2000 */
107 #define IAVF_AQ_FLAG_EI (1 << IAVF_AQ_FLAG_EI_SHIFT) /* 0x4000 */
108 #define IAVF_AQ_FLAG_FE (1 << IAVF_AQ_FLAG_FE_SHIFT) /* 0x8000 */
112 IAVF_AQ_RC_OK = 0, /* success */
140 iavf_aqc_opc_get_version = 0x0001,
141 iavf_aqc_opc_driver_version = 0x0002,
142 iavf_aqc_opc_queue_shutdown = 0x0003,
143 iavf_aqc_opc_set_pf_context = 0x0004,
146 iavf_aqc_opc_request_resource = 0x0008,
147 iavf_aqc_opc_release_resource = 0x0009,
149 iavf_aqc_opc_list_func_capabilities = 0x000A,
150 iavf_aqc_opc_list_dev_capabilities = 0x000B,
153 iavf_aqc_opc_set_proxy_config = 0x0104,
154 iavf_aqc_opc_set_ns_proxy_table_entry = 0x0105,
157 iavf_aqc_opc_mac_address_read = 0x0107,
158 iavf_aqc_opc_mac_address_write = 0x0108,
161 iavf_aqc_opc_clear_pxe_mode = 0x0110,
164 iavf_aqc_opc_set_wol_filter = 0x0120,
165 iavf_aqc_opc_get_wake_reason = 0x0121,
166 iavf_aqc_opc_clear_all_wol_filters = 0x025E,
169 iavf_aqc_opc_get_switch_config = 0x0200,
170 iavf_aqc_opc_add_statistics = 0x0201,
171 iavf_aqc_opc_remove_statistics = 0x0202,
172 iavf_aqc_opc_set_port_parameters = 0x0203,
173 iavf_aqc_opc_get_switch_resource_alloc = 0x0204,
174 iavf_aqc_opc_set_switch_config = 0x0205,
175 iavf_aqc_opc_rx_ctl_reg_read = 0x0206,
176 iavf_aqc_opc_rx_ctl_reg_write = 0x0207,
178 iavf_aqc_opc_add_vsi = 0x0210,
179 iavf_aqc_opc_update_vsi_parameters = 0x0211,
180 iavf_aqc_opc_get_vsi_parameters = 0x0212,
182 iavf_aqc_opc_add_pv = 0x0220,
183 iavf_aqc_opc_update_pv_parameters = 0x0221,
184 iavf_aqc_opc_get_pv_parameters = 0x0222,
186 iavf_aqc_opc_add_veb = 0x0230,
187 iavf_aqc_opc_update_veb_parameters = 0x0231,
188 iavf_aqc_opc_get_veb_parameters = 0x0232,
190 iavf_aqc_opc_delete_element = 0x0243,
192 iavf_aqc_opc_add_macvlan = 0x0250,
193 iavf_aqc_opc_remove_macvlan = 0x0251,
194 iavf_aqc_opc_add_vlan = 0x0252,
195 iavf_aqc_opc_remove_vlan = 0x0253,
196 iavf_aqc_opc_set_vsi_promiscuous_modes = 0x0254,
197 iavf_aqc_opc_add_tag = 0x0255,
198 iavf_aqc_opc_remove_tag = 0x0256,
199 iavf_aqc_opc_add_multicast_etag = 0x0257,
200 iavf_aqc_opc_remove_multicast_etag = 0x0258,
201 iavf_aqc_opc_update_tag = 0x0259,
202 iavf_aqc_opc_add_control_packet_filter = 0x025A,
203 iavf_aqc_opc_remove_control_packet_filter = 0x025B,
204 iavf_aqc_opc_add_cloud_filters = 0x025C,
205 iavf_aqc_opc_remove_cloud_filters = 0x025D,
206 iavf_aqc_opc_clear_wol_switch_filters = 0x025E,
207 iavf_aqc_opc_replace_cloud_filters = 0x025F,
209 iavf_aqc_opc_add_mirror_rule = 0x0260,
210 iavf_aqc_opc_delete_mirror_rule = 0x0261,
213 iavf_aqc_opc_write_personalization_profile = 0x0270,
214 iavf_aqc_opc_get_personalization_profile_list = 0x0271,
217 iavf_aqc_opc_dcb_ignore_pfc = 0x0301,
218 iavf_aqc_opc_dcb_updated = 0x0302,
219 iavf_aqc_opc_set_dcb_parameters = 0x0303,
222 iavf_aqc_opc_configure_vsi_bw_limit = 0x0400,
223 iavf_aqc_opc_configure_vsi_ets_sla_bw_limit = 0x0406,
224 iavf_aqc_opc_configure_vsi_tc_bw = 0x0407,
225 iavf_aqc_opc_query_vsi_bw_config = 0x0408,
226 iavf_aqc_opc_query_vsi_ets_sla_config = 0x040A,
227 iavf_aqc_opc_configure_switching_comp_bw_limit = 0x0410,
229 iavf_aqc_opc_enable_switching_comp_ets = 0x0413,
230 iavf_aqc_opc_modify_switching_comp_ets = 0x0414,
231 iavf_aqc_opc_disable_switching_comp_ets = 0x0415,
232 iavf_aqc_opc_configure_switching_comp_ets_bw_limit = 0x0416,
233 iavf_aqc_opc_configure_switching_comp_bw_config = 0x0417,
234 iavf_aqc_opc_query_switching_comp_ets_config = 0x0418,
235 iavf_aqc_opc_query_port_ets_config = 0x0419,
236 iavf_aqc_opc_query_switching_comp_bw_config = 0x041A,
237 iavf_aqc_opc_suspend_port_tx = 0x041B,
238 iavf_aqc_opc_resume_port_tx = 0x041C,
239 iavf_aqc_opc_configure_partition_bw = 0x041D,
241 iavf_aqc_opc_query_hmc_resource_profile = 0x0500,
242 iavf_aqc_opc_set_hmc_resource_profile = 0x0501,
247 iavf_aqc_opc_get_phy_abilities = 0x0600,
248 iavf_aqc_opc_set_phy_config = 0x0601,
249 iavf_aqc_opc_set_mac_config = 0x0603,
250 iavf_aqc_opc_set_link_restart_an = 0x0605,
251 iavf_aqc_opc_get_link_status = 0x0607,
252 iavf_aqc_opc_set_phy_int_mask = 0x0613,
253 iavf_aqc_opc_get_local_advt_reg = 0x0614,
254 iavf_aqc_opc_set_local_advt_reg = 0x0615,
255 iavf_aqc_opc_get_partner_advt = 0x0616,
256 iavf_aqc_opc_set_lb_modes = 0x0618,
257 iavf_aqc_opc_get_phy_wol_caps = 0x0621,
258 iavf_aqc_opc_set_phy_debug = 0x0622,
259 iavf_aqc_opc_upload_ext_phy_fm = 0x0625,
260 iavf_aqc_opc_run_phy_activity = 0x0626,
261 iavf_aqc_opc_set_phy_register = 0x0628,
262 iavf_aqc_opc_get_phy_register = 0x0629,
265 iavf_aqc_opc_nvm_read = 0x0701,
266 iavf_aqc_opc_nvm_erase = 0x0702,
267 iavf_aqc_opc_nvm_update = 0x0703,
268 iavf_aqc_opc_nvm_config_read = 0x0704,
269 iavf_aqc_opc_nvm_config_write = 0x0705,
270 iavf_aqc_opc_nvm_progress = 0x0706,
271 iavf_aqc_opc_oem_post_update = 0x0720,
272 iavf_aqc_opc_thermal_sensor = 0x0721,
275 iavf_aqc_opc_send_msg_to_pf = 0x0801,
276 iavf_aqc_opc_send_msg_to_vf = 0x0802,
277 iavf_aqc_opc_send_msg_to_peer = 0x0803,
280 iavf_aqc_opc_alternate_write = 0x0900,
281 iavf_aqc_opc_alternate_write_indirect = 0x0901,
282 iavf_aqc_opc_alternate_read = 0x0902,
283 iavf_aqc_opc_alternate_read_indirect = 0x0903,
284 iavf_aqc_opc_alternate_write_done = 0x0904,
285 iavf_aqc_opc_alternate_set_mode = 0x0905,
286 iavf_aqc_opc_alternate_clear_port = 0x0906,
289 iavf_aqc_opc_lldp_get_mib = 0x0A00,
290 iavf_aqc_opc_lldp_update_mib = 0x0A01,
291 iavf_aqc_opc_lldp_add_tlv = 0x0A02,
292 iavf_aqc_opc_lldp_update_tlv = 0x0A03,
293 iavf_aqc_opc_lldp_delete_tlv = 0x0A04,
294 iavf_aqc_opc_lldp_stop = 0x0A05,
295 iavf_aqc_opc_lldp_start = 0x0A06,
296 iavf_aqc_opc_get_cee_dcb_cfg = 0x0A07,
297 iavf_aqc_opc_lldp_set_local_mib = 0x0A08,
298 iavf_aqc_opc_lldp_stop_start_spec_agent = 0x0A09,
301 iavf_aqc_opc_add_udp_tunnel = 0x0B00,
302 iavf_aqc_opc_del_udp_tunnel = 0x0B01,
303 iavf_aqc_opc_set_rss_key = 0x0B02,
304 iavf_aqc_opc_set_rss_lut = 0x0B03,
305 iavf_aqc_opc_get_rss_key = 0x0B04,
306 iavf_aqc_opc_get_rss_lut = 0x0B05,
309 iavf_aqc_opc_event_lan_overflow = 0x1001,
312 iavf_aqc_opc_oem_parameter_change = 0xFE00,
313 iavf_aqc_opc_oem_device_status_change = 0xFE01,
314 iavf_aqc_opc_oem_ocsd_initialize = 0xFE02,
315 iavf_aqc_opc_oem_ocbb_initialize = 0xFE03,
318 iavf_aqc_opc_debug_read_reg = 0xFF03,
319 iavf_aqc_opc_debug_write_reg = 0xFF04,
320 iavf_aqc_opc_debug_modify_reg = 0xFF07,
321 iavf_aqc_opc_debug_dump_internals = 0xFF08,
343 { iavf_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
350 /* Queue Shutdown (direct 0x0003) */
353 #define IAVF_AQ_DRIVER_UNLOADING 0x1
359 #define IAVF_AQC_WOL_PRESERVE_STATUS 0x200
360 #define IAVF_AQC_MC_MAG_EN 0x0100
361 #define IAVF_AQC_WOL_PRESERVE_ON_PFR 0x0200
366 #define IAVF_AQ_VSI_PROP_SWITCH_VALID 0x0001
367 #define IAVF_AQ_VSI_PROP_SECURITY_VALID 0x0002
368 #define IAVF_AQ_VSI_PROP_VLAN_VALID 0x0004
369 #define IAVF_AQ_VSI_PROP_CAS_PV_VALID 0x0008
370 #define IAVF_AQ_VSI_PROP_INGRESS_UP_VALID 0x0010
371 #define IAVF_AQ_VSI_PROP_EGRESS_UP_VALID 0x0020
372 #define IAVF_AQ_VSI_PROP_QUEUE_MAP_VALID 0x0040
373 #define IAVF_AQ_VSI_PROP_QUEUE_OPT_VALID 0x0080
374 #define IAVF_AQ_VSI_PROP_OUTER_UP_VALID 0x0100
375 #define IAVF_AQ_VSI_PROP_SCHED_VALID 0x0200
378 #define IAVF_AQ_VSI_SW_ID_SHIFT 0x0000
379 #define IAVF_AQ_VSI_SW_ID_MASK (0xFFF << IAVF_AQ_VSI_SW_ID_SHIFT)
380 #define IAVF_AQ_VSI_SW_ID_FLAG_NOT_STAG 0x1000
381 #define IAVF_AQ_VSI_SW_ID_FLAG_ALLOW_LB 0x2000
382 #define IAVF_AQ_VSI_SW_ID_FLAG_LOCAL_LB 0x4000
386 #define IAVF_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD 0x01
387 #define IAVF_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK 0x02
388 #define IAVF_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK 0x04
394 #define IAVF_AQ_VSI_PVLAN_MODE_SHIFT 0x00
395 #define IAVF_AQ_VSI_PVLAN_MODE_MASK (0x03 << \
397 #define IAVF_AQ_VSI_PVLAN_MODE_TAGGED 0x01
398 #define IAVF_AQ_VSI_PVLAN_MODE_UNTAGGED 0x02
399 #define IAVF_AQ_VSI_PVLAN_MODE_ALL 0x03
400 #define IAVF_AQ_VSI_PVLAN_INSERT_PVID 0x04
401 #define IAVF_AQ_VSI_PVLAN_EMOD_SHIFT 0x03
402 #define IAVF_AQ_VSI_PVLAN_EMOD_MASK (0x3 << \
404 #define IAVF_AQ_VSI_PVLAN_EMOD_STR_BOTH 0x0
405 #define IAVF_AQ_VSI_PVLAN_EMOD_STR_UP 0x08
406 #define IAVF_AQ_VSI_PVLAN_EMOD_STR 0x10
407 #define IAVF_AQ_VSI_PVLAN_EMOD_NOTHING 0x18
411 #define IAVF_AQ_VSI_UP_TABLE_UP0_SHIFT 0
412 #define IAVF_AQ_VSI_UP_TABLE_UP0_MASK (0x7 << \
415 #define IAVF_AQ_VSI_UP_TABLE_UP1_MASK (0x7 << \
418 #define IAVF_AQ_VSI_UP_TABLE_UP2_MASK (0x7 << \
421 #define IAVF_AQ_VSI_UP_TABLE_UP3_MASK (0x7 << \
424 #define IAVF_AQ_VSI_UP_TABLE_UP4_MASK (0x7 << \
427 #define IAVF_AQ_VSI_UP_TABLE_UP5_MASK (0x7 << \
430 #define IAVF_AQ_VSI_UP_TABLE_UP6_MASK (0x7 << \
433 #define IAVF_AQ_VSI_UP_TABLE_UP7_MASK (0x7 << \
439 #define IAVF_AQ_VSI_CAS_PV_TAGX_SHIFT 0x00
440 #define IAVF_AQ_VSI_CAS_PV_TAGX_MASK (0x03 << \
442 #define IAVF_AQ_VSI_CAS_PV_TAGX_LEAVE 0x00
443 #define IAVF_AQ_VSI_CAS_PV_TAGX_REMOVE 0x01
444 #define IAVF_AQ_VSI_CAS_PV_TAGX_COPY 0x02
445 #define IAVF_AQ_VSI_CAS_PV_INSERT_TAG 0x10
446 #define IAVF_AQ_VSI_CAS_PV_ETAG_PRUNE 0x20
447 #define IAVF_AQ_VSI_CAS_PV_ACCEPT_HOST_TAG 0x40
451 #define IAVF_AQ_VSI_QUE_MAP_CONTIG 0x0
452 #define IAVF_AQ_VSI_QUE_MAP_NONCONTIG 0x1
454 #define IAVF_AQ_VSI_QUEUE_SHIFT 0x0
455 #define IAVF_AQ_VSI_QUEUE_MASK (0x7FF << IAVF_AQ_VSI_QUEUE_SHIFT)
457 #define IAVF_AQ_VSI_TC_QUE_OFFSET_SHIFT 0
458 #define IAVF_AQ_VSI_TC_QUE_OFFSET_MASK (0x1FF << \
461 #define IAVF_AQ_VSI_TC_QUE_NUMBER_MASK (0x7 << \
465 #define IAVF_AQ_VSI_QUE_OPT_MULTICAST_UDP_ENA 0x04
466 #define IAVF_AQ_VSI_QUE_OPT_UNICAST_UDP_ENA 0x08
467 #define IAVF_AQ_VSI_QUE_OPT_TCP_ENA 0x10
468 #define IAVF_AQ_VSI_QUE_OPT_FCOE_ENA 0x20
469 #define IAVF_AQ_VSI_QUE_OPT_RSS_LUT_PF 0x00
470 #define IAVF_AQ_VSI_QUE_OPT_RSS_LUT_VSI 0x40
480 #define IAVF_AQ_VSI_QS_HANDLE_INVALID 0xFFFF
488 /* Get VEB Parameters (direct 0x0232)
494 __le16 veb_flags; /* only the first/last flags from 0x0230 is valid */
503 #define IAVF_LINK_SPEED_100MB_SHIFT 0x1
504 #define IAVF_LINK_SPEED_1000MB_SHIFT 0x2
505 #define IAVF_LINK_SPEED_10GB_SHIFT 0x3
506 #define IAVF_LINK_SPEED_40GB_SHIFT 0x4
507 #define IAVF_LINK_SPEED_20GB_SHIFT 0x5
508 #define IAVF_LINK_SPEED_25GB_SHIFT 0x6
511 IAVF_LINK_SPEED_UNKNOWN = 0,
520 #define IAVF_AQ_LINK_UP_FUNCTION 0x01
522 /* Send to PF command (indirect 0x0801) id is only used by PF
523 * Send to VF command (indirect 0x0802) id is only used by PF
524 * Send to Peer PF command (indirect 0x0803)
535 /* Get CEE DCBX Oper Config (0x0A07)
540 #define IAVF_AQC_CEE_APP_FCOE_SHIFT 0x0
541 #define IAVF_AQC_CEE_APP_FCOE_MASK (0x7 << IAVF_AQC_CEE_APP_FCOE_SHIFT)
542 #define IAVF_AQC_CEE_APP_ISCSI_SHIFT 0x3
543 #define IAVF_AQC_CEE_APP_ISCSI_MASK (0x7 << IAVF_AQC_CEE_APP_ISCSI_SHIFT)
544 #define IAVF_AQC_CEE_APP_FIP_SHIFT 0x8
545 #define IAVF_AQC_CEE_APP_FIP_MASK (0x7 << IAVF_AQC_CEE_APP_FIP_SHIFT)
547 #define IAVF_AQC_CEE_PG_STATUS_SHIFT 0x0
548 #define IAVF_AQC_CEE_PG_STATUS_MASK (0x7 << IAVF_AQC_CEE_PG_STATUS_SHIFT)
549 #define IAVF_AQC_CEE_PFC_STATUS_SHIFT 0x3
550 #define IAVF_AQC_CEE_PFC_STATUS_MASK (0x7 << IAVF_AQC_CEE_PFC_STATUS_SHIFT)
551 #define IAVF_AQC_CEE_APP_STATUS_SHIFT 0x8
552 #define IAVF_AQC_CEE_APP_STATUS_MASK (0x7 << IAVF_AQC_CEE_APP_STATUS_SHIFT)
553 #define IAVF_AQC_CEE_FCOE_STATUS_SHIFT 0x8
554 #define IAVF_AQC_CEE_FCOE_STATUS_MASK (0x7 << IAVF_AQC_CEE_FCOE_STATUS_SHIFT)
555 #define IAVF_AQC_CEE_ISCSI_STATUS_SHIFT 0xB
556 #define IAVF_AQC_CEE_ISCSI_STATUS_MASK (0x7 << IAVF_AQC_CEE_ISCSI_STATUS_SHIFT)
557 #define IAVF_AQC_CEE_FIP_STATUS_SHIFT 0x10
558 #define IAVF_AQC_CEE_FIP_STATUS_MASK (0x7 << IAVF_AQC_CEE_FIP_STATUS_SHIFT)
581 IAVF_CHECK_STRUCT_LEN(0x18, iavf_aqc_get_cee_dcb_cfg_v1_resp);
593 IAVF_CHECK_STRUCT_LEN(0x20, iavf_aqc_get_cee_dcb_cfg_resp);
595 /* Set Local LLDP MIB (indirect 0x0A08)
599 #define SET_LOCAL_MIB_AC_TYPE_DCBX_SHIFT 0
602 #define SET_LOCAL_MIB_AC_TYPE_LOCAL_MIB 0x0
606 #define SET_LOCAL_MIB_AC_TYPE_NON_WILLING_APPS 0x1
618 #define SET_LOCAL_MIB_RESP_EVENT_TRIGGERED_MASK 0x01
623 IAVF_CHECK_STRUCT_LEN(0x10, iavf_aqc_lldp_set_local_mib_resp);
625 /* Stop/Start LLDP Agent (direct 0x0A09)
629 #define IAVF_AQC_START_SPECIFIC_AGENT_SHIFT 0
639 #define IAVF_AQC_SET_RSS_KEY_VSI_VALID (0x1 << 15)
640 #define IAVF_AQC_SET_RSS_KEY_VSI_ID_SHIFT 0
641 #define IAVF_AQC_SET_RSS_KEY_VSI_ID_MASK (0x3FF << \
652 u8 standard_rss_key[0x28];
653 u8 extended_hash_key[0xc];
656 IAVF_CHECK_STRUCT_LEN(0x34, iavf_aqc_get_set_rss_key_data);
659 #define IAVF_AQC_SET_RSS_LUT_VSI_VALID (0x1 << 15)
660 #define IAVF_AQC_SET_RSS_LUT_VSI_ID_SHIFT 0
661 #define IAVF_AQC_SET_RSS_LUT_VSI_ID_MASK (0x3FF << \
664 #define IAVF_AQC_SET_RSS_LUT_TABLE_TYPE_SHIFT 0
665 #define IAVF_AQC_SET_RSS_LUT_TABLE_TYPE_MASK (0x1 << \
668 #define IAVF_AQC_SET_RSS_LUT_TABLE_TYPE_VSI 0