]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/drivers/net/ixgbe/base/ixgbe_x550.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / drivers / net / ixgbe / base / ixgbe_x550.h
CommitLineData
9f95a23c 1/* SPDX-License-Identifier: BSD-3-Clause
f67539c2 2 * Copyright(c) 2001-2020 Intel Corporation
9f95a23c 3 */
7c673cae
FG
4
5#ifndef _IXGBE_X550_H_
6#define _IXGBE_X550_H_
7
8#include "ixgbe_type.h"
9
10s32 ixgbe_dmac_config_X550(struct ixgbe_hw *hw);
11s32 ixgbe_dmac_config_tcs_X550(struct ixgbe_hw *hw);
12s32 ixgbe_dmac_update_tcs_X550(struct ixgbe_hw *hw);
13
14s32 ixgbe_get_bus_info_X550em(struct ixgbe_hw *hw);
15s32 ixgbe_init_eeprom_params_X550(struct ixgbe_hw *hw);
16s32 ixgbe_update_eeprom_checksum_X550(struct ixgbe_hw *hw);
17s32 ixgbe_calc_eeprom_checksum_X550(struct ixgbe_hw *hw);
18s32 ixgbe_calc_checksum_X550(struct ixgbe_hw *hw, u16 *buffer, u32 buffer_size);
19s32 ixgbe_validate_eeprom_checksum_X550(struct ixgbe_hw *hw, u16 *checksum_val);
20s32 ixgbe_update_flash_X550(struct ixgbe_hw *hw);
21s32 ixgbe_write_ee_hostif_buffer_X550(struct ixgbe_hw *hw,
22 u16 offset, u16 words, u16 *data);
23s32 ixgbe_write_ee_hostif_X550(struct ixgbe_hw *hw, u16 offset,
24 u16 data);
25s32 ixgbe_read_ee_hostif_buffer_X550(struct ixgbe_hw *hw,
26 u16 offset, u16 words, u16 *data);
27s32 ixgbe_read_ee_hostif_X550(struct ixgbe_hw *hw, u16 offset,
28u16 *data);
29s32 ixgbe_write_ee_hostif_data_X550(struct ixgbe_hw *hw, u16 offset,
30 u16 data);
7c673cae
FG
31void ixgbe_set_source_address_pruning_X550(struct ixgbe_hw *hw, bool enable,
32 unsigned int pool);
33void ixgbe_set_ethertype_anti_spoofing_X550(struct ixgbe_hw *hw,
34 bool enable, int vf);
35s32 ixgbe_write_iosf_sb_reg_x550(struct ixgbe_hw *hw, u32 reg_addr,
36 u32 device_type, u32 data);
37s32 ixgbe_read_iosf_sb_reg_x550(struct ixgbe_hw *hw, u32 reg_addr,
38 u32 device_type, u32 *data);
11fdf7f2
TL
39s32 ixgbe_set_fw_drv_ver_x550(struct ixgbe_hw *hw, u8 maj, u8 min,
40 u8 build, u8 ver, u16 len, const char *str);
7c673cae
FG
41s32 ixgbe_get_phy_token(struct ixgbe_hw *);
42s32 ixgbe_put_phy_token(struct ixgbe_hw *);
43s32 ixgbe_write_iosf_sb_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,
44 u32 device_type, u32 data);
45s32 ixgbe_read_iosf_sb_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,
46 u32 device_type, u32 *data);
47void ixgbe_disable_mdd_X550(struct ixgbe_hw *hw);
48void ixgbe_enable_mdd_X550(struct ixgbe_hw *hw);
49void ixgbe_mdd_event_X550(struct ixgbe_hw *hw, u32 *vf_bitmap);
50void ixgbe_restore_mdd_vf_X550(struct ixgbe_hw *hw, u32 vf);
51enum ixgbe_media_type ixgbe_get_media_type_X550em(struct ixgbe_hw *hw);
52s32 ixgbe_setup_sfp_modules_X550em(struct ixgbe_hw *hw);
53s32 ixgbe_get_link_capabilities_X550em(struct ixgbe_hw *hw,
54 ixgbe_link_speed *speed, bool *autoneg);
55void ixgbe_init_mac_link_ops_X550em(struct ixgbe_hw *hw);
56s32 ixgbe_reset_hw_X550em(struct ixgbe_hw *hw);
57s32 ixgbe_init_phy_ops_X550em(struct ixgbe_hw *hw);
58s32 ixgbe_setup_kr_x550em(struct ixgbe_hw *hw);
59s32 ixgbe_init_ext_t_x550em(struct ixgbe_hw *hw);
60s32 ixgbe_setup_internal_phy_t_x550em(struct ixgbe_hw *hw);
61s32 ixgbe_setup_phy_loopback_x550em(struct ixgbe_hw *hw);
11fdf7f2 62u64 ixgbe_get_supported_physical_layer_X550em(struct ixgbe_hw *hw);
7c673cae
FG
63void ixgbe_disable_rx_x550(struct ixgbe_hw *hw);
64s32 ixgbe_get_lcd_t_x550em(struct ixgbe_hw *hw, ixgbe_link_speed *lcd_speed);
65s32 ixgbe_enter_lplu_t_x550em(struct ixgbe_hw *hw);
66s32 ixgbe_acquire_swfw_sync_X550em(struct ixgbe_hw *hw, u32 mask);
67void ixgbe_release_swfw_sync_X550em(struct ixgbe_hw *hw, u32 mask);
68s32 ixgbe_setup_fc_X550em(struct ixgbe_hw *hw);
69s32 ixgbe_setup_mac_link_sfp_x550em(struct ixgbe_hw *hw,
70 ixgbe_link_speed speed,
71 bool autoneg_wait_to_complete);
72s32 ixgbe_setup_mac_link_sfp_x550a(struct ixgbe_hw *hw,
73 ixgbe_link_speed speed,
74 bool autoneg_wait_to_complete);
75s32 ixgbe_read_phy_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,
76 u32 device_type, u16 *phy_data);
77s32 ixgbe_write_phy_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,
78 u32 device_type, u16 phy_data);
79s32 ixgbe_setup_fc_fiber_x550em_a(struct ixgbe_hw *hw);
80s32 ixgbe_setup_fc_backplane_x550em_a(struct ixgbe_hw *hw);
81s32 ixgbe_setup_fc_sgmii_x550em_a(struct ixgbe_hw *hw);
82void ixgbe_fc_autoneg_fiber_x550em_a(struct ixgbe_hw *hw);
83void ixgbe_fc_autoneg_backplane_x550em_a(struct ixgbe_hw *hw);
84void ixgbe_fc_autoneg_sgmii_x550em_a(struct ixgbe_hw *hw);
85s32 ixgbe_handle_lasi_ext_t_x550em(struct ixgbe_hw *hw);
86s32 ixgbe_setup_mac_link_t_X550em(struct ixgbe_hw *hw,
87 ixgbe_link_speed speed,
88 bool autoneg_wait_to_complete);
89s32 ixgbe_check_link_t_X550em(struct ixgbe_hw *hw, ixgbe_link_speed *speed,
90 bool *link_up, bool link_up_wait_to_complete);
91s32 ixgbe_reset_phy_t_X550em(struct ixgbe_hw *hw);
92s32 ixgbe_identify_sfp_module_X550em(struct ixgbe_hw *hw);
93s32 ixgbe_led_on_t_X550em(struct ixgbe_hw *hw, u32 led_idx);
94s32 ixgbe_led_off_t_X550em(struct ixgbe_hw *hw, u32 led_idx);
9f95a23c 95bool ixgbe_fw_recovery_mode_X550(struct ixgbe_hw *hw);
7c673cae 96#endif /* _IXGBE_X550_H_ */