summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/dsdt.c
AgeCommit message (Collapse)Author
2013-12-12printf(variable) --> printf("%s", variable)Philip Guenther
ok deraadt@
2013-11-04Enable locking of fields using the acpi global lock if required. Seems to fixMark Kettenis
a couple of machines and so far caused no regressions. Pt this in the tree now to get wider testing. ok deraadt@
2013-06-02support aml_store to a method object to override itjoshua stein
resolves a problem parsing the AML on an ASUS UX21A originally from armani@ ok kettenis@
2013-06-02The AML on the Lanner FW-8758 does a Store() to a named object that's neverMark Kettenis
actually defined. The ACPI standard isn't clear wether this is allowed, but it makes some sense to just initialize the object with the source of the Store(). Fixes the resulting panic on that particular machine. ok mlarkin@
2013-05-23Properly implement access to IndexField() field units. The origional codeMark Kettenis
only worked for field units that were 8 bits or less in size on fields using byte access. Fixes issues origionally reported by jcs@ and armani@. ok mlarkin@
2013-04-10Fix various glitches in queue macro usage.Philip Guenther
ok millert@
2013-02-09Add explicit __attribute__ ((__format__(__kprintf__)))) to the functions andMiod Vallat
function pointer arguments which are {used as,} wrappers around the kernel printf function. No functional change.
2013-01-18acpi: Add global lock enter and leave routines.Paul Irofti
I think this diff is the way to go if we want to have proper locking in our acpi drivers. This doesn't hook onto anything from the kernel and is just building framework towards locking. Okay mlarkin@, kettenis@.
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-10Ooops. A debug printf sneaked in. Sorry about that.Paul Irofti
2012-07-10More wraping and style.Paul Irofti
2012-07-10WrapPaul Irofti
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-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.
2011-06-15Silence unneeded conversion warning. Okay jordan@.Paul Irofti
2011-06-08Use static scope during AML disassembly, fixes splassert errorJordan Hargrave
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-02Fix index for Mid() opcodeJordan Hargrave
2011-06-02Fix CondRef definition to support optional target. Fixes docking on Dell E4310Jordan Hargrave
ok marco@
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-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-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-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-08-05Add Windows2009 to the valid osi table; from marco, suggested as a trialTheo de Raadt
by kettenis a while back, lots of you have been running this. If you have new problems try without this and report.
2010-08-04Remove unused code, conditional in fixup node was never trueJordan Hargrave
ok deraadt
2010-07-28remove stub code for rw locks we will never need; ok kettenis marcoTheo de Raadt
2010-07-27remove an ancient XXXTheo de Raadt
2010-07-27Fix #ifdef DDB/#ifdef SMALL_KERNEL uses so all four combinationsKenneth R Westerback
(DDB/SMALL_KERNEL, DDB/!SMALL_KERNEL, !DDB/!SMALL_KERNEL, !DDB/SMALL_KERNEL) can compile. A DDB bsd.rd is thus possible again. Correction to my original diff from miod@ "If it compiles, commit" deraadt@
2010-07-23Fix searchname to handle short name segments, remove hack in acpidock.Jordan Hargrave
2010-07-22pretty large cleanup of SMALL_KERNELTheo de Raadt
2010-07-21spacing and indents that are driving me crazyTheo de Raadt
2010-07-21clean up a pile of prototypes and shred some macros which were just coveringTheo de Raadt
for ones everyone knows better
2010-07-20Handle the acpi interrupt controller with proper edge/level handling,Theo de Raadt
wrapped in spltty to avoid racing against the interrupt controller. Repair the gpe bit masking code while there, and do operations in the right order ok kettenis mlarkin, help from jordan at figuring out the order of operations.
2010-07-20tsleep() and EWOULDBLOCK was being used incorrectly for fixed minumumTheo de Raadt
delays. tsleep() on an unknown wait channel, to ensure the minimum is met, and that wakeup()'s don't make the delay get restarted over and over.. ok kettenis mlarkin
2010-07-19there is no need for a seperate dsdt_softc pointer; dsdt does not have aTheo de Raadt
softc but is just a part of the single acpi driver. ok jordan
2010-07-13rename some thread related interfaces so they are logicalTheo de Raadt
2010-07-08Add mapping for ACPI device to PCI bdf (match autoconf tree)Jordan Hargrave
Simplify resource parsing function to use buffer argument Convert namespace linked lists to use queue macros ok marco@, deraadt@
2010-07-01Backout recent AML changes, breaks on R210 and othersJordan Hargrave
2010-07-01Simplified aml_parse_resource call, cleanup codeJordan Hargrave
ok marco
2010-06-30Cleaned up aml name parser, delete unused codeJordan Hargrave
ok marco
2010-06-29Add support for mapping ACPI to PCI devicesJordan Hargrave
ok kettenis, deraadt
2010-06-27Change ACPI namespace to use SIMPLEQ macrosJordan Hargrave
ok mlarkin
2010-06-27Cleaned up acpi_maptable, adds to table list directlyJordan Hargrave
2010-06-19Fix reference counting panic for CondRefJordan Hargrave
Various HP laptops now boot correctly, fixes PR 6276 ok marco@
2009-12-05Use new acpi_maptable on AMLOP_LOAD operations; do not panic if bad checksumJordan Hargrave
fixes Thinkpad SL300, maybe others
2009-11-13Initialize uninititialized variable.Jordan Hargrave
Not an issue as it does get initialized correctly before use, but reduces warning.