summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_battery.c
Commit message (Collapse)AuthorAgeFilesLines
* Catch up to changes in acpivar.h to add support for using ACPI onjhb2002-10-161-2/+0
| | | | | | 4-stable systems. Sponsored by: The Weather Channel
* Staticise devclasses and some unnecessarily global variables.msmith2002-01-081-1/+1
|
* Some improvements of control method battery driver.iwasaki2001-10-301-0/+12
| | | | | | | | | | | | | - Add a new MIB for battery info expire time in order to make it changeable. Battery info expire time can be specified by hw.acpi.battery.info_expire in sec. - Add own MALLOC type and fix some potential memory leakages. - Change some frequent printings to verbose printing. - Stop timeout during acpi_cmbat_get_bst() too. This should reduce the races with BIF evaluation. - Remove acpi_cmbat_get_bif() invocation from acpi_cmbat_attach(). This was redundant because this should be called from acpi_cmbat_timeout() now.
* Add APM compatibility feature to ACPI.iwasaki2001-10-261-3/+3
| | | | | | | | | | | | | | | | | This emulates APM device node interface APIs (mainly ioctl) and provides APM services for the applications. The goal is to support most of APM applications without any changes. Implemented ioctls in this commit are: - APMIO_SUSPEND (mapped ACPI S3 as default but changable by sysctl) - APMIO_STANDBY (mapped ACPI S1 as default but changable by sysctl) - APMIO_GETINFO and APMIO_GETINFO_OLD - APMIO_GETPWSTATUS With above, many APM applications which get batteries, ac-line info. and transition the system into suspend/standby mode (such as wmapm, xbatt) should work with ACPI enabled kernel (if ACPI works well :-) Reviewed by: arch@, audit@ and some guys
* Updates to match the ACPI CA 20010816 import:msmith2001-08-261-4/+3
| | | | | - New debug macro (ACPI_DEBUG_PRINT), reducing debug-case code size. - New debug level/subsystem codes.
* Add a new helper function for finding resources in resource buffers.msmith2001-07-051-0/+251
Move the ACPI generic battery code into a new file.
OpenPOWER on IntegriCloud