aboutsummaryrefslogtreecommitdiff
path: root/include/linux/ext2_fs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-10-30 19:37:36 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-30 19:37:36 -0800
commitae99a78af33f00565a05dbbc6ca9b247fed002c5 (patch)
treefc74f7bf9674dd1a304d8481812920c875eecbcc /include/linux/ext2_fs.h
parent528ba4ef855bd184b7d68e3fa596b420fb4fa86a (diff)
Linux 2.6.19-rc4v2.6.19-rc4
Not halloween. Not scary. Just a regular -rc release.
Diffstat (limited to 'include/linux/ext2_fs.h')
0 files changed, 0 insertions, 0 deletions
OM. **/ static void e1000_release_nvm_80003es2lan(struct e1000_hw *hw) { e1000e_release_nvm(hw); e1000_release_swfw_sync_80003es2lan(hw, E1000_SWFW_EEP_SM); } /** * e1000_acquire_swfw_sync_80003es2lan - Acquire SW/FW semaphore * @hw: pointer to the HW structure * @mask: specifies which semaphore to acquire * * Acquire the SW/FW semaphore to access the PHY or NVM. The mask * will also specify which port we're acquiring the lock for. **/ static s32 e1000_acquire_swfw_sync_80003es2lan(struct e1000_hw *hw, u16 mask) { u32 swfw_sync; u32 swmask = mask; u32 fwmask = mask << 16; s32 i = 0; s32 timeout = 50; while (i < timeout) { if (e1000e_get_hw_semaphore(hw)) return -E1000_ERR_SWFW_SYNC; swfw_sync = er32(SW_FW_SYNC); if (!(swfw_sync & (fwmask | swmask))) break; /* Firmware currently using resource (fwmask) * or other software thread using resource (swmask) */ e1000e_put_hw_