48#define _COMPONENT ACPI_POWER_COMPONENT
51#define ACPI_POWER_RESOURCE_STATE_OFF 0x00
52#define ACPI_POWER_RESOURCE_STATE_ON 0x01
53#define ACPI_POWER_RESOURCE_STATE_UNKNOWN 0xFF
125 unsigned long long sta = 0;
143 node_name, *
state?
"on":
"off"));
162 for (
i=0;
i<
list->count;
i++) {
203 if (
dev->handle ==
ref->device->handle) {
254 if (
dev->handle ==
ref->device->handle) {
302 int enable,
int sleep_state,
int dev_state)
322 in_arg[1].
Integer.Value = sleep_state;
324 in_arg[2].
Integer.Value = dev_state;
329 DPRINT1(
"_DSW execution failed\n");
330 dev->wakeup.flags.valid = 0;
339 DPRINT1(
"_PSW execution failed\n");
340 dev->wakeup.flags.valid = 0;
358 if (!
dev || !
dev->wakeup.flags.valid)
363 if (
dev->wakeup.prepare_count++)
367 for (
i = 0;
i <
dev->wakeup.resources.count;
i++) {
370 DPRINT(
"Transition power state\n");
371 dev->wakeup.flags.valid = 0;
385 dev->wakeup.prepare_count = 0;
403 if (!
dev || !
dev->wakeup.flags.valid)
408 if (--
dev->wakeup.prepare_count > 0)
415 if (
dev->wakeup.prepare_count < 0)
416 dev->wakeup.prepare_count = 0;
423 for (
i = 0;
i <
dev->wakeup.resources.count;
i++) {
425 dev->wakeup.resources.handles[
i],
dev);
427 DPRINT(
"Transition power state\n");
428 dev->wakeup.flags.valid = 0;
499 cl = &
device->power.states[
device->power.state].resources;
664 DPRINT(
"acpi_power_init\n");
char * strcpy(char *DstString, const char *SrcString)
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_MODULE_NAME(Name)
#define acpi_device_bid(d)
#define acpi_driver_data(d)
#define acpi_device_class(d)
#define acpi_device_name(d)
#define ACPI_POWER_DEVICE_NAME
#define ACPI_POWER_DRIVER_NAME
union acpi_object ACPI_OBJECT
#define ACPI_TYPE_INTEGER
#define ACPI_STATE_UNKNOWN
static int list_empty(struct list_entry *head)
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
int acpi_bus_register_driver(struct acpi_driver *driver)
int acpi_bus_get_device(ACPI_HANDLE handle, struct acpi_device **device)
static int acpi_power_on(ACPI_HANDLE handle, struct acpi_device *dev)
static struct acpi_driver acpi_power_driver
#define ACPI_POWER_RESOURCE_STATE_OFF
static int acpi_power_add(struct acpi_device *device)
static int acpi_power_remove(struct acpi_device *device, int type)
static int acpi_power_resume(struct acpi_device *device, int state)
static int acpi_power_off_device(ACPI_HANDLE handle, struct acpi_device *dev)
int acpi_disable_wakeup_device_power(struct acpi_device *dev)
#define ACPI_POWER_RESOURCE_STATE_ON
int acpi_power_get_inferred_state(struct acpi_device *device)
int acpi_device_sleep_wake(struct acpi_device *dev, int enable, int sleep_state, int dev_state)
int acpi_power_init(void)
static int acpi_power_get_state(ACPI_HANDLE handle, int *state)
int acpi_enable_wakeup_device_power(struct acpi_device *dev, int sleep_state)
static int acpi_power_get_context(ACPI_HANDLE handle, struct acpi_power_resource **resource)
int acpi_power_transition(struct acpi_device *device, int state)
static int acpi_power_get_list_state(struct acpi_handle_list *list, int *state)
static struct list_head acpi_power_resource_list
ACPI_STATUS acpi_evaluate_integer(ACPI_HANDLE handle, ACPI_STRING pathname, ACPI_OBJECT_LIST *arguments, unsigned long long *data)
#define INIT_LIST_HEAD(ptr)
#define list_for_each_safe(pos, n, head)
static void list_del(struct list_head *entry)
#define ExAllocatePoolWithTag(hernya, size, tag)
GLuint GLuint GLsizei GLenum type
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define container_of(ptr, type, member)
ACPI_STATUS AcpiEvaluateObject(ACPI_HANDLE Handle, ACPI_STRING Pathname, ACPI_OBJECT_LIST *ExternalParams, ACPI_BUFFER *ReturnBuffer)
ACPI_STATUS AcpiGetName(ACPI_HANDLE Handle, UINT32 NameType, ACPI_BUFFER *Buffer)
static unsigned __int64 next
ACPI_HANDLE handles[ACPI_MAX_HANDLES]
struct acpi_device * device
struct acpi_device * device
struct acpi_object::@625 PowerResource
struct acpi_object::@619 Integer