ixgbe_82599.h revision 248287
1210389Sgabor/******************************************************************************
2210389Sgabor
3210389Sgabor  Copyright (c) 2001-2013, Intel Corporation
4210389Sgabor  All rights reserved.
5210389Sgabor
6210389Sgabor  Redistribution and use in source and binary forms, with or without
7210389Sgabor  modification, are permitted provided that the following conditions are met:
8210389Sgabor
9210389Sgabor   1. Redistributions of source code must retain the above copyright notice,
10210389Sgabor      this list of conditions and the following disclaimer.
11210389Sgabor
12210389Sgabor   2. Redistributions in binary form must reproduce the above copyright
13210389Sgabor      notice, this list of conditions and the following disclaimer in the
14210389Sgabor      documentation and/or other materials provided with the distribution.
15210389Sgabor
16210389Sgabor   3. Neither the name of the Intel Corporation nor the names of its
17210389Sgabor      contributors may be used to endorse or promote products derived from
18210389Sgabor      this software without specific prior written permission.
19210389Sgabor
20210389Sgabor  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21210389Sgabor  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22210389Sgabor  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23210389Sgabor  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24210389Sgabor  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25210389Sgabor  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26210389Sgabor  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27210389Sgabor  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28210389Sgabor  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29210389Sgabor  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30210389Sgabor  POSSIBILITY OF SUCH DAMAGE.
31210389Sgabor
32210389Sgabor******************************************************************************/
33210389Sgabor/*$FreeBSD: stable/9/sys/dev/ixgbe/ixgbe_82599.h 248287 2013-03-14 21:39:39Z jfv $*/
34210389Sgabor
35210389Sgabor#ifndef _IXGBE_82599_H_
36210389Sgabor#define _IXGBE_82599_H_
37210389Sgabor
38210389Sgabors32 ixgbe_get_link_capabilities_82599(struct ixgbe_hw *hw,
39210389Sgabor				      ixgbe_link_speed *speed, bool *autoneg);
40210389Sgaborenum ixgbe_media_type ixgbe_get_media_type_82599(struct ixgbe_hw *hw);
41210389Sgaborvoid ixgbe_disable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw);
42210389Sgaborvoid ixgbe_enable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw);
43210389Sgaborvoid ixgbe_flap_tx_laser_multispeed_fiber(struct ixgbe_hw *hw);
44210389Sgabors32 ixgbe_setup_mac_link_multispeed_fiber(struct ixgbe_hw *hw,
45210389Sgabor					  ixgbe_link_speed speed,
46210389Sgabor					  bool autoneg_wait_to_complete);
47210389Sgabors32 ixgbe_setup_mac_link_smartspeed(struct ixgbe_hw *hw,
48210389Sgabor				    ixgbe_link_speed speed,
49210389Sgabor				    bool autoneg_wait_to_complete);
50210389Sgabors32 ixgbe_start_mac_link_82599(struct ixgbe_hw *hw,
51210389Sgabor			       bool autoneg_wait_to_complete);
52210389Sgabors32 ixgbe_setup_mac_link_82599(struct ixgbe_hw *hw, ixgbe_link_speed speed,
53210389Sgabor			       bool autoneg_wait_to_complete);
54210389Sgabors32 ixgbe_setup_sfp_modules_82599(struct ixgbe_hw *hw);
55210389Sgaborvoid ixgbe_init_mac_link_ops_82599(struct ixgbe_hw *hw);
56210389Sgabors32 ixgbe_reset_hw_82599(struct ixgbe_hw *hw);
57210389Sgabors32 ixgbe_read_analog_reg8_82599(struct ixgbe_hw *hw, u32 reg, u8 *val);
58210389Sgabors32 ixgbe_write_analog_reg8_82599(struct ixgbe_hw *hw, u32 reg, u8 val);
59210389Sgabors32 ixgbe_start_hw_82599(struct ixgbe_hw *hw);
60210389Sgabors32 ixgbe_identify_phy_82599(struct ixgbe_hw *hw);
61210389Sgabors32 ixgbe_init_phy_ops_82599(struct ixgbe_hw *hw);
62210389Sgaboru32 ixgbe_get_supported_physical_layer_82599(struct ixgbe_hw *hw);
63210389Sgabors32 ixgbe_enable_rx_dma_82599(struct ixgbe_hw *hw, u32 regval);
64210389Sgabor#endif /* _IXGBE_82599_H_ */
65210389Sgabor