/*
 * admsw_shutdown:
 *
 *	Make sure the interface is stopped at reboot time.
 */
static void
admsw_shutdown(void *arg)
{
	struct admsw_softc *sc = arg;
	int i;

	for (i = 0; i < SW_DEVS; i++)
		admsw_stop(&sc->sc_ethercom[i].ec_if, 1);
}
Esempio n. 2
0
/*
 * admsw_shutdown:
 *
 *	Make sure the interface is stopped at reboot time.
 */
static int
admsw_shutdown(device_t dev)
{
	struct admsw_softc *sc;
	int i;

	sc = device_get_softc(dev);
	for (i = 0; i < SW_DEVS; i++)
		admsw_stop(sc->sc_ifnet[i], 1);

	return (0);
}