summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2012-07-16Add shorter form function aml_node_setval() for setting an intTheo de Raadt
on an AML node. Shortens the tricky code in a lot of callers. Earlier version seen by pirofti and kettenis.
2012-07-13Disable acpivideo(4) on ASUS laptops.Paul Irofti
There are some models that panic whenever an event is received. Some cope, some don't. In order to get this right acpiec(4) requires major rework. Until then let machines boot. Discussed with deraadt@.
2012-07-13Make the ACPI EC aware of the AML global lock.Paul Irofti
Comments from kettenis@ and matthew@. Okay deraadt@, kettenis@.
2012-07-11for now, restrict hibernate to root in the acpi ioctl kernel interface.Mike Larkin
normal rules for controlling this interface through apmd still apply. ok deraadt@
2012-07-10Ooops. A debug printf sneaked in. Sorry about that.Paul Irofti
2012-07-10More wraping and style.Paul Irofti
2012-07-10WrapPaul Irofti
2012-07-09tiny little oops in untested hibernate blockTheo de Raadt
2012-07-09clean up ioctl() case statementsTheo de Raadt
2012-07-09acpi_disable_onegpe() is not used; ok piroftiTheo de Raadt
2012-05-24If _MIN > _MAX consider a WordBus resource to be invalid. Fixes a panic onMark Kettenis
the IBM x3550-M4. ok mikeb@
2012-03-29Missing #ifdef in previous diffMike Larkin
2012-03-29Prevent hibernation attempts on machines with unsupported disk controllers.Mike Larkin
The same check is also performed later in the hibernate sequence, but by then it's too late to cleanly unwind (presently). ok deraadt
2012-03-26simplify conditionals in acpi_sleep_state()Theo de Raadt
ok mlarkin
2012-03-26hook in the hibernate request code; half of this diff is from mlarkinTheo de Raadt
ok mlarkin
2012-03-15Allow multiple backslashes at the start of a namespace path. It is prettyMark Kettenis
clear this is not supposed to happen, but unfortunately the description of the ECDT table in the standard document has a path that starts with two backslashes so that's what some vendors used. From Christophe Staiesse. ok deraadt@
2012-03-10Seems the _REG method is optional, so only run it if it is present.Mark Kettenis
2012-03-10AML integers are supposed to be 64-bit unsigned, but huge parts of our codeMark Kettenis
use signed integers. Partially fix issues by at least doing math operations on unsigned integers. From Christophe Staiesse.
2012-01-07Add X2APIC-related definitions for the MADT and silently skip them insteadMark Kettenis
of printing a warning.
2011-10-21Set mp_nbusses such that the newly added bounds checks on i386 and amd64Mark Kettenis
don't fail unconditionally.
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