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/e1000_hw.h | |
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/e1000_hw.h')
-rw-r--r-- | drivers/net/e1000/e1000_hw.h | 42 |
1 files changed, 0 insertions, 42 deletions
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 |