diff options
Diffstat (limited to 'drivers')
24 files changed, 80 insertions, 170 deletions
diff --git a/drivers/net/ethernet/intel/igb/Makefile b/drivers/net/ethernet/intel/igb/Makefile index f19700e285bb..5bcb2de75933 100644 --- a/drivers/net/ethernet/intel/igb/Makefile +++ b/drivers/net/ethernet/intel/igb/Makefile | |||
@@ -1,7 +1,7 @@ | |||
1 | ################################################################################ | 1 | ################################################################################ |
2 | # | 2 | # |
3 | # Intel 82575 PCI-Express Ethernet Linux driver | 3 | # Intel 82575 PCI-Express Ethernet Linux driver |
4 | # Copyright(c) 1999 - 2013 Intel Corporation. | 4 | # Copyright(c) 1999 - 2014 Intel Corporation. |
5 | # | 5 | # |
6 | # This program is free software; you can redistribute it and/or modify it | 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, | 7 | # under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | # more details. | 13 | # more details. |
14 | # | 14 | # |
15 | # You should have received a copy of the GNU General Public License along with | 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., | 16 | # this program; if not, see <http://www.gnu.org/licenses/>. |
17 | # 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | # | 17 | # |
19 | # The full GNU General Public License is included in this distribution in | 18 | # The full GNU General Public License is included in this distribution in |
20 | # the file called "COPYING". | 19 | # the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c index 06df6928f44c..45947b3f7d92 100644 --- a/drivers/net/ethernet/intel/igb/e1000_82575.c +++ b/drivers/net/ethernet/intel/igb/e1000_82575.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
@@ -2720,7 +2719,7 @@ static const u8 e1000_emc_therm_limit[4] = { | |||
2720 | * | 2719 | * |
2721 | * Updates the temperatures in mac.thermal_sensor_data | 2720 | * Updates the temperatures in mac.thermal_sensor_data |
2722 | **/ | 2721 | **/ |
2723 | s32 igb_get_thermal_sensor_data_generic(struct e1000_hw *hw) | 2722 | static s32 igb_get_thermal_sensor_data_generic(struct e1000_hw *hw) |
2724 | { | 2723 | { |
2725 | s32 status = E1000_SUCCESS; | 2724 | s32 status = E1000_SUCCESS; |
2726 | u16 ets_offset; | 2725 | u16 ets_offset; |
@@ -2774,7 +2773,7 @@ s32 igb_get_thermal_sensor_data_generic(struct e1000_hw *hw) | |||
2774 | * Sets the thermal sensor thresholds according to the NVM map | 2773 | * Sets the thermal sensor thresholds according to the NVM map |
2775 | * and save off the threshold and location values into mac.thermal_sensor_data | 2774 | * and save off the threshold and location values into mac.thermal_sensor_data |
2776 | **/ | 2775 | **/ |
2777 | s32 igb_init_thermal_sensor_thresh_generic(struct e1000_hw *hw) | 2776 | static s32 igb_init_thermal_sensor_thresh_generic(struct e1000_hw *hw) |
2778 | { | 2777 | { |
2779 | s32 status = E1000_SUCCESS; | 2778 | s32 status = E1000_SUCCESS; |
2780 | u16 ets_offset; | 2779 | u16 ets_offset; |
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.h b/drivers/net/ethernet/intel/igb/e1000_82575.h index 8c2437722aad..f12b086e578d 100644 --- a/drivers/net/ethernet/intel/igb/e1000_82575.h +++ b/drivers/net/ethernet/intel/igb/e1000_82575.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
@@ -266,8 +265,6 @@ u16 igb_rxpbs_adjust_82580(u32 data); | |||
266 | s32 igb_read_emi_reg(struct e1000_hw *, u16 addr, u16 *data); | 265 | s32 igb_read_emi_reg(struct e1000_hw *, u16 addr, u16 *data); |
267 | s32 igb_set_eee_i350(struct e1000_hw *); | 266 | s32 igb_set_eee_i350(struct e1000_hw *); |
268 | s32 igb_set_eee_i354(struct e1000_hw *); | 267 | s32 igb_set_eee_i354(struct e1000_hw *); |
269 | s32 igb_init_thermal_sensor_thresh_generic(struct e1000_hw *); | ||
270 | s32 igb_get_thermal_sensor_data_generic(struct e1000_hw *hw); | ||
271 | 268 | ||
272 | #define E1000_I2C_THERMAL_SENSOR_ADDR 0xF8 | 269 | #define E1000_I2C_THERMAL_SENSOR_ADDR 0xF8 |
273 | #define E1000_EMC_INTERNAL_DATA 0x00 | 270 | #define E1000_EMC_INTERNAL_DATA 0x00 |
diff --git a/drivers/net/ethernet/intel/igb/e1000_defines.h b/drivers/net/ethernet/intel/igb/e1000_defines.h index 0571b973be80..393c896ac7e7 100644 --- a/drivers/net/ethernet/intel/igb/e1000_defines.h +++ b/drivers/net/ethernet/intel/igb/e1000_defines.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_hw.h b/drivers/net/ethernet/intel/igb/e1000_hw.h index ab99e2b582a8..10741d170f2d 100644 --- a/drivers/net/ethernet/intel/igb/e1000_hw.h +++ b/drivers/net/ethernet/intel/igb/e1000_hw.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_i210.c b/drivers/net/ethernet/intel/igb/e1000_i210.c index 0c0393316a3a..db963397cc27 100644 --- a/drivers/net/ethernet/intel/igb/e1000_i210.c +++ b/drivers/net/ethernet/intel/igb/e1000_i210.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
@@ -35,6 +34,8 @@ | |||
35 | #include "e1000_hw.h" | 34 | #include "e1000_hw.h" |
36 | #include "e1000_i210.h" | 35 | #include "e1000_i210.h" |
37 | 36 | ||
37 | static s32 igb_update_flash_i210(struct e1000_hw *hw); | ||
38 | |||
38 | /** | 39 | /** |
39 | * igb_get_hw_semaphore_i210 - Acquire hardware semaphore | 40 | * igb_get_hw_semaphore_i210 - Acquire hardware semaphore |
40 | * @hw: pointer to the HW structure | 41 | * @hw: pointer to the HW structure |
@@ -111,7 +112,7 @@ static s32 igb_get_hw_semaphore_i210(struct e1000_hw *hw) | |||
111 | * Return successful if access grant bit set, else clear the request for | 112 | * Return successful if access grant bit set, else clear the request for |
112 | * EEPROM access and return -E1000_ERR_NVM (-1). | 113 | * EEPROM access and return -E1000_ERR_NVM (-1). |
113 | **/ | 114 | **/ |
114 | s32 igb_acquire_nvm_i210(struct e1000_hw *hw) | 115 | static s32 igb_acquire_nvm_i210(struct e1000_hw *hw) |
115 | { | 116 | { |
116 | return igb_acquire_swfw_sync_i210(hw, E1000_SWFW_EEP_SM); | 117 | return igb_acquire_swfw_sync_i210(hw, E1000_SWFW_EEP_SM); |
117 | } | 118 | } |
@@ -123,7 +124,7 @@ s32 igb_acquire_nvm_i210(struct e1000_hw *hw) | |||
123 | * Stop any current commands to the EEPROM and clear the EEPROM request bit, | 124 | * Stop any current commands to the EEPROM and clear the EEPROM request bit, |
124 | * then release the semaphores acquired. | 125 | * then release the semaphores acquired. |
125 | **/ | 126 | **/ |
126 | void igb_release_nvm_i210(struct e1000_hw *hw) | 127 | static void igb_release_nvm_i210(struct e1000_hw *hw) |
127 | { | 128 | { |
128 | igb_release_swfw_sync_i210(hw, E1000_SWFW_EEP_SM); | 129 | igb_release_swfw_sync_i210(hw, E1000_SWFW_EEP_SM); |
129 | } | 130 | } |
@@ -206,8 +207,8 @@ void igb_release_swfw_sync_i210(struct e1000_hw *hw, u16 mask) | |||
206 | * Reads a 16 bit word from the Shadow Ram using the EERD register. | 207 | * Reads a 16 bit word from the Shadow Ram using the EERD register. |
207 | * Uses necessary synchronization semaphores. | 208 | * Uses necessary synchronization semaphores. |
208 | **/ | 209 | **/ |
209 | s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words, | 210 | static s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words, |
210 | u16 *data) | 211 | u16 *data) |
211 | { | 212 | { |
212 | s32 status = E1000_SUCCESS; | 213 | s32 status = E1000_SUCCESS; |
213 | u16 i, count; | 214 | u16 i, count; |
@@ -306,8 +307,8 @@ out: | |||
306 | * If error code is returned, data and Shadow RAM may be inconsistent - buffer | 307 | * If error code is returned, data and Shadow RAM may be inconsistent - buffer |
307 | * partially written. | 308 | * partially written. |
308 | **/ | 309 | **/ |
309 | s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, u16 words, | 310 | static s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, u16 words, |
310 | u16 *data) | 311 | u16 *data) |
311 | { | 312 | { |
312 | s32 status = E1000_SUCCESS; | 313 | s32 status = E1000_SUCCESS; |
313 | u16 i, count; | 314 | u16 i, count; |
@@ -555,7 +556,7 @@ s32 igb_read_invm_version(struct e1000_hw *hw, | |||
555 | * Calculates the EEPROM checksum by reading/adding each word of the EEPROM | 556 | * Calculates the EEPROM checksum by reading/adding each word of the EEPROM |
556 | * and then verifies that the sum of the EEPROM is equal to 0xBABA. | 557 | * and then verifies that the sum of the EEPROM is equal to 0xBABA. |
557 | **/ | 558 | **/ |
558 | s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw) | 559 | static s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw) |
559 | { | 560 | { |
560 | s32 status = E1000_SUCCESS; | 561 | s32 status = E1000_SUCCESS; |
561 | s32 (*read_op_ptr)(struct e1000_hw *, u16, u16, u16 *); | 562 | s32 (*read_op_ptr)(struct e1000_hw *, u16, u16, u16 *); |
@@ -590,7 +591,7 @@ s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw) | |||
590 | * up to the checksum. Then calculates the EEPROM checksum and writes the | 591 | * up to the checksum. Then calculates the EEPROM checksum and writes the |
591 | * value to the EEPROM. Next commit EEPROM data onto the Flash. | 592 | * value to the EEPROM. Next commit EEPROM data onto the Flash. |
592 | **/ | 593 | **/ |
593 | s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw) | 594 | static s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw) |
594 | { | 595 | { |
595 | s32 ret_val = E1000_SUCCESS; | 596 | s32 ret_val = E1000_SUCCESS; |
596 | u16 checksum = 0; | 597 | u16 checksum = 0; |
@@ -684,7 +685,7 @@ bool igb_get_flash_presence_i210(struct e1000_hw *hw) | |||
684 | * @hw: pointer to the HW structure | 685 | * @hw: pointer to the HW structure |
685 | * | 686 | * |
686 | **/ | 687 | **/ |
687 | s32 igb_update_flash_i210(struct e1000_hw *hw) | 688 | static s32 igb_update_flash_i210(struct e1000_hw *hw) |
688 | { | 689 | { |
689 | s32 ret_val = E1000_SUCCESS; | 690 | s32 ret_val = E1000_SUCCESS; |
690 | u32 flup; | 691 | u32 flup; |
diff --git a/drivers/net/ethernet/intel/igb/e1000_i210.h b/drivers/net/ethernet/intel/igb/e1000_i210.h index 2d913716573a..907fe99a9813 100644 --- a/drivers/net/ethernet/intel/igb/e1000_i210.h +++ b/drivers/net/ethernet/intel/igb/e1000_i210.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
@@ -28,17 +27,8 @@ | |||
28 | #ifndef _E1000_I210_H_ | 27 | #ifndef _E1000_I210_H_ |
29 | #define _E1000_I210_H_ | 28 | #define _E1000_I210_H_ |
30 | 29 | ||
31 | s32 igb_update_flash_i210(struct e1000_hw *hw); | ||
32 | s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw); | ||
33 | s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw); | ||
34 | s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, u16 words, | ||
35 | u16 *data); | ||
36 | s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words, | ||
37 | u16 *data); | ||
38 | s32 igb_acquire_swfw_sync_i210(struct e1000_hw *hw, u16 mask); | 30 | s32 igb_acquire_swfw_sync_i210(struct e1000_hw *hw, u16 mask); |
39 | void igb_release_swfw_sync_i210(struct e1000_hw *hw, u16 mask); | 31 | void igb_release_swfw_sync_i210(struct e1000_hw *hw, u16 mask); |
40 | s32 igb_acquire_nvm_i210(struct e1000_hw *hw); | ||
41 | void igb_release_nvm_i210(struct e1000_hw *hw); | ||
42 | s32 igb_valid_led_default_i210(struct e1000_hw *hw, u16 *data); | 32 | s32 igb_valid_led_default_i210(struct e1000_hw *hw, u16 *data); |
43 | s32 igb_read_invm_version(struct e1000_hw *hw, | 33 | s32 igb_read_invm_version(struct e1000_hw *hw, |
44 | struct e1000_fw_version *invm_ver); | 34 | struct e1000_fw_version *invm_ver); |
diff --git a/drivers/net/ethernet/intel/igb/e1000_mac.c b/drivers/net/ethernet/intel/igb/e1000_mac.c index 298f0ed50670..5910a932ea7c 100644 --- a/drivers/net/ethernet/intel/igb/e1000_mac.c +++ b/drivers/net/ethernet/intel/igb/e1000_mac.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_mac.h b/drivers/net/ethernet/intel/igb/e1000_mac.h index e4cbe8ef67b3..99299ba8ee3a 100644 --- a/drivers/net/ethernet/intel/igb/e1000_mac.h +++ b/drivers/net/ethernet/intel/igb/e1000_mac.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_mbx.c b/drivers/net/ethernet/intel/igb/e1000_mbx.c index dac1447fabf7..d5b121771c31 100644 --- a/drivers/net/ethernet/intel/igb/e1000_mbx.c +++ b/drivers/net/ethernet/intel/igb/e1000_mbx.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_mbx.h b/drivers/net/ethernet/intel/igb/e1000_mbx.h index de9bba41acf3..f52f5515e5a8 100644 --- a/drivers/net/ethernet/intel/igb/e1000_mbx.h +++ b/drivers/net/ethernet/intel/igb/e1000_mbx.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_nvm.c b/drivers/net/ethernet/intel/igb/e1000_nvm.c index a7db7f3db914..9abf82919c65 100644 --- a/drivers/net/ethernet/intel/igb/e1000_nvm.c +++ b/drivers/net/ethernet/intel/igb/e1000_nvm.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_nvm.h b/drivers/net/ethernet/intel/igb/e1000_nvm.h index 433b7419cb98..5b101170b17e 100644 --- a/drivers/net/ethernet/intel/igb/e1000_nvm.h +++ b/drivers/net/ethernet/intel/igb/e1000_nvm.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.c b/drivers/net/ethernet/intel/igb/e1000_phy.c index ad2b74d95138..4009bbab7407 100644 --- a/drivers/net/ethernet/intel/igb/e1000_phy.c +++ b/drivers/net/ethernet/intel/igb/e1000_phy.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
@@ -394,77 +393,6 @@ s32 igb_read_sfp_data_byte(struct e1000_hw *hw, u16 offset, u8 *data) | |||
394 | } | 393 | } |
395 | 394 | ||
396 | /** | 395 | /** |
397 | * e1000_write_sfp_data_byte - Writes SFP module data. | ||
398 | * @hw: pointer to the HW structure | ||
399 | * @offset: byte location offset to write to | ||
400 | * @data: data to write | ||
401 | * | ||
402 | * Writes one byte to SFP module data stored | ||
403 | * in SFP resided EEPROM memory or SFP diagnostic area. | ||
404 | * Function should be called with | ||
405 | * E1000_I2CCMD_SFP_DATA_ADDR(<byte offset>) for SFP module database access | ||
406 | * E1000_I2CCMD_SFP_DIAG_ADDR(<byte offset>) for SFP diagnostics parameters | ||
407 | * access | ||
408 | **/ | ||
409 | s32 e1000_write_sfp_data_byte(struct e1000_hw *hw, u16 offset, u8 data) | ||
410 | { | ||
411 | u32 i = 0; | ||
412 | u32 i2ccmd = 0; | ||
413 | u32 data_local = 0; | ||
414 | |||
415 | if (offset > E1000_I2CCMD_SFP_DIAG_ADDR(255)) { | ||
416 | hw_dbg("I2CCMD command address exceeds upper limit\n"); | ||
417 | return -E1000_ERR_PHY; | ||
418 | } | ||
419 | /* The programming interface is 16 bits wide | ||
420 | * so we need to read the whole word first | ||
421 | * then update appropriate byte lane and write | ||
422 | * the updated word back. | ||
423 | */ | ||
424 | /* Set up Op-code, EEPROM Address,in the I2CCMD | ||
425 | * register. The MAC will take care of interfacing | ||
426 | * with an EEPROM to write the data given. | ||
427 | */ | ||
428 | i2ccmd = ((offset << E1000_I2CCMD_REG_ADDR_SHIFT) | | ||
429 | E1000_I2CCMD_OPCODE_READ); | ||
430 | /* Set a command to read single word */ | ||
431 | wr32(E1000_I2CCMD, i2ccmd); | ||
432 | for (i = 0; i < E1000_I2CCMD_PHY_TIMEOUT; i++) { | ||
433 | udelay(50); | ||
434 | /* Poll the ready bit to see if lastly | ||
435 | * launched I2C operation completed | ||
436 | */ | ||
437 | i2ccmd = rd32(E1000_I2CCMD); | ||
438 | if (i2ccmd & E1000_I2CCMD_READY) { | ||
439 | /* Check if this is READ or WRITE phase */ | ||
440 | if ((i2ccmd & E1000_I2CCMD_OPCODE_READ) == | ||
441 | E1000_I2CCMD_OPCODE_READ) { | ||
442 | /* Write the selected byte | ||
443 | * lane and update whole word | ||
444 | */ | ||
445 | data_local = i2ccmd & 0xFF00; | ||
446 | data_local |= data; | ||
447 | i2ccmd = ((offset << | ||
448 | E1000_I2CCMD_REG_ADDR_SHIFT) | | ||
449 | E1000_I2CCMD_OPCODE_WRITE | data_local); | ||
450 | wr32(E1000_I2CCMD, i2ccmd); | ||
451 | } else { | ||
452 | break; | ||
453 | } | ||
454 | } | ||
455 | } | ||
456 | if (!(i2ccmd & E1000_I2CCMD_READY)) { | ||
457 | hw_dbg("I2CCMD Write did not complete\n"); | ||
458 | return -E1000_ERR_PHY; | ||
459 | } | ||
460 | if (i2ccmd & E1000_I2CCMD_ERROR) { | ||
461 | hw_dbg("I2CCMD Error bit set\n"); | ||
462 | return -E1000_ERR_PHY; | ||
463 | } | ||
464 | return 0; | ||
465 | } | ||
466 | |||
467 | /** | ||
468 | * igb_read_phy_reg_igp - Read igp PHY register | 396 | * igb_read_phy_reg_igp - Read igp PHY register |
469 | * @hw: pointer to the HW structure | 397 | * @hw: pointer to the HW structure |
470 | * @offset: register offset to be read | 398 | * @offset: register offset to be read |
diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.h b/drivers/net/ethernet/intel/igb/e1000_phy.h index 6a0873f2095a..4c2c36c46a73 100644 --- a/drivers/net/ethernet/intel/igb/e1000_phy.h +++ b/drivers/net/ethernet/intel/igb/e1000_phy.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
@@ -70,7 +69,6 @@ s32 igb_write_phy_reg_mdic(struct e1000_hw *hw, u32 offset, u16 data); | |||
70 | s32 igb_read_phy_reg_i2c(struct e1000_hw *hw, u32 offset, u16 *data); | 69 | s32 igb_read_phy_reg_i2c(struct e1000_hw *hw, u32 offset, u16 *data); |
71 | s32 igb_write_phy_reg_i2c(struct e1000_hw *hw, u32 offset, u16 data); | 70 | s32 igb_write_phy_reg_i2c(struct e1000_hw *hw, u32 offset, u16 data); |
72 | s32 igb_read_sfp_data_byte(struct e1000_hw *hw, u16 offset, u8 *data); | 71 | s32 igb_read_sfp_data_byte(struct e1000_hw *hw, u16 offset, u8 *data); |
73 | s32 e1000_write_sfp_data_byte(struct e1000_hw *hw, u16 offset, u8 data); | ||
74 | s32 igb_copper_link_setup_82580(struct e1000_hw *hw); | 72 | s32 igb_copper_link_setup_82580(struct e1000_hw *hw); |
75 | s32 igb_get_phy_info_82580(struct e1000_hw *hw); | 73 | s32 igb_get_phy_info_82580(struct e1000_hw *hw); |
76 | s32 igb_phy_force_speed_duplex_82580(struct e1000_hw *hw); | 74 | s32 igb_phy_force_speed_duplex_82580(struct e1000_hw *hw); |
diff --git a/drivers/net/ethernet/intel/igb/e1000_regs.h b/drivers/net/ethernet/intel/igb/e1000_regs.h index 82632c6c53af..abdd935a9dad 100644 --- a/drivers/net/ethernet/intel/igb/e1000_regs.h +++ b/drivers/net/ethernet/intel/igb/e1000_regs.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h index ccf472f073dd..fc3fc2c6fe40 100644 --- a/drivers/net/ethernet/intel/igb/igb.h +++ b/drivers/net/ethernet/intel/igb/igb.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
@@ -525,9 +524,7 @@ void igb_set_fw_version(struct igb_adapter *); | |||
525 | void igb_ptp_init(struct igb_adapter *adapter); | 524 | void igb_ptp_init(struct igb_adapter *adapter); |
526 | void igb_ptp_stop(struct igb_adapter *adapter); | 525 | void igb_ptp_stop(struct igb_adapter *adapter); |
527 | void igb_ptp_reset(struct igb_adapter *adapter); | 526 | void igb_ptp_reset(struct igb_adapter *adapter); |
528 | void igb_ptp_tx_work(struct work_struct *work); | ||
529 | void igb_ptp_rx_hang(struct igb_adapter *adapter); | 527 | void igb_ptp_rx_hang(struct igb_adapter *adapter); |
530 | void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter); | ||
531 | void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector, struct sk_buff *skb); | 528 | void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector, struct sk_buff *skb); |
532 | void igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector, unsigned char *va, | 529 | void igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector, unsigned char *va, |
533 | struct sk_buff *skb); | 530 | struct sk_buff *skb); |
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index 1df02378de69..c7f574165298 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/igb_hwmon.c b/drivers/net/ethernet/intel/igb/igb_hwmon.c index e0af5bc61613..8333f67acf96 100644 --- a/drivers/net/ethernet/intel/igb/igb_hwmon.c +++ b/drivers/net/ethernet/intel/igb/igb_hwmon.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 84dfa3f0e3b8..3384156cf1b5 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007-2013 Intel Corporation. | 4 | Copyright(c) 2007-2014 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 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, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | more details. | 13 | more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License along with | 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., | 16 | this program; if not, see <http://www.gnu.org/licenses/>. |
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | 17 | ||
19 | The full GNU General Public License is included in this distribution in | 18 | The full GNU General Public License is included in this distribution in |
20 | the file called "COPYING". | 19 | the file called "COPYING". |
@@ -70,7 +69,7 @@ char igb_driver_version[] = DRV_VERSION; | |||
70 | static const char igb_driver_string[] = | 69 | static const char igb_driver_string[] = |
71 | "Intel(R) Gigabit Ethernet Network Driver"; | 70 | "Intel(R) Gigabit Ethernet Network Driver"; |
72 | static const char igb_copyright[] = | 71 | static const char igb_copyright[] = |
73 | "Copyright (c) 2007-2013 Intel Corporation."; | 72 | "Copyright (c) 2007-2014 Intel Corporation."; |
74 | 73 | ||
75 | static const struct e1000_info *igb_info_tbl[] = { | 74 | static const struct e1000_info *igb_info_tbl[] = { |
76 | [board_82575] = &e1000_82575_info, | 75 | [board_82575] = &e1000_82575_info, |
diff --git a/drivers/net/ethernet/intel/igb/igb_ptp.c b/drivers/net/ethernet/intel/igb/igb_ptp.c index 5a54e3dc535d..9c9c141f089a 100644 --- a/drivers/net/ethernet/intel/igb/igb_ptp.c +++ b/drivers/net/ethernet/intel/igb/igb_ptp.c | |||
@@ -12,9 +12,8 @@ | |||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. |
14 | * | 14 | * |
15 | * You should have received a copy of the GNU General Public License along | 15 | * You should have received a copy of the GNU General Public License along with |
16 | * with this program; if not, write to the Free Software Foundation, Inc., | 16 | * this program; if not, see <http://www.gnu.org/licenses/>. |
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | */ | 17 | */ |
19 | #include <linux/module.h> | 18 | #include <linux/module.h> |
20 | #include <linux/device.h> | 19 | #include <linux/device.h> |
@@ -75,6 +74,8 @@ | |||
75 | #define INCVALUE_82576 (16 << IGB_82576_TSYNC_SHIFT) | 74 | #define INCVALUE_82576 (16 << IGB_82576_TSYNC_SHIFT) |
76 | #define IGB_NBITS_82580 40 | 75 | #define IGB_NBITS_82580 40 |
77 | 76 | ||
77 | static void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter); | ||
78 | |||
78 | /* SYSTIM read access for the 82576 */ | 79 | /* SYSTIM read access for the 82576 */ |
79 | static cycle_t igb_ptp_read_82576(const struct cyclecounter *cc) | 80 | static cycle_t igb_ptp_read_82576(const struct cyclecounter *cc) |
80 | { | 81 | { |
@@ -372,7 +373,7 @@ static int igb_ptp_enable(struct ptp_clock_info *ptp, | |||
372 | * This work function polls the TSYNCTXCTL valid bit to determine when a | 373 | * This work function polls the TSYNCTXCTL valid bit to determine when a |
373 | * timestamp has been taken for the current stored skb. | 374 | * timestamp has been taken for the current stored skb. |
374 | **/ | 375 | **/ |
375 | void igb_ptp_tx_work(struct work_struct *work) | 376 | static void igb_ptp_tx_work(struct work_struct *work) |
376 | { | 377 | { |
377 | struct igb_adapter *adapter = container_of(work, struct igb_adapter, | 378 | struct igb_adapter *adapter = container_of(work, struct igb_adapter, |
378 | ptp_tx_work); | 379 | ptp_tx_work); |
@@ -466,7 +467,7 @@ void igb_ptp_rx_hang(struct igb_adapter *adapter) | |||
466 | * available, then it must have been for this skb here because we only | 467 | * available, then it must have been for this skb here because we only |
467 | * allow only one such packet into the queue. | 468 | * allow only one such packet into the queue. |
468 | **/ | 469 | **/ |
469 | void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter) | 470 | static void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter) |
470 | { | 471 | { |
471 | struct e1000_hw *hw = &adapter->hw; | 472 | struct e1000_hw *hw = &adapter->hw; |
472 | struct skb_shared_hwtstamps shhwtstamps; | 473 | struct skb_shared_hwtstamps shhwtstamps; |
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 18076c4178b4..a345cc7b378c 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | |||
@@ -2630,9 +2630,12 @@ static irqreturn_t ixgbe_msix_other(int irq, void *data) | |||
2630 | switch (hw->mac.type) { | 2630 | switch (hw->mac.type) { |
2631 | case ixgbe_mac_82599EB: | 2631 | case ixgbe_mac_82599EB: |
2632 | case ixgbe_mac_X540: | 2632 | case ixgbe_mac_X540: |
2633 | if (eicr & IXGBE_EICR_ECC) | 2633 | if (eicr & IXGBE_EICR_ECC) { |
2634 | e_info(link, "Received unrecoverable ECC Err, please " | 2634 | e_info(link, "Received ECC Err, initiating reset\n"); |
2635 | "reboot\n"); | 2635 | adapter->flags2 |= IXGBE_FLAG2_RESET_REQUESTED; |
2636 | ixgbe_service_event_schedule(adapter); | ||
2637 | IXGBE_WRITE_REG(hw, IXGBE_EICR, IXGBE_EICR_ECC); | ||
2638 | } | ||
2636 | /* Handle Flow Director Full threshold interrupt */ | 2639 | /* Handle Flow Director Full threshold interrupt */ |
2637 | if (eicr & IXGBE_EICR_FLOW_DIR) { | 2640 | if (eicr & IXGBE_EICR_FLOW_DIR) { |
2638 | int reinit_count = 0; | 2641 | int reinit_count = 0; |
@@ -2846,9 +2849,12 @@ static irqreturn_t ixgbe_intr(int irq, void *data) | |||
2846 | ixgbe_check_sfp_event(adapter, eicr); | 2849 | ixgbe_check_sfp_event(adapter, eicr); |
2847 | /* Fall through */ | 2850 | /* Fall through */ |
2848 | case ixgbe_mac_X540: | 2851 | case ixgbe_mac_X540: |
2849 | if (eicr & IXGBE_EICR_ECC) | 2852 | if (eicr & IXGBE_EICR_ECC) { |
2850 | e_info(link, "Received unrecoverable ECC err, please " | 2853 | e_info(link, "Received ECC Err, initiating reset\n"); |
2851 | "reboot\n"); | 2854 | adapter->flags2 |= IXGBE_FLAG2_RESET_REQUESTED; |
2855 | ixgbe_service_event_schedule(adapter); | ||
2856 | IXGBE_WRITE_REG(hw, IXGBE_EICR, IXGBE_EICR_ECC); | ||
2857 | } | ||
2852 | ixgbe_check_overtemp_event(adapter, eicr); | 2858 | ixgbe_check_overtemp_event(adapter, eicr); |
2853 | break; | 2859 | break; |
2854 | default: | 2860 | default: |
@@ -7792,6 +7798,7 @@ int ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id, | |||
7792 | case IXGBE_DEV_ID_82599_SFP: | 7798 | case IXGBE_DEV_ID_82599_SFP: |
7793 | /* Only these subdevices could supports WOL */ | 7799 | /* Only these subdevices could supports WOL */ |
7794 | switch (subdevice_id) { | 7800 | switch (subdevice_id) { |
7801 | case IXGBE_SUBDEV_ID_82599_SFP_WOL0: | ||
7795 | case IXGBE_SUBDEV_ID_82599_560FLR: | 7802 | case IXGBE_SUBDEV_ID_82599_560FLR: |
7796 | /* only support first port */ | 7803 | /* only support first port */ |
7797 | if (hw->bus.func != 0) | 7804 | if (hw->bus.func != 0) |
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c index 5184e2a1a7d8..9e54fcc13bc9 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | |||
@@ -840,7 +840,9 @@ void ixgbe_ptp_init(struct ixgbe_adapter *adapter) | |||
840 | 840 | ||
841 | switch (adapter->hw.mac.type) { | 841 | switch (adapter->hw.mac.type) { |
842 | case ixgbe_mac_X540: | 842 | case ixgbe_mac_X540: |
843 | snprintf(adapter->ptp_caps.name, 16, "%s", netdev->name); | 843 | snprintf(adapter->ptp_caps.name, |
844 | sizeof(adapter->ptp_caps.name), | ||
845 | "%s", netdev->name); | ||
844 | adapter->ptp_caps.owner = THIS_MODULE; | 846 | adapter->ptp_caps.owner = THIS_MODULE; |
845 | adapter->ptp_caps.max_adj = 250000000; | 847 | adapter->ptp_caps.max_adj = 250000000; |
846 | adapter->ptp_caps.n_alarm = 0; | 848 | adapter->ptp_caps.n_alarm = 0; |
@@ -854,7 +856,9 @@ void ixgbe_ptp_init(struct ixgbe_adapter *adapter) | |||
854 | adapter->ptp_caps.enable = ixgbe_ptp_enable; | 856 | adapter->ptp_caps.enable = ixgbe_ptp_enable; |
855 | break; | 857 | break; |
856 | case ixgbe_mac_82599EB: | 858 | case ixgbe_mac_82599EB: |
857 | snprintf(adapter->ptp_caps.name, 16, "%s", netdev->name); | 859 | snprintf(adapter->ptp_caps.name, |
860 | sizeof(adapter->ptp_caps.name), | ||
861 | "%s", netdev->name); | ||
858 | adapter->ptp_caps.owner = THIS_MODULE; | 862 | adapter->ptp_caps.owner = THIS_MODULE; |
859 | adapter->ptp_caps.max_adj = 250000000; | 863 | adapter->ptp_caps.max_adj = 250000000; |
860 | adapter->ptp_caps.n_alarm = 0; | 864 | adapter->ptp_caps.n_alarm = 0; |
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h index 0d39cfc4a3bf..9283cffd1b57 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h | |||
@@ -54,6 +54,7 @@ | |||
54 | #define IXGBE_DEV_ID_82599_BACKPLANE_FCOE 0x152a | 54 | #define IXGBE_DEV_ID_82599_BACKPLANE_FCOE 0x152a |
55 | #define IXGBE_DEV_ID_82599_SFP_FCOE 0x1529 | 55 | #define IXGBE_DEV_ID_82599_SFP_FCOE 0x1529 |
56 | #define IXGBE_SUBDEV_ID_82599_SFP 0x11A9 | 56 | #define IXGBE_SUBDEV_ID_82599_SFP 0x11A9 |
57 | #define IXGBE_SUBDEV_ID_82599_SFP_WOL0 0x1071 | ||
57 | #define IXGBE_SUBDEV_ID_82599_RNDC 0x1F72 | 58 | #define IXGBE_SUBDEV_ID_82599_RNDC 0x1F72 |
58 | #define IXGBE_SUBDEV_ID_82599_560FLR 0x17D0 | 59 | #define IXGBE_SUBDEV_ID_82599_560FLR 0x17D0 |
59 | #define IXGBE_SUBDEV_ID_82599_SP_560FLR 0x211B | 60 | #define IXGBE_SUBDEV_ID_82599_SP_560FLR 0x211B |