#include <precomp.h>
#include <debug.h>
Go to the source code of this file.
◆ _COMPONENT
◆ NDEBUG
◆ PREFIX
◆ acpi_suspend()
acpi_suspend - OS-agnostic system suspend/resume support (S? states) @state: state we're entering
Definition at line 347 of file system.c.
void __cdecl _enable(void)
ACPI_STATUS AcpiSetFirmwareWakingVector(ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_PHYSICAL_ADDRESS PhysicalAddress64)
ACPI_STATUS acpi_system_suspend(UINT32 state)
#define ACPI_FLUSH_CPU_CACHE()
void __cdecl _disable(void)
ACPI_STATUS AcpiLeaveSleepState(UINT8 SleepState)
static SERVICE_STATUS status
ACPI_STATUS AcpiEnterSleepStatePrep(UINT8 SleepState)
ACPI_STATUS AcpiEnterSleepState(UINT8 SleepState)
ACPI_STATUS acpi_system_restore_state(UINT32 state)
Referenced by Bus_FDO_Power().
◆ acpi_system_add()
Definition at line 65 of file system.c.
87 DPRINT(
"%s [%s] (supports",
95 0 != AcpiGbl_FADT.SmiCommand) {
#define acpi_device_bid(d)
#define ACPI_S_STATE_COUNT
#define sprintf(buf, format,...)
ACPI_STATUS AcpiGetSleepTypeData(UINT8 SleepState, UINT8 *SleepTypeA, UINT8 *SleepTypeB)
char acpi_device_class[20]
int __cdecl system(_In_opt_z_ const char *_Command)
char acpi_device_name[40]
#define ExAllocatePoolWithTag(hernya, size, tag)
#define ACPI_SYSTEM_CLASS
#define ACPI_SYSTEM_DEVICE_NAME
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 ACPI_FUNCTION_TRACE(a)
#define acpi_driver_data(d)
◆ acpi_system_exit()
Definition at line 414 of file system.c.
void acpi_bus_unregister_driver(struct acpi_driver *driver)
#define ACPI_FUNCTION_TRACE(a)
static struct acpi_driver acpi_system_driver
Referenced by acpi_bus_exit().
◆ acpi_system_init()
Definition at line 399 of file system.c.
#define ACPI_FUNCTION_TRACE(a)
static struct acpi_driver acpi_system_driver
int acpi_bus_register_driver(struct acpi_driver *driver)
Referenced by acpi_init().
◆ acpi_system_remove()
Definition at line 120 of file system.c.
int __cdecl system(_In_opt_z_ const char *_Command)
#define ACPI_FUNCTION_TRACE(a)
#define acpi_driver_data(d)
#define ExFreePoolWithTag(_P, _T)
◆ acpi_system_restore_state()
acpi_system_restore_state - OS-specific restoration of state @state: sleep state we're exiting
Note that if we're coming back from S4, the memory image should have already been loaded from the disk and is already in place. (Otherwise how else would we be here?).
Definition at line 156 of file system.c.
VOID NTAPI KeStallExecutionProcessor(IN ULONG MicroSeconds)
Referenced by acpi_suspend().
◆ acpi_system_save_state()
acpi_system_save_state - save OS specific state and power down devices @state: sleep state we're entering.
This handles saving all context to memory, and possibly disk. First, we call to the device driver layer to save device state. Once we have that, we save whatevery processor and kernel state we need to memory. If we're entering S4, we then write the memory image to disk.
Only then it is safe for us to power down devices, since we may need the disks and upstream buses to write to.
Definition at line 212 of file system.c.
255 error = acpi_save_state_disk();
#define ACPI_FLUSH_CPU_CACHE()
◆ acpi_system_suspend()
Definition at line 313 of file system.c.
static SERVICE_STATUS status
ACPI_STATUS AcpiEnterSleepState(UINT8 SleepState)
Referenced by acpi_suspend().
◆ acpi_system_driver
Initial value:= {
{0,0},
0,
0,
}
#define ACPI_SYSTEM_DRIVER_NAME
static int acpi_system_remove(struct acpi_device *device, int type)
#define ACPI_SYSTEM_CLASS
static int acpi_system_add(struct acpi_device *device)
Definition at line 47 of file system.c.
Referenced by acpi_system_exit(), and acpi_system_init().