diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-10-30 10:53:34 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2005-11-05 21:00:01 -0500 |
commit | 3ad2cc6798be9388c9a3f1e6180e77690303eb01 (patch) | |
tree | 28389b018b626949eb5a6c4b1b0157c94a5f9ed4 /drivers/net/e1000 | |
parent | e9ab1d145365a871858f402f3655cd4939fa38d5 (diff) |
[PATCH] drivers/net/e1000/: possible cleanups
This patch contains the following possible cleanups:
- make needlessly global code static
- #if 0 the following unused global functions:
- e1000_hw.c: e1000_mc_addr_list_update
- e1000_hw.c: e1000_read_reg_io
- e1000_hw.c: e1000_enable_pciex_master
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r-- | drivers/net/e1000/e1000_ethtool.c | 2 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_hw.c | 101 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_hw.h | 42 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 31 |
4 files changed, 87 insertions, 89 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c index 9c7feaeaa6a4..8eae8ba27e84 100644 --- a/drivers/net/e1000/e1000_ethtool.c +++ b/drivers/net/e1000/e1000_ethtool.c | |||
@@ -1739,7 +1739,7 @@ e1000_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) | |||
1739 | } | 1739 | } |
1740 | } | 1740 | } |
1741 | 1741 | ||
1742 | struct ethtool_ops e1000_ethtool_ops = { | 1742 | static struct ethtool_ops e1000_ethtool_ops = { |
1743 | .get_settings = e1000_get_settings, | 1743 | .get_settings = e1000_get_settings, |
1744 | .set_settings = e1000_set_settings, | 1744 | .set_settings = e1000_set_settings, |
1745 | .get_drvinfo = e1000_get_drvinfo, | 1745 | .get_drvinfo = e1000_get_drvinfo, |
diff --git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index 8fc876da43b4..a267c5235fc0 100644 --- a/drivers/net/e1000/e1000_hw.c +++ b/drivers/net/e1000/e1000_hw.c | |||
@@ -68,6 +68,38 @@ static int32_t e1000_polarity_reversal_workaround(struct e1000_hw *hw); | |||
68 | static int32_t e1000_set_phy_mode(struct e1000_hw *hw); | 68 | static int32_t e1000_set_phy_mode(struct e1000_hw *hw); |
69 | static int32_t e1000_host_if_read_cookie(struct e1000_hw *hw, uint8_t *buffer); | 69 | static int32_t e1000_host_if_read_cookie(struct e1000_hw *hw, uint8_t *buffer); |
70 | static uint8_t e1000_calculate_mng_checksum(char *buffer, uint32_t length); | 70 | static uint8_t e1000_calculate_mng_checksum(char *buffer, uint32_t length); |
71 | static uint8_t e1000_arc_subsystem_valid(struct e1000_hw *hw); | ||
72 | static int32_t e1000_check_downshift(struct e1000_hw *hw); | ||
73 | static int32_t e1000_check_polarity(struct e1000_hw *hw, uint16_t *polarity); | ||
74 | static void e1000_clear_hw_cntrs(struct e1000_hw *hw); | ||
75 | static void e1000_clear_vfta(struct e1000_hw *hw); | ||
76 | static int32_t e1000_commit_shadow_ram(struct e1000_hw *hw); | ||
77 | static int32_t e1000_config_dsp_after_link_change(struct e1000_hw *hw, | ||
78 | boolean_t link_up); | ||
79 | static int32_t e1000_config_fc_after_link_up(struct e1000_hw *hw); | ||
80 | static int32_t e1000_detect_gig_phy(struct e1000_hw *hw); | ||
81 | static int32_t e1000_get_auto_rd_done(struct e1000_hw *hw); | ||
82 | static int32_t e1000_get_cable_length(struct e1000_hw *hw, | ||
83 | uint16_t *min_length, | ||
84 | uint16_t *max_length); | ||
85 | static int32_t e1000_get_hw_eeprom_semaphore(struct e1000_hw *hw); | ||
86 | static int32_t e1000_get_phy_cfg_done(struct e1000_hw *hw); | ||
87 | static int32_t e1000_id_led_init(struct e1000_hw * hw); | ||
88 | static void e1000_init_rx_addrs(struct e1000_hw *hw); | ||
89 | static boolean_t e1000_is_onboard_nvm_eeprom(struct e1000_hw *hw); | ||
90 | static int32_t e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int eerd); | ||
91 | static void e1000_put_hw_eeprom_semaphore(struct e1000_hw *hw); | ||
92 | static int32_t e1000_read_eeprom_eerd(struct e1000_hw *hw, uint16_t offset, | ||
93 | uint16_t words, uint16_t *data); | ||
94 | static int32_t e1000_set_d0_lplu_state(struct e1000_hw *hw, boolean_t active); | ||
95 | static int32_t e1000_set_d3_lplu_state(struct e1000_hw *hw, boolean_t active); | ||
96 | static int32_t e1000_wait_autoneg(struct e1000_hw *hw); | ||
97 | |||
98 | static void e1000_write_reg_io(struct e1000_hw *hw, uint32_t offset, | ||
99 | uint32_t value); | ||
100 | |||
101 | #define E1000_WRITE_REG_IO(a, reg, val) \ | ||
102 | e1000_write_reg_io((a), E1000_##reg, val) | ||
71 | 103 | ||
72 | /* IGP cable length table */ | 104 | /* IGP cable length table */ |
73 | static const | 105 | static const |
@@ -2035,7 +2067,7 @@ e1000_force_mac_fc(struct e1000_hw *hw) | |||
2035 | * based on the flow control negotiated by the PHY. In TBI mode, the TFCE | 2067 | * based on the flow control negotiated by the PHY. In TBI mode, the TFCE |
2036 | * and RFCE bits will be automaticaly set to the negotiated flow control mode. | 2068 | * and RFCE bits will be automaticaly set to the negotiated flow control mode. |
2037 | *****************************************************************************/ | 2069 | *****************************************************************************/ |
2038 | int32_t | 2070 | static int32_t |
2039 | e1000_config_fc_after_link_up(struct e1000_hw *hw) | 2071 | e1000_config_fc_after_link_up(struct e1000_hw *hw) |
2040 | { | 2072 | { |
2041 | int32_t ret_val; | 2073 | int32_t ret_val; |
@@ -2537,7 +2569,7 @@ e1000_get_speed_and_duplex(struct e1000_hw *hw, | |||
2537 | * | 2569 | * |
2538 | * hw - Struct containing variables accessed by shared code | 2570 | * hw - Struct containing variables accessed by shared code |
2539 | ******************************************************************************/ | 2571 | ******************************************************************************/ |
2540 | int32_t | 2572 | static int32_t |
2541 | e1000_wait_autoneg(struct e1000_hw *hw) | 2573 | e1000_wait_autoneg(struct e1000_hw *hw) |
2542 | { | 2574 | { |
2543 | int32_t ret_val; | 2575 | int32_t ret_val; |
@@ -3021,7 +3053,7 @@ e1000_phy_reset(struct e1000_hw *hw) | |||
3021 | * | 3053 | * |
3022 | * hw - Struct containing variables accessed by shared code | 3054 | * hw - Struct containing variables accessed by shared code |
3023 | ******************************************************************************/ | 3055 | ******************************************************************************/ |
3024 | int32_t | 3056 | static int32_t |
3025 | e1000_detect_gig_phy(struct e1000_hw *hw) | 3057 | e1000_detect_gig_phy(struct e1000_hw *hw) |
3026 | { | 3058 | { |
3027 | int32_t phy_init_status, ret_val; | 3059 | int32_t phy_init_status, ret_val; |
@@ -3121,7 +3153,7 @@ e1000_phy_reset_dsp(struct e1000_hw *hw) | |||
3121 | * hw - Struct containing variables accessed by shared code | 3153 | * hw - Struct containing variables accessed by shared code |
3122 | * phy_info - PHY information structure | 3154 | * phy_info - PHY information structure |
3123 | ******************************************************************************/ | 3155 | ******************************************************************************/ |
3124 | int32_t | 3156 | static int32_t |
3125 | e1000_phy_igp_get_info(struct e1000_hw *hw, | 3157 | e1000_phy_igp_get_info(struct e1000_hw *hw, |
3126 | struct e1000_phy_info *phy_info) | 3158 | struct e1000_phy_info *phy_info) |
3127 | { | 3159 | { |
@@ -3195,7 +3227,7 @@ e1000_phy_igp_get_info(struct e1000_hw *hw, | |||
3195 | * hw - Struct containing variables accessed by shared code | 3227 | * hw - Struct containing variables accessed by shared code |
3196 | * phy_info - PHY information structure | 3228 | * phy_info - PHY information structure |
3197 | ******************************************************************************/ | 3229 | ******************************************************************************/ |
3198 | int32_t | 3230 | static int32_t |
3199 | e1000_phy_m88_get_info(struct e1000_hw *hw, | 3231 | e1000_phy_m88_get_info(struct e1000_hw *hw, |
3200 | struct e1000_phy_info *phy_info) | 3232 | struct e1000_phy_info *phy_info) |
3201 | { | 3233 | { |
@@ -3905,7 +3937,7 @@ e1000_read_eeprom(struct e1000_hw *hw, | |||
3905 | * data - word read from the EEPROM | 3937 | * data - word read from the EEPROM |
3906 | * words - number of words to read | 3938 | * words - number of words to read |
3907 | *****************************************************************************/ | 3939 | *****************************************************************************/ |
3908 | int32_t | 3940 | static int32_t |
3909 | e1000_read_eeprom_eerd(struct e1000_hw *hw, | 3941 | e1000_read_eeprom_eerd(struct e1000_hw *hw, |
3910 | uint16_t offset, | 3942 | uint16_t offset, |
3911 | uint16_t words, | 3943 | uint16_t words, |
@@ -3939,7 +3971,7 @@ e1000_read_eeprom_eerd(struct e1000_hw *hw, | |||
3939 | * data - word read from the EEPROM | 3971 | * data - word read from the EEPROM |
3940 | * words - number of words to read | 3972 | * words - number of words to read |
3941 | *****************************************************************************/ | 3973 | *****************************************************************************/ |
3942 | int32_t | 3974 | static int32_t |
3943 | e1000_write_eeprom_eewr(struct e1000_hw *hw, | 3975 | e1000_write_eeprom_eewr(struct e1000_hw *hw, |
3944 | uint16_t offset, | 3976 | uint16_t offset, |
3945 | uint16_t words, | 3977 | uint16_t words, |
@@ -3976,7 +4008,7 @@ e1000_write_eeprom_eewr(struct e1000_hw *hw, | |||
3976 | * | 4008 | * |
3977 | * hw - Struct containing variables accessed by shared code | 4009 | * hw - Struct containing variables accessed by shared code |
3978 | *****************************************************************************/ | 4010 | *****************************************************************************/ |
3979 | int32_t | 4011 | static int32_t |
3980 | e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int eerd) | 4012 | e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int eerd) |
3981 | { | 4013 | { |
3982 | uint32_t attempts = 100000; | 4014 | uint32_t attempts = 100000; |
@@ -4004,7 +4036,7 @@ e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int eerd) | |||
4004 | * | 4036 | * |
4005 | * hw - Struct containing variables accessed by shared code | 4037 | * hw - Struct containing variables accessed by shared code |
4006 | ****************************************************************************/ | 4038 | ****************************************************************************/ |
4007 | boolean_t | 4039 | static boolean_t |
4008 | e1000_is_onboard_nvm_eeprom(struct e1000_hw *hw) | 4040 | e1000_is_onboard_nvm_eeprom(struct e1000_hw *hw) |
4009 | { | 4041 | { |
4010 | uint32_t eecd = 0; | 4042 | uint32_t eecd = 0; |
@@ -4322,7 +4354,7 @@ e1000_write_eeprom_microwire(struct e1000_hw *hw, | |||
4322 | * data - word read from the EEPROM | 4354 | * data - word read from the EEPROM |
4323 | * words - number of words to read | 4355 | * words - number of words to read |
4324 | *****************************************************************************/ | 4356 | *****************************************************************************/ |
4325 | int32_t | 4357 | static int32_t |
4326 | e1000_commit_shadow_ram(struct e1000_hw *hw) | 4358 | e1000_commit_shadow_ram(struct e1000_hw *hw) |
4327 | { | 4359 | { |
4328 | uint32_t attempts = 100000; | 4360 | uint32_t attempts = 100000; |
@@ -4453,7 +4485,7 @@ e1000_read_mac_addr(struct e1000_hw * hw) | |||
4453 | * of the receive addresss registers. Clears the multicast table. Assumes | 4485 | * of the receive addresss registers. Clears the multicast table. Assumes |
4454 | * the receiver is in reset when the routine is called. | 4486 | * the receiver is in reset when the routine is called. |
4455 | *****************************************************************************/ | 4487 | *****************************************************************************/ |
4456 | void | 4488 | static void |
4457 | e1000_init_rx_addrs(struct e1000_hw *hw) | 4489 | e1000_init_rx_addrs(struct e1000_hw *hw) |
4458 | { | 4490 | { |
4459 | uint32_t i; | 4491 | uint32_t i; |
@@ -4481,6 +4513,7 @@ e1000_init_rx_addrs(struct e1000_hw *hw) | |||
4481 | } | 4513 | } |
4482 | } | 4514 | } |
4483 | 4515 | ||
4516 | #if 0 | ||
4484 | /****************************************************************************** | 4517 | /****************************************************************************** |
4485 | * Updates the MAC's list of multicast addresses. | 4518 | * Updates the MAC's list of multicast addresses. |
4486 | * | 4519 | * |
@@ -4564,6 +4597,7 @@ e1000_mc_addr_list_update(struct e1000_hw *hw, | |||
4564 | } | 4597 | } |
4565 | DEBUGOUT("MC Update Complete\n"); | 4598 | DEBUGOUT("MC Update Complete\n"); |
4566 | } | 4599 | } |
4600 | #endif /* 0 */ | ||
4567 | 4601 | ||
4568 | /****************************************************************************** | 4602 | /****************************************************************************** |
4569 | * Hashes an address to determine its location in the multicast table | 4603 | * Hashes an address to determine its location in the multicast table |
@@ -4705,7 +4739,7 @@ e1000_write_vfta(struct e1000_hw *hw, | |||
4705 | * | 4739 | * |
4706 | * hw - Struct containing variables accessed by shared code | 4740 | * hw - Struct containing variables accessed by shared code |
4707 | *****************************************************************************/ | 4741 | *****************************************************************************/ |
4708 | void | 4742 | static void |
4709 | e1000_clear_vfta(struct e1000_hw *hw) | 4743 | e1000_clear_vfta(struct e1000_hw *hw) |
4710 | { | 4744 | { |
4711 | uint32_t offset; | 4745 | uint32_t offset; |
@@ -4735,7 +4769,7 @@ e1000_clear_vfta(struct e1000_hw *hw) | |||
4735 | } | 4769 | } |
4736 | } | 4770 | } |
4737 | 4771 | ||
4738 | int32_t | 4772 | static int32_t |
4739 | e1000_id_led_init(struct e1000_hw * hw) | 4773 | e1000_id_led_init(struct e1000_hw * hw) |
4740 | { | 4774 | { |
4741 | uint32_t ledctl; | 4775 | uint32_t ledctl; |
@@ -4997,7 +5031,7 @@ e1000_led_off(struct e1000_hw *hw) | |||
4997 | * | 5031 | * |
4998 | * hw - Struct containing variables accessed by shared code | 5032 | * hw - Struct containing variables accessed by shared code |
4999 | *****************************************************************************/ | 5033 | *****************************************************************************/ |
5000 | void | 5034 | static void |
5001 | e1000_clear_hw_cntrs(struct e1000_hw *hw) | 5035 | e1000_clear_hw_cntrs(struct e1000_hw *hw) |
5002 | { | 5036 | { |
5003 | volatile uint32_t temp; | 5037 | volatile uint32_t temp; |
@@ -5283,6 +5317,8 @@ e1000_get_bus_info(struct e1000_hw *hw) | |||
5283 | break; | 5317 | break; |
5284 | } | 5318 | } |
5285 | } | 5319 | } |
5320 | |||
5321 | #if 0 | ||
5286 | /****************************************************************************** | 5322 | /****************************************************************************** |
5287 | * Reads a value from one of the devices registers using port I/O (as opposed | 5323 | * Reads a value from one of the devices registers using port I/O (as opposed |
5288 | * memory mapped I/O). Only 82544 and newer devices support port I/O. | 5324 | * memory mapped I/O). Only 82544 and newer devices support port I/O. |
@@ -5300,6 +5336,7 @@ e1000_read_reg_io(struct e1000_hw *hw, | |||
5300 | e1000_io_write(hw, io_addr, offset); | 5336 | e1000_io_write(hw, io_addr, offset); |
5301 | return e1000_io_read(hw, io_data); | 5337 | return e1000_io_read(hw, io_data); |
5302 | } | 5338 | } |
5339 | #endif /* 0 */ | ||
5303 | 5340 | ||
5304 | /****************************************************************************** | 5341 | /****************************************************************************** |
5305 | * Writes a value to one of the devices registers using port I/O (as opposed to | 5342 | * Writes a value to one of the devices registers using port I/O (as opposed to |
@@ -5309,7 +5346,7 @@ e1000_read_reg_io(struct e1000_hw *hw, | |||
5309 | * offset - offset to write to | 5346 | * offset - offset to write to |
5310 | * value - value to write | 5347 | * value - value to write |
5311 | *****************************************************************************/ | 5348 | *****************************************************************************/ |
5312 | void | 5349 | static void |
5313 | e1000_write_reg_io(struct e1000_hw *hw, | 5350 | e1000_write_reg_io(struct e1000_hw *hw, |
5314 | uint32_t offset, | 5351 | uint32_t offset, |
5315 | uint32_t value) | 5352 | uint32_t value) |
@@ -5337,7 +5374,7 @@ e1000_write_reg_io(struct e1000_hw *hw, | |||
5337 | * register to the minimum and maximum range. | 5374 | * register to the minimum and maximum range. |
5338 | * For IGP phy's, the function calculates the range by the AGC registers. | 5375 | * For IGP phy's, the function calculates the range by the AGC registers. |
5339 | *****************************************************************************/ | 5376 | *****************************************************************************/ |
5340 | int32_t | 5377 | static int32_t |
5341 | e1000_get_cable_length(struct e1000_hw *hw, | 5378 | e1000_get_cable_length(struct e1000_hw *hw, |
5342 | uint16_t *min_length, | 5379 | uint16_t *min_length, |
5343 | uint16_t *max_length) | 5380 | uint16_t *max_length) |
@@ -5489,7 +5526,7 @@ e1000_get_cable_length(struct e1000_hw *hw, | |||
5489 | * return 0. If the link speed is 1000 Mbps the polarity status is in the | 5526 | * return 0. If the link speed is 1000 Mbps the polarity status is in the |
5490 | * IGP01E1000_PHY_PCS_INIT_REG. | 5527 | * IGP01E1000_PHY_PCS_INIT_REG. |
5491 | *****************************************************************************/ | 5528 | *****************************************************************************/ |
5492 | int32_t | 5529 | static int32_t |
5493 | e1000_check_polarity(struct e1000_hw *hw, | 5530 | e1000_check_polarity(struct e1000_hw *hw, |
5494 | uint16_t *polarity) | 5531 | uint16_t *polarity) |
5495 | { | 5532 | { |
@@ -5551,7 +5588,7 @@ e1000_check_polarity(struct e1000_hw *hw, | |||
5551 | * Link Health register. In IGP this bit is latched high, so the driver must | 5588 | * Link Health register. In IGP this bit is latched high, so the driver must |
5552 | * read it immediately after link is established. | 5589 | * read it immediately after link is established. |
5553 | *****************************************************************************/ | 5590 | *****************************************************************************/ |
5554 | int32_t | 5591 | static int32_t |
5555 | e1000_check_downshift(struct e1000_hw *hw) | 5592 | e1000_check_downshift(struct e1000_hw *hw) |
5556 | { | 5593 | { |
5557 | int32_t ret_val; | 5594 | int32_t ret_val; |
@@ -5592,7 +5629,7 @@ e1000_check_downshift(struct e1000_hw *hw) | |||
5592 | * | 5629 | * |
5593 | ****************************************************************************/ | 5630 | ****************************************************************************/ |
5594 | 5631 | ||
5595 | int32_t | 5632 | static int32_t |
5596 | e1000_config_dsp_after_link_change(struct e1000_hw *hw, | 5633 | e1000_config_dsp_after_link_change(struct e1000_hw *hw, |
5597 | boolean_t link_up) | 5634 | boolean_t link_up) |
5598 | { | 5635 | { |
@@ -5823,7 +5860,7 @@ e1000_set_phy_mode(struct e1000_hw *hw) | |||
5823 | * | 5860 | * |
5824 | ****************************************************************************/ | 5861 | ****************************************************************************/ |
5825 | 5862 | ||
5826 | int32_t | 5863 | static int32_t |
5827 | e1000_set_d3_lplu_state(struct e1000_hw *hw, | 5864 | e1000_set_d3_lplu_state(struct e1000_hw *hw, |
5828 | boolean_t active) | 5865 | boolean_t active) |
5829 | { | 5866 | { |
@@ -5936,7 +5973,7 @@ e1000_set_d3_lplu_state(struct e1000_hw *hw, | |||
5936 | * | 5973 | * |
5937 | ****************************************************************************/ | 5974 | ****************************************************************************/ |
5938 | 5975 | ||
5939 | int32_t | 5976 | static int32_t |
5940 | e1000_set_d0_lplu_state(struct e1000_hw *hw, | 5977 | e1000_set_d0_lplu_state(struct e1000_hw *hw, |
5941 | boolean_t active) | 5978 | boolean_t active) |
5942 | { | 5979 | { |
@@ -6103,7 +6140,7 @@ e1000_host_if_read_cookie(struct e1000_hw * hw, uint8_t *buffer) | |||
6103 | * timeout | 6140 | * timeout |
6104 | * - E1000_SUCCESS for success. | 6141 | * - E1000_SUCCESS for success. |
6105 | ****************************************************************************/ | 6142 | ****************************************************************************/ |
6106 | int32_t | 6143 | static int32_t |
6107 | e1000_mng_enable_host_if(struct e1000_hw * hw) | 6144 | e1000_mng_enable_host_if(struct e1000_hw * hw) |
6108 | { | 6145 | { |
6109 | uint32_t hicr; | 6146 | uint32_t hicr; |
@@ -6137,7 +6174,7 @@ e1000_mng_enable_host_if(struct e1000_hw * hw) | |||
6137 | * | 6174 | * |
6138 | * returns - E1000_SUCCESS for success. | 6175 | * returns - E1000_SUCCESS for success. |
6139 | ****************************************************************************/ | 6176 | ****************************************************************************/ |
6140 | int32_t | 6177 | static int32_t |
6141 | e1000_mng_host_if_write(struct e1000_hw * hw, uint8_t *buffer, | 6178 | e1000_mng_host_if_write(struct e1000_hw * hw, uint8_t *buffer, |
6142 | uint16_t length, uint16_t offset, uint8_t *sum) | 6179 | uint16_t length, uint16_t offset, uint8_t *sum) |
6143 | { | 6180 | { |
@@ -6205,7 +6242,7 @@ e1000_mng_host_if_write(struct e1000_hw * hw, uint8_t *buffer, | |||
6205 | * | 6242 | * |
6206 | * returns - E1000_SUCCESS for success. | 6243 | * returns - E1000_SUCCESS for success. |
6207 | ****************************************************************************/ | 6244 | ****************************************************************************/ |
6208 | int32_t | 6245 | static int32_t |
6209 | e1000_mng_write_cmd_header(struct e1000_hw * hw, | 6246 | e1000_mng_write_cmd_header(struct e1000_hw * hw, |
6210 | struct e1000_host_mng_command_header * hdr) | 6247 | struct e1000_host_mng_command_header * hdr) |
6211 | { | 6248 | { |
@@ -6243,7 +6280,7 @@ e1000_mng_write_cmd_header(struct e1000_hw * hw, | |||
6243 | * | 6280 | * |
6244 | * returns - E1000_SUCCESS for success. | 6281 | * returns - E1000_SUCCESS for success. |
6245 | ****************************************************************************/ | 6282 | ****************************************************************************/ |
6246 | int32_t | 6283 | static int32_t |
6247 | e1000_mng_write_commit( | 6284 | e1000_mng_write_commit( |
6248 | struct e1000_hw * hw) | 6285 | struct e1000_hw * hw) |
6249 | { | 6286 | { |
@@ -6496,7 +6533,7 @@ e1000_polarity_reversal_workaround(struct e1000_hw *hw) | |||
6496 | * returns: - none. | 6533 | * returns: - none. |
6497 | * | 6534 | * |
6498 | ***************************************************************************/ | 6535 | ***************************************************************************/ |
6499 | void | 6536 | static void |
6500 | e1000_set_pci_express_master_disable(struct e1000_hw *hw) | 6537 | e1000_set_pci_express_master_disable(struct e1000_hw *hw) |
6501 | { | 6538 | { |
6502 | uint32_t ctrl; | 6539 | uint32_t ctrl; |
@@ -6511,6 +6548,7 @@ e1000_set_pci_express_master_disable(struct e1000_hw *hw) | |||
6511 | E1000_WRITE_REG(hw, CTRL, ctrl); | 6548 | E1000_WRITE_REG(hw, CTRL, ctrl); |
6512 | } | 6549 | } |
6513 | 6550 | ||
6551 | #if 0 | ||
6514 | /*************************************************************************** | 6552 | /*************************************************************************** |
6515 | * | 6553 | * |
6516 | * Enables PCI-Express master access. | 6554 | * Enables PCI-Express master access. |
@@ -6534,6 +6572,7 @@ e1000_enable_pciex_master(struct e1000_hw *hw) | |||
6534 | ctrl &= ~E1000_CTRL_GIO_MASTER_DISABLE; | 6572 | ctrl &= ~E1000_CTRL_GIO_MASTER_DISABLE; |
6535 | E1000_WRITE_REG(hw, CTRL, ctrl); | 6573 | E1000_WRITE_REG(hw, CTRL, ctrl); |
6536 | } | 6574 | } |
6575 | #endif /* 0 */ | ||
6537 | 6576 | ||
6538 | /******************************************************************************* | 6577 | /******************************************************************************* |
6539 | * | 6578 | * |
@@ -6584,7 +6623,7 @@ e1000_disable_pciex_master(struct e1000_hw *hw) | |||
6584 | * E1000_SUCCESS at any other case. | 6623 | * E1000_SUCCESS at any other case. |
6585 | * | 6624 | * |
6586 | ******************************************************************************/ | 6625 | ******************************************************************************/ |
6587 | int32_t | 6626 | static int32_t |
6588 | e1000_get_auto_rd_done(struct e1000_hw *hw) | 6627 | e1000_get_auto_rd_done(struct e1000_hw *hw) |
6589 | { | 6628 | { |
6590 | int32_t timeout = AUTO_READ_DONE_TIMEOUT; | 6629 | int32_t timeout = AUTO_READ_DONE_TIMEOUT; |
@@ -6623,7 +6662,7 @@ e1000_get_auto_rd_done(struct e1000_hw *hw) | |||
6623 | * E1000_SUCCESS at any other case. | 6662 | * E1000_SUCCESS at any other case. |
6624 | * | 6663 | * |
6625 | ***************************************************************************/ | 6664 | ***************************************************************************/ |
6626 | int32_t | 6665 | static int32_t |
6627 | e1000_get_phy_cfg_done(struct e1000_hw *hw) | 6666 | e1000_get_phy_cfg_done(struct e1000_hw *hw) |
6628 | { | 6667 | { |
6629 | int32_t timeout = PHY_CFG_TIMEOUT; | 6668 | int32_t timeout = PHY_CFG_TIMEOUT; |
@@ -6666,7 +6705,7 @@ e1000_get_phy_cfg_done(struct e1000_hw *hw) | |||
6666 | * E1000_SUCCESS at any other case. | 6705 | * E1000_SUCCESS at any other case. |
6667 | * | 6706 | * |
6668 | ***************************************************************************/ | 6707 | ***************************************************************************/ |
6669 | int32_t | 6708 | static int32_t |
6670 | e1000_get_hw_eeprom_semaphore(struct e1000_hw *hw) | 6709 | e1000_get_hw_eeprom_semaphore(struct e1000_hw *hw) |
6671 | { | 6710 | { |
6672 | int32_t timeout; | 6711 | int32_t timeout; |
@@ -6711,7 +6750,7 @@ e1000_get_hw_eeprom_semaphore(struct e1000_hw *hw) | |||
6711 | * returns: - None. | 6750 | * returns: - None. |
6712 | * | 6751 | * |
6713 | ***************************************************************************/ | 6752 | ***************************************************************************/ |
6714 | void | 6753 | static void |
6715 | e1000_put_hw_eeprom_semaphore(struct e1000_hw *hw) | 6754 | e1000_put_hw_eeprom_semaphore(struct e1000_hw *hw) |
6716 | { | 6755 | { |
6717 | uint32_t swsm; | 6756 | uint32_t swsm; |
@@ -6747,7 +6786,7 @@ e1000_check_phy_reset_block(struct e1000_hw *hw) | |||
6747 | E1000_BLK_PHY_RESET : E1000_SUCCESS; | 6786 | E1000_BLK_PHY_RESET : E1000_SUCCESS; |
6748 | } | 6787 | } |
6749 | 6788 | ||
6750 | uint8_t | 6789 | static uint8_t |
6751 | e1000_arc_subsystem_valid(struct e1000_hw *hw) | 6790 | e1000_arc_subsystem_valid(struct e1000_hw *hw) |
6752 | { | 6791 | { |
6753 | uint32_t fwsm; | 6792 | uint32_t fwsm; |
diff --git a/drivers/net/e1000/e1000_hw.h b/drivers/net/e1000/e1000_hw.h index 4f2c196dc314..76ce12809a11 100644 --- a/drivers/net/e1000/e1000_hw.h +++ b/drivers/net/e1000/e1000_hw.h | |||
@@ -284,7 +284,6 @@ typedef enum { | |||
284 | /* Initialization */ | 284 | /* Initialization */ |
285 | int32_t e1000_reset_hw(struct e1000_hw *hw); | 285 | int32_t e1000_reset_hw(struct e1000_hw *hw); |
286 | int32_t e1000_init_hw(struct e1000_hw *hw); | 286 | int32_t e1000_init_hw(struct e1000_hw *hw); |
287 | int32_t e1000_id_led_init(struct e1000_hw * hw); | ||
288 | int32_t e1000_set_mac_type(struct e1000_hw *hw); | 287 | int32_t e1000_set_mac_type(struct e1000_hw *hw); |
289 | void e1000_set_media_type(struct e1000_hw *hw); | 288 | void e1000_set_media_type(struct e1000_hw *hw); |
290 | 289 | ||
@@ -292,10 +291,8 @@ void e1000_set_media_type(struct e1000_hw *hw); | |||
292 | int32_t e1000_setup_link(struct e1000_hw *hw); | 291 | int32_t e1000_setup_link(struct e1000_hw *hw); |
293 | int32_t e1000_phy_setup_autoneg(struct e1000_hw *hw); | 292 | int32_t e1000_phy_setup_autoneg(struct e1000_hw *hw); |
294 | void e1000_config_collision_dist(struct e1000_hw *hw); | 293 | void e1000_config_collision_dist(struct e1000_hw *hw); |
295 | int32_t e1000_config_fc_after_link_up(struct e1000_hw *hw); | ||
296 | int32_t e1000_check_for_link(struct e1000_hw *hw); | 294 | int32_t e1000_check_for_link(struct e1000_hw *hw); |
297 | int32_t e1000_get_speed_and_duplex(struct e1000_hw *hw, uint16_t * speed, uint16_t * duplex); | 295 | int32_t e1000_get_speed_and_duplex(struct e1000_hw *hw, uint16_t * speed, uint16_t * duplex); |
298 | int32_t e1000_wait_autoneg(struct e1000_hw *hw); | ||
299 | int32_t e1000_force_mac_fc(struct e1000_hw *hw); | 296 | int32_t e1000_force_mac_fc(struct e1000_hw *hw); |
300 | 297 | ||
301 | /* PHY */ | 298 | /* PHY */ |
@@ -303,21 +300,11 @@ int32_t e1000_read_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t *phy | |||
303 | int32_t e1000_write_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t data); | 300 | int32_t e1000_write_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t data); |
304 | int32_t e1000_phy_hw_reset(struct e1000_hw *hw); | 301 | int32_t e1000_phy_hw_reset(struct e1000_hw *hw); |
305 | int32_t e1000_phy_reset(struct e1000_hw *hw); | 302 | int32_t e1000_phy_reset(struct e1000_hw *hw); |
306 | int32_t e1000_detect_gig_phy(struct e1000_hw *hw); | ||
307 | int32_t e1000_phy_get_info(struct e1000_hw *hw, struct e1000_phy_info *phy_info); | 303 | int32_t e1000_phy_get_info(struct e1000_hw *hw, struct e1000_phy_info *phy_info); |
308 | int32_t e1000_phy_m88_get_info(struct e1000_hw *hw, struct e1000_phy_info *phy_info); | ||
309 | int32_t e1000_phy_igp_get_info(struct e1000_hw *hw, struct e1000_phy_info *phy_info); | ||
310 | int32_t e1000_get_cable_length(struct e1000_hw *hw, uint16_t *min_length, uint16_t *max_length); | ||
311 | int32_t e1000_check_polarity(struct e1000_hw *hw, uint16_t *polarity); | ||
312 | int32_t e1000_check_downshift(struct e1000_hw *hw); | ||
313 | int32_t e1000_validate_mdi_setting(struct e1000_hw *hw); | 304 | int32_t e1000_validate_mdi_setting(struct e1000_hw *hw); |
314 | 305 | ||
315 | /* EEPROM Functions */ | 306 | /* EEPROM Functions */ |
316 | int32_t e1000_init_eeprom_params(struct e1000_hw *hw); | 307 | int32_t e1000_init_eeprom_params(struct e1000_hw *hw); |
317 | boolean_t e1000_is_onboard_nvm_eeprom(struct e1000_hw *hw); | ||
318 | int32_t e1000_read_eeprom_eerd(struct e1000_hw *hw, uint16_t offset, uint16_t words, uint16_t *data); | ||
319 | int32_t e1000_write_eeprom_eewr(struct e1000_hw *hw, uint16_t offset, uint16_t words, uint16_t *data); | ||
320 | int32_t e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int eerd); | ||
321 | 308 | ||
322 | /* MNG HOST IF functions */ | 309 | /* MNG HOST IF functions */ |
323 | uint32_t e1000_enable_mng_pass_thru(struct e1000_hw *hw); | 310 | uint32_t e1000_enable_mng_pass_thru(struct e1000_hw *hw); |
@@ -377,13 +364,6 @@ int32_t e1000_mng_write_dhcp_info(struct e1000_hw *hw, uint8_t *buffer, | |||
377 | uint16_t length); | 364 | uint16_t length); |
378 | boolean_t e1000_check_mng_mode(struct e1000_hw *hw); | 365 | boolean_t e1000_check_mng_mode(struct e1000_hw *hw); |
379 | boolean_t e1000_enable_tx_pkt_filtering(struct e1000_hw *hw); | 366 | boolean_t e1000_enable_tx_pkt_filtering(struct e1000_hw *hw); |
380 | int32_t e1000_mng_enable_host_if(struct e1000_hw *hw); | ||
381 | int32_t e1000_mng_host_if_write(struct e1000_hw *hw, uint8_t *buffer, | ||
382 | uint16_t length, uint16_t offset, uint8_t *sum); | ||
383 | int32_t e1000_mng_write_cmd_header(struct e1000_hw* hw, | ||
384 | struct e1000_host_mng_command_header* hdr); | ||
385 | |||
386 | int32_t e1000_mng_write_commit(struct e1000_hw *hw); | ||
387 | 367 | ||
388 | int32_t e1000_read_eeprom(struct e1000_hw *hw, uint16_t reg, uint16_t words, uint16_t *data); | 368 | int32_t e1000_read_eeprom(struct e1000_hw *hw, uint16_t reg, uint16_t words, uint16_t *data); |
389 | int32_t e1000_validate_eeprom_checksum(struct e1000_hw *hw); | 369 | int32_t e1000_validate_eeprom_checksum(struct e1000_hw *hw); |
@@ -395,13 +375,10 @@ int32_t e1000_swfw_sync_acquire(struct e1000_hw *hw, uint16_t mask); | |||
395 | void e1000_swfw_sync_release(struct e1000_hw *hw, uint16_t mask); | 375 | void e1000_swfw_sync_release(struct e1000_hw *hw, uint16_t mask); |
396 | 376 | ||
397 | /* Filters (multicast, vlan, receive) */ | 377 | /* Filters (multicast, vlan, receive) */ |
398 | void e1000_init_rx_addrs(struct e1000_hw *hw); | ||
399 | void e1000_mc_addr_list_update(struct e1000_hw *hw, uint8_t * mc_addr_list, uint32_t mc_addr_count, uint32_t pad, uint32_t rar_used_count); | ||
400 | uint32_t e1000_hash_mc_addr(struct e1000_hw *hw, uint8_t * mc_addr); | 378 | uint32_t e1000_hash_mc_addr(struct e1000_hw *hw, uint8_t * mc_addr); |
401 | void e1000_mta_set(struct e1000_hw *hw, uint32_t hash_value); | 379 | void e1000_mta_set(struct e1000_hw *hw, uint32_t hash_value); |
402 | void e1000_rar_set(struct e1000_hw *hw, uint8_t * mc_addr, uint32_t rar_index); | 380 | void e1000_rar_set(struct e1000_hw *hw, uint8_t * mc_addr, uint32_t rar_index); |
403 | void e1000_write_vfta(struct e1000_hw *hw, uint32_t offset, uint32_t value); | 381 | void e1000_write_vfta(struct e1000_hw *hw, uint32_t offset, uint32_t value); |
404 | void e1000_clear_vfta(struct e1000_hw *hw); | ||
405 | 382 | ||
406 | /* LED functions */ | 383 | /* LED functions */ |
407 | int32_t e1000_setup_led(struct e1000_hw *hw); | 384 | int32_t e1000_setup_led(struct e1000_hw *hw); |
@@ -412,7 +389,6 @@ int32_t e1000_led_off(struct e1000_hw *hw); | |||
412 | /* Adaptive IFS Functions */ | 389 | /* Adaptive IFS Functions */ |
413 | 390 | ||
414 | /* Everything else */ | 391 | /* Everything else */ |
415 | void e1000_clear_hw_cntrs(struct e1000_hw *hw); | ||
416 | void e1000_reset_adaptive(struct e1000_hw *hw); | 392 | void e1000_reset_adaptive(struct e1000_hw *hw); |
417 | void e1000_update_adaptive(struct e1000_hw *hw); | 393 | void e1000_update_adaptive(struct e1000_hw *hw); |
418 | void e1000_tbi_adjust_stats(struct e1000_hw *hw, struct e1000_hw_stats *stats, uint32_t frame_len, uint8_t * mac_addr); | 394 | void e1000_tbi_adjust_stats(struct e1000_hw *hw, struct e1000_hw_stats *stats, uint32_t frame_len, uint8_t * mac_addr); |
@@ -423,29 +399,11 @@ void e1000_read_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value); | |||
423 | void e1000_write_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value); | 399 | void e1000_write_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value); |
424 | /* Port I/O is only supported on 82544 and newer */ | 400 | /* Port I/O is only supported on 82544 and newer */ |
425 | uint32_t e1000_io_read(struct e1000_hw *hw, unsigned long port); | 401 | uint32_t e1000_io_read(struct e1000_hw *hw, unsigned long port); |
426 | uint32_t e1000_read_reg_io(struct e1000_hw *hw, uint32_t offset); | ||
427 | void e1000_io_write(struct e1000_hw *hw, unsigned long port, uint32_t value); | 402 | void e1000_io_write(struct e1000_hw *hw, unsigned long port, uint32_t value); |
428 | void e1000_write_reg_io(struct e1000_hw *hw, uint32_t offset, uint32_t value); | ||
429 | int32_t e1000_config_dsp_after_link_change(struct e1000_hw *hw, boolean_t link_up); | ||
430 | int32_t e1000_set_d3_lplu_state(struct e1000_hw *hw, boolean_t active); | ||
431 | int32_t e1000_set_d0_lplu_state(struct e1000_hw *hw, boolean_t active); | ||
432 | void e1000_set_pci_express_master_disable(struct e1000_hw *hw); | ||
433 | void e1000_enable_pciex_master(struct e1000_hw *hw); | ||
434 | int32_t e1000_disable_pciex_master(struct e1000_hw *hw); | 403 | int32_t e1000_disable_pciex_master(struct e1000_hw *hw); |
435 | int32_t e1000_get_auto_rd_done(struct e1000_hw *hw); | ||
436 | int32_t e1000_get_phy_cfg_done(struct e1000_hw *hw); | ||
437 | int32_t e1000_get_software_semaphore(struct e1000_hw *hw); | 404 | int32_t e1000_get_software_semaphore(struct e1000_hw *hw); |
438 | void e1000_release_software_semaphore(struct e1000_hw *hw); | 405 | void e1000_release_software_semaphore(struct e1000_hw *hw); |
439 | int32_t e1000_check_phy_reset_block(struct e1000_hw *hw); | 406 | int32_t e1000_check_phy_reset_block(struct e1000_hw *hw); |
440 | int32_t e1000_get_hw_eeprom_semaphore(struct e1000_hw *hw); | ||
441 | void e1000_put_hw_eeprom_semaphore(struct e1000_hw *hw); | ||
442 | int32_t e1000_commit_shadow_ram(struct e1000_hw *hw); | ||
443 | uint8_t e1000_arc_subsystem_valid(struct e1000_hw *hw); | ||
444 | |||
445 | #define E1000_READ_REG_IO(a, reg) \ | ||
446 | e1000_read_reg_io((a), E1000_##reg) | ||
447 | #define E1000_WRITE_REG_IO(a, reg, val) \ | ||
448 | e1000_write_reg_io((a), E1000_##reg, val) | ||
449 | 407 | ||
450 | /* PCI Device IDs */ | 408 | /* PCI Device IDs */ |
451 | #define E1000_DEV_ID_82542 0x1000 | 409 | #define E1000_DEV_ID_82542 0x1000 |
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index efbbda7cbcbf..8b207f0e139e 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | char e1000_driver_name[] = "e1000"; | 39 | char e1000_driver_name[] = "e1000"; |
40 | char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver"; | 40 | static char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver"; |
41 | #ifndef CONFIG_E1000_NAPI | 41 | #ifndef CONFIG_E1000_NAPI |
42 | #define DRIVERNAPI | 42 | #define DRIVERNAPI |
43 | #else | 43 | #else |
@@ -45,7 +45,7 @@ char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver"; | |||
45 | #endif | 45 | #endif |
46 | #define DRV_VERSION "6.1.16-k2"DRIVERNAPI | 46 | #define DRV_VERSION "6.1.16-k2"DRIVERNAPI |
47 | char e1000_driver_version[] = DRV_VERSION; | 47 | char e1000_driver_version[] = DRV_VERSION; |
48 | char e1000_copyright[] = "Copyright (c) 1999-2005 Intel Corporation."; | 48 | static char e1000_copyright[] = "Copyright (c) 1999-2005 Intel Corporation."; |
49 | 49 | ||
50 | /* e1000_pci_tbl - PCI Device ID Table | 50 | /* e1000_pci_tbl - PCI Device ID Table |
51 | * | 51 | * |
@@ -112,14 +112,14 @@ int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); | |||
112 | int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); | 112 | int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); |
113 | void e1000_free_all_tx_resources(struct e1000_adapter *adapter); | 113 | void e1000_free_all_tx_resources(struct e1000_adapter *adapter); |
114 | void e1000_free_all_rx_resources(struct e1000_adapter *adapter); | 114 | void e1000_free_all_rx_resources(struct e1000_adapter *adapter); |
115 | int e1000_setup_tx_resources(struct e1000_adapter *adapter, | 115 | static int e1000_setup_tx_resources(struct e1000_adapter *adapter, |
116 | struct e1000_tx_ring *txdr); | 116 | struct e1000_tx_ring *txdr); |
117 | int e1000_setup_rx_resources(struct e1000_adapter *adapter, | 117 | static int e1000_setup_rx_resources(struct e1000_adapter *adapter, |
118 | struct e1000_rx_ring *rxdr); | 118 | struct e1000_rx_ring *rxdr); |
119 | void e1000_free_tx_resources(struct e1000_adapter *adapter, | 119 | static void e1000_free_tx_resources(struct e1000_adapter *adapter, |
120 | struct e1000_tx_ring *tx_ring); | 120 | struct e1000_tx_ring *tx_ring); |
121 | void e1000_free_rx_resources(struct e1000_adapter *adapter, | 121 | static void e1000_free_rx_resources(struct e1000_adapter *adapter, |
122 | struct e1000_rx_ring *rx_ring); | 122 | struct e1000_rx_ring *rx_ring); |
123 | void e1000_update_stats(struct e1000_adapter *adapter); | 123 | void e1000_update_stats(struct e1000_adapter *adapter); |
124 | 124 | ||
125 | /* Local Function Prototypes */ | 125 | /* Local Function Prototypes */ |
@@ -296,7 +296,8 @@ e1000_irq_enable(struct e1000_adapter *adapter) | |||
296 | E1000_WRITE_FLUSH(&adapter->hw); | 296 | E1000_WRITE_FLUSH(&adapter->hw); |
297 | } | 297 | } |
298 | } | 298 | } |
299 | void | 299 | |
300 | static void | ||
300 | e1000_update_mng_vlan(struct e1000_adapter *adapter) | 301 | e1000_update_mng_vlan(struct e1000_adapter *adapter) |
301 | { | 302 | { |
302 | struct net_device *netdev = adapter->netdev; | 303 | struct net_device *netdev = adapter->netdev; |
@@ -1141,7 +1142,7 @@ e1000_check_64k_bound(struct e1000_adapter *adapter, | |||
1141 | * Return 0 on success, negative on failure | 1142 | * Return 0 on success, negative on failure |
1142 | **/ | 1143 | **/ |
1143 | 1144 | ||
1144 | int | 1145 | static int |
1145 | e1000_setup_tx_resources(struct e1000_adapter *adapter, | 1146 | e1000_setup_tx_resources(struct e1000_adapter *adapter, |
1146 | struct e1000_tx_ring *txdr) | 1147 | struct e1000_tx_ring *txdr) |
1147 | { | 1148 | { |
@@ -1359,7 +1360,7 @@ e1000_configure_tx(struct e1000_adapter *adapter) | |||
1359 | * Returns 0 on success, negative on failure | 1360 | * Returns 0 on success, negative on failure |
1360 | **/ | 1361 | **/ |
1361 | 1362 | ||
1362 | int | 1363 | static int |
1363 | e1000_setup_rx_resources(struct e1000_adapter *adapter, | 1364 | e1000_setup_rx_resources(struct e1000_adapter *adapter, |
1364 | struct e1000_rx_ring *rxdr) | 1365 | struct e1000_rx_ring *rxdr) |
1365 | { | 1366 | { |
@@ -1747,7 +1748,7 @@ e1000_configure_rx(struct e1000_adapter *adapter) | |||
1747 | * Free all transmit software resources | 1748 | * Free all transmit software resources |
1748 | **/ | 1749 | **/ |
1749 | 1750 | ||
1750 | void | 1751 | static void |
1751 | e1000_free_tx_resources(struct e1000_adapter *adapter, | 1752 | e1000_free_tx_resources(struct e1000_adapter *adapter, |
1752 | struct e1000_tx_ring *tx_ring) | 1753 | struct e1000_tx_ring *tx_ring) |
1753 | { | 1754 | { |
@@ -1858,7 +1859,7 @@ e1000_clean_all_tx_rings(struct e1000_adapter *adapter) | |||
1858 | * Free all receive software resources | 1859 | * Free all receive software resources |
1859 | **/ | 1860 | **/ |
1860 | 1861 | ||
1861 | void | 1862 | static void |
1862 | e1000_free_rx_resources(struct e1000_adapter *adapter, | 1863 | e1000_free_rx_resources(struct e1000_adapter *adapter, |
1863 | struct e1000_rx_ring *rx_ring) | 1864 | struct e1000_rx_ring *rx_ring) |
1864 | { | 1865 | { |