summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2007-01-27Say ``docking station'' instead of ``docked'' in the sensor descriptionMichael Knudsen
because this confuses me when I read it: hw.sensors.acpidock0.indicator0=Off, (docked)
2007-01-27Reading the spec again it seems I missed that the _INI methodMichael Knudsen
should be invoked only when _STA says the device is present. Change acpidock_attach to this.
2007-01-26Actually add the acpidock indicator sensor stuff to the softc struct soMichael Knudsen
acpidock compiles. I had this in my tree and forgot to commit with the acpidock.c change yesterday. :( Reported by Johan Mson Lindman.
2007-01-25Be a bit more verbose during attach even without ACPI_DEBUG for now.Michael Knudsen
2007-01-25Install an indicator sensor to show if we're docked or not.Michael Knudsen
Note that right now status appears to not be detected correctly on all machines, but let's expose what we think we know.
2007-01-25Make debug output a tad more consistent.Michael Knudsen
2007-01-25Remove comment that I committed by accident.Michael Knudsen
2007-01-25Do the sensor magic correctly. Found by Constantine Murenin.Marco Peereboom
help from mickey
2007-01-24Deal with weird systems that return bogus device numbers for stuff that's notMark Kettenis
really there.
2007-01-23Fixes for static integer settingJordan Hargrave
thanks to giovanni ok marco@
2007-01-22Fix a comment and reduce the chattyness of some debug.Michael Knudsen
2007-01-22Some nits from fkr@, thanks!Michael Knudsen
2007-01-22Actually look for docking stations by looking for _DCK nodes.Michael Knudsen
ok marco
2007-01-22Tell config about acpidock.Michael Knudsen
ok marco
2007-01-22Add driver for ACPI docking stations.Michael Knudsen
Not completely functional yet, e.g. undocking doesn't work yet but put it in the tree to be able to safely work on this. ok marco
2007-01-18Check whether PCI interrupt link devices are enabled.Mark Kettenis
Based on a diff from marco@.
2007-01-18Added fix for static integerJordan Hargrave
ok marco@
2007-01-16Fix invalid _CRS length. Some aml implementations lie about how long aMarco Peereboom
_CRS buffer is and this compensates for it by fixing up the minimum value. This fixes several machines that end up with invalid irq/ioapic values. KNF nit as well Code from jordan, tested on Intel SHG2 board (he committed this agains my local tree)
2007-01-11Assume that the first cpu in the table is the boot processor, instead ofMark Kettenis
the cpu with apic id 0. tested by many
2007-01-03Oops forgot this bit as part of the cleanup for acpiac. From ConstantineMarco Peereboom
Murinen.
2007-01-03Consistent naming for the sensors.Marco Peereboom
From Constantine Murenin <mureninc at gmail dot com>
2007-01-02On some systems EC must be attached as the first device. Move EC fromMarco Peereboom
generic _HID devices to its own routine to force first attach. Bug found and debugged by joris@ Code mostly written by joris@
2006-12-29Replace setperf algorithm with a linear version. Also use the aml providedMarco Peereboom
gasio structure when appropriate instead of always assuming 32 bit access. Fixes my Dell laptop and works on others tested.
2006-12-28Prettify dmesg a bit for attach with power state being either offline orMichael Knudsen
unknown. ok marco (who already had this change in his tree but said I should commit)
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-23adapt to new two-level sensor api; Constantine A. MureninTheo de Raadt
2006-12-23Move the handling of SCI events to the acpiec gpe handler.Can Erkin Acar
ok marco@
2006-12-23Correctly compute timeout value in acpi_sleep.Can Erkin Acar
Also make sure it is non zero. ok marco@
2006-12-22spacingTheo de Raadt
2006-12-21even more knf loveTheo de Raadt
2006-12-21Tweak to report full battery.Marco Peereboom
2006-12-21spacingTheo de Raadt
2006-12-21more knfTheo de Raadt
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