summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2006-12-21more minor knfTheo de Raadt
2006-12-21Remove some leftover acpiec gpe/interrupt code.Marco Peereboom
2006-12-21Remove some more remnants of old acpiec_wait function.Marco Peereboom
Rename acpiec_wait_nosleep to acpiec_wait since the old sleeping function is gone anyway. Redo waiting loop to shave some more bytes of. Tabing, spacing and some more KNF.
2006-12-21KNFMarco Peereboom
2006-12-21Fix silly logic errors.Marco Peereboom
2006-12-21Silence acpibat significantly and shave off about 1k. Also add some smartsMarco Peereboom
for battery removal and insertion.
2006-12-21ECs are weird in that they generate many interrupts. One for the actualMarco Peereboom
event and a bunch while doing reads and writes. Now that we have reworked the interrupt code it is no longer workable to catch both in the same handler. So from now on no longer sleep but simply delay. Removed the sleep wait function completely to save some bytes too. Worst meassured delay was 160us. These events are infrequent (pulling ac cable etc).
2006-12-20Decalre extern int cpuspeed in sys/arch/amd64/include/cpu.h like cpuspeedGordon Willem Klok
is declared in the equivalent file on i386 and delete the repeticious declarations already scattered in a few places. Thanks to Will Backman for letting me test this on his machine, ok mk@
2006-12-20nearly complete knfTheo de Raadt
2006-12-20first steps of knf (trying not to step on jordan's feet too much); ok marcoTheo de Raadt
2006-12-20"#ifdef is a tool of the weak!"Gordon Willem Klok
Rename pentium_mhz to cpuspeed which is consistant with amd64 making shared ACPI code less nasty. ok marco, deraadt
2006-12-20oops, name already usedTheo de Raadt
2006-12-20skip the perfect hash for now since it wastes a lot of kernel memory,Theo de Raadt
and fails to fit onto the floppies. for now, do a linear search, but someone should sort the instructions and use bsearch; ok marco
2006-12-20rename __acpi_enable_gpe(); ok marcoTheo de Raadt
2006-12-20acpi_unmap_pmregs() is not used, ok marcoTheo de Raadt
2006-12-19slight cleaningTheo de Raadt
2006-12-19spacingGordon Willem Klok
2006-12-19knf + delete unused variablesTheo de Raadt
2006-12-19Add sanity to check for mfg overriden gasio field.Marco Peereboom
2006-12-19Hook up acpicpu to the hw.setperf mechanism, this allows people runningGordon Willem Klok
ACPI kernels built with the acpicpu diff to scale processor and frequency voltage, various incarnations tested by brad, thib, johan m:son lindman. ok marco
2006-12-19simplify some low-level methods substantially (shrinking code); ok marco jordanTheo de Raadt
2006-12-18Remove misleading NOTREACHED comments. Sending a signal does notCan Erkin Acar
stop execution. Noticed by deraadt@
2006-12-18our panic() can take stdarg argumentsTheo de Raadt
2006-12-18minor cleaning; ok marcoTheo de Raadt
2006-12-18move proto to the right placeTheo de Raadt
2006-12-12Fix a typo to clean M's out of my tree.Michael Knudsen
2006-12-12There is no acpiec_notify() function so don't supply a prototype.Michael Knudsen
While there, fix a typo. ok gwk
2006-12-12- include <sys/proc.h> for tsleep();Tom Cosgrove
- change the defs of LHS, RHS, DST and DST2 to be AML_*. Noted by Marco S Hyman on misc@, these allow ACPI to be compiled into RAMDISK kernels. Suggestion for AML_ rename (to avoid name clash with TIMEZONE's DST, which was noted by someone else a while ago, but I forget who) from jordan@. ok marco@, jordan@
2006-12-06malloc(..., M_NOWAIT) with no NULL check is bad. If allocation fails,Michael Knudsen
complain, clean up, and bail out of attach. input and ok gwk
2006-11-29Unused global variable.Miod Vallat
2006-11-29After a long debate at the hackathon it was decided that the acpi implementationMarco Peereboom
is not concurrent if the sensors thread goes away. This makes acpi completly lockless. help and ok dlg
2006-11-29Do not consider unrecognized buttons as lid sensors. ok marco@Miod Vallat
2006-11-28Fixed clearing arg for acpi_init_picJordan Hargrave
ok kettenis@
2006-11-27Post-process PCI config space opregionsJordan Hargrave
Fixed acpiprt for stinky presario v3000 ok marco@
2006-11-27Don't spam dmesg.Mark Kettenis
2006-11-27Make normal pic interrupt routing work too.Mark Kettenis
2006-11-27Make AML_CRSLEN return the correct length for small resources.Mark Kettenis
ok jordan@
2006-11-27Add check for acpi pointer. This prevents some ugly panics.Marco Peereboom
ok ketennis.
2006-11-27Fixes for acpiprt routingJordan Hargrave
Post-parse fixup for namerefs ok kettenis@
2006-11-27Added support for parsing _CRS resourcesJordan Hargrave
Post-parsing fixup for forward name references
2006-11-27Handle objrefs in _PRT.Mark Kettenis
ok jordan@
2006-11-25Add mutex.Marco Peereboom
prodded dlg, ok jordan
2006-11-25sync amd64 to i386 w.r.t. acpi support. Also fix interrupt routing for ↵Niklas Hallqvist
multi-ioapic systems. ok kettenis
2006-11-25Don't handle acpiev events inside the gpe handler since this causes deadlocks.Marco Peereboom
ok jordan@
2006-11-25Fixed acpiec code for deadlockJordan Hargrave
acpiec events are handled at GPE/thread context, no longer need wakeup cVS: ----------------------------------------------------------------------
2006-11-20Added 2nd pass for interrupt override scanningJordan Hargrave
ok kettenis@
2006-11-15Hook up acpi apic interrupt routing support to generic acpi code.Mark Kettenis
ok jordan@
2006-11-15dd pseudo-devices to handle acpi apic interrupt routing.Mark Kettenis
ok jordan@
2006-11-11Add acpi_sleep and acpi_stall functions.Marco Peereboom
ok jordan
2006-11-02Kill acpiec attach function and add its functionality to the generic _HIDMarco Peereboom
device attach prodded and ok jordan