diff options
author | Nikolay Sturm <sturm@cvs.openbsd.org> | 2006-01-19 19:17:11 +0000 |
---|---|---|
committer | Nikolay Sturm <sturm@cvs.openbsd.org> | 2006-01-19 19:17:11 +0000 |
commit | 53769234f5d2cc789eb38bca329575b464650468 (patch) | |
tree | 839913333629e5b30db2e42e8a55af900fce30e5 /usr.sbin/apmd/apm-proto.h | |
parent | 2e4638218f93e5d831689bab4325ab3a409e4c8a (diff) |
prompted by deraadt:
manual performance mode -> low/high performance mode
show cpuspeed in apm output
ok beck, weingart
man page bits ok jmc
Diffstat (limited to 'usr.sbin/apmd/apm-proto.h')
-rw-r--r-- | usr.sbin/apmd/apm-proto.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/apmd/apm-proto.h b/usr.sbin/apmd/apm-proto.h index 8f8726bb323..ce63843bc34 100644 --- a/usr.sbin/apmd/apm-proto.h +++ b/usr.sbin/apmd/apm-proto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: apm-proto.h,v 1.6 2005/12/02 04:27:52 beck Exp $ */ +/* $OpenBSD: apm-proto.h,v 1.7 2006/01/19 19:17:10 sturm Exp $ */ /* * Copyright (c) 1996 John T. Kohl @@ -48,7 +48,8 @@ enum apm_state { enum apm_perfstate { PERF_NONE, - PERF_MANUAL, + PERF_LOW, + PERF_HIGH, PERF_AUTO, PERF_COOL }; @@ -62,10 +63,11 @@ struct apm_reply { int vno; enum apm_state newstate; enum apm_perfstate perfstate; + int cpuspeed; struct apm_power_info batterystate; }; -#define APMD_VNO 2 +#define APMD_VNO 3 extern const char *battstate(int state); extern const char *ac_state(int state); |