* This function is based on ixgbe_disable_intr() in base/ixgbe.h. */
| 845 | * This function is based on ixgbe_disable_intr() in base/ixgbe.h. |
| 846 | */ |
| 847 | static void |
| 848 | ixgbe_disable_intr(struct ixgbe_hw *hw) |
| 849 | { |
| 850 | PMD_INIT_FUNC_TRACE(); |
| 851 | |
| 852 | if (hw->mac.type == ixgbe_mac_82598EB) { |
| 853 | IXGBE_WRITE_REG(hw, IXGBE_EIMC, ~0); |
| 854 | } else { |
| 855 | IXGBE_WRITE_REG(hw, IXGBE_EIMC, 0xFFFF0000); |
| 856 | IXGBE_WRITE_REG(hw, IXGBE_EIMC_EX(0), ~0); |
| 857 | IXGBE_WRITE_REG(hw, IXGBE_EIMC_EX(1), ~0); |
| 858 | } |
| 859 | IXGBE_WRITE_FLUSH(hw); |
| 860 | } |
| 861 | |
| 862 | /* |
| 863 | * This function resets queue statistics mapping registers. |
no outgoing calls
no test coverage detected