summaryrefslogtreecommitdiffstats
path: root/usr.sbin/powerd
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-01-23 20:35:32 +0000
committerjhb <jhb@FreeBSD.org>2014-01-23 20:35:32 +0000
commit6414202f610ed1724a3b213b7f0ba6ce9f52ea69 (patch)
tree715799c63ee26e27fc184f5f2d222ea765d13418 /usr.sbin/powerd
parente1016866c7ece00b60ccc7f0807fb1c2ebd0f3b8 (diff)
downloadFreeBSD-src-6414202f610ed1724a3b213b7f0ba6ce9f52ea69.zip
FreeBSD-src-6414202f610ed1724a3b213b7f0ba6ce9f52ea69.tar.gz
MFC 259826,259997,259998:
Support soft power-off via the ACPI S5 state for bhyve guests and wire up a virtual power button to SIGTERM: - Implement the PM1_EVT and PM1_CTL registers required by ACPI. - Emulate the Reset Control register at I/O port 0xcf9. - Advertise an _S5 package. - Implement an SMI_CMD register with commands to enable and disable ACPI. Currently the only change when ACPI is enabled is to enable the virtual power button via SIGTERM. - Implement a fixed-feature power button when ACPI is enabled by asserting PWRBTN_STS in PM1_EVT when SIGTERM is received. - Add support for EVFILT_SIGNAL events to mevent. - Implement support for the ACPI system command interrupt (SCI) and assert it when needed based on the values in PM1_EVT. Mark the SCI as active-low and level triggered in the MADT and MP Table.
Diffstat (limited to 'usr.sbin/powerd')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud