diff options
author | jfv <jfv@FreeBSD.org> | 2008-11-26 23:57:23 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2008-11-26 23:57:23 +0000 |
commit | acf860ad541ce9529aff0bf17061183badd98903 (patch) | |
tree | b0f0b3a2e29a0fc9f60b8bee9111f6827eb01416 /sys/dev/e1000/e1000_api.c | |
parent | 62188214bdac09b8b3fe223bd994d8aef28db6db (diff) | |
download | FreeBSD-src-acf860ad541ce9529aff0bf17061183badd98903.zip FreeBSD-src-acf860ad541ce9529aff0bf17061183badd98903.tar.gz |
This delta is primarily a fix for es2lan devices that
will sometimes fail to initialize problem due to a lock
contention with management hardware. However, in order to
deliver that fix it was necessary to take a shared code
update as a whole, and this required scattered changes in
the core code to be compatible.
The em driver now has VLAN HW support added as the igb
driver had previously.
MFC after: ASAP - in time for 7.1 RELEASE
Diffstat (limited to 'sys/dev/e1000/e1000_api.c')
-rw-r--r-- | sys/dev/e1000/e1000_api.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/sys/dev/e1000/e1000_api.c b/sys/dev/e1000/e1000_api.c index aaa70b1..47bffb5 100644 --- a/sys/dev/e1000/e1000_api.c +++ b/sys/dev/e1000/e1000_api.c @@ -72,7 +72,6 @@ s32 e1000_init_nvm_params(struct e1000_hw *hw) s32 ret_val = E1000_SUCCESS; if (hw->nvm.ops.init_params) { - hw->nvm.semaphore_delay = 10; ret_val = hw->nvm.ops.init_params(hw); if (ret_val) { DEBUGOUT("NVM Initialization Error\n"); @@ -379,19 +378,6 @@ out: } /** - * e1000_remove_device - Free device specific structure - * @hw: pointer to the HW structure - * - * If a device specific structure was allocated, this function will - * free it. This is a function pointer entry point called by drivers. - **/ -void e1000_remove_device(struct e1000_hw *hw) -{ - if (hw->mac.ops.remove_device) - hw->mac.ops.remove_device(hw); -} - -/** * e1000_get_bus_info - Obtain bus information for adapter * @hw: pointer to the HW structure * @@ -929,6 +915,18 @@ s32 e1000_acquire_phy(struct e1000_hw *hw) } /** + * e1000_cfg_on_link_up - Configure PHY upon link up + * @hw: pointer to the HW structure + **/ +s32 e1000_cfg_on_link_up(struct e1000_hw *hw) +{ + if (hw->phy.ops.cfg_on_link_up) + return hw->phy.ops.cfg_on_link_up(hw); + + return E1000_SUCCESS; +} + +/** * e1000_read_kmrn_reg - Reads register using Kumeran interface * @hw: pointer to the HW structure * @offset: the register to read |