summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2009-04-30Oga changed apm ioctls and forgot to grep. Temporary work around by hittingMarco Peereboom
the sleep button when we get any request. This interface will chnage at some point. ok oga
2009-04-27Remove unnecessary aml_xconvert arg, code cleanupJordan Hargrave
ok marco@
2009-04-26.desc field of the sensor struct shall not duplicate .type and .numt; ok jordanConstantine A. Murenin
2009-04-26in ca_attach() there is no need to set .value and .flags of sensors to 0,Constantine A. Murenin
since autoconf(9) allocates softc with M_ZERO; ok deraadt
2009-04-19zero temperature in acpi refers to -273,2degC -- convert to uK ↵Constantine A. Murenin
appropriately; ok deraadt marco
2009-04-19Call acpi_sleep_walk() when powering down just like when enteringKenneth R Westerback
any other sleep state. This tells acpi wake devices to not wake up the box until manual powering up resets their status. Makes my Dell GX520 stay powered off in response to 'halt -p'. In snaps for a while. ok marco@ (several times) deraadt@
2009-04-19Count number of cpus found (potentially not attached) and store thatTheo de Raadt
in sysctl hw.ncpufound; ok miod kettenis
2009-04-17Add device ranking support for future sleep/wake developments.Paul Irofti
okay marco@
2009-04-11Add PnP ID for PCIe host bridge.Mark Kettenis
2009-04-10Fix for PR6099, read/write of non-byte aligned IndexFieldJordan Hargrave
ok marco@
2009-04-10gasio was killed so kill protoMarco Peereboom
2009-04-09Fixed argtype for Increment/Decrement. Field args were being evaluated asJordan Hargrave
integers instead remaining a reference. ok marco@
2009-03-31Backout previous change; it breaks more machines than it fixes.Mark Kettenis
2009-03-21Always re-route interrupts, even when doing so appears to be a no-op. SomeMark Kettenis
BIOSen flat out lie to us when we ask for the current routing. ok marco@
2009-03-13tabs; stupid emacsMarco Peereboom
2009-03-13Fixup in acpidock for aml_evalintegerJordan Hargrave
Reported by guenther ok marco@
2009-03-13Fixed potential aml_freevalue on uninitialized stack , reported by krwJordan Hargrave
Fixup in acpidock for aml_evalinteger ok @marco
2009-03-11More aml_evalinteger fixupJordan Hargrave
ok marco@
2009-03-11Remove noisy printf debugJordan Hargrave
2009-03-11Cleanup.. use aml_evalinteger instead of aml_evalnameJordan Hargrave
ok marco@
2009-03-10Added sensor devices for Thinkpad (temp+fan)Jordan Hargrave
Exported aml_evalinteger method ok marco@
2009-03-10Fix cut/paste error.. call _BFS not _PTSJordan Hargrave
ok marco@
2009-03-07Misc cleanups, remove dead codeJordan Hargrave
Normalized api for conversion/concatenation ok marco@
2009-03-05Rip out old fieldio code (no longer used)Jordan Hargrave
ok marco@
2009-03-05New ACPI fieldio routinesJordan Hargrave
Fix for PR6017, tested extensively on @tech ok marco@
2009-02-24back out est.c 1.8 and bring acpicpu.c all the way back to 1.47 because ofTheo de Raadt
hanging machines. backed out correctly this time, as pointed out by tedu.
2009-02-24Backout a backout because noone knows what the hell the backout is aTheo de Raadt
backout of. COME ON. Be exact in your commit messages.
2009-02-21overzealous cut/paste; found by Vladimir Kirillov <proger@uaoug.org.ua>Marco Peereboom
2009-02-20Oops didn't mean for Debugger() to remain there.Marco Peereboom
2009-02-19suspend/resume bits so that we can develop this in tree. This is disabled.Marco Peereboom
code from mlarkin and me help from art,toby,jordan and several others ok jordan, go for it deraadt
2009-02-18Backout PDC & PPC changes because it hangs several laptops.Marco Peereboom
2009-02-16Be a litte bit more paranoid and validate the APIC table before committingMark Kettenis
to APIC mode. tested by many ok marco@
2009-02-10Fix null pointer for shutdown if acpi not enabledJordan Hargrave
ok marco@
2009-02-04Some systems that claim to be ACPI 2.0 apparently don't provide an XSDTMark Kettenis
address. Make the code fall back on the RSDT on those systems. From Joerg Niendorf <p3y80@internode.on.net>. Fixes PR 5986.
2009-01-27Turns out the IRQ Information is optional in IRQ Descriptor resources, soMark Kettenis
allow resources that are only 5 bytes long. Prevents dmesg spamming on the OQO.
2009-01-20Add workaround for broken ATI southbridges; inspired by how Linux handles this.Mark Kettenis
Fixes PR 5916 & 5959. ok toby@
2009-01-20Install ACPI S3 resume trampoline code in a lowmem page. First partMike Larkin
of ACPI S3 suspend/resume support. This is for i386. Help/comments from art, toby, marco, jordan, kurt ok marco@, kurt@
2009-01-17A couple of stray malloc/memset -> malloc(M_ZERO), a bit of knf andKenneth R Westerback
lose a couple of unnecessary casts. No functional change. Feedback from kettenis@ ok kettenis@ marco@
2008-12-26Back out rev 1.14 as it makes machines like the T30 crash on boot.Jonathan Gray
2008-12-23only a small number of thinkpads need the brightness adjustmentsjoshua stein
done in this driver, so for everything other than the x61s and t61, tell the bios to adjust brightness itself. fixes the double adjustment problem on newer models. tested on quite a few different models.
2008-12-22With respect to the previous diff we cannot just call acpicpu_setperfGordon Willem Klok
directly, we must call the global function pointer cpu_setperf because we might be on an MP system and if we don't, we only attempt to change the frequency on a single core. ok marco@
2008-12-22Make acpicpu_setperf behave the same as the ACPI aware EST andGordon Willem Klok
powernow drivers if the _PPC is evaluated because an external change has occured such as being disconnected from wall power and the available states in _PSS change. Have the acpicpu setperf driver register a listner for _PPC changes, that way we are not calling the setperf method twice on powernow machines when an change occurs. ok marco@
2008-12-19On many systems the information returned by _PRT is an absolute lie, especiallyMark Kettenis
in the PIC case. So if _CRS returns a plausible value, go with that, and only chose an interrupt from the list returned by _PRT if the value returned by _CRS makes no sense.
2008-12-17Make the code that picks an IRQ from the list of possible IRQs a bit smarterMark Kettenis
by avoiding legacy IRQs if possible. Fixes problems (some, not all) with machines that advertise legacy IRQs as usable even if they have ISA devices onboard that need those IRQs. ok marco@
2008-12-07Make acpiprt(4) check whether the current interrupt routing is "possible" andMark Kettenis
pick a new one from the list of possible routings if it isn't or if a pin is currently not routed. Delay re-routing interrupts until we establish a handler for it. This prevents us from messing with unused interrupt pins which may have fatal consequences (some machines spontaniously reboot). The heuristics for picking an interrupt from the list of possibe ones probably needs some tweaking still, but this makes several NVIDIA-based boards work much better than before. tested by many, ok marco@
2008-11-22Re-enable ACPI PDC support and fetching cpu performance statesGordon Willem Klok
from ACPI for est on amd64. This incorporates a few changes from krw@ to fix minor nits, its unlikely to fix the problems with some machines from acer and dell but lots of machines benefit. ok krw@
2008-11-06Collapse all sanity checks of hids into one function.Marco Peereboom
Originaly from jordan
2008-10-11Fix various printf constructs either missing arguments or format specifiers.Miod Vallat
2008-10-07Fix memory leak bug during scope evaluation (now without introducing a bugMark Kettenis
in evaluation of the Return() operator). Based jordan@'s diff from rev. 1.133. ok jordan@, marco@
2008-10-04Commit cleanup part of the diff that was backed out in the previous commitMark Kettenis
(removal of unused functions). requested by deraadt@