| 291 | } |
| 292 | |
| 293 | static void |
| 294 | emac_txeof(struct emac_softc *sc, uint32_t status) |
| 295 | { |
| 296 | struct ifnet *ifp; |
| 297 | |
| 298 | EMAC_ASSERT_LOCKED(sc); |
| 299 | |
| 300 | ifp = sc->emac_ifp; |
| 301 | status &= (EMAC_TX_FIFO0 | EMAC_TX_FIFO1); |
| 302 | sc->emac_fifo_mask &= ~status; |
| 303 | if (status == (EMAC_TX_FIFO0 | EMAC_TX_FIFO1)) |
| 304 | if_inc_counter(ifp, IFCOUNTER_OPACKETS, 2); |
| 305 | else |
| 306 | if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1); |
| 307 | ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; |
| 308 | |
| 309 | /* Unarm watchdog timer if no TX */ |
| 310 | sc->emac_watchdog_timer = 0; |
| 311 | } |
| 312 | |
| 313 | static void |
| 314 | emac_rxeof(struct emac_softc *sc, int count) |
no test coverage detected