diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-13 21:28:57 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-13 21:28:57 +0000 |
commit | 2da785b10fc3ab93514921c99868995fcc14b753 (patch) | |
tree | 36a738c28a1f2e4dc89dcf71d24995e012943b65 /sys/dev/acpica/acpivar.h | |
parent | 6a1d7a734cceb0a37a2f20a44022da576a9d6792 (diff) | |
download | FreeBSD-src-2da785b10fc3ab93514921c99868995fcc14b753.zip FreeBSD-src-2da785b10fc3ab93514921c99868995fcc14b753.tar.gz |
Add 3 new dynamic sysctl's to control the sleep states switched to on a
power button, sleep button, or lid close event. The sysctl's use the
ACPI sleep state names S0, S1, S2, S3, S4, S4B, and S5.
Reviewed by: iwasaki
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index 960d175..1b27e83 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -30,6 +30,7 @@ #include "bus_if.h" #include <sys/eventhandler.h> +#include <sys/sysctl.h> extern devclass_t acpi_devclass; @@ -44,6 +45,8 @@ struct acpi_softc { int acpi_enabled; int acpi_sstate; + struct sysctl_ctx_list acpi_sysctl_ctx; + struct sysctl_oid *acpi_sysctl_tree; #define ACPI_POWER_BUTTON_DEFAULT_SX ACPI_STATE_S5; #define ACPI_SLEEP_BUTTON_DEFAULT_SX ACPI_STATE_S1; #define ACPI_LID_SWITCH_DEFAULT_SX ACPI_STATE_S1; |