summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2011-10-16Provide battery charge/discharge rate in proper units.Mark Kettenis
Based on a diff from Vladimir Kirrillov.
2011-09-20Very early in suspend while the clock is still ticking realtime,Theo de Raadt
save the clock back to the rtc. The zaurus already did this. ok phessler miod kettenis
2011-07-02kqueue attach functions should return an errno or 0, not a plain 1. FixNicholas Marriott
the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
2011-06-24machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andChristian Weisgerber
i386. Stop abusing it on other archs for controling a shutdown by pressing the soft power button: * Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it allows a power button shutdown. * Make acpi(4)/acpibtn(4) honor hw.allowpowerdown. * Switch the various power button intercepts on landisk, sgi, sparc64 and zaurus over to hw.allowpowerdown. * Garbage collect the machdep.kbdreset sysctl on all archs other than amd64 and i386. ok miod@
2011-06-19fix up unbalanced format stringsJonathan Gray
ok deraadt@
2011-06-17Unbreak tree. $OpenBSD$ tag needs to be in a comment! BadKenneth R Westerback
pirofti@.
2011-06-16Import acpitoshiba driver.Paul Irofti
This is originally written by Hiroyuki Aizu, ported and integrated in our tree by Javier Vazquez <javama4 AT gmail> with tweaks and suggestions by me. Import prodded by deraadt@ and the lack of testers on tech@.
2011-06-15Silence unneeded conversion warning. Okay jordan@.Paul Irofti
2011-06-15try to make critical messages make more sense. help from sthen.Marco Peereboom
2011-06-08Use static scope during AML disassembly, fixes splassert errorJordan Hargrave
2011-06-06Microphone mute button support from acpithinkpad (or elsewhere).Theo de Raadt
The audio side is a bit lacking; it does not yet mute all types of devices. from Alexander Polakov ok jakemsr
2011-06-03Change acpi_xfoo to acpi_foo names.Jordan Hargrave
Fix return value for Acquire/Wait (TRUE = -1)
2011-06-03Track depth of scope stackJordan Hargrave
2011-06-03Remove unused structure members. Add depth field.Jordan Hargrave
2011-06-02Fix index for Mid() opcodeJordan Hargrave
2011-06-02Fix CondRef definition to support optional target. Fixes docking on Dell E4310Jordan Hargrave
ok marco@
2011-05-29Ignore errors from the UCMS method. Some newer (really crappy, stayTheo de Raadt
away from them) thinkpads are returning garbage for the return value. We never did anything special about the return value except spit out some noise, so silence it. ok mlarkin
2011-05-23Remove leftover include.Paul Irofti
2011-05-23Do not check malloc return value against NULL, as M_WAITOK is used.Paul Irofti
2011-04-27attach acpithinkpad to newer lenovo models like the x120ejoshua stein
ok deraadt@
2011-04-22Fix uninitialzied variables and formatting strings (-Wxxx errors)Jordan Hargrave
2011-04-19clean out some tiny nitsTheo de Raadt
2011-04-18Change all aml_xfoo to aml_foo names now that parser is stableJordan Hargrave
2011-04-15Remove the acpi event definitions. They've not been used for over aOwain Ainsworth
year. acpi needs to use the apm definitions so that apmd speaks the same language as it, so it uses the ones in apmvar.h these days. ``sure'' marco@
2011-04-07Fix uninitialized name and x variables in setfanJordan Hargrave
2011-04-07Revert prior diff that I ok because I don't know how to read. Real fixMarco Peereboom
coming soon after this revert. ok jordan
2011-04-07Fix device names in acpitz_setfan() printf messages, which got broken inMiod Vallat
1.32. ok marco@
2011-04-06Don't enumerate _DOD for attaching acpivout(4), since:Martynas Venckus
- ACPI spec. says _DOD is not required for brightness controls, - The list returned by _DOD might be wrong, - It's an unnecessary work to do. Instead, decision to attach will be based on the actual methods found, similarly like in the other ACPI drivers. Tested by several on tech@. OK kettenis@, marco@, pirofti@. pirofti@ asked me to note here that devices not supporting brightness controls won't attach from now on. This shouldn't be a concern for you, since such devices weren't doing anything at all, anyway.
2011-03-20changes the values of boolean comparisons from 0:1 to 0:-1 (from ACPI Spec) ↵Jordan Hargrave
in order to fix an AML issue on some Asus machines. ok marco@
2011-03-06The global_int information acpi collects is not used by amd64.Theo de Raadt
ok ketttenis
2011-01-10Attach acpihpet only once. The matching code is changed because acpi busMike Belopuhov
can be enumerated which means match routine should do the right thing and prevent further attachments. With input from kettenis, deraadt, miod; ok deraadt, kettenis
2011-01-09Continue loading acpiec even if _REG fails.. allows HP G62 to work properlyJordan Hargrave
Linux does the same with error message. _REG only notifies AML that acpiec config space is available. ok marco
2011-01-08Removed unused structure memberJordan Hargrave
2011-01-05Ignore MCFG tables with an empty bus range. Makes stu@'s amd64 machineMark Kettenis
boot again.
2011-01-04Add support for Memory Mapped Configuration space access. This gives usMark Kettenis
access to PCIe extended configuration space access on modern i386 and amd64 machines.
2011-01-02Re-add code for ACPI taskqueue, eliminates need for state vars in acpi softcJordan Hargrave
Serialize processing ACPI tasks for sleep/powerdown/GPE event ok deraadt@
2010-11-10The acpibat(4) notify function should not unconditionally call both _BIFMark Kettenis
and _BST. Some machines (like the Toshiba Satellite Pro U550 18F mentioned in PR 6508) have AML that does a Notify(0x81) from the _BST method, which leads to infinite recursion. Instead call _BIF when the argument is 0x81 and call _BST when the argument is 0x80 or 0x00 (the latter indicates we're polling). Simplify the battery detection logic while there. ok mikeb@, marco@
2010-10-31Revert last commit: it breaks resume on ThinkpadsPhilip Guenthe
"then please back it out" deraadt@
2010-10-26Add task queue for ACPI gpe and notify handlersJordan Hargrave
This fixes eject on Dell Latitude dock and an issue on the Dell Mini battery update. ok deraadt
2010-10-15Remove redundant definitionJordan Hargrave
2010-10-07Create separate functions for enabling wake and runtime gpes.Jordan Hargrave
Remove old suspend/resume gpewalk function ok deraadt, mlarkin
2010-10-05split acpi_enable_onegpe to separate enable/disable functionsJordan Hargrave
ok deraadt
2010-10-05Added acpi_disable_allgpes function to clear GPE statusJordan Hargrave
ok deraadt
2010-10-05clean up acpi_softc use moreTheo de Raadt
2010-10-05delete a bit of #if 0 codeTheo de Raadt
2010-10-05hide use of our global acpi_softc pointer a bit betterTheo de Raadt
2010-09-29grab the acpi thread lock very early in acpi thread startup; not that itTheo de Raadt
is likely that anyone will race us... but why be careless. ok kettenis
2010-09-21Add support for newer asus boards that use a different method to pollClaudio Jeker
and enumerate the sensors. When available aibs is using the RTMP, RVLT, and RFAN nodes else in new mode GGRP, GITM, and SITM are used. Tested by me and japser@ on old HW and me and Mattieu Baptiste on new HW. OK deraadt@
2010-09-19acpi sub-drivers may not use sensordev_install(); all acpi/acpiec/dsdtTheo de Raadt
operations must currently operate under the acpi thread. So use aml_register_notify with ACPI_POLL for now -- it is a horrific hack of an interface, but now that all drivers are unified to use it, we can consider improving it. tested by jasper and claudio
2010-08-31Add DVACT_QUIECE support. This is called before splhigh() and beforeTheo de Raadt
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod.