diff options
-rw-r--r-- | sys/dev/acpica/acpi_if.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_if.m b/sys/dev/acpica/acpi_if.m index 7365d9c..48a060a 100644 --- a/sys/dev/acpica/acpi_if.m +++ b/sys/dev/acpica/acpi_if.m @@ -109,6 +109,26 @@ METHOD ACPI_STATUS evaluate_object { }; # +# Get the highest power state (D0-D3) that is usable for a device when +# suspending/resuming. If a bus calls this when suspending a device, it +# must also call it when resuming. +# +# device_t bus: parent bus for the device +# +# device_t dev: check this device's appropriate power state +# +# int *dstate: if successful, contains the highest valid sleep state +# +# Returns: 0 on success, ESRCH if device has no special state, or +# some other error value. +# +METHOD int pwr_for_sleep { + device_t bus; + device_t dev; + int *dstate; +}; + +# # Rescan a subtree and optionally reattach devices to handles. Users # specify a callback that is called for each ACPI_HANDLE of type Device # that is a child of "dev". |