| 865 | } |
| 866 | |
| 867 | static int |
| 868 | emac_resume(device_t dev) |
| 869 | { |
| 870 | struct emac_softc *sc; |
| 871 | struct ifnet *ifp; |
| 872 | |
| 873 | sc = device_get_softc(dev); |
| 874 | |
| 875 | EMAC_LOCK(sc); |
| 876 | ifp = sc->emac_ifp; |
| 877 | if ((ifp->if_flags & IFF_UP) != 0) { |
| 878 | ifp->if_drv_flags &= ~IFF_DRV_RUNNING; |
| 879 | emac_init_locked(sc); |
| 880 | } |
| 881 | EMAC_UNLOCK(sc); |
| 882 | |
| 883 | return (0); |
| 884 | } |
| 885 | |
| 886 | static int |
| 887 | emac_attach(device_t dev) |
nothing calls this directly
no test coverage detected