| 255 | sizeof(rte_ngbe_qp_strings[0])) |
| 256 | |
| 257 | static inline int32_t |
| 258 | ngbe_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 | |
| 278 | static inline void |
| 279 | ngbe_enable_intr(struct rte_eth_dev *dev) |
no test coverage detected