summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpibat.c
AgeCommit message (Collapse)Author
2008-08-14add missing semicolon; ok mbalmer@, marco@Robert Nagy
2008-08-05Fix spurious 0 values on batteries seen on laptopts that have an embeddedMarco Peereboom
controller. Found, diagnosed and patch from Stefan Sperling <stsp@stsp.name> Minor KNF changes while here. Tested by many on a variaty of IBM laptops and others with and without acpiec. ok deraadt
2008-06-13Properly handle battery insertion/removalJordan Hargrave
ok @marco
2008-06-01Re-enable new parser. Lots of testing by various folks. Fits all mediaMarco Peereboom
now too. ok kettenis deraadt
2008-05-16back out jordans new parser.David Gwynne
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@
2008-05-14Adding new ACPI Parser codeJordan Hargrave
Old guts of code still exists, needs to be torn out next ok marco@ ok brad@
2007-11-16quotes around model name tooTheo de Raadt
2007-11-12spacingTheo de Raadt
2007-11-12spacingTheo de Raadt
2007-11-12only print bif info that is completeTheo de Raadt
2007-11-08convert the value to a string instead of using aml_val2str()Can Erkin Acar
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@
2007-11-03repair attach messages; ok gwk canacarTheo de Raadt
2007-03-20Use aml_val2int() instead of accessing v_integer directly.Michael Knudsen
`sort of ok' marco (before lock)
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-01-25Do the sensor magic correctly. Found by Constantine Murenin.Marco Peereboom
help from mickey
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-21even more knf loveTheo de Raadt
2006-12-21Tweak to report full battery.Marco Peereboom
2006-12-21more minor knfTheo de Raadt
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-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-10-19Reduce the scope of the locks.Marco Peereboom
2006-10-19KNF and some cleanupMarco Peereboom
2006-10-19Replace ACPI ioctls with APM ioctls. This makes ACPI talk the same protocolMarco Peereboom
as APM therefore userspace can now retrieve power information in the same fashion as all other apm arches (zaurus, macppc, i386 etc). To use force the use of acpi device like so: apmd -f /dev/acpi ok jordan@
2006-10-19Fix capacity calculations. Tested on Dell C610, D810, Lenovo X60s.Marco Peereboom
ok jordan
2006-10-12Massive ACPI changesJordan Hargrave
Fixed ACPI leaks new ACPI API ok marco@
2006-09-19Typo fixes.Michael Knudsen
ok marco
2006-06-06fix a bad strlcpy, from ben lovettJolan Luff
2006-05-19Use rwlock instead of lockmgr locks.Can Erkin Acar
ok marco@
2006-04-30rv not set. Sloppy but didn't matter.Marco Peereboom
pointed out by joris@
2006-03-05KNF nit.Marco Peereboom
2006-02-22Rework notify handler.Marco Peereboom
Use jordan's new notify register function. ok jordan@
2006-02-22Add insertion and removal events for batteries.Marco Peereboom
Some cleanup & KNF.
2006-02-21KNFMarco Peereboom
2006-02-21Adjust debugging levels to something more reasonable.Marco Peereboom
2006-02-17Better comments.Marco Peereboom
2006-02-17Propogate some values through the sysctl hw.sesnsors interface for debugMarco Peereboom
purposes. This will be removed later and replaced with something better.
2006-02-17Detect if battery slot is available but without a battery in it.Marco Peereboom
ok jordan
2006-02-16Print useful information during boot about the battery and power supply.Marco Peereboom
ok jordan.
2006-02-16Adjust debug levels to something sane.Marco Peereboom
2006-02-03Rewrote aml parser yet again...Jordan Hargrave
Fixed bus_space_map for i386/amd64 Added _BST and _BIF to acpibat to get status/info ok marco@
2006-01-17Major overhaul of the aml parser. Evaluater temporarily disabled.Jordan Hargrave
ok marco@
2006-01-06Sudden newlineAlexander Yurchenko
2005-12-30make ACPI_DEBUG compileTed Unangst
2005-12-28oops enabled a method that doesnt work yet so disabled getbif for now.Marco Peereboom
ok jordan@
2005-12-28Add some return values to getbst and getbif.Marco Peereboom
ok jordan@
2005-12-28Add 2 methods (Battery Info and Battery Status)Marco Peereboom
ok jordan@
2005-12-16Use new unified header.Marco Peereboom