summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpivar.h
AgeCommit message (Collapse)Author
2010-04-07Make suspend/resume work on MP machines (running an MP kernel). Joint workMark Kettenis
from mlarkin@ and me, with some amd64 fixes thrown in by deraadt@ ok marco@, deraadt@, pirofti@, mlarkin@
2010-03-31Bring /dev/apm support in line with apm(4). Make the suspend button sendMark Kettenis
a suspend request event to apmd(8) instead of suspending immediately. Also keep track of whether /dev/apm and /dev/apmctl are currently open, such that we can still suspend immediately if apmd(8) isn't running. ok deraadt@, marco@, pirofti@, jsing@, oga@
2009-11-26Visual (and on some machines, audio) feedback while the machine isMike Larkin
resuming via calls to aml _SST method. This also makes the "moon" LED on thinkpads to blink during resume and cease when resume is completed. ok pirofti@
2009-11-23Remove ACPI_SLEEP_ENABLED checks.Paul Irofti
This enables by default the suspend/resume paths in the kernel. Okay deraadt@.
2009-11-23Add missing acpivar.h changes from previous commit.Mike Larkin
2009-11-02Remove unused member(s) of `struct acpi_softc'.Mark Kettenis
ok deraadt@, krw@, marco@
2009-10-26Verify checksum+address when loading ACPI tables.Jordan Hargrave
Some systems had invalid entries in RSDT/XSDT. ok marco@
2009-10-15Implement passive cooling for acpitz; works for some overheating machinesJordan Hargrave
Counter in parent for disabling setperf when passive cooling enabled ok marco@
2009-09-04Add common framework for storing device listsJordan Hargrave
Useful for acpitz, acpipwrres, etc.
2009-06-03Add acpivideo support. This adds brightness support for all laptopsPaul Irofti
except thinkpads, they will use the acpithinkpad driver. The driver is also hooked into wsconsole. So brightness can be adjusted via: $ wsconsctl display.brightness=<percentage> This is very helpfull on some laptops that have a nasty bios and get two steps instead of one when pressing the brightness button. Tested on various dell, fujitsu, acer, samsung and other laptops. Okay marco@, miod@. Suggestions from kettenis@. Lots of reviews and help from miod@, thanks!
2009-04-17Add device ranking support for future sleep/wake developments.Paul Irofti
okay marco@
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-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@
2008-11-06Collapse all sanity checks of hids into one function.Marco Peereboom
Originaly from jordan
2008-09-15Make this compile if !MULTIPROCESSOR.Mark Kettenis
ok brad@
2007-12-05Hang acpi(4) below bios(4) instead of mainbus(4). This lets us move acpi(4)Theo de Raadt
before pcibios(4), and then.... if acpi(4) attaches, skip pcibios(4) since it messes the machines up. Fixes claudio's HP dl320 G5, and almost assuredly others. ok kettenis
2007-11-25When available and ACPI is enabled use the ACPI reset methodJonathan Gray
to reboot. This is required for some quirky sis machines and likely others to reboot. Tested by many. 'commit early commit often' deraadt@
2007-11-19supply a place to store acpi version; from jsgTheo de Raadt
2007-11-15Make acpicpu(4) attach to the existing CPUs only.Mike Belopuhov
Problem reported by form@. Fix idea by kettenis@. Lots of help from deraadt@. Tested by deraadt@, form@ and me. ok deraadt marco
2007-11-12spacingTheo de Raadt
2007-11-03Added support for displaying wakeup devicesJordan Hargrave
ok beck@,weingart@,gwk@
2007-05-31Make powernow-k8 on amd64 and i386 use the _PSS object from acpi toGordon Willem Klok
retreive p_state data as spelled out in the amd64 bios and kernel developers guide. This code is still a little rough around the edges but has been tested by myself on a tyan machine and by phessler at theapt dot org on an HP DL145. This diff also takes a first stab and cleaning up the acpicpu dmesg spam. ok tedu, marco
2007-02-19Added acpi_map_address function for mapping GAS/IO registersJordan Hargrave
ok marco@
2007-01-31Introduce acpi_hasprocfvs thats "ACPI Has Processor Frequency and VoltageGordon Willem Klok
Scalling" a global flag set by acicpu attach to indicate that ACPI is handling fvs through the _PSS objects. This will fix disappearing EST/powernow when booting kernels with acpi enabled, as acpicpu isnt compiled into GENERIC yet. Also in cases where acpicpu is built in and legacy EST/powernow work but acpi is missing the _PSS object, the legacy routines will be used. tested by dim@, and Nick Nauwelaerts <nick AT nauwelaerts.net> ok marco@, dim@
2006-12-26Add polling to devices that require it such as acpibat and acpitz.Marco Peereboom
Use the same tsleep/wakeup mechanism as the interrupt code to keep it non- concurrent.
2006-12-21even more knf loveTheo de Raadt
2006-12-21spacingTheo de Raadt
2006-12-21more minor knfTheo de Raadt
2006-11-25Add mutex.Marco Peereboom
prodded dlg, ok jordan
2006-10-19Replace ACPI ioctls with APM ioctls. This makes ACPI talk the same protocolMarco Peereboom
as APM therefore userspace can now retrieve power information in the same fashion as all other apm arches (zaurus, macppc, i386 etc). To use force the use of acpi device like so: apmd -f /dev/acpi ok jordan@
2006-10-15Removed old GPE handler code remnantsJordan Hargrave
ok marco@
2006-06-30Support for calling Embedded Controller via new GPE interfaceJordan Hargrave
ok marco@
2006-06-30Added new code for GPE handlingJordan Hargrave
Also works with ACPIEC; need to fixup acpiec.c to remove original interrupt handler ok marco@
2006-06-30Added offset argument for acpi read/write pmreg routines (new GPE code)Jordan Hargrave
ok marco@
2006-05-29Add embedded controller support.Can Erkin Acar
ok marco@ deraadt@ testing & ok gwk@
2006-04-11Add acpi_resume(struct acpi_softc *sc), which calls some AML methods,Gordon Willem Klok
detected at attach time, currently unused. ok marco@
2006-04-11Discover some ACPI sleep related methods, and call them at theGordon Willem Klok
appropriate time in acpi_enter_sleep_state(). ok marco@
2006-02-22Added new aml_register_notify to handle call-by-IDJordan Hargrave
Moved powerdown code to button device ok marco@
2006-02-21Rig the power button so that the machine shuts down correctly.Marco Peereboom
2006-02-20Fixed structure size for sleep states (bad grange!)Jordan Hargrave
ok marco@
2006-02-19Added code for aml_notify GPE notification callbackJordan Hargrave
ok marco@
2006-02-19jordan:Marco Peereboom
Enable interrupts. Added peripheral code to make this work. marco: Replace softintr and other types of interrupts with a handler with context. Fixed interrupt magic for GPEs. Some KNF This is work done by jordan and I but has to be a single commit.
2006-02-17Add a generic delay function as per the ACPI spec.Marco Peereboom
from jordan@
2006-02-03Rewrote aml parser yet again...Jordan Hargrave
Fixed bus_space_map for i386/amd64 Added _BST and _BIF to acpibat to get status/info ok marco@
2006-01-18Added new evaluation routinesJordan Hargrave
Added helper methods for buffer/field evaluation Fixed broken indentation on dsdt.c ok marco@
2006-01-17Major overhaul of the aml parser. Evaluater temporarily disabled.Jordan Hargrave
ok marco@
2006-01-06One definition for sleeping states in acpireg.h is enough.Alexander Yurchenko
2006-01-05Find SLP_TYPx values and store them for future use inAlexander Yurchenko
acpi_enter_sleep_state().
2005-12-30make ACPI_DEBUG compileTed Unangst
2005-12-28oops. forgot this. part of dsdt parsing changesJordan Hargrave
ok marco@