Imported Upstream version 16.11
[deb_dpdk.git] / lib / librte_eal / linuxapp / kni / ethtool / ixgbe / ixgbe_x540.h
1 /*******************************************************************************
2
3   Intel 10 Gigabit PCI Express Linux driver
4   Copyright(c) 1999 - 2012 Intel Corporation.
5
6   This program is free software; you can redistribute it and/or modify it
7   under the terms and conditions of the GNU General Public License,
8   version 2, as published by the Free Software Foundation.
9
10   This program is distributed in the hope it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13   more details.
14
15   You should have received a copy of the GNU General Public License along with
16   this program; if not, write to the Free Software Foundation, Inc.,
17   51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
18
19   The full GNU General Public License is included in this distribution in
20   the file called "LICENSE.GPL".
21
22   Contact Information:
23   e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
24   Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
25
26 *******************************************************************************/
27
28 #ifndef _IXGBE_X540_H_
29 #define _IXGBE_X540_H_
30
31 #include "ixgbe_type.h"
32
33 s32 ixgbe_get_link_capabilities_X540(struct ixgbe_hw *hw,
34                                      ixgbe_link_speed *speed, bool *autoneg);
35 enum ixgbe_media_type ixgbe_get_media_type_X540(struct ixgbe_hw *hw);
36 s32 ixgbe_setup_mac_link_X540(struct ixgbe_hw *hw, ixgbe_link_speed speed,
37                               bool autoneg, bool link_up_wait_to_complete);
38 s32 ixgbe_reset_hw_X540(struct ixgbe_hw *hw);
39 s32 ixgbe_start_hw_X540(struct ixgbe_hw *hw);
40 u32 ixgbe_get_supported_physical_layer_X540(struct ixgbe_hw *hw);
41
42 s32 ixgbe_init_eeprom_params_X540(struct ixgbe_hw *hw);
43 s32 ixgbe_read_eerd_X540(struct ixgbe_hw *hw, u16 offset, u16 *data);
44 s32 ixgbe_read_eerd_buffer_X540(struct ixgbe_hw *hw, u16 offset, u16 words,
45                                 u16 *data);
46 s32 ixgbe_write_eewr_X540(struct ixgbe_hw *hw, u16 offset, u16 data);
47 s32 ixgbe_write_eewr_buffer_X540(struct ixgbe_hw *hw, u16 offset, u16 words,
48                                  u16 *data);
49 s32 ixgbe_update_eeprom_checksum_X540(struct ixgbe_hw *hw);
50 s32 ixgbe_validate_eeprom_checksum_X540(struct ixgbe_hw *hw, u16 *checksum_val);
51 u16 ixgbe_calc_eeprom_checksum_X540(struct ixgbe_hw *hw);
52
53 s32 ixgbe_acquire_swfw_sync_X540(struct ixgbe_hw *hw, u16 mask);
54 void ixgbe_release_swfw_sync_X540(struct ixgbe_hw *hw, u16 mask);
55
56 s32 ixgbe_blink_led_start_X540(struct ixgbe_hw *hw, u32 index);
57 s32 ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, u32 index);
58 #endif /* _IXGBE_X540_H_ */