diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2000-09-14 22:34:57 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2000-09-14 22:34:57 +0000 |
commit | ee51abd0609e8401331f51adaca5051b068a391a (patch) | |
tree | 970617cd21051f70fef55eff718078f20e915530 /sys/i386/bios/apm.h | |
parent | 45b94b8ee4029e7816e2e81eb551ba3dd2b491c8 (diff) | |
download | FreeBSD-src-ee51abd0609e8401331f51adaca5051b068a391a.zip FreeBSD-src-ee51abd0609e8401331f51adaca5051b068a391a.tar.gz |
Add Timer device driver for power management events.
The code for suspend/resume is derived from APM device driver.
Some people suggested the original code is somewhat buggy, but I'd
like to just move it from apm.c without any major changes for the
initial version. This code should be refined later.
To use pmtimer to adjust time at resume time, add
device pmtimer
in your kernel config file, and add
hint.pmtimer.0.at="isa"
in your device.hints
Reviewed by: -current, bde
Diffstat (limited to 'sys/i386/bios/apm.h')
-rw-r--r-- | sys/i386/bios/apm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/bios/apm.h b/sys/i386/bios/apm.h index 242782f..03115ab 100644 --- a/sys/i386/bios/apm.h +++ b/sys/i386/bios/apm.h @@ -26,6 +26,7 @@ struct apm_softc { int initialized, active, bios_busy; int always_halt_cpu, slow_idle_cpu; int disabled, disengaged; + int suspending; int standby_countdown, suspend_countdown; u_int minorversion, majorversion; u_int intversion, connectmode; |