diff options
author | Don Skidmore <donald.c.skidmore@intel.com> | 2010-11-16 22:27:15 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2010-11-16 22:27:15 -0500 |
commit | a391f1d51244b8274920a33c5d11aeebec3aa68f (patch) | |
tree | f550a62c357a6f63ee0dc7b77432d7c681663688 /drivers/net/ixgbe/ixgbe_common.h | |
parent | 9b55bb038468a7b504ccdc1d956952598ae1b85b (diff) |
ixgbe: make silicon specific functions generic
The new MAC type X540 shares much of the same functionality of
some silicon specific functions. To reduce duplicate code,
made these functions generic.
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_common.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_common.h b/drivers/net/ixgbe/ixgbe_common.h index 424c223437dc..341ca514a281 100644 --- a/drivers/net/ixgbe/ixgbe_common.h +++ b/drivers/net/ixgbe/ixgbe_common.h | |||
@@ -49,9 +49,11 @@ s32 ixgbe_write_eeprom_generic(struct ixgbe_hw *hw, u16 offset, u16 data); | |||
49 | s32 ixgbe_read_eerd_generic(struct ixgbe_hw *hw, u16 offset, u16 *data); | 49 | s32 ixgbe_read_eerd_generic(struct ixgbe_hw *hw, u16 offset, u16 *data); |
50 | s32 ixgbe_read_eeprom_bit_bang_generic(struct ixgbe_hw *hw, u16 offset, | 50 | s32 ixgbe_read_eeprom_bit_bang_generic(struct ixgbe_hw *hw, u16 offset, |
51 | u16 *data); | 51 | u16 *data); |
52 | u16 ixgbe_calc_eeprom_checksum_generic(struct ixgbe_hw *hw); | ||
52 | s32 ixgbe_validate_eeprom_checksum_generic(struct ixgbe_hw *hw, | 53 | s32 ixgbe_validate_eeprom_checksum_generic(struct ixgbe_hw *hw, |
53 | u16 *checksum_val); | 54 | u16 *checksum_val); |
54 | s32 ixgbe_update_eeprom_checksum_generic(struct ixgbe_hw *hw); | 55 | s32 ixgbe_update_eeprom_checksum_generic(struct ixgbe_hw *hw); |
56 | s32 ixgbe_poll_eerd_eewr_done(struct ixgbe_hw *hw, u32 ee_reg); | ||
55 | 57 | ||
56 | s32 ixgbe_set_rar_generic(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq, | 58 | s32 ixgbe_set_rar_generic(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq, |
57 | u32 enable_addr); | 59 | u32 enable_addr); |
@@ -81,7 +83,8 @@ s32 ixgbe_clear_vfta_generic(struct ixgbe_hw *hw); | |||
81 | s32 ixgbe_check_mac_link_generic(struct ixgbe_hw *hw, | 83 | s32 ixgbe_check_mac_link_generic(struct ixgbe_hw *hw, |
82 | ixgbe_link_speed *speed, | 84 | ixgbe_link_speed *speed, |
83 | bool *link_up, bool link_up_wait_to_complete); | 85 | bool *link_up, bool link_up_wait_to_complete); |
84 | 86 | s32 ixgbe_get_wwn_prefix_generic(struct ixgbe_hw *hw, u16 *wwnn_prefix, | |
87 | u16 *wwpn_prefix); | ||
85 | s32 ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, u32 index); | 88 | s32 ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, u32 index); |
86 | s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index); | 89 | s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index); |
87 | 90 | ||