jruoho
c99562cb83
Simplify acpi_enter_sleep_state() and guard it against NULL pointer
...
dereferences. Try to avoid referencing the global acpi_softc, which should
really be static or at least internal to acpi(4).
2010-10-24 07:53:04 +00:00
jruoho
20524a61c1
Include the new prototype for acpi_enter_sleep_state().
2010-04-27 08:37:07 +00:00
skrll
ea3fb23f81
Spello in comment.
2010-04-12 06:56:19 +00:00
pgoyette
0a999d0c06
Update acpiapm_get_powstat() to adjust for the recent changes to
...
acpi_bat(4). (The warn_cap and low_cap sensors were removed, and the
values are now stored as the alarm limits of the charge sensor.)
2010-03-28 13:11:23 +00:00
pgoyette
c998024539
Only set the APM_BATT_FLAG_NO_SYSTEM_BATTERY if _all_ batteries are
...
not_present.
2010-03-24 01:45:37 +00:00
jruoho
5a425210a3
Remove <dev/acpi/acpica.h> from all files. It is included from
...
<dev/acpi/acpivar.h>. Ditto for <dev/sysmon/sysmonvar.h>, <sys/bus.h>,
<dev/pci/pcivar.h>, and <dev/isa/isavar.h>.
Also nuke a lot of unused and invalid headers. Some of these are audibly
provided by standard headers (namely <sys/param.h> and <sys/device.h>), some
have nothing to do with ACPI devices (e.g. <sys/syslog.h>), and some are
nonexistent local includes (e.g. "mpu_ym.h"). Moreoever, try to group the
includes into their respective blocks.
Tested with GENERIC and ALL (i386). No functional change.
2010-03-05 14:00:16 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
cube
3c5e53b4e2
Split device_t/softc for i386's apm(4), and other related cosmetic changes.
2008-03-07 21:45:07 +00:00
jmcneill
4c1d81b2b5
Merge jmcneill-pm branch.
2007-12-09 20:27:42 +00:00
plunky
60822ed9d3
When no estimate of battery minutes_left can be made, apm should
...
return a value of 0.
2007-10-27 19:51:29 +00:00
xtraeme
5310357612
Adapt to the recent changes to the acpiacad(4) and acpibat(4) drivers.
2007-07-05 13:53:21 +00:00
christos
88b6b36440
open and close envsys; from Cherry.
2007-03-11 01:24:12 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
xtraeme
4a09170d84
Use __unused in function arguments where appropiate. (hi christos)
2006-10-12 06:56:47 +00:00
gdt
ac02696458
Aggregate discharge rate over all batteries. Makes time remaining
...
reasonable when battery 0 is in use and battery 1 is fully discharged.
2006-10-11 19:14:29 +00:00
gdt
cf2f8187a8
Aggregate current charge level and lastcap over all batteries, rather
...
than taking values from the last battery checked. Solves problem of
apm showing status of 2nd battery in a 2-battery system.
2006-10-11 19:00:12 +00:00
christos
dfb16d34c3
PR/34117: Takuya SHIOZAKI: enhancement for acpiapm(4)
...
- make sleep state corresponding to standby/suspend changeable by using sysctl,
- make sure to generate APM events appropriately.
- arrange the code for getting power status.
2006-08-06 15:47:51 +00:00
hira
7c54838d63
Fix typo (discarge -> discharge).
2006-07-12 13:16:36 +00:00
christos
2fbd5d820a
Prevent zerodivide (from Kouichirou Hiratsuka)
2006-07-12 11:31:39 +00:00
christos
4998e59f23
Add acpi apm attachment based on sysmon hooks.
2006-07-08 20:23:53 +00:00