summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/cpu.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-12-18 23:46:21 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-12-18 23:46:21 +0000
commit5e003feba9b898fea84451fb88281e082b5c6f76 (patch)
treebd9cb881f2cc727cd0356ab3f5af3ed669f88865 /sys/arch/i386/include/cpu.h
parentd4f77d8f88b7b64d13463adb7816adbae01ca8bc (diff)
add new hw sysctls, cpuspeed and setperf to control cpu frequency.
convert longrun support to use new sysctls. add enhanced speedstep support, based on code by Michael Eriksson. idea, help testing & ok deraadt@
Diffstat (limited to 'sys/arch/i386/include/cpu.h')
-rw-r--r--sys/arch/i386/include/cpu.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h
index d9f6fa63eaf..6bdea1fc2b6 100644
--- a/sys/arch/i386/include/cpu.h
+++ b/sys/arch/i386/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.51 2003/07/28 21:15:28 jason Exp $ */
+/* $OpenBSD: cpu.h,v 1.52 2003/12/18 23:46:19 tedu Exp $ */
/* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */
/*-
@@ -183,6 +183,19 @@ void initrtclock(void);
void startrtclock(void);
void rtcdrain(void *);
+/* est.c */
+#if !defined(SMALL_KERNEL) && defined(I686_CPU)
+void est_init(const char *);
+int est_cpuspeed(void *, size_t *, void *, size_t);
+int est_setperf(void *, size_t *, void *, size_t);
+#endif
+
+/* longrun.c */
+#if !defined(SMALL_KERNEL) && defined(I586_CPU)
+int longrun_cpuspeed(void *, size_t *, void *, size_t);
+int longrun_setperf(void *, size_t *, void *, size_t);
+#endif
+
/* npx.c */
void npxdrop(void);
void npxsave(void);
@@ -237,8 +250,7 @@ void setconf(void);
#define CPU_KBDRESET 10 /* keyboard reset under pcvt */
#define CPU_APMHALT 11 /* halt -p hack */
#define CPU_USERLDT 12
-#define CPU_LONGRUN 13 /* LongRun status */
-#define CPU_MAXID 14 /* number of valid machdep ids */
+#define CPU_MAXID 13 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
@@ -254,7 +266,6 @@ void setconf(void);
{ "kbdreset", CTLTYPE_INT }, \
{ "apmhalt", CTLTYPE_INT }, \
{ "userldt", CTLTYPE_INT }, \
- { "longrun", CTLTYPE_STRUCT }, \
}
#endif /* !_I386_CPU_H_ */