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

Function igb_pf_reset_hw

dpdk/drivers/net/e1000/igb_ethdev.c:581–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581static inline int32_t
582igb_pf_reset_hw(struct e1000_hw *hw)
583{
584 uint32_t ctrl_ext;
585 int32_t status;
586
587 status = e1000_reset_hw(hw);
588
589 ctrl_ext = E1000_READ_REG(hw, E1000_CTRL_EXT);
590 /* Set PF Reset Done bit so PF/VF Mail Ops can work */
591 ctrl_ext |= E1000_CTRL_EXT_PFRSTD;
592 E1000_WRITE_REG(hw, E1000_CTRL_EXT, ctrl_ext);
593 E1000_WRITE_FLUSH(hw);
594
595 return status;
596}
597
598static void
599igb_identify_hardware(struct rte_eth_dev *dev, struct rte_pci_device *pci_dev)

Callers 3

eth_igb_dev_initFunction · 0.85
eth_igb_stopFunction · 0.85
igb_hardware_initFunction · 0.85

Calls 1

e1000_reset_hwFunction · 0.85

Tested by

no test coverage detected