FreeBSD/sys/i386/bios/apm.c
/*
 * Turn off the entire system.
 */
Turn off the entire system.
Turn off the entire system .
static void
apm_power_off(void *junk, int howto)
{
	struct apm_softc *sc = &apm_softc;
	if (!(howto & RB_POWEROFF) || !apm_softc.active)
		return;
	sc->bios.r.eax = (APM_BIOS << 8) | APM_SETPWSTATE;
	sc->bios.r.ebx = PMDV_ALLDEV;
	sc->bios.r.ecx = PMST_OFF;
	sc->bios.r.edx = 0;
	(void) apm_bioscall();
}
static void apm_power_off ( void * junk , int howto ) { struct apm_softc * sc = & apm_softc ; if ( ! ( howto & RB_POWEROFF ) || ! apm_softc . active ) return ; sc -> bios . r . eax = ( APM_BIOS << 8 ) | APM_SETPWSTATE ; sc -> bios . r . ebx = PMDV_ALLDEV ; sc -> bios . r . ecx = PMST_OFF ; sc -> bios . r . edx = 0 ; ( void ) apm_bioscall ( ) ; }
Turn off the entire system.
Turn off the entire system .
/* Not halting powering off, or not active */