freebsd4/sys/pc98/apm/apm.c
/* engage/disengage power management (APM 1.1 or later) */
engage/disengage power management (APM 1.1 or later)
engage / disengage power management ( APM 1 . 1 or later )
static int
apm_engage_disengage_pm(int engage)
{
	struct apm_softc *sc = &apm_softc;
	sc->bios.r.eax = (APM_BIOS << 8) | APM_ENGAGEDISENGAGEPM;
	sc->bios.r.ebx = PMDV_ALLDEV;
	sc->bios.r.ecx = engage;
	sc->bios.r.edx = 0;
	return (apm_bioscall());
}
static int apm_engage_disengage_pm ( int engage ) { struct apm_softc * sc = & apm_softc ; sc -> bios . r . eax = ( APM_BIOS << 8 ) | APM_ENGAGEDISENGAGEPM ; sc -> bios . r . ebx = PMDV_ALLDEV ; sc -> bios . r . ecx = engage ; sc -> bios . r . edx = 0 ; return ( apm_bioscall ( ) ) ; }
engage/disengage power management (APM 1.1 or later)
engage / disengage power management ( APM 1 . 1 or later )