For the e1000_set_eee function to be used by windows E2F driver
added a reference function at api.c file.
Signed-off-by: Evgeny Efimov <evgeny.efimov@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
---
drivers/net/e1000/base/e1000_api.c | 16 ++++++++++++++++
drivers/net/e1000/base/e1000_api.h | 2 ++
2 files changed, 18 insertions(+)
@@ -1376,3 +1376,19 @@ void e1000_shutdown_fiber_serdes_link(struct e1000_hw *hw)
hw->mac.ops.shutdown_serdes(hw);
}
+/**
+ * e1000_set_eee_i225 - Set EEE
+ * @hw: pointer to the HW structure
+ * @adv2p5G: boolean flag enabling 2.5G EEE advertisement
+ * @adv1G: boolean flag enabling 1G EEE advertisement
+ * @adv100M: boolean flag enabling 100M EEE advertisement
+ *
+ * Enable/disable EEE based on setting in dev_spec structure.
+ **/
+s32 e1000_set_eee(struct e1000_hw *hw, bool adv2p5G, bool adv1G, bool adv100M)
+{
+ if (hw->mac.ops.set_eee)
+ return hw->mac.ops.set_eee(hw, adv2p5G, adv1G, adv100M);
+
+ return -E1000_ERR_CONFIG;
+}
@@ -89,6 +89,8 @@ s32 e1000_mng_write_cmd_header(struct e1000_hw *hw,
s32 e1000_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length);
u32 e1000_translate_register_82542(u32 reg);
+s32 e1000_set_eee(struct e1000_hw *hw, bool adv2p5G, bool adv1G, bool adv100M);
+
/*