freebsd-skq/sys/dev/acpica
Nate Lawson 00a304487f Update the suspend/resume user API while maintaining backwards compat.
Improvements:
* /etc/rc.suspend,rc.resume are always run, no matter the source of the
  suspend request (user or kernel, apm or acpi)
* suspend now requires positive user acknowledgement.  If a user program
  wants to cancel the suspend, they can.  If one of the user programs
  hangs or doesn't respond within 10 seconds, the system suspends anyway.
* /dev/apm is clonable, allowing multiple listeners for suspend events.
  In the future, xorg-server can use this to be informed about suspend
  even if there are other listeners (i.e. apmd).

Changes:
* Two new ACPI ioctls:  REQSLPSTATE and ACKSLPSTATE.  Request begins the
  process of suspending by notifying all listeners.  acpi is monitored by
  devd(8) and /dev/apm listener(s) are also counted.  Users register their
  approval or disapproval via Ack.  If anyone disapproves, suspend is vetoed.
* Old user programs or kernel modules that used SETSLPSTATE continue to
  work.  A message is printed once that this interface is deprecated.
* acpiconf gains the -k flag to ack the suspend request.  This flag is
  undocumented on purpose since it's only used by /etc/rc.suspend.  It is
  not intended to be a permanent change and will be removed once a better
  power API is implemented.
* S5 (power off) is no longer supported via acpiconf -s 5 or apm -z/-Z.
  This restores previous behavior of halt/shutdown -p being the interface.
* Miscellaneous improvements to error reporting

Approved by:	re
2007-06-21 22:50:37 +00:00
..
Osd Remove "acpi_bus_number: can't get _ADR" message. It usually appears as 2007-05-31 00:52:32 +00:00
acpi_acad.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_battery.c ACPIIO_BATT_GET_UNITS would always return ENXIO. However, it should never 2006-12-22 00:57:26 +00:00
acpi_button.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_cmbat.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_cpu.c Disable CPU idle states during suspend and reenable them during resume. 2007-06-03 00:40:56 +00:00
acpi_dock.c Use ACPICA defined value for notification rather than locally defined one. 2007-05-31 08:49:51 +00:00
acpi_ec.c Convert magic to a uintptr_t. This should get rid of some warnings on 2007-06-15 18:02:34 +00:00
acpi_hpet.c Convert magic to a uintptr_t. This should get rid of some warnings on 2007-06-15 18:02:34 +00:00
acpi_if.m Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_isab.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_lid.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_package.c Re-work Cx handling to be per-cpu and asymmetrical, fixing support on 2007-01-07 21:53:42 +00:00
acpi_pci_link.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_pci.c Fixup some comments to allow for the fact that PCI domains are not specific 2006-05-11 22:13:21 +00:00
acpi_pcib_acpi.c Revamp the MSI/MSI-X code a bit to achieve two main goals: 2007-05-02 17:50:36 +00:00
acpi_pcib_pci.c Revamp the MSI/MSI-X code a bit to achieve two main goals: 2007-05-02 17:50:36 +00:00
acpi_pcib.c Force any hardwire-routed interrupts to level trigger and active low 2005-12-03 21:17:17 +00:00
acpi_pcibvar.h Protect against multiple includes and use _KERNEL to protect the PCI fns. 2005-02-28 05:39:34 +00:00
acpi_perf.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_powerres.c Remove unnecessary assignment. 2006-04-21 19:06:29 +00:00
acpi_quirk.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_quirks Add a quirk for a motherboard whose acpi timer runs too fast. 2005-06-26 18:19:14 +00:00
acpi_resource.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_smbat.c Remove unused variable. 2006-02-21 03:16:58 +00:00
acpi_smbus.h Import ACPI smart battery support. Newer systems (Acer, mostly) do not 2005-10-23 00:20:13 +00:00
acpi_thermal.c Check the _TMP value for sanity also. On some systems (HP NX laptops), the 2007-03-05 21:39:53 +00:00
acpi_throttle.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
acpi_timer.c Despite several examples in the kernel, the third argument of 2007-06-04 18:25:08 +00:00
acpi_video.c Improve the way we'll detect video devices as per ACPI 3.0. 2006-08-10 13:18:02 +00:00
acpi.c Update the suspend/resume user API while maintaining backwards compat. 2007-06-21 22:50:37 +00:00
acpiio.h Update the suspend/resume user API while maintaining backwards compat. 2007-06-21 22:50:37 +00:00
acpivar.h Update the suspend/resume user API while maintaining backwards compat. 2007-06-21 22:50:37 +00:00