diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2001-06-23 10:38:25 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2001-06-23 10:38:25 +0000 |
commit | 0a170022469cb414eaf2fe65a3f07b5b0874d123 (patch) | |
tree | 2700c24fbec6ebb29d833bcb6825a2497ca61eb9 /sys/dev/acpica/acpivar.h | |
parent | b3aa602e23ece34e47cebfa021714069fe78231a (diff) | |
download | FreeBSD-src-0a170022469cb414eaf2fe65a3f07b5b0874d123.zip FreeBSD-src-0a170022469cb414eaf2fe65a3f07b5b0874d123.tar.gz |
Add sysctl interface (Read-only) for temprature, AC-line and Battery.
Patches for acpi_cmbat.c submitted by Munehiro Matsuda.
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index ebefafb..4e39306 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -53,6 +53,9 @@ struct acpi_softc { int acpi_power_button_sx; int acpi_sleep_button_sx; int acpi_lid_switch_sx; + + struct sysctl_ctx_list acpi_battery_sysctl_ctx; + struct sysctl_oid *acpi_battery_sysctl_tree; }; struct acpi_device { @@ -230,3 +233,12 @@ extern char *acpi_name(ACPI_HANDLE handle); extern int acpi_avoid(ACPI_HANDLE handle); extern int acpi_disabled(char *subsys); +/* + * Battery Abstruction and Generalized Power Management interface. + */ +struct acpi_battinfo; + +extern int acpi_battery_register(int, int); +extern int acpi_acad_get_acline(void); +extern int acpi_cmbat_get_battinfo(int, struct acpi_battinfo *); + |