#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
#include "sleep.h"
#include "internal.h"
Go to the source code of this file.
|
| ACPI_MODULE_NAME ("power") |
|
| MODULE_DEVICE_TABLE (acpi, power_device_ids) |
|
void | acpi_power_resource_unregister_device (struct device *dev, acpi_handle handle) |
|
| EXPORT_SYMBOL_GPL (acpi_power_resource_unregister_device) |
|
int | acpi_power_resource_register_device (struct device *dev, acpi_handle handle) |
|
| EXPORT_SYMBOL_GPL (acpi_power_resource_register_device) |
|
int | acpi_device_sleep_wake (struct acpi_device *dev, int enable, int sleep_state, int dev_state) |
|
int | acpi_enable_wakeup_device_power (struct acpi_device *dev, int sleep_state) |
|
int | acpi_disable_wakeup_device_power (struct acpi_device *dev) |
|
int | acpi_power_get_inferred_state (struct acpi_device *device, int *state) |
|
int | acpi_power_on_resources (struct acpi_device *device, int state) |
|
int | acpi_power_transition (struct acpi_device *device, int state) |
|
int __init | acpi_power_init (void) |
|
#define ACPI_POWER_CLASS "power_resource" |
#define ACPI_POWER_DEVICE_NAME "Power Resource" |
#define ACPI_POWER_FILE_INFO "info" |
#define ACPI_POWER_FILE_STATUS "state" |
#define ACPI_POWER_RESOURCE_STATE_OFF 0x00 |
#define ACPI_POWER_RESOURCE_STATE_ON 0x01 |
#define ACPI_POWER_RESOURCE_STATE_UNKNOWN 0xFF |
int acpi_device_sleep_wake |
( |
struct acpi_device * |
dev, |
|
|
int |
enable, |
|
|
int |
sleep_state, |
|
|
int |
dev_state |
|
) |
| |
acpi_device_sleep_wake - execute _DSW (Device Sleep Wake) or (deprecated in ACPI 3.0) _PSW (Power State Wake) : Device to handle. : 0 - disable, 1 - enable the wake capabilities of the device. : Target sleep state of the system. : Target power state of the device.
Execute _DSW (Device Sleep Wake) or (deprecated in ACPI 3.0) _PSW (Power State Wake) for the device, if present. On failure reset the device's wakeup.flags.valid flag.
RETURN VALUE: 0 if either _DSW or _PSW has been successfully executed 0 if neither _DSW nor _PSW has been found -ENODEV if the execution of either _DSW or _PSW has failed
Definition at line 498 of file power.c.
int acpi_disable_wakeup_device_power |
( |
struct acpi_device * |
dev | ) |
|
int acpi_enable_wakeup_device_power |
( |
struct acpi_device * |
dev, |
|
|
int |
sleep_state |
|
) |
| |
ACPI_MODULE_NAME |
( |
"power" |
| ) |
|
int acpi_power_get_inferred_state |
( |
struct acpi_device * |
device, |
|
|
int * |
state |
|
) |
| |
int acpi_power_on_resources |
( |
struct acpi_device * |
device, |
|
|
int |
state |
|
) |
| |
int acpi_power_transition |
( |
struct acpi_device * |
device, |
|
|
int |
state |
|
) |
| |
MODULE_DEVICE_TABLE |
( |
acpi |
, |
|
|
power_device_ids |
|
|
) |
| |