summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpivar.h
AgeCommit message (Collapse)Author
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@
2005-12-16Added hooks for powerdown/power button pressJordan Hargrave
2005-12-16Cleaned up common power management register i/oJordan Hargrave
Added enter sleep state ioctl Hooked power button interrupt ok marco@
2005-12-14KNFMarco Peereboom
2005-12-13Add glue to attach devices to apci.Marco Peereboom
2005-07-10Spacing cleanup.Alexander Yurchenko
2005-07-10Protect from multiple inclusion.Alexander Yurchenko
2005-06-02Start on a basic ACPI framework -- does not do much more than read out theThorsten Lockert
ACPI tables into kernel memory and attach ACPI and HPET timers currently. In order to test this code, enabling the devices in GENERIC as well as the ACPI_ENABLE option is needed. This code does not do any thermal control yet, so this should be done with care depending on the platform. In the tree so more people can contribute to making this more fully featured. Ok niklas@ grange@ tedu@