freebsd-dev/sys/i386
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
..
acpica Update the suspend/resume user API while maintaining backwards compat. 2007-06-21 22:50:37 +00:00
bios Tweak the probe/attach order of devices on the x86 nexus devices. 2007-03-20 20:21:44 +00:00
compile
conf Enable SCTP by default for GENERIC kernels in order to give it 2007-06-14 17:14:27 +00:00
cpufreq Use bus_dma to get a page in the first 4 GB. Since the physical address 2007-06-17 07:18:23 +00:00
i386 Don't clobber tf_err with the eva from a page fault as the page fault 2007-06-13 22:37:48 +00:00
ibcs2 Revert UF_OPENING workaround for CURRENT. 2007-05-31 11:51:53 +00:00
include Add kdb_cpu_sync_icache(), intended to synchronize instruction 2007-06-09 21:55:17 +00:00
isa Prototype (but functional) Linux-ish /dev/nvram interface to the extra 2007-06-15 22:58:14 +00:00
linux Commit 14/14 of sched_lock decomposition. 2007-06-05 00:00:57 +00:00
pci Revamp the MSI/MSI-X code a bit to achieve two main goals: 2007-05-02 17:50:36 +00:00
svr4 Use svr4_si_{addr,code,errno,signo,trap} in preference to si_{...}. 2005-10-19 14:59:54 +00:00
xbox - Define data of struct gfb_font a const as it's only used to supply font 2007-06-16 21:31:53 +00:00
Makefile Update entries for building tags. 2007-05-13 18:21:54 +00:00