cvs commit: src/sys/dev/acpica acpi.c acpi_button.c acpi_lid.c
acpivar.h
Nate Lawson
njl at FreeBSD.org
Thu May 27 11:39:40 PDT 2004
njl 2004/05/27 11:38:46 PDT
FreeBSD src repository
Modified files:
sys/dev/acpica acpi.c acpi_button.c acpi_lid.c acpivar.h
Log:
Restructure the wake GPE API. Now there are three functions:
acpi_wake_init:
Evaluate _PRW and set the GPE type
acpi_wake_set_enable:
Enable or disable a device's GPE.
acpi_wake_sleep_prep:
Perform any last-minute changes to the device to prepare it for
entering the given sleep state.
Also, walk the entire namespace when transitioning to a sleep state,
disabling any GPEs which aren't appropriate for the given state. Transition
acpi_lid and acpi_button to the new API.
This clears the way for non-ACPI-aware devices to wake the system (i.e.
modems) and fixes a problem where systems power up after shutdown when a
GPE is triggered.
Revision Changes Path
1.147 +236 -120 src/sys/dev/acpica/acpi.c
1.24 +7 -6 src/sys/dev/acpica/acpi_button.c
1.20 +7 -6 src/sys/dev/acpica/acpi_lid.c
1.67 +37 -56 src/sys/dev/acpica/acpivar.h
More information about the cvs-all
mailing list