1230775Sjfv/******************************************************************************
2230775Sjfv
3320897Serj  Copyright (c) 2001-2017, Intel Corporation
4230775Sjfv  All rights reserved.
5320897Serj
6320897Serj  Redistribution and use in source and binary forms, with or without
7230775Sjfv  modification, are permitted provided that the following conditions are met:
8320897Serj
9320897Serj   1. Redistributions of source code must retain the above copyright notice,
10230775Sjfv      this list of conditions and the following disclaimer.
11320897Serj
12320897Serj   2. Redistributions in binary form must reproduce the above copyright
13320897Serj      notice, this list of conditions and the following disclaimer in the
14230775Sjfv      documentation and/or other materials provided with the distribution.
15320897Serj
16320897Serj   3. Neither the name of the Intel Corporation nor the names of its
17320897Serj      contributors may be used to endorse or promote products derived from
18230775Sjfv      this software without specific prior written permission.
19320897Serj
20230775Sjfv  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21320897Serj  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22320897Serj  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23320897Serj  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24320897Serj  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25320897Serj  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26320897Serj  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27320897Serj  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28320897Serj  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29230775Sjfv  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30230775Sjfv  POSSIBILITY OF SUCH DAMAGE.
31230775Sjfv
32230775Sjfv******************************************************************************/
33230775Sjfv/*$FreeBSD: stable/11/sys/dev/ixgbe/ixgbe_82599.h 320897 2017-07-11 21:25:07Z erj $*/
34230775Sjfv
35230775Sjfv#ifndef _IXGBE_82599_H_
36230775Sjfv#define _IXGBE_82599_H_
37230775Sjfv
38230775Sjfvs32 ixgbe_get_link_capabilities_82599(struct ixgbe_hw *hw,
39230775Sjfv				      ixgbe_link_speed *speed, bool *autoneg);
40230775Sjfvenum ixgbe_media_type ixgbe_get_media_type_82599(struct ixgbe_hw *hw);
41230775Sjfvvoid ixgbe_disable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw);
42230775Sjfvvoid ixgbe_enable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw);
43230775Sjfvvoid ixgbe_flap_tx_laser_multispeed_fiber(struct ixgbe_hw *hw);
44280182Sjfvvoid ixgbe_set_hard_rate_select_speed(struct ixgbe_hw *hw,
45280182Sjfv					ixgbe_link_speed speed);
46230775Sjfvs32 ixgbe_setup_mac_link_smartspeed(struct ixgbe_hw *hw,
47247822Sjfv				    ixgbe_link_speed speed,
48230775Sjfv				    bool autoneg_wait_to_complete);
49230775Sjfvs32 ixgbe_start_mac_link_82599(struct ixgbe_hw *hw,
50230775Sjfv			       bool autoneg_wait_to_complete);
51230775Sjfvs32 ixgbe_setup_mac_link_82599(struct ixgbe_hw *hw, ixgbe_link_speed speed,
52247822Sjfv			       bool autoneg_wait_to_complete);
53230775Sjfvs32 ixgbe_setup_sfp_modules_82599(struct ixgbe_hw *hw);
54230775Sjfvvoid ixgbe_init_mac_link_ops_82599(struct ixgbe_hw *hw);
55230775Sjfvs32 ixgbe_reset_hw_82599(struct ixgbe_hw *hw);
56230775Sjfvs32 ixgbe_read_analog_reg8_82599(struct ixgbe_hw *hw, u32 reg, u8 *val);
57230775Sjfvs32 ixgbe_write_analog_reg8_82599(struct ixgbe_hw *hw, u32 reg, u8 val);
58230775Sjfvs32 ixgbe_start_hw_82599(struct ixgbe_hw *hw);
59230775Sjfvs32 ixgbe_identify_phy_82599(struct ixgbe_hw *hw);
60230775Sjfvs32 ixgbe_init_phy_ops_82599(struct ixgbe_hw *hw);
61320897Serju64 ixgbe_get_supported_physical_layer_82599(struct ixgbe_hw *hw);
62230775Sjfvs32 ixgbe_enable_rx_dma_82599(struct ixgbe_hw *hw, u32 regval);
63280182Sjfvs32 prot_autoc_read_82599(struct ixgbe_hw *hw, bool *locked, u32 *reg_val);
64280182Sjfvs32 prot_autoc_write_82599(struct ixgbe_hw *hw, u32 reg_val, bool locked);
65230775Sjfv#endif /* _IXGBE_82599_H_ */
66