예제 #1
0
파일: eap.c 프로젝트: 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));
}
예제 #2
0
파일: eap.c 프로젝트: sofuture/bitrig
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);
}