equal
deleted
inserted
replaced
147 * e1000_phy_init_script - IGP phy init script - initializes the GbE PHY |
147 * e1000_phy_init_script - IGP phy init script - initializes the GbE PHY |
148 * @hw: Struct containing variables accessed by shared code |
148 * @hw: Struct containing variables accessed by shared code |
149 */ |
149 */ |
150 static void e1000_phy_init_script(struct e1000_hw *hw) |
150 static void e1000_phy_init_script(struct e1000_hw *hw) |
151 { |
151 { |
152 u32 ret_val; |
152 u32 ret_val __attribute__ ((unused)); |
153 u16 phy_saved_data; |
153 u16 phy_saved_data; |
154 |
154 |
155 e_dbg("e1000_phy_init_script"); |
155 e_dbg("e1000_phy_init_script"); |
156 |
156 |
157 if (hw->phy_init_script) { |
157 if (hw->phy_init_script) { |
394 */ |
394 */ |
395 s32 e1000_reset_hw(struct e1000_hw *hw) |
395 s32 e1000_reset_hw(struct e1000_hw *hw) |
396 { |
396 { |
397 u32 ctrl; |
397 u32 ctrl; |
398 u32 ctrl_ext; |
398 u32 ctrl_ext; |
399 u32 icr; |
399 u32 icr __attribute__ ((unused)); |
400 u32 manc; |
400 u32 manc; |
401 u32 led_ctrl; |
401 u32 led_ctrl; |
402 s32 ret_val; |
402 s32 ret_val; |
403 |
403 |
404 e_dbg("e1000_reset_hw"); |
404 e_dbg("e1000_reset_hw"); |
2300 * Checks to see if the link status of the hardware has changed. |
2300 * Checks to see if the link status of the hardware has changed. |
2301 * Called by any function that needs to check the link status of the adapter. |
2301 * Called by any function that needs to check the link status of the adapter. |
2302 */ |
2302 */ |
2303 s32 e1000_check_for_link(struct e1000_hw *hw) |
2303 s32 e1000_check_for_link(struct e1000_hw *hw) |
2304 { |
2304 { |
2305 u32 rxcw = 0; |
2305 u32 rxcw __attribute__ ((unused)) = 0; |
2306 u32 ctrl; |
2306 u32 ctrl __attribute__ ((unused)); |
2307 u32 status; |
2307 u32 status; |
2308 u32 rctl; |
2308 u32 rctl; |
2309 u32 icr; |
2309 u32 icr; |
2310 u32 signal = 0; |
2310 u32 signal __attribute__ ((unused)) = 0; |
2311 s32 ret_val; |
2311 s32 ret_val; |
2312 u16 phy_data; |
2312 u16 phy_data; |
2313 |
2313 |
2314 e_dbg("e1000_check_for_link"); |
2314 e_dbg("e1000_check_for_link"); |
2315 |
2315 |
4537 * e1000_clear_hw_cntrs - Clears all hardware statistics counters. |
4537 * e1000_clear_hw_cntrs - Clears all hardware statistics counters. |
4538 * @hw: Struct containing variables accessed by shared code |
4538 * @hw: Struct containing variables accessed by shared code |
4539 */ |
4539 */ |
4540 static void e1000_clear_hw_cntrs(struct e1000_hw *hw) |
4540 static void e1000_clear_hw_cntrs(struct e1000_hw *hw) |
4541 { |
4541 { |
4542 volatile u32 temp; |
4542 volatile u32 temp __attribute__ ((unused)); |
4543 |
4543 |
4544 temp = er32(CRCERRS); |
4544 temp = er32(CRCERRS); |
4545 temp = er32(SYMERRS); |
4545 temp = er32(SYMERRS); |
4546 temp = er32(MPC); |
4546 temp = er32(MPC); |
4547 temp = er32(SCC); |
4547 temp = er32(SCC); |