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

Function ngbe_pf_reset_hw

dpdk/drivers/net/ngbe/ngbe_ethdev.c:257–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 sizeof(rte_ngbe_qp_strings[0]))
256
257static inline int32_t
258ngbe_pf_reset_hw(struct ngbe_hw *hw)
259{
260 uint32_t ctrl_ext;
261 int32_t status;
262
263 status = hw->mac.reset_hw(hw);
264
265 ctrl_ext = rd32(hw, NGBE_PORTCTL);
266 /* let hardware know driver is loaded */
267 ctrl_ext |= NGBE_PORTCTL_DRVLOAD;
268 /* Set PF Reset Done bit so PF/VF Mail Ops can work */
269 ctrl_ext |= NGBE_PORTCTL_RSTDONE;
270 wr32(hw, NGBE_PORTCTL, ctrl_ext);
271 ngbe_flush(hw);
272
273 if (status == NGBE_ERR_SFP_NOT_PRESENT)
274 status = 0;
275 return status;
276}
277
278static inline void
279ngbe_enable_intr(struct rte_eth_dev *dev)

Callers 3

ngbe_dev_startFunction · 0.85
ngbe_dev_stopFunction · 0.85
ngbe_dev_closeFunction · 0.85

Calls 2

rd32Function · 0.50
wr32Function · 0.50

Tested by

no test coverage detected