| 323 | } |
| 324 | |
| 325 | static inline int32_t |
| 326 | txgbe_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 | |
| 346 | static inline void |
| 347 | txgbe_enable_intr(struct rte_eth_dev *dev) |
no test coverage detected