summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_ec.c
Commit message (Collapse)AuthorAgeFilesLines
* Resolve conflicts arising from the ACPI CA 20021118 import.iwasaki2002-11-271-2/+2
|
* Add new loader tunable hw.acpi.ec.event_driven so that we controliwasaki2002-10-241-1/+4
| | | | | | EcWaitEventIntr()'s behavior. Some EC controllers require this for working properly (including sleep/wakeup).
* 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
* Make interrupt driven EC transaction optional.takawata2002-07-021-0/+2
|
* Brutally deal with __func__ being 'const char *' on gcc-3.1.peter2002-05-191-6/+6
|
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-231-38/+44
| | | | | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The ACPI global lock acquire takes a timeout value. I'm not sure what we should do about timeouts on it; a deadlock against this lock is catastrophic.
* Fix error handling.takawata2002-01-311-7/+19
| | | | | PR:30665 Submitted by:TOMITA Yoshinori <yoshint@flab.fujitsu.co.jp>
* Staticise devclasses and some unnecessarily global variables.msmith2002-01-081-1/+1
|
* Add OS layer ACPI mutex and threading support.iwasaki2001-12-221-1/+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.
* Synch with minor changes in the ACPI CA 20011120 snapshot.msmith2001-11-281-6/+6
|
* Cleanups of verbose printing. All the messages for the debugging isiwasaki2001-11-181-15/+29
| | | | | | | 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.
* Update usage of AcpiEnableEvent to reflect a new argument.msmith2001-10-041-3/+3
| | | | | | | | Fix acpi_DeviceIsPresent to check for valid _STA data and to check the "present" and "functioning" bits. Use acpi_DeviceIsPresent in acpi_pcib rather than rolling our own (also broken) version.
* Don't parse our resources ourself, the ACPI core code must do it.msmith2001-08-301-6/+0
|
* Updates to match the ACPI CA 20010816 import:msmith2001-08-261-4/+4
| | | | | - New debug macro (ACPI_DEBUG_PRINT), reducing debug-case code size. - New debug level/subsystem codes.
* Convert from acpi_strerror() to AcpiFormatException()msmith2001-07-211-6/+5
| | | | Fix dangling include of the dear departed acpi_ecreg.h
* Merge the EC register definitions into the EC module proper, they're notmsmith2001-07-211-2/+71
| | | | | | used anywhere else. AcpiOsSleepUsec() -> AcpiOsStall()
* Improve some error messages slightly.msmith2001-07-051-2/+5
|
* Use msleep() when we sleep waiting for a GPE, since we are holding themsmith2001-06-291-37/+55
| | | | | | | | ACPI mutex. Add some comments to EcWaitEventIntr. Clean up deviant style, add debugging to be consistent.
* - Updates for new constant naming in the ACPI CA 20010518 update.msmith2001-05-291-22/+20
| | | | | | | | | | | - 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).
* - Use a loop to read consecutive bytes from the embedded controller tojhb2001-02-261-10/+19
| | | | | | | | handle read and write requests for widths of multiple bytes. This can be used to read 16-bit battery status registers for example. - Remove some unused variables and #if 0'd debugging cruft. - Don't complain about a GPE query that fails due to AE_NOT_FOUND if the query method was _Q00.
* Add some debugging.msmith2001-01-311-35/+17
| | | | | | | | | Use acpi_EvaluateInteger where possible. Use FuncName rather than &FuncName when passing function addresses. Don't evaluate the _REG method when we attach to an address space - AcpiInstallAddressSpaceHandler does it for us.
* Axe an unused static softc.jhb2001-01-231-2/+0
|
* Change Embedded Controller lock to ACPI Global Lock.This is needed fortakawata2001-01-021-11/+2
| | | | mutual execution between BIOS and OS.
* Change priority of procedure queueing.takawata2000-12-201-2/+2
| | | | This is needed to next ACPICA import.
* Fix with debugging option.takawata2000-12-151-2/+2
| | | | Submitted by: haro@tk.kubota.co.jp
* Make Embedded Controller driver interrupt driven.takawata2000-12-141-19/+77
|
* - Convert a lot of homebrew debugging output to use the ACPI CA debuggingmsmith2000-12-081-15/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | infrastructure. It's not perfect, but it's a lot better than what we've been using so far. The following rules apply to this: o BSD component names should be capitalised o Layer names should be taken from the non-CA set for now. We may elect to add some new BSD-specific layers later. - Make it possible to turn off selective debugging flags or layers by listing them in debug.acpi.layer or debug.acpi.level prefixed with !. - Fully implement support for avoiding nodes in the ACPI namespace. Nodes may be listed in the debug.acpi.avoid environment variable; these nodes and all their children will be ignored (although still scanned over) by ACPI functions which scan the namespace. Multiple nodes can be specified, separated by whitespace. - Implement support for selectively disabling ACPI subsystem components via the debug.acpi.disable environment variable. The following components can be disabled: o bus creation/scanning of the ACPI 'bus' o children attachment of children to the ACPI 'bus' o button the acpi_button control-method button driver o ec the acpi_ec embedded-controller driver o isa acpi replacement of PnP BIOS for ISA device discovery o lid the control-method lid switch driver o pci pci root-bus discovery o processor CPU power/speed management o thermal system temperature detection and control o timer ACPI timecounter Multiple components may be disabled by specifying their name(s) separated by whitespace. - Add support for ioctl registration. ACPI subsystem components may register ioctl handlers with the /dev/acpi generic ioctl handler, allowing us to avoid the need for a multitude of /dev/acpi* control devices, etc.
* Update to work with the new ACPI CA snapshot.msmith2000-12-011-38/+3
| | | | | | | | | | - Use ACPI_PHYSICAL_ADDRESS - RSDT -> XSDT - FACP -> FADT - No APIC table support - Don't install a global EC handler; this has bad side-effects (it invokes _REG in *all* EC spaces in the namespace!) - Check for PCI bus instances already existing before adding them
* Initial FreeBSD OSPM (operating system power management) modules formsmith2000-10-281-0/+710
ACPICA. Most of these are still works in progress. Support exists for: - Fixed feature and control method power, lid and sleep buttons. - Detection of ISA PnP devices using ACPI namespace. - Detection of PCI root busses using ACPI namespace. - CPU throttling and sleep states (incomplete) - Thermal monitoring and cooling control (incomplete) - Interface to platform embedded controllers (mostly complete) - ACPI timer (incomplete) - Simple userland control of sleep states. - Shutdown and poweroff.
OpenPOWER on IntegriCloud