summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpiprt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* Make acpiprt(4) handle interrupts with non-standard polarity and trigger modekettenis2014-05-021-25/+84
| | | | | | correctly. Tested by nobody.
* Bail out early if the PCI bus number is -1. This means the hardware isn'tkettenis2013-12-221-4/+6
| | | | there and the AML might reference stuff that isn't there.
* Remove old code that figures out the PCI bus number. The new code gets somekettenis2010-08-031-87/+5
| | | | | | | corner cases right that the old code messed up. As a bonus, this noticibly speeds up booting my Dell XPS M1330. ok deraadt@, marco@, jordan@
* spacing and indents that are driving me crazyderaadt2010-07-211-2/+2
|
* clean up a pile of prototypes and shred some macros which were just coveringderaadt2010-07-211-3/+3
| | | | for ones everyone knows better
* Verify _ADR bdf is correct (some systems return 0xffff)jordan2010-07-101-2/+2
| | | | Works on Dell x9xx and Studio 1555
* Add mapping for ACPI device to PCI bdf (match autoconf tree)jordan2010-07-081-14/+15
| | | | | | 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-8/+88
|
* Simplified aml_parse_resource call, cleanup codejordan2010-07-011-9/+4
| | | | ok marco
* Use new ACPI PCI mapping to get _PRT busjordan2010-06-291-80/+5
| | | | | Delete old unused code ok kettenis
* Backout previous change; it breaks more machines than it fixes.kettenis2009-03-311-1/+7
|
* Always re-route interrupts, even when doing so appears to be a no-op. Somekettenis2009-03-211-7/+1
| | | | | | BIOSen flat out lie to us when we ask for the current routing. ok marco@
* More aml_evalinteger fixupjordan2009-03-111-13/+10
| | | | ok marco@
* Cleanup.. use aml_evalinteger instead of aml_evalnamejordan2009-03-111-5/+4
| | | | ok marco@
* Turns out the IRQ Information is optional in IRQ Descriptor resources, sokettenis2009-01-271-4/+4
| | | | | allow resources that are only 5 bytes long. Prevents dmesg spamming on the OQO.
* On many systems the information returned by _PRT is an absolute lie, especiallykettenis2008-12-191-48/+6
| | | | | | 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.
* Make the code that picks an IRQ from the list of possible IRQs a bit smarterkettenis2008-12-171-2/+62
| | | | | | | | 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@
* Make acpiprt(4) check whether the current interrupt routing is "possible" andkettenis2008-12-071-55/+90
| | | | | | | | | | | | | 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@
* Fix $OpenBSD$ for once and for allmarco2008-06-111-1/+1
|
* Add _?RS methods evaluation to obtain additional heuristics and settingmarco2008-06-061-7/+72
| | | | | | interrupt routing. Fixes several HP & IBM machines. ok deraadt ketennis
* Re-enable new parser. Lots of testing by various folks. Fits all mediamarco2008-06-011-4/+57
| | | | | | now too. ok kettenis deraadt
* back out jordans new parser.dlg2008-05-161-53/+3
| | | | | | | | 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@
* Removed debugging printfsjordan2008-05-141-2/+4
|
* Clean up a bit.brad2008-05-141-7/+5
| | | | ok jordan@
* Adding new ACPI Parser codejordan2008-05-141-3/+53
| | | | | | Old guts of code still exists, needs to be torn out next ok marco@ ok brad@
* spacingderaadt2007-11-121-3/+3
|
* a little less excitement (every printf does not need to end in !)deraadt2007-11-121-2/+2
|
* More simple memset(,0,) -> M_ZERO changes. In this batch move tokrw2007-10-081-3/+2
| | | | | | size(*p) as the first malloc() parameter where p is declared locally and thus easy to check. Add M_ZERO to gpe_table allocation in acpi.c even though there is no obvious bzero or memset nearby.
* Fix code that figures out the PCI bus number for a _PRT configuration object.kettenis2007-09-071-18/+39
| | | | | | | This should get rid of the "multiple bus 0" problem seen on some machines, and fix PCI interrupt routing on them. ok marco@ (a while ago)
* Added support for getting host-bridge _BBN from _CRS resourcesjordan2007-02-231-1/+24
| | | | | suggestions by kettenis ok marco@
* Make an acpi-enabled GENERIC.MP work on systems that only support PIC mode.kettenis2007-02-211-25/+28
| | | | ok marco@
* Fix a few memory leaks.marco2007-02-211-8/+19
| | | | ok jordan@
* Deal with weird systems that return bogus device numbers for stuff that's notkettenis2007-01-241-2/+12
| | | | really there.
* Check whether PCI interrupt link devices are enabled.kettenis2007-01-181-5/+6
| | | | Based on a diff from marco@.
* even more knf lovederaadt2006-12-211-9/+6
|
* spacingderaadt2006-12-211-14/+14
|
* more minor knfderaadt2006-12-211-2/+2
|
* move proto to the right placederaadt2006-12-181-4/+2
|
* Post-process PCI config space opregionsjordan2006-11-271-4/+6
| | | | | Fixed acpiprt for stinky presario v3000 ok marco@
* Make normal pic interrupt routing work too.kettenis2006-11-271-6/+39
|
* Add check for acpi pointer. This prevents some ugly panics.marco2006-11-271-1/+5
| | | | ok ketennis.
* Fixes for acpiprt routingjordan2006-11-271-27/+50
| | | | | Post-parse fixup for namerefs ok kettenis@
* Handle objrefs in _PRT.kettenis2006-11-271-3/+6
| | | | ok jordan@
* sync amd64 to i386 w.r.t. acpi support. Also fix interrupt routing for multi-ioapic systems.niklas2006-11-251-3/+6
| | | | ok kettenis
* dd pseudo-devices to handle acpi apic interrupt routing.kettenis2006-11-151-0/+214
ok jordan@