Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_x540.c
Show First 20 Lines • Show All 779 Lines • ▼ Show 20 Lines | if (swmask & IXGBE_GSSR_EEP_SM) | ||||
hwmask |= IXGBE_GSSR_FLASH_SM; | hwmask |= IXGBE_GSSR_FLASH_SM; | ||||
/* SW only mask doesn't have FW bit pair */ | /* SW only mask doesn't have FW bit pair */ | ||||
if (mask & IXGBE_GSSR_SW_MNG_SM) | if (mask & IXGBE_GSSR_SW_MNG_SM) | ||||
swmask |= IXGBE_GSSR_SW_MNG_SM; | swmask |= IXGBE_GSSR_SW_MNG_SM; | ||||
swmask |= swi2c_mask; | swmask |= swi2c_mask; | ||||
fwmask |= swi2c_mask << 2; | fwmask |= swi2c_mask << 2; | ||||
if (hw->mac.type >= ixgbe_mac_X550) | |||||
timeout = 1000; | |||||
for (i = 0; i < timeout; i++) { | for (i = 0; i < timeout; i++) { | ||||
/* SW NVM semaphore bit is used for access to all | /* SW NVM semaphore bit is used for access to all | ||||
* SW_FW_SYNC bits (not just NVM) | * SW_FW_SYNC bits (not just NVM) | ||||
*/ | */ | ||||
if (ixgbe_get_swfw_sync_semaphore(hw)) { | if (ixgbe_get_swfw_sync_semaphore(hw)) { | ||||
DEBUGOUT("Failed to get NVM access and register semaphore, returning IXGBE_ERR_SWFW_SYNC\n"); | DEBUGOUT("Failed to get NVM access and register semaphore, returning IXGBE_ERR_SWFW_SYNC\n"); | ||||
return IXGBE_ERR_SWFW_SYNC; | return IXGBE_ERR_SWFW_SYNC; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |