179251f5eSSepherosa Ziehau /****************************************************************************** 279251f5eSSepherosa Ziehau 3*6150453fSSepherosa Ziehau Copyright (c) 2001-2017, Intel Corporation 479251f5eSSepherosa Ziehau All rights reserved. 579251f5eSSepherosa Ziehau 679251f5eSSepherosa Ziehau Redistribution and use in source and binary forms, with or without 779251f5eSSepherosa Ziehau modification, are permitted provided that the following conditions are met: 879251f5eSSepherosa Ziehau 979251f5eSSepherosa Ziehau 1. Redistributions of source code must retain the above copyright notice, 1079251f5eSSepherosa Ziehau this list of conditions and the following disclaimer. 1179251f5eSSepherosa Ziehau 1279251f5eSSepherosa Ziehau 2. Redistributions in binary form must reproduce the above copyright 1379251f5eSSepherosa Ziehau notice, this list of conditions and the following disclaimer in the 1479251f5eSSepherosa Ziehau documentation and/or other materials provided with the distribution. 1579251f5eSSepherosa Ziehau 1679251f5eSSepherosa Ziehau 3. Neither the name of the Intel Corporation nor the names of its 1779251f5eSSepherosa Ziehau contributors may be used to endorse or promote products derived from 1879251f5eSSepherosa Ziehau this software without specific prior written permission. 1979251f5eSSepherosa Ziehau 2079251f5eSSepherosa Ziehau THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2179251f5eSSepherosa Ziehau AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2279251f5eSSepherosa Ziehau IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2379251f5eSSepherosa Ziehau ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 2479251f5eSSepherosa Ziehau LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2579251f5eSSepherosa Ziehau CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2679251f5eSSepherosa Ziehau SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2779251f5eSSepherosa Ziehau INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2879251f5eSSepherosa Ziehau CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2979251f5eSSepherosa Ziehau ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3079251f5eSSepherosa Ziehau POSSIBILITY OF SUCH DAMAGE. 3179251f5eSSepherosa Ziehau 3279251f5eSSepherosa Ziehau ******************************************************************************/ 3379251f5eSSepherosa Ziehau /*$FreeBSD$*/ 3479251f5eSSepherosa Ziehau 3579251f5eSSepherosa Ziehau #ifndef _IXGBE_82599_H_ 3679251f5eSSepherosa Ziehau #define _IXGBE_82599_H_ 3779251f5eSSepherosa Ziehau 3879251f5eSSepherosa Ziehau s32 ixgbe_get_link_capabilities_82599(struct ixgbe_hw *hw, 3979251f5eSSepherosa Ziehau ixgbe_link_speed *speed, bool *autoneg); 4079251f5eSSepherosa Ziehau enum ixgbe_media_type ixgbe_get_media_type_82599(struct ixgbe_hw *hw); 4179251f5eSSepherosa Ziehau void ixgbe_disable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 4279251f5eSSepherosa Ziehau void ixgbe_enable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 4379251f5eSSepherosa Ziehau void ixgbe_flap_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 4463d483cdSSepherosa Ziehau void ixgbe_set_hard_rate_select_speed(struct ixgbe_hw *hw, 4563d483cdSSepherosa Ziehau ixgbe_link_speed speed); 4679251f5eSSepherosa Ziehau s32 ixgbe_setup_mac_link_smartspeed(struct ixgbe_hw *hw, 4779251f5eSSepherosa Ziehau ixgbe_link_speed speed, 4879251f5eSSepherosa Ziehau bool autoneg_wait_to_complete); 4979251f5eSSepherosa Ziehau s32 ixgbe_start_mac_link_82599(struct ixgbe_hw *hw, 5079251f5eSSepherosa Ziehau bool autoneg_wait_to_complete); 5179251f5eSSepherosa Ziehau s32 ixgbe_setup_mac_link_82599(struct ixgbe_hw *hw, ixgbe_link_speed speed, 5279251f5eSSepherosa Ziehau bool autoneg_wait_to_complete); 5379251f5eSSepherosa Ziehau s32 ixgbe_setup_sfp_modules_82599(struct ixgbe_hw *hw); 5479251f5eSSepherosa Ziehau void ixgbe_init_mac_link_ops_82599(struct ixgbe_hw *hw); 5579251f5eSSepherosa Ziehau s32 ixgbe_reset_hw_82599(struct ixgbe_hw *hw); 5679251f5eSSepherosa Ziehau s32 ixgbe_read_analog_reg8_82599(struct ixgbe_hw *hw, u32 reg, u8 *val); 5779251f5eSSepherosa Ziehau s32 ixgbe_write_analog_reg8_82599(struct ixgbe_hw *hw, u32 reg, u8 val); 5879251f5eSSepherosa Ziehau s32 ixgbe_start_hw_82599(struct ixgbe_hw *hw); 5979251f5eSSepherosa Ziehau s32 ixgbe_identify_phy_82599(struct ixgbe_hw *hw); 6079251f5eSSepherosa Ziehau s32 ixgbe_init_phy_ops_82599(struct ixgbe_hw *hw); 61*6150453fSSepherosa Ziehau u64 ixgbe_get_supported_physical_layer_82599(struct ixgbe_hw *hw); 6279251f5eSSepherosa Ziehau s32 ixgbe_enable_rx_dma_82599(struct ixgbe_hw *hw, u32 regval); 6363d483cdSSepherosa Ziehau s32 prot_autoc_read_82599(struct ixgbe_hw *hw, bool *locked, u32 *reg_val); 6463d483cdSSepherosa Ziehau s32 prot_autoc_write_82599(struct ixgbe_hw *hw, u32 reg_val, bool locked); 6579251f5eSSepherosa Ziehau #endif /* _IXGBE_82599_H_ */ 66