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

Function txgbe_pf_reset_hw

dpdk/drivers/net/txgbe/txgbe_ethdev.c:325–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325static inline int32_t
326txgbe_pf_reset_hw(struct txgbe_hw *hw)
327{
328 uint32_t ctrl_ext;
329 int32_t status;
330
331 status = hw->mac.reset_hw(hw);
332
333 ctrl_ext = rd32(hw, TXGBE_PORTCTL);
334 /* let hardware know driver is loaded */
335 ctrl_ext |= TXGBE_PORTCTL_DRVLOAD;
336 /* Set PF Reset Done bit so PF/VF Mail Ops can work */
337 ctrl_ext |= TXGBE_PORTCTL_RSTDONE;
338 wr32(hw, TXGBE_PORTCTL, ctrl_ext);
339 txgbe_flush(hw);
340
341 if (status == TXGBE_ERR_SFP_NOT_PRESENT)
342 status = 0;
343 return status;
344}
345
346static inline void
347txgbe_enable_intr(struct rte_eth_dev *dev)

Callers 3

txgbe_dev_startFunction · 0.85
txgbe_dev_stopFunction · 0.85
txgbe_dev_closeFunction · 0.85

Calls 3

txgbe_flushFunction · 0.85
rd32Function · 0.50
wr32Function · 0.50

Tested by

no test coverage detected