summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2007-06-23Accept 0x00 as notify type since some notebooks (MSI-S260)Can Erkin Acar
incorrectly use it when signaling events. ok marco@
2007-06-15Check that sc_notify actually points to something before attempting to callGordon Willem Klok
it. Fixes marco@'s post c2k7 panics. ok marco
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-05-28fix build when ACPI_DEBUG is definedRobert Nagy
2007-05-28Eliminate unsightly blank lines in dmesg.Kenneth R Westerback
ok marco@
2007-05-06at least always print a new line, even if NOPSSTed Unangst
2007-04-23When receiving an undock request, walk the list of dependant devicesMichael Knudsen
and pull their _EJ0 knobs before undocking. This ejects any dependant devices (if necessary) before actually undocking. Without this, the usb hub in my X6 gets upset when it's suddenly kicked off the system without warning, and upon redocking it attaches as uberry. Now it's behaving as it should.
2007-04-23When adding a device node to the list of dependant devices, don't addMichael Knudsen
the _EJD node. Instead, add the parent actual device node instead which makes more sense and makes sure that it doesn't matter if the _EJ0 node under a device node comes before the _EJD node.
2007-04-23In acpidock_softc, change sc_sens from being a one element long array toMichael Knudsen
simply being a single struct ksensor.
2007-04-23spacing and some really long linesGordon Willem Klok
2007-04-22Whitespace cleanup.Michael Knudsen
2007-04-22Remove unnecessary local variable in acpidock_status() and kill an XXXMichael Knudsen
by using STA_PRESENT instead of home-brewed value.
2007-04-22Add a TAILQ, aml_nodelist, of devices depending on the dock device toMichael Knudsen
struct acpidock_softc and stuff devices into it during attach. This list is not yet used, but I have code ready to handle the ACPI side of this. However, it still doesn't handle that there may in fact be multiple dock devices in a machine (e.g. on pre-60 series ThinkPads), but I need to figure out how to do so properly first. In the mean time I want this in the tree so I don't lose the code.
2007-04-17Now that acpidock no longer hangs machines during boot (at leastMichael Knudsen
according to the reports I've been getting) it should be safe to enable it again, so remove the #if 0 stuff around it. ok marco
2007-04-17Fix a really emberrassing bug: Do not unconditionally call _DCK with aMichael Knudsen
parameter of 1 (dock). This was causing acpidock to attempt to dock even if the machine was not in its dock which was causing hangs on pre-60 series ThinkPads. It was also causing my X60 to not see NOTIFY 0 (dock) messages which would initiate the docking sequence. Diff from Matthew R. Dempsky. Tested on X60 by me, on T42/43 by brad, ckuethe, reyk, Johan M:son, and on T21 by reyk. I think someone also tested on X40/41 but I don't remember who. Thanks a lot.
2007-04-16Fix debug info when docking/undocking so it tells users what they needMichael Knudsen
to know: acpidock0: undock: status undocked acpidock0: dock: status docked This gets rid of all the garbage output that I used long ago.
2007-04-11Added changes for C-StateJordan Hargrave
ok marco@
2007-04-06Fix a strange typo and don't set sc_docked in acpidock_dockctl(). It'sMichael Knudsen
being handled by acpidock_status(). From Matthew R. Dempsky who had another chunk in his diff that I didn't include. It's correct, but it seems to cause some strange regression on my X60 that I need to look into first.
2007-03-26Don't leak memory.Marco Peereboom
From giovanni <qgiovanni@gmail.com>
2007-03-26Calculate minutes left more accurately.Marco Peereboom
From giovanni <qgiovanni@gmail.com>
2007-03-23Fix set to already set localJordan Hargrave
ok marco@
2007-03-22split userland & kernel struct sensor/sensordev so that the additionTheo de Raadt
of new fields in the future is less disruptive. This is done similar to how struct proc is handled for ps(1). ok jmc (man page changes) tested fkr simon, and more suggestions from millert
2007-03-20Use aml_val2int() instead of accessing v_integer directly.Michael Knudsen
`sort of ok' marco (before lock)
2007-03-03Stop looking for acpidock until we fix that stuff that breaks all pre-60Michael Knudsen
series ThinkPads with acpidock(4) enabled.
2007-02-27please, check it compiles before you commitTheo de Raadt
2007-02-27Added fix for condref, free storing into valueJordan Hargrave
ok marco
2007-02-23Added support for getting host-bridge _BBN from _CRS resourcesJordan Hargrave
suggestions by kettenis ok marco@
2007-02-22We were getting no interrupts in .MP. There are 2 fixes; one inMarco Peereboom
acpi_machdep.c and move the interrupt establishment down after ioapic has been initialized. ok jordan
2007-02-22Fixed ACPITIMER header revision for ACPI2.0 onlyJordan Hargrave
ok marco@
2007-02-22New resource mapper interface and structuresJordan Hargrave
ok marco@
2007-02-21Fix stuttering audio playback as reported by Igor Grabin.Marco Peereboom
Tested by several folks and ok canacar
2007-02-21Make an acpi-enabled GENERIC.MP work on systems that only support PIC mode.Mark Kettenis
ok marco@
2007-02-21Fix a few memory leaks.Marco Peereboom
ok jordan@
2007-02-21KNFMarco Peereboom
2007-02-21Some Sony VAIOs use the wrong eventing type. Work around that by honering it.Marco Peereboom
Found by giovanni <qgiovanni @ gmail . com> ok jordan
2007-02-21Fixed deref for storing to local after CondRef opJordan Hargrave
ok marco@
2007-02-20It helps to enable hpet... This fixes bnx not working on amd64.Marco Peereboom
2007-02-20KNF while here.Marco Peereboom
2007-02-20KNF while in here.Marco Peereboom
2007-02-20Move AML_OBJDEBUG into ACPI_DEBUG.Marco Peereboom
KNF while in here too.
2007-02-19Added acpi_map_address function for mapping GAS/IO registersJordan Hargrave
ok marco@
2007-02-18Added dynamic perfect hash for opcodesJordan Hargrave
ok marco@
2007-02-18Shave off another K pre compression.Marco Peereboom
Shuffle SMALL_KERNEL functions around so that we only have a single #ifndef
2007-02-17Add SMALL_KERNEL throught acpi to make it fit on boot media.Marco Peereboom
ok deraadt
2007-02-17Since a full battery can still have state BST_CHARGE ("charging"),Deanna Phillips
fullness needs to be checked first. Otherwise, full batteries are always described as "charging." ok marco
2007-02-15Change some functions so there's only one exit point. This should makeMichael Knudsen
it harder to introduce leaks in the code.
2007-02-15Let acpidock_eject take an extra argument of what node to call _EJ0 on.Michael Knudsen
Will be used when ejecting devices sitting in the dock.
2007-02-15Don't clear the struct aml_value res when aml_evalnode() does thisMichael Knudsen
anyway. Also clean up a bit.
2007-02-14Cleanup and hide debug messages.Mark Kettenis
2007-02-14Quiet a noisy debug message by using dnprintf instead of printf.Deanna Phillips
ok marco