MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ixgbe_init_ops_82598

Function ixgbe_init_ops_82598

dpdk/drivers/net/ixgbe/base/ixgbe_82598.c:89–150  ·  view source on GitHub ↗

* ixgbe_init_ops_82598 - Inits func ptrs and MAC type * @hw: pointer to hardware structure * * Initialize the function pointers and assign the MAC type for 82598. * Does not touch the hardware. **/

Source from the content-addressed store, hash-verified

87 * Does not touch the hardware.
88 **/
89s32 ixgbe_init_ops_82598(struct ixgbe_hw *hw)
90{
91 struct ixgbe_mac_info *mac = &hw->mac;
92 struct ixgbe_phy_info *phy = &hw->phy;
93 s32 ret_val;
94
95 DEBUGFUNC("ixgbe_init_ops_82598");
96
97 ret_val = ixgbe_init_phy_ops_generic(hw);
98 ret_val = ixgbe_init_ops_generic(hw);
99
100 /* PHY */
101 phy->ops.init = ixgbe_init_phy_ops_82598;
102
103 /* MAC */
104 mac->ops.start_hw = ixgbe_start_hw_82598;
105 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_82598;
106 mac->ops.reset_hw = ixgbe_reset_hw_82598;
107 mac->ops.get_media_type = ixgbe_get_media_type_82598;
108 mac->ops.get_supported_physical_layer =
109 ixgbe_get_supported_physical_layer_82598;
110 mac->ops.read_analog_reg8 = ixgbe_read_analog_reg8_82598;
111 mac->ops.write_analog_reg8 = ixgbe_write_analog_reg8_82598;
112 mac->ops.set_lan_id = ixgbe_set_lan_id_multi_port_pcie_82598;
113 mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_82598;
114
115 /* RAR, Multicast, VLAN */
116 mac->ops.set_vmdq = ixgbe_set_vmdq_82598;
117 mac->ops.clear_vmdq = ixgbe_clear_vmdq_82598;
118 mac->ops.set_vfta = ixgbe_set_vfta_82598;
119 mac->ops.set_vlvf = NULL;
120 mac->ops.clear_vfta = ixgbe_clear_vfta_82598;
121
122 /* Flow Control */
123 mac->ops.fc_enable = ixgbe_fc_enable_82598;
124
125 mac->mcft_size = IXGBE_82598_MC_TBL_SIZE;
126 mac->vft_size = IXGBE_82598_VFT_TBL_SIZE;
127 mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES;
128 mac->rx_pb_size = IXGBE_82598_RX_PB_SIZE;
129 mac->max_rx_queues = IXGBE_82598_MAX_RX_QUEUES;
130 mac->max_tx_queues = IXGBE_82598_MAX_TX_QUEUES;
131 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw);
132
133 /* SFP+ Module */
134 phy->ops.read_i2c_eeprom = ixgbe_read_i2c_eeprom_82598;
135 phy->ops.read_i2c_sff8472 = ixgbe_read_i2c_sff8472_82598;
136
137 /* Link */
138 mac->ops.check_link = ixgbe_check_mac_link_82598;
139 mac->ops.setup_link = ixgbe_setup_mac_link_82598;
140 mac->ops.flap_tx_laser = NULL;
141 mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_82598;
142 mac->ops.setup_rxpba = ixgbe_set_rxpba_82598;
143
144 /* Manageability interface */
145 mac->ops.set_fw_drv_ver = NULL;
146

Callers 1

ixgbe_init_shared_codeFunction · 0.85

Calls 3

ixgbe_init_ops_genericFunction · 0.85

Tested by

no test coverage detected