summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/dsdt.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* disable acpivout brightness control on machines aware of Windows 8jsg2020-09-161-1/+59
| | | | | | | | | | | | | | | | | | On a HP ProBook 650 G1 acpivout backlight brightness control only works if we don't claim to be Windows 8. If we don't claim to be Windows 8 _BCL gives 21 levels with increments of 5, otherwise 101 levels (0-100) and a _BCM that does nothing. This is related to requirements Microsoft has for Windows 8 and later hardware certification. Having acpivout not fully attach lets inteldrm handle brightness ioctls. Brightness control via physical buttons will require a new acpi driver for the HP flavour of WMI. Add Windows 10 2004 _OSI value to the list while here. ok mpi@ kmos@ on an earlier version tested by kmos@ on 6460b and 6470b ProBooks which had the same problem feedback and ok kettenis@
* Add support for multiple PCI segments. Only really implemented for arm64kettenis2018-08-191-3/+4
| | | | | | | for now as amd64/i386 firmware still caters for legacy OSes that only support a single PCI segment. ok patrick@
* Add acpipci(4), a driver that supports generic ECAM-compatible PCI hostkettenis2018-07-051-1/+6
| | | | | | bridges based on information provided by ACPI. ok mlarkin@
* Use <stdint.h> types.kettenis2018-06-291-4/+4
| | | | ok mpi@, jung@, krw@, deraadt@
* Revise OperatingRegion code to make it extensible and have chvgpio(4)kettenis2017-11-291-1/+3
| | | | | | | provide the OEM defined regions that are used by the AML on some Cherryview-based machines. ok mlarkin@
* Add the resource index to aml_parse_resource() callback function.pirofti2016-10-251-2/+3
| | | | | | | This is needed by an upcoming acpiec commit that handles machines breaking the current ACPI specifications. Change suggested by and ok kettenis@, guenther@
* Remove unused argument in aml_showvalue().pirofti2016-09-021-2/+2
| | | | | | | The second argument of aml_showvalue() was probably supposed to set the verbosity level through dnprintf() but in fact it does nothing. OK deraadt@
* Add macros for interrupt trigger mode as encoded in GPIO resources.kettenis2016-05-081-1/+3
|
* Add support for gpio-based interrupts.kettenis2016-03-301-1/+7
| | | | ok jsg@
* Add definitions for GPIO resources.kettenis2016-03-281-1/+20
|
* Correct the value of SRT_ENDTAG: it was documented incorrectly in earlyguenther2016-03-141-2/+2
| | | | | | | ACPI specs. With the correct value, it can now be used in a few places instead of hardcoding 0x79. ok kettenis@
* Change aml_find_node() such that it only walks down the tree and doesn'tkettenis2016-01-131-2/+2
| | | | | | | | | | | | | | traverse sideways. This seems to be what all callersexpect it to do, and fixes a bug in dwiic(4) where it would try to access i2c devices on busses they're not attached to. If there is any fallout from this change, the right thing to do is probably to make sure callers pass the right node. While there, change the return type to void, as the return value was useless and none of the callers looked at it. ok mlarkin@
* Add data structures and defines for Generic and I2C Serial Bus Connectionkettenis2016-01-131-1/+29
| | | | | | descriptors. ok jcs@
* Rename LR_24BIT, LR_32BIT and LR_32BITFIXED to LR_MEM24, LR_MEM32 andkettenis2016-01-091-4/+11
| | | | | | | LR_MEM32FIXED to better match the names used in the specification. Add lr_m32fixed to union acpi_resource. ok jcs@
* Parse _CST objects and use the C-states they describe when they're sane.guenther2015-06-131-1/+3
| | | | | | testing by many, particularly krw@ and jcs@ tweaks by kettenis@ ok deraadt@
* Reduce use of SMALL_KERNEL in acpi, bringing acpiec driver and more gpederaadt2015-03-161-2/+2
| | | | | | | handling into RAMDISK. This is now possible because the install media has ample room. The goal is to reduce special cases where we may be skipping (unknown) important operations... ok mlarkin kettenis
* Make acpiprt(4) handle interrupts with non-standard polarity and trigger modekettenis2014-05-021-1/+4
| | | | | | correctly. Tested by nobody.
* acpi: Add global lock enter and leave routines.pirofti2013-01-181-1/+4
| | | | | | | | 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@.
* Add shorter form function aml_node_setval() for setting an intderaadt2012-07-161-2/+4
| | | | | on an AML node. Shortens the tricky code in a lot of callers. Earlier version seen by pirofti and kettenis.
* Remove unused structure members. Add depth field.jordan2011-06-031-4/+3
|
* Change all aml_xfoo to aml_foo names now that parser is stablejordan2011-04-181-2/+2
|
* Removed unused structure memberjordan2011-01-081-2/+1
|
* Re-add code for ACPI taskqueue, eliminates need for state vars in acpi softcjordan2011-01-021-2/+1
| | | | | Serialize processing ACPI tasks for sleep/powerdown/GPE event ok deraadt@
* Remove unused code, conditional in fixup node was never truejordan2010-08-041-3/+1
| | | | ok deraadt
* pretty large cleanup of SMALL_KERNELderaadt2010-07-221-4/+6
|
* Remove unused function prototypesjordan2010-07-221-3/+21
| | | | Add flags and type codes for AML resources
* spacing and indents that are driving me crazyderaadt2010-07-211-4/+4
|
* clean up a pile of prototypes and shred some macros which were just coveringderaadt2010-07-211-22/+17
| | | | for ones everyone knows better
* remove prototypes for functions that do not exist; ok jordanderaadt2010-07-201-7/+1
|
* Add mapping for ACPI device to PCI bdf (match autoconf tree)jordan2010-07-081-2/+2
| | | | | | Simplify resource parsing function to use buffer argument Convert namespace linked lists to use queue macros ok marco@, deraadt@
* Backout recent AML changes, breaks on R210 and othersjordan2010-07-011-2/+2
|
* Simplified aml_parse_resource call, cleanup codejordan2010-07-011-2/+2
| | | | ok marco
* Add common framework for storing device listsjordan2009-09-041-1/+5
| | | | Useful for acpitz, acpipwrres, etc.
* Remove unused codejordan2009-08-211-8/+1
|
* Remove dead/unused codejordan2009-06-011-1/+14
| | | | ok marco@
* Added sensor devices for Thinkpad (temp+fan)jordan2009-03-101-1/+3
| | | | | Exported aml_evalinteger method ok marco@
* Fix memory leak bug during scope evaluation (now without introducing a bugkettenis2008-10-071-1/+3
| | | | | | in evaluation of the Return() operator). Based jordan@'s diff from rev. 1.133. ok jordan@, marco@
* Commit cleanup part of the diff that was backed out in the previous commitkettenis2008-10-041-2/+1
| | | | | | (removal of unused functions). requested by deraadt@
* back out previous commit, since it is breaking a variety of machinesderaadt2008-09-291-4/+2
| | | | (Supermicro X5DLR, and seperately, see pr 5941)
* Fixed memory leak bug during scope evaluationjordan2008-09-251-2/+4
| | | | | Removed unused functions ok marco@
* Cleanup, remove old/unused functionsjordan2008-06-131-3/+1
| | | | ok @canacaR
* Removed old AML disassembler codejordan2008-06-121-1/+2
| | | | ok @marco
* Shrink acpi some more for floppies and while here re-enable acpi on themarco2008-06-061-3/+1
| | | | | | | floppies. Fixes crazy sony vaio kettenis has. tested by deraadt ok deraadt jordan kettenis
* Re-enable new parser. Lots of testing by various folks. Fits all mediamarco2008-06-011-1/+2
| | | | | | now too. ok kettenis deraadt
* back out jordans new parser.dlg2008-05-161-2/+1
| | | | | | | | it didnt have enough oks from the right people, it did break machines that were previously working, and it bloated the RAMDISKS and install media beyond the constraints of the media. requested by deraadt@
* Adding new ACPI Parser codejordan2008-05-141-1/+2
| | | | | | Old guts of code still exists, needs to be torn out next ok marco@ ok brad@
* Adding changes for new parserjordan2008-05-131-1/+18
| | | | ok marco@
* shrink floppy build by knocking out some unused bits of code; seen by canacarderaadt2007-11-141-34/+32
|
* convert the value to a string instead of using aml_val2str()canacar2007-11-081-1/+3
| | | | | | which returns invalid pointers if the value is not a string, causing acpibat to panic, as reported by mbalmer@ and Alexey Suslikov. tested by Alexey Suslikov, ok marco@
* Implement ACPI 6.5.1 spec tree walk for _STA and _INI.weingart2007-09-131-2/+2
| | | | | | | Fixes mk's laptop. No regressions so far (thank you to the testers). ok gwk@, mk@, marco@