aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_common.h
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2011-03-31 05:36:18 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-04-13 22:26:06 -0400
commitb776d1043510c60f59220eb5e58b524f5a7f0e52 (patch)
treebbc53cc64c1c1d0a94d559259cf26ca89f32bf49 /drivers/net/ixgbe/ixgbe_common.h
parenta59e8a1a72806057084adc2d321fc2a7cbce9579 (diff)
ixgbe: make device_caps() generic
x540 has the same device capability word in the EEPROM as 82599. This patch renames ixgbe_get_device_caps_82599 to ixgbe_get_device_caps_generic, moves it to ixgbe_common.h and sets up the function pointer for x540. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Evan Swanson <evan.swanson@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_common.h b/drivers/net/ixgbe/ixgbe_common.h
index e18dc136ad34..e850adbb32a1 100644
--- a/drivers/net/ixgbe/ixgbe_common.h
+++ b/drivers/net/ixgbe/ixgbe_common.h
@@ -90,6 +90,7 @@ s32 ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, u32 index);
90s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index); 90s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index);
91void ixgbe_set_mac_anti_spoofing(struct ixgbe_hw *hw, bool enable, int pf); 91void ixgbe_set_mac_anti_spoofing(struct ixgbe_hw *hw, bool enable, int pf);
92void ixgbe_set_vlan_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf); 92void ixgbe_set_vlan_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf);
93s32 ixgbe_get_device_caps_generic(struct ixgbe_hw *hw, u16 *device_caps);
93 94
94#define IXGBE_WRITE_REG(a, reg, value) writel((value), ((a)->hw_addr + (reg))) 95#define IXGBE_WRITE_REG(a, reg, value) writel((value), ((a)->hw_addr + (reg)))
95 96