summaryrefslogtreecommitdiffstats
path: root/sys/i386/bios/apm.h
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2000-09-14 22:34:57 +0000
committeriwasaki <iwasaki@FreeBSD.org>2000-09-14 22:34:57 +0000
commitee51abd0609e8401331f51adaca5051b068a391a (patch)
tree970617cd21051f70fef55eff718078f20e915530 /sys/i386/bios/apm.h
parent45b94b8ee4029e7816e2e81eb551ba3dd2b491c8 (diff)
downloadFreeBSD-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.h1
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;
OpenPOWER on IntegriCloud