aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ixgbe/ixgbe_82599.c17
-rw-r--r--drivers/net/ixgbe/ixgbe_common.c15
-rw-r--r--drivers/net/ixgbe/ixgbe_common.h1
-rw-r--r--drivers/net/ixgbe/ixgbe_x540.c2
4 files changed, 18 insertions, 17 deletions
diff --git a/drivers/net/ixgbe/ixgbe_82599.c b/drivers/net/ixgbe/ixgbe_82599.c
index 63b4da6b5b77..e4323055347b 100644
--- a/drivers/net/ixgbe/ixgbe_82599.c
+++ b/drivers/net/ixgbe/ixgbe_82599.c
@@ -1973,21 +1973,6 @@ static s32 ixgbe_enable_rx_dma_82599(struct ixgbe_hw *hw, u32 regval)
1973} 1973}
1974 1974
1975/** 1975/**
1976 * ixgbe_get_device_caps_82599 - Get additional device capabilities
1977 * @hw: pointer to hardware structure
1978 * @device_caps: the EEPROM word with the extra device capabilities
1979 *
1980 * This function will read the EEPROM location for the device capabilities,
1981 * and return the word through device_caps.
1982 **/
1983static s32 ixgbe_get_device_caps_82599(struct ixgbe_hw *hw, u16 *device_caps)
1984{
1985 hw->eeprom.ops.read(hw, IXGBE_DEVICE_CAPS, device_caps);
1986
1987 return 0;
1988}
1989
1990/**
1991 * ixgbe_verify_fw_version_82599 - verify fw version for 82599 1976 * ixgbe_verify_fw_version_82599 - verify fw version for 82599
1992 * @hw: pointer to hardware structure 1977 * @hw: pointer to hardware structure
1993 * 1978 *
@@ -2087,7 +2072,7 @@ static struct ixgbe_mac_operations mac_ops_82599 = {
2087 .enable_rx_dma = &ixgbe_enable_rx_dma_82599, 2072 .enable_rx_dma = &ixgbe_enable_rx_dma_82599,
2088 .get_mac_addr = &ixgbe_get_mac_addr_generic, 2073 .get_mac_addr = &ixgbe_get_mac_addr_generic,
2089 .get_san_mac_addr = &ixgbe_get_san_mac_addr_generic, 2074 .get_san_mac_addr = &ixgbe_get_san_mac_addr_generic,
2090 .get_device_caps = &ixgbe_get_device_caps_82599, 2075 .get_device_caps = &ixgbe_get_device_caps_generic,
2091 .get_wwn_prefix = &ixgbe_get_wwn_prefix_generic, 2076 .get_wwn_prefix = &ixgbe_get_wwn_prefix_generic,
2092 .stop_adapter = &ixgbe_stop_adapter_generic, 2077 .stop_adapter = &ixgbe_stop_adapter_generic,
2093 .get_bus_info = &ixgbe_get_bus_info_generic, 2078 .get_bus_info = &ixgbe_get_bus_info_generic,
diff --git a/drivers/net/ixgbe/ixgbe_common.c b/drivers/net/ixgbe/ixgbe_common.c
index fc31e0256c18..cb2e8e18dd39 100644
--- a/drivers/net/ixgbe/ixgbe_common.c
+++ b/drivers/net/ixgbe/ixgbe_common.c
@@ -2968,3 +2968,18 @@ void ixgbe_set_vlan_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf)
2968 pfvfspoof &= ~(1 << vf_target_shift); 2968 pfvfspoof &= ~(1 << vf_target_shift);
2969 IXGBE_WRITE_REG(hw, IXGBE_PFVFSPOOF(vf_target_reg), pfvfspoof); 2969 IXGBE_WRITE_REG(hw, IXGBE_PFVFSPOOF(vf_target_reg), pfvfspoof);
2970} 2970}
2971
2972/**
2973 * ixgbe_get_device_caps_generic - Get additional device capabilities
2974 * @hw: pointer to hardware structure
2975 * @device_caps: the EEPROM word with the extra device capabilities
2976 *
2977 * This function will read the EEPROM location for the device capabilities,
2978 * and return the word through device_caps.
2979 **/
2980s32 ixgbe_get_device_caps_generic(struct ixgbe_hw *hw, u16 *device_caps)
2981{
2982 hw->eeprom.ops.read(hw, IXGBE_DEVICE_CAPS, device_caps);
2983
2984 return 0;
2985}
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
diff --git a/drivers/net/ixgbe/ixgbe_x540.c b/drivers/net/ixgbe/ixgbe_x540.c
index 5433f15c1e1b..05f8e9cddef4 100644
--- a/drivers/net/ixgbe/ixgbe_x540.c
+++ b/drivers/net/ixgbe/ixgbe_x540.c
@@ -754,7 +754,7 @@ static struct ixgbe_mac_operations mac_ops_X540 = {
754 .enable_rx_dma = &ixgbe_enable_rx_dma_generic, 754 .enable_rx_dma = &ixgbe_enable_rx_dma_generic,
755 .get_mac_addr = &ixgbe_get_mac_addr_generic, 755 .get_mac_addr = &ixgbe_get_mac_addr_generic,
756 .get_san_mac_addr = &ixgbe_get_san_mac_addr_generic, 756 .get_san_mac_addr = &ixgbe_get_san_mac_addr_generic,
757 .get_device_caps = NULL, 757 .get_device_caps = &ixgbe_get_device_caps_generic,
758 .get_wwn_prefix = &ixgbe_get_wwn_prefix_generic, 758 .get_wwn_prefix = &ixgbe_get_wwn_prefix_generic,
759 .stop_adapter = &ixgbe_stop_adapter_generic, 759 .stop_adapter = &ixgbe_stop_adapter_generic,
760 .get_bus_info = &ixgbe_get_bus_info_generic, 760 .get_bus_info = &ixgbe_get_bus_info_generic,