summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_acad.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow non-privilaged user to retrive battery or AC line information.takawata2003-02-151-0/+5
| | | | Reviewed by: rwatson
* Add status initialization code for acpi_cmbat and acpi_acad,iwasaki2002-11-031-1/+37
| | | | | | | | acpi_cmbat_init_battery() and acpi_cmbat_init_acline() respectively. Call acpi_cmbat_init_battery() from acpi_cmbat_resume() too just in case. This is a workaround for embedded controller operations which is unstable for about a minute (typically 30 or 40 sec.) at boot time.
* Add generalized power profile code.iwasaki2002-03-041-1/+2
| | | | | | | | | | | | | This makes other power-management system (APM for now) to be able to generate power profile change events (ie. AC-line status changes), and other kernel components, not only the ACPI components, can be notified the events. - move subroutines in acpi_powerprofile.c (removed) to kern/subr_power.c - call power_profile_set_state() also from APM driver when AC-line status changes - add call-back function for Crusoe LongRun controlling on power profile changes for a example
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-231-2/+2
| | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently.
* Cleanups of verbose printing. All the messages for the debugging isiwasaki2001-11-181-7/+4
| | | | | | | disabled unless verbose flag is set. Also fix some messages in terms of English. The critical messages and error messages in probe/attach routine are unchanged by this commit.
* Add APM compatibility feature to ACPI.iwasaki2001-10-261-4/+23
| | | | | | | | | | | | | | | | | 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
* Initialise the adapter status to an invalid state, so that the initial checkmsmith2001-09-061-0/+1
| | | | | | | | | of the adapter object will always result in a change event. This fixes the problem where a laptop booted without an AC adapter ran at 100% CPU speed by default. Submitted by: "Christopher N . Harrell" <cnh@netvmg.com>
* Some minor fixes.iwasaki2001-07-251-4/+11
| | | | | | | - Set system power profile only when AC-line status has canged. - Get initial AC-line status after whole system is up. Reviewed by: msmith
* Add support for system power profiles; select "performance" when AC powermsmith2001-07-071-0/+3
| | | | is available and "economy" when it is not.
* Add sysctl interface (Read-only) for temprature, AC-line and Battery.iwasaki2001-06-231-11/+54
| | | | Patches for acpi_cmbat.c submitted by Munehiro Matsuda.
* - Updates for new constant naming in the ACPI CA 20010518 update.msmith2001-05-291-0/+5
| | | | | | | | | | | - Use __func__ instead of __FUNCTION. - Support power-off to S3 or S5 (takawata) - Enable ACPI debugging earlier (with a sysinit) - Fix a deadlock in the EC code (takawata) - Improve arithmetic and reduce the risk of spurious wakeup in AcpiOsSleep. - Add AcpiOsGetThreadId. - Simplify mutex code (still disabled).
* ACPI_NUMBER becomes ACPI_INTEGER. acpi_EvaluateNumber becomesmsmith2001-01-311-1/+1
| | | | | | | | | | | acpi_EvaluateInteger. Use acpi_EvaluateInteger instead of doing things the hard way where possible. AcpiSetSystemSleepState (unofficial) becomes AcpiEnterSleepState. Use the AcpiGbl_FADT pointer rather than searching for the FADT.
* Add ioctls to acpi_cmbat and acpi_acad. These use mike's acpi_register_ioctl().iwasaki2000-12-241-0/+27
| | | | Fix wrong AML method calling in acpi_cmbat.
* Add ACPI AC adaptor and ACPI Control Method Battery.takawata2000-12-221-0/+138
And install notify handler for thermal zone .
OpenPOWER on IntegriCloud