summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/smartbat.c
AgeCommit message (Collapse)Author
2012-11-01- apply limits consistentlymacallan
- remove suspect pointer fudgery when interpreting PMU battery data now if we had any idea what units these data are in...
2012-10-31implement limits and support event monitoringmacallan
now emergency shutdown on low battery works
2012-09-18fix typomacallan
2012-09-06- make the charge state sensor actually do somethingmacallan
- work around a bug in envsys which expects a valid value for sensors with states that have text descriptions even if the sensor is invalid
2012-09-06only register a PMU callback when we're actually monitoring and reportingmacallan
AC power fixes spontaneous power down with two smartbat instances present
2012-09-05split the envsys sensors into two devices - one SME_CLASS_ACADAPTER and onemacallan
SME_CLASS_BATTERY, register the former only on unit 0 so we don't end up with two of them on powerbooks that have two battery slots. Now userland has a fighting chance to find the AC status. TODO: make the battery sensors look more like acpibat's
2011-07-26finish device_t-ificationmacallan
2011-07-10Initialize sensor state. (Missed the commit for this in my lastpgoyette
roto-till.)
2011-07-01#include <sys/bus.h> instead of <machine/bus.h>.dyoung
2011-06-18struct device * -> device_tmatt
struct cfdata * -> cfdata_t use device accessors, use device_private. some softc/device_t splits (macppc needs a bunch more) aprint*_dev used considerably more
2010-09-14only mark battery status sensors valid if the battery is actually presentmacallan
2008-08-12actually implement smart battery supportmacallan
From Magnus Henoch. This needs more testing, especially on older PowerBooks which may have more thanone battery.
2008-04-29Convert to new 2 clause licensemartin
2007-03-25skeleton smart battery driver. Doesn't do much yet.macallan