diff options
author | Gordon Willem Klok <gwk@cvs.openbsd.org> | 2007-05-31 17:49:17 +0000 |
---|---|---|
committer | Gordon Willem Klok <gwk@cvs.openbsd.org> | 2007-05-31 17:49:17 +0000 |
commit | 2ff1e8275d4f73445fd38ed3b6ae0767fd684746 (patch) | |
tree | a7bcd3fc6eae5f19e8d0cbf9fc15c99ea13f9d88 /sys/dev/acpi/acpidev.h | |
parent | 7a4d4259325b6c7e8c397b1542f832df8e736a9a (diff) |
Make powernow-k8 on amd64 and i386 use the _PSS object from acpi to
retreive p_state data as spelled out in the amd64 bios and kernel
developers guide. This code is still a little rough around the edges but
has been tested by myself on a tyan machine and by phessler at theapt
dot org on an HP DL145. This diff also takes a first stab and cleaning up
the acpicpu dmesg spam.
ok tedu, marco
Diffstat (limited to 'sys/dev/acpi/acpidev.h')
-rw-r--r-- | sys/dev/acpi/acpidev.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpidev.h b/sys/dev/acpi/acpidev.h index 25c066b5d28..8fa10c879bb 100644 --- a/sys/dev/acpi/acpidev.h +++ b/sys/dev/acpi/acpidev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acpidev.h,v 1.24 2007/04/23 17:38:30 mk Exp $ */ +/* $OpenBSD: acpidev.h,v 1.25 2007/05/31 17:49:16 gwk Exp $ */ /* * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> @@ -21,6 +21,7 @@ #include <sys/sensors.h> #include <sys/rwlock.h> +#include <dev/acpi/acpireg.h> #define DEVNAME(s) ((s)->sc_dev.dv_xname) @@ -226,6 +227,8 @@ struct acpicpu_pss { u_int32_t pss_status; }; +int acpicpu_fetch_pss(struct acpicpu_pss **); +void acpicpu_set_notify(void (*)(struct acpicpu_pss *, int)); /* * XXX this is returned in a buffer and is not a "natural" type. * @@ -290,7 +293,7 @@ struct acpidock_softc { bus_space_tag_t sc_iot; bus_space_handle_t sc_ioh; - + struct acpi_softc *sc_acpi; struct aml_node *sc_devnode; |