summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_powerres.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge ACPICA 20100121.jkim2010-01-211-2/+2
|
* Import ACPICA 20090521.jkim2009-06-051-1/+3
|
* Remove unnecessary assignment.jkim2006-04-211-1/+1
| | | | | Coverity ID: 553 Found by: Coverity Prevent
* Canonize the include of acpi.h.obrien2005-09-111-1/+1
|
* Remove trailing whitespace.njl2004-12-271-2/+2
|
* Instead of trusting _STA from power resources, cache the first valuenjl2004-09-071-5/+11
| | | | | | | returned and then infer the state from calls to _ON/_OFF. This works around a problem in systems that don't correctly report the state (i.e. the HP Omnibook 500 reports "on" for its fan always after it has been turned on once).
* MPSAFE lockingnjl2004-08-131-33/+55
| | | | | | | | * Serialize acpi_pwr_switch_consumer() and acpi_pwr_wake_enable(). * Make acpi_pwr_switch_consumer() have a single exit point. * Add assertions to the leaf functions they call. * Fix a memory leak in acpi_pwr_deregister_consumer(). However, it is currently ifdefed out so this code was unused.
* Add missing function debug trace macros to the new powerres functions.njl2004-06-301-0/+4
| | | | Reported by: phk
* Add a method for referencing/switching power resources based on _PRW.njl2004-06-301-11/+56
| | | | | | This brings us into line with the standard, which requires power resources be enabled when wake is enabled for a given device. Move the dereferencing code into its own function, +acpi_pwr_dereference_resource().
* Avoid printing extraneous warning messages when trying to switch a devicenjl2004-06-071-8/+11
| | | | | | | | which doesn't support ACPI power states. Return AE_NOT_FOUND for these cases and don't print the warning message. Also, print the name of the handle instead of device when unable to switch states. The device is often not attached at this point and so its name is NULL, which doesn't help debugging.
* Return an error immediately if asked to switch a non-existent consumer.njl2004-04-141-0/+4
|
* Fix some warnings by commenting out unused code.njl2004-04-141-0/+8
|
* Replace more ad-hoc versions of acpi_GetReference(). Since the type ofnjl2004-04-091-23/+3
| | | | | | Reference objects changed from ACPI_TYPE_ANY to ACPI_TYPE_LOCAL_REFERENCE in Oct. 2002, this may help systems where switching the cooler on failed. We support both types for now until this sorts out.
* Change to acpi_{Get,Set}Integer to provide both methods. Convert allnjl2004-03-031-2/+2
| | | | | | callers to the new API. Submitted by: Mark Santcroos <marks@ripe.net>
* Add support for quirks for acpi tables. Key off OEM vendor and revision.njl2004-03-031-1/+1
| | | | | | Sort acpi debug values. Change "disable" to "disabled" to match rest of the kernel. Remove debugging from acpi_toshiba since it was only used for probe/attach.
* Fix a whitespace nit.jhb2004-02-121-1/+1
|
* Style and whitespace changes. Also, make the ivar functions non-inlinenjl2003-08-281-174/+204
| | | | since inlining failed due to the size of BUS_*
* Use __FBSDID().obrien2003-08-241-2/+3
| | | | Also some minor style cleanups.
* 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
* Fix a bug about the cooling system controlling in acpi_thermal driver.iwasaki2002-08-271-11/+21
| | | | | | | Recent version of ACPI CA returns the package object which contains object reference elements if the elements are named objects. We need to be careful when you use acpi_ForeachPackageObject() in new code...
* Brutally deal with __func__ being 'const char *' on gcc-3.1.peter2002-05-191-9/+9
|
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-231-41/+48
| | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER.
* Staticise devclasses and some unnecessarily global variables.msmith2002-01-081-2/+2
|
* Add OS layer ACPI mutex and threading support.iwasaki2001-12-221-0/+3
| | | | | | | | | | | | | | | | | | - Temporary fix a bug of Intel ACPI CA core code. - Add OS layer ACPI mutex support. This can be disabled by specifying option ACPI_NO_SEMAPHORES. - Add ACPI threading support. Now that we have a dedicate taskqueue for ACPI tasks and more ACPI task threads can be created by specifying option ACPI_MAX_THREADS. - Change acpi_EvaluateIntoBuffer() behavior slightly to reuse given caller's buffer unless AE_BUFFER_OVERFLOW occurs. Also CM battery's evaluations were changed to use acpi_EvaluateIntoBuffer(). - Add new utility function acpi_ConvertBufferToInteger(). - Add simple locking for CM battery and temperature updating. - Fix a minor problem on EC locking. - Make the thermal zone polling rate to be changeable. - Change minor things on AcpiOsSignal(); in ACPI_SIGNAL_FATAL case, entering Debugger is easier to investigate the problem rather than panic.
* Use return_PTR, not return_VALUE when returning pointers.dfr2001-10-041-2/+2
|
* Updates to match the ACPI CA 20010816 import:msmith2001-08-261-48/+48
| | | | | - New debug macro (ACPI_DEBUG_PRINT), reducing debug-case code size. - New debug level/subsystem codes.
* Fix error checking about device state transition from D0 to D3.iwasaki2001-08-211-4/+27
| | | | | | Turn off the resources listed in _PR0 to go to D3 if we don't have _PR3/_PS3. Reviewed by: msmith
* Convert from acpi_strerror() to AcpiFormatException()msmith2001-07-211-3/+3
| | | | Fix dangling include of the dear departed acpi_ecreg.h
* Whoops; we get an ACPI_OBJECT back from evaluating a method, notmsmith2001-07-091-8/+6
| | | | | | an ACPI_OPERAND_OBJECT. Fix this so that the power resource type can be properly checked, and we can get the system level and resource order.
* This was only half-implemented when I committed it, and certainly didn'tmsmith2001-07-061-30/+92
| | | | work. Now it's implemented and seems to work.
* Update for new debug layer constant names in the ACPI CA 20010615msmith2001-06-291-1/+1
| | | | import.
* Sync to my work in progress:msmith2001-06-281-0/+553
- Reorder the acpi_* functions in a sensible fashion - Add acpi_ForeachPackageObject and acpi_GetHandleInScope - Use the new debugging layer/level names - Implement most of the guts of the acpi_thermal module; passive cooling isn't there yet, but active cooling should work. - Implement power resource handling (acpi_powerres.c) This compiles and mostly works, but my test coverage is small, so feedback is welcome.
OpenPOWER on IntegriCloud