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

Function txgbe_reinit_gpio_intr

dpdk/drivers/net/txgbe/txgbe_ethdev.c:1549–1569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547}
1548
1549static void txgbe_reinit_gpio_intr(struct txgbe_hw *hw)
1550{
1551 u32 reg;
1552
1553 wr32(hw, TXGBE_GPIOINTMASK, 0xFF);
1554 reg = rd32(hw, TXGBE_GPIORAWINTSTAT);
1555
1556 if (reg & TXGBE_GPIOBIT_0)
1557 wr32(hw, TXGBE_GPIOEOI, TXGBE_GPIOBIT_0);
1558
1559 if (reg & TXGBE_GPIOBIT_2)
1560 wr32(hw, TXGBE_GPIOEOI, TXGBE_GPIOBIT_2);
1561
1562 if (reg & TXGBE_GPIOBIT_3)
1563 wr32(hw, TXGBE_GPIOEOI, TXGBE_GPIOBIT_3);
1564
1565 if (reg & TXGBE_GPIOBIT_6)
1566 wr32(hw, TXGBE_GPIOEOI, TXGBE_GPIOBIT_6);
1567
1568 wr32(hw, TXGBE_GPIOINTMASK, 0);
1569}
1570
1571static void
1572txgbe_dev_phy_intr_setup(struct rte_eth_dev *dev)

Callers 2

txgbe_dev_startFunction · 0.85
txgbe_dev_stopFunction · 0.85

Calls 2

wr32Function · 0.50
rd32Function · 0.50

Tested by

no test coverage detected