FreeBSD/sys/dev/e1000/if_lem.c
/*
 * Suspend/resume device methods.
 */
Suspend/resume device methods.
Suspend / resume device methods .
static int
lem_suspend(device_t dev)
{
	struct adapter *adapter = device_get_softc(dev);
	EM_CORE_LOCK(adapter);
	lem_release_manageability(adapter);
	lem_release_hw_control(adapter);
	lem_enable_wakeup(dev);
	EM_CORE_UNLOCK(adapter);
	return bus_generic_suspend(dev);
}
static int lem_suspend ( device_t dev ) { struct adapter * adapter = device_get_softc ( dev ) ; EM_CORE_LOCK ( adapter ) ; lem_release_manageability ( adapter ) ; lem_release_hw_control ( adapter ) ; lem_enable_wakeup ( dev ) ; EM_CORE_UNLOCK ( adapter ) ; return bus_generic_suspend ( dev ) ; }
Suspend/resume device methods.
Suspend / resume device methods .