MCPcopy Create free account
hub / github.com/F-Stack/f-stack / txgbe_check_reset_blocked

Function txgbe_check_reset_blocked

dpdk/drivers/net/txgbe/base/txgbe_phy.c:130–141  ·  view source on GitHub ↗

* txgbe_check_reset_blocked - check status of MNG FW veto bit * @hw: pointer to the hardware structure * * This function checks the STAT.MNGVETO bit to see if there are * any constraints on link from manageability. For MAC's that don't * have this bit just return faluse since the link can not be blocked * via this method. **/

Source from the content-addressed store, hash-verified

128 * via this method.
129 **/
130s32 txgbe_check_reset_blocked(struct txgbe_hw *hw)
131{
132 u32 mmngc;
133
134 mmngc = rd32(hw, TXGBE_STAT);
135 if (mmngc & TXGBE_STAT_MNGVETO) {
136 DEBUGOUT("MNG_VETO bit detected.");
137 return true;
138 }
139
140 return false;
141}
142
143/**
144 * txgbe_validate_phy_addr - Determines phy address is valid

Callers 6

txgbe_dev_startFunction · 0.85
txgbe_dev_stopFunction · 0.85
txgbe_reset_phyFunction · 0.85
txgbe_setup_phy_linkFunction · 0.85
txgbe_setup_phy_link_tnxFunction · 0.85

Calls 1

rd32Function · 0.70

Tested by

no test coverage detected