summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpiio.h
diff options
context:
space:
mode:
authortakawata <takawata@FreeBSD.org>2000-12-22 14:41:55 +0000
committertakawata <takawata@FreeBSD.org>2000-12-22 14:41:55 +0000
commit8ccea54a6853e94f01fa419f0971916050be00c8 (patch)
tree582be48b355dd6fb7b07b5b58a54455db15aa632 /sys/dev/acpica/acpiio.h
parent27bc62ade6bdc34211220f5a625c37163891e303 (diff)
downloadFreeBSD-src-8ccea54a6853e94f01fa419f0971916050be00c8.zip
FreeBSD-src-8ccea54a6853e94f01fa419f0971916050be00c8.tar.gz
Add ACPI AC adaptor and ACPI Control Method Battery.
And install notify handler for thermal zone .
Diffstat (limited to 'sys/dev/acpica/acpiio.h')
-rw-r--r--sys/dev/acpica/acpiio.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpiio.h b/sys/dev/acpica/acpiio.h
index 2e1fb12..fec9dc2 100644
--- a/sys/dev/acpica/acpiio.h
+++ b/sys/dev/acpica/acpiio.h
@@ -34,6 +34,30 @@
#define ACPIIO_DISABLE _IO('P', 2)
#define ACPIIO_SETSLPSTATE _IOW('P', 3, int)
+#define ACPI_CMBAT_MAXSTRLEN 32
+struct acpi_bif {
+ u_int32_t unit; /* 0 for mWh, 1 for mAh */
+ u_int32_t dcap; /* Design Capacity */
+ u_int32_t btech; /* Battery Technorogy */
+ u_int32_t lfcap; /* Last Full capacity */
+ u_int32_t dvol; /* Design voltage (mV) */
+ u_int32_t wcap; /* WARN capacity */
+ u_int32_t lcap; /* Low capacity */
+ u_int32_t gra1; /* Granulity 1(Warn to Low) */
+ u_int32_t gra2; /* Granulity 2(Full to Warn) */
+ char model[ACPI_CMBAT_MAXSTRLEN]; /* model identifier */
+ char serial[ACPI_CMBAT_MAXSTRLEN]; /* Serial number */
+ char type[ACPI_CMBAT_MAXSTRLEN]; /* Type */
+ char oeminfo[ACPI_CMBAT_MAXSTRLEN]; /* OEM infomation */
+};
+
+struct acpi_bst {
+ u_int32_t state; /* Battery State */
+ u_int32_t rate; /* Present Rate */
+ u_int32_t cap; /* Remaining Capacity */
+ u_int32_t volt; /* Present Voltage */
+};
+
#ifdef _KERNEL
extern int acpi_register_ioctl(u_long cmd, int (* fn)(u_long cmd, caddr_t addr, void *arg), void *arg);
extern void acpi_deregister_ioctl(u_long cmd, int (* fn)(u_long cmd, caddr_t addr, void *arg));
OpenPOWER on IntegriCloud