summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2010-07-27Set the sleeping indicator light on machines that support it, in case SMIMike Larkin
doesn't do it for us. Shows the 'moon' LED on older Thinkpads when sleeping. Tested on T43p, W500, T510 by me and on X61s by deraadt@. ok deraadt@
2010-07-27annoying spaces getting in the wayTheo de Raadt
2010-07-27Early initialization of acpiec if ECDT table existsJordan Hargrave
Fixes hang when booting thinkpads while docked ok deraadt
2010-07-27replace acpitz_getreading goo with proper aml_evalinteger.Marco Peereboom
From jordan.
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-27Add additional Notify handler for dock devices, according to ACPI specJordan Hargrave
ok marco
2010-07-26Remove unused structure membersJordan Hargrave
2010-07-26Some machines include VID devices for hardware that doesn't exist. AvoidMark Kettenis
attaching those devices by checking whether the PCI bus on which they are supposed to sit exists. Fixes issues with brightness controls on my Dell laptop. ok marco@, pirofti@
2010-07-26remove merge error which was commitedTheo de Raadt
2010-07-26Add support for Sony ACPI hotkeys via a new driver: acpisony(4).Paul Irofti
Currently it only works for the suspend button and tries to do right for the brightness events, but I haven't found a Sony laptop that like to do right so far. In the future I want to make the brightness keys work on all Sony's and also add support for the zoom hotkeys and whatever other funky keys I can find on those things. Okay deraadt@.
2010-07-23Don't initialize acpiec pointer in acpi_softc until registration succeedsJordan Hargrave
ok deraadt
2010-07-23Control/data registers were being mapped with swapped io space tagsJordan Hargrave
Fix naming & order of tag to be clear ok 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-22Remove unused function prototypesJordan Hargrave
Add flags and type codes for AML resources
2010-07-21in the acpi GPE handler, late ack level interrupts not edge interrupts.Theo de Raadt
Duh.
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-21Merge the edge and level gpe handlers into one (now possible since theTheo de Raadt
gpe structure tells us whether the gpe is edge or level)
2010-07-21delete #if 0 code we are not going to use; ok marcoTheo de Raadt
2010-07-20make the mask code for acpi_enable_onegpe() match other similar codeTheo de Raadt
2010-07-20print the temperature readings that make us go down; ok kettenisTheo de Raadt
2010-07-20removed an unused protoTheo de Raadt
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-20In acpiec_wait() we want to tsleep on an un-known channel, so thatTheo de Raadt
we don't get woken up early by a wakeup() ok kettenis; deeply tested on many machines by mlarkin
2010-07-20remove prototypes for functions that do not exist; ok jordanTheo de Raadt
2010-07-20When we're preparing to go to sleep, only call bufq_restart() if otherMatthew Dempsky
preparations failed. ok kettenis@, thib@, deraadt@
2010-07-19permit compilation with ACPI_DEBUGTheo de Raadt
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-19acpi_delay() is no longer needed; ok jordanTheo de Raadt
2010-07-18Clear event status on resume, to avoid going back to sleep/reboot/shutdownMike Larkin
immediately after resume. Tested by a bunch of people on hackers@ on various hardware. Fixes at least Toshiba NB200 and Gateway LT3103u. ok marco
2010-07-13delete unnccessary includeTheo de Raadt
2010-07-13rename some thread related interfaces so they are logicalTheo de Raadt
2010-07-10Verify _ADR bdf is correct (some systems return 0xffff)Jordan Hargrave
Works on Dell x9xx and Studio 1555
2010-07-09Clear the noiseJordan Hargrave
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-06Use spltty() to lock downcalls from apm against the information beingTheo de Raadt
modified by the acpi thread. ok kettenis
2010-07-06Don't use a workq to do the suspend, because it races aginst the acpiTheo de Raadt
thread. Instead, just tell the acpi thread to do the suspend for us. This makes apmd & zzz work correctly. While here, have acpithinkpad attempt to post the event to apm before prompting the suspend itself. ok kettenis marco mlarkin
2010-07-06spacingTheo de Raadt
2010-07-05Reset register SCI_EN on resume. The ACPI spec clearly states we don't haveMike Larkin
to do this, but many machines don't, or forget to, which leads to all sorts of problems on resume (broken battery stats, overheating, failure to resume more than once, etc). tested by many, ok marco@, deraadt@
2010-07-01do bufq quiesce again, since vnd/the bufq_done call inThordur I. Bjornsson
biodone has been fixed.
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-07-01Fix subordinate bus # for multi-root PCI busesJordan Hargrave
ok marco, kettenis
2010-06-30Disable/partially backout the bufq quiesce changes as thisThordur I. Bjornsson
is causing havoc with vnds and release must be buildable.
2010-06-30Cleaned up aml name parser, delete unused codeJordan Hargrave
ok marco
2010-06-29Use new ACPI PCI mapping to get _PRT busJordan Hargrave
Delete old unused code ok kettenis
2010-06-29Fix ramdisks (new code was placed inside a SMALL_KERNEL chunk)Theo de Raadt
2010-06-29Add support for mapping ACPI to PCI devicesJordan Hargrave
ok kettenis, deraadt