Esempio n. 1
0
File: eap.c Progetto: bluhm/sys
int
eap_activate(struct device *self, int act)
{
	struct eap_softc *sc = (struct eap_softc *)self;

	switch (act) {
	case DVACT_RESUME:
		eap_resume(sc);
		break;
	default:
		break;
	}
	return (config_activate_children(self, act));
}
Esempio n. 2
0
int
eap_activate(struct device *self, int act)
{
	struct eap_softc *sc = (struct eap_softc *)self;
	int rv = 0;

	switch (act) {
	case DVACT_QUIESCE:
		rv = config_activate_children(self, act);
		break;
	case DVACT_SUSPEND:
		break;
	case DVACT_RESUME:
		eap_resume(sc);
		rv = config_activate_children(self, act);
		break;
	case DVACT_DEACTIVATE:
		break;
	}
	return (rv);
}