* It clears the interrupt causes and enables the interrupt. * It will be called once only during NIC initialized. * * @param dev * Pointer to struct rte_eth_dev. * * @return * - On success, zero. * - On failure, a negative value. */
| 2085 | * - On failure, a negative value. |
| 2086 | */ |
| 2087 | static int |
| 2088 | ngbe_dev_misc_interrupt_setup(struct rte_eth_dev *dev) |
| 2089 | { |
| 2090 | struct ngbe_interrupt *intr = ngbe_dev_intr(dev); |
| 2091 | u64 mask; |
| 2092 | |
| 2093 | mask = NGBE_ICR_MASK; |
| 2094 | mask &= (1ULL << NGBE_MISC_VEC_ID); |
| 2095 | intr->mask |= mask; |
| 2096 | intr->mask_misc |= NGBE_ICRMISC_GPIO; |
| 2097 | |
| 2098 | return 0; |
| 2099 | } |
| 2100 | |
| 2101 | /** |
| 2102 | * It clears the interrupt causes and enables the interrupt. |
no test coverage detected