ReactOS 0.4.16-dev-251-ga17b6e9
acpi_drivers.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACPI_MAX_STRING   80
 
#define ACPI_BUS_COMPONENT   0x00010000
 
#define ACPI_BUS_CLASS   "system_bus"
 
#define ACPI_BUS_HID   "ACPI_BUS"
 
#define ACPI_BUS_DRIVER_NAME   "ACPI Bus Driver"
 
#define ACPI_BUS_DEVICE_NAME   "System Bus"
 
#define ACPI_AC_COMPONENT   0x00020000
 
#define ACPI_AC_CLASS   "ac_adapter"
 
#define ACPI_AC_HID   "ACPI0003"
 
#define ACPI_AC_DRIVER_NAME   "ACPI AC Adapter Driver"
 
#define ACPI_AC_DEVICE_NAME   "AC Adapter"
 
#define ACPI_AC_FILE_STATE   "state"
 
#define ACPI_AC_NOTIFY_STATUS   0x80
 
#define ACPI_AC_STATUS_OFFLINE   0x00
 
#define ACPI_AC_STATUS_ONLINE   0x01
 
#define ACPI_AC_STATUS_UNKNOWN   0xFF
 
#define ACPI_BATTERY_COMPONENT   0x00040000
 
#define ACPI_BATTERY_CLASS   "battery"
 
#define ACPI_BATTERY_HID   "PNP0C0A"
 
#define ACPI_BATTERY_DRIVER_NAME   "ACPI Battery Driver"
 
#define ACPI_BATTERY_DEVICE_NAME   "Battery"
 
#define ACPI_BATTERY_FILE_INFO   "info"
 
#define ACPI_BATTERY_FILE_STATUS   "state"
 
#define ACPI_BATTERY_FILE_ALARM   "alarm"
 
#define ACPI_BATTERY_NOTIFY_STATUS   0x80
 
#define ACPI_BATTERY_NOTIFY_INFO   0x81
 
#define ACPI_BATTERY_UNITS_WATTS   "mW"
 
#define ACPI_BATTERY_UNITS_AMPS   "mA"
 
#define ACPI_BUTTON_COMPONENT   0x00080000
 
#define ACPI_BUTTON_DRIVER_NAME   "ACPI Button Driver"
 
#define ACPI_BUTTON_CLASS   "button"
 
#define ACPI_BUTTON_FILE_INFO   "info"
 
#define ACPI_BUTTON_FILE_STATE   "state"
 
#define ACPI_BUTTON_TYPE_UNKNOWN   0x00
 
#define ACPI_BUTTON_NOTIFY_STATUS   0x80
 
#define ACPI_BUTTON_SUBCLASS_POWER   "power"
 
#define ACPI_BUTTON_HID_POWER   "PNP0C0C"
 
#define ACPI_BUTTON_HID_POWERF   "ACPI_FPB"
 
#define ACPI_BUTTON_DEVICE_NAME_POWER   "Power Button (CM)"
 
#define ACPI_BUTTON_DEVICE_NAME_POWERF   "Power Button (FF)"
 
#define ACPI_BUTTON_TYPE_POWER   0x01
 
#define ACPI_BUTTON_TYPE_POWERF   0x02
 
#define ACPI_BUTTON_SUBCLASS_SLEEP   "sleep"
 
#define ACPI_BUTTON_HID_SLEEP   "PNP0C0E"
 
#define ACPI_BUTTON_HID_SLEEPF   "ACPI_FSB"
 
#define ACPI_BUTTON_DEVICE_NAME_SLEEP   "Sleep Button (CM)"
 
#define ACPI_BUTTON_DEVICE_NAME_SLEEPF   "Sleep Button (FF)"
 
#define ACPI_BUTTON_TYPE_SLEEP   0x03
 
#define ACPI_BUTTON_TYPE_SLEEPF   0x04
 
#define ACPI_BUTTON_SUBCLASS_LID   "lid"
 
#define ACPI_BUTTON_HID_LID   "PNP0C0D"
 
#define ACPI_BUTTON_DEVICE_NAME_LID   "Lid Switch"
 
#define ACPI_BUTTON_TYPE_LID   0x05
 
#define ACPI_EC_COMPONENT   0x00100000
 
#define ACPI_EC_CLASS   "embedded_controller"
 
#define ACPI_EC_HID   "PNP0C09"
 
#define ACPI_EC_DRIVER_NAME   "ACPI Embedded Controller Driver"
 
#define ACPI_EC_DEVICE_NAME   "Embedded Controller"
 
#define ACPI_EC_FILE_INFO   "info"
 
#define ACPI_FAN_COMPONENT   0x00200000
 
#define ACPI_FAN_CLASS   "fan"
 
#define ACPI_FAN_HID   "PNP0C0B"
 
#define ACPI_FAN_DRIVER_NAME   "ACPI Fan Driver"
 
#define ACPI_FAN_DEVICE_NAME   "Fan"
 
#define ACPI_FAN_FILE_STATE   "state"
 
#define ACPI_FAN_NOTIFY_STATUS   0x80
 
#define ACPI_POWER_COMPONENT   0x00800000
 
#define ACPI_POWER_CLASS   "power_resource"
 
#define ACPI_POWER_HID   "ACPI_PWR"
 
#define ACPI_POWER_DRIVER_NAME   "ACPI Power Resource Driver"
 
#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
 
#define ACPI_PROCESSOR_COMPONENT   0x01000000
 
#define ACPI_PROCESSOR_CLASS   "processor"
 
#define ACPI_PROCESSOR_HID   "Processor"
 
#define ACPI_PROCESSOR_DRIVER_NAME   "ACPI Processor Driver"
 
#define ACPI_PROCESSOR_DEVICE_NAME   "Processor"
 
#define ACPI_PROCESSOR_FILE_INFO   "info"
 
#define ACPI_PROCESSOR_FILE_POWER   "power"
 
#define ACPI_PROCESSOR_FILE_PERFORMANCE   "performance"
 
#define ACPI_PROCESSOR_FILE_THROTTLING   "throttling"
 
#define ACPI_PROCESSOR_FILE_LIMIT   "limit"
 
#define ACPI_PROCESSOR_NOTIFY_PERFORMANCE   0x80
 
#define ACPI_PROCESSOR_NOTIFY_POWER   0x81
 
#define ACPI_PROCESSOR_LIMIT_NONE   0x00
 
#define ACPI_PROCESSOR_LIMIT_INCREMENT   0x01
 
#define ACPI_PROCESSOR_LIMIT_DECREMENT   0x02
 
#define ACPI_SYSTEM_COMPONENT   0x02000000
 
#define ACPI_SYSTEM_CLASS   "system"
 
#define ACPI_SYSTEM_HID   "ACPI_SYS"
 
#define ACPI_SYSTEM_DRIVER_NAME   "ACPI System Driver"
 
#define ACPI_SYSTEM_DEVICE_NAME   "System"
 
#define ACPI_SYSTEM_FILE_INFO   "info"
 
#define ACPI_SYSTEM_FILE_EVENT   "event"
 
#define ACPI_SYSTEM_FILE_ALARM   "alarm"
 
#define ACPI_SYSTEM_FILE_DSDT   "dsdt"
 
#define ACPI_SYSTEM_FILE_FADT   "fadt"
 
#define ACPI_SYSTEM_FILE_SLEEP   "sleep"
 
#define ACPI_SYSTEM_FILE_DEBUG_LAYER   "debug_layer"
 
#define ACPI_SYSTEM_FILE_DEBUG_LEVEL   "debug_level"
 
#define ACPI_THERMAL_COMPONENT   0x04000000
 
#define ACPI_THERMAL_CLASS   "thermal_zone"
 
#define ACPI_THERMAL_HID   "ThermalZone"
 
#define ACPI_THERMAL_DRIVER_NAME   "ACPI Thermal Zone Driver"
 
#define ACPI_THERMAL_DEVICE_NAME   "Thermal Zone"
 
#define ACPI_THERMAL_FILE_STATE   "state"
 
#define ACPI_THERMAL_FILE_TEMPERATURE   "temperature"
 
#define ACPI_THERMAL_FILE_TRIP_POINTS   "trip_points"
 
#define ACPI_THERMAL_FILE_COOLING_MODE   "cooling_mode"
 
#define ACPI_THERMAL_FILE_POLLING_FREQ   "polling_frequency"
 
#define ACPI_THERMAL_NOTIFY_TEMPERATURE   0x80
 
#define ACPI_THERMAL_NOTIFY_THRESHOLDS   0x81
 
#define ACPI_THERMAL_NOTIFY_DEVICES   0x82
 
#define ACPI_THERMAL_NOTIFY_CRITICAL   0xF0
 
#define ACPI_THERMAL_NOTIFY_HOT   0xF1
 
#define ACPI_THERMAL_MODE_ACTIVE   0x00
 
#define ACPI_THERMAL_MODE_PASSIVE   0x01
 
#define ACPI_THERMAL_PATH_POWEROFF   "/sbin/poweroff"
 
#define ACPI_DEBUG_RESTORE   0
 
#define ACPI_DEBUG_LOW   1
 
#define ACPI_DEBUG_MEDIUM   2
 
#define ACPI_DEBUG_HIGH   3
 
#define ACPI_DEBUG_DRIVERS   4
 

Functions

int acpi_button_init (void)
 
void acpi_button_exit (void)
 
int acpi_power_get_inferred_state (struct acpi_device *device)
 
int acpi_power_transition (struct acpi_device *device, int state)
 
int acpi_power_init (void)
 
void acpi_power_exit (void)
 
int acpi_processor_set_thermal_limit (ACPI_HANDLE handle, int type)
 
int acpi_system_init (void)
 
void acpi_system_exit (void)
 
int acpi_motherboard_init (void)
 
static void acpi_set_debug (UINT32 flag)
 

Variables

UINT32 acpi_dbg_level
 
UINT32 acpi_dbg_layer
 

Macro Definition Documentation

◆ ACPI_AC_CLASS

#define ACPI_AC_CLASS   "ac_adapter"

Definition at line 48 of file acpi_drivers.h.

◆ ACPI_AC_COMPONENT

#define ACPI_AC_COMPONENT   0x00020000

Definition at line 47 of file acpi_drivers.h.

◆ ACPI_AC_DEVICE_NAME

#define ACPI_AC_DEVICE_NAME   "AC Adapter"

Definition at line 51 of file acpi_drivers.h.

◆ ACPI_AC_DRIVER_NAME

#define ACPI_AC_DRIVER_NAME   "ACPI AC Adapter Driver"

Definition at line 50 of file acpi_drivers.h.

◆ ACPI_AC_FILE_STATE

#define ACPI_AC_FILE_STATE   "state"

Definition at line 52 of file acpi_drivers.h.

◆ ACPI_AC_HID

#define ACPI_AC_HID   "ACPI0003"

Definition at line 49 of file acpi_drivers.h.

◆ ACPI_AC_NOTIFY_STATUS

#define ACPI_AC_NOTIFY_STATUS   0x80

Definition at line 53 of file acpi_drivers.h.

◆ ACPI_AC_STATUS_OFFLINE

#define ACPI_AC_STATUS_OFFLINE   0x00

Definition at line 54 of file acpi_drivers.h.

◆ ACPI_AC_STATUS_ONLINE

#define ACPI_AC_STATUS_ONLINE   0x01

Definition at line 55 of file acpi_drivers.h.

◆ ACPI_AC_STATUS_UNKNOWN

#define ACPI_AC_STATUS_UNKNOWN   0xFF

Definition at line 56 of file acpi_drivers.h.

◆ ACPI_BATTERY_CLASS

#define ACPI_BATTERY_CLASS   "battery"

Definition at line 64 of file acpi_drivers.h.

◆ ACPI_BATTERY_COMPONENT

#define ACPI_BATTERY_COMPONENT   0x00040000

Definition at line 63 of file acpi_drivers.h.

◆ ACPI_BATTERY_DEVICE_NAME

#define ACPI_BATTERY_DEVICE_NAME   "Battery"

Definition at line 67 of file acpi_drivers.h.

◆ ACPI_BATTERY_DRIVER_NAME

#define ACPI_BATTERY_DRIVER_NAME   "ACPI Battery Driver"

Definition at line 66 of file acpi_drivers.h.

◆ ACPI_BATTERY_FILE_ALARM

#define ACPI_BATTERY_FILE_ALARM   "alarm"

Definition at line 70 of file acpi_drivers.h.

◆ ACPI_BATTERY_FILE_INFO

#define ACPI_BATTERY_FILE_INFO   "info"

Definition at line 68 of file acpi_drivers.h.

◆ ACPI_BATTERY_FILE_STATUS

#define ACPI_BATTERY_FILE_STATUS   "state"

Definition at line 69 of file acpi_drivers.h.

◆ ACPI_BATTERY_HID

#define ACPI_BATTERY_HID   "PNP0C0A"

Definition at line 65 of file acpi_drivers.h.

◆ ACPI_BATTERY_NOTIFY_INFO

#define ACPI_BATTERY_NOTIFY_INFO   0x81

Definition at line 72 of file acpi_drivers.h.

◆ ACPI_BATTERY_NOTIFY_STATUS

#define ACPI_BATTERY_NOTIFY_STATUS   0x80

Definition at line 71 of file acpi_drivers.h.

◆ ACPI_BATTERY_UNITS_AMPS

#define ACPI_BATTERY_UNITS_AMPS   "mA"

Definition at line 74 of file acpi_drivers.h.

◆ ACPI_BATTERY_UNITS_WATTS

#define ACPI_BATTERY_UNITS_WATTS   "mW"

Definition at line 73 of file acpi_drivers.h.

◆ ACPI_BUS_CLASS

#define ACPI_BUS_CLASS   "system_bus"

Definition at line 37 of file acpi_drivers.h.

◆ ACPI_BUS_COMPONENT

#define ACPI_BUS_COMPONENT   0x00010000

Definition at line 36 of file acpi_drivers.h.

◆ ACPI_BUS_DEVICE_NAME

#define ACPI_BUS_DEVICE_NAME   "System Bus"

Definition at line 40 of file acpi_drivers.h.

◆ ACPI_BUS_DRIVER_NAME

#define ACPI_BUS_DRIVER_NAME   "ACPI Bus Driver"

Definition at line 39 of file acpi_drivers.h.

◆ ACPI_BUS_HID

#define ACPI_BUS_HID   "ACPI_BUS"

Definition at line 38 of file acpi_drivers.h.

◆ ACPI_BUTTON_CLASS

#define ACPI_BUTTON_CLASS   "button"

Definition at line 83 of file acpi_drivers.h.

◆ ACPI_BUTTON_COMPONENT

#define ACPI_BUTTON_COMPONENT   0x00080000

Definition at line 81 of file acpi_drivers.h.

◆ ACPI_BUTTON_DEVICE_NAME_LID

#define ACPI_BUTTON_DEVICE_NAME_LID   "Lid Switch"

Definition at line 107 of file acpi_drivers.h.

◆ ACPI_BUTTON_DEVICE_NAME_POWER

#define ACPI_BUTTON_DEVICE_NAME_POWER   "Power Button (CM)"

Definition at line 92 of file acpi_drivers.h.

◆ ACPI_BUTTON_DEVICE_NAME_POWERF

#define ACPI_BUTTON_DEVICE_NAME_POWERF   "Power Button (FF)"

Definition at line 93 of file acpi_drivers.h.

◆ ACPI_BUTTON_DEVICE_NAME_SLEEP

#define ACPI_BUTTON_DEVICE_NAME_SLEEP   "Sleep Button (CM)"

Definition at line 100 of file acpi_drivers.h.

◆ ACPI_BUTTON_DEVICE_NAME_SLEEPF

#define ACPI_BUTTON_DEVICE_NAME_SLEEPF   "Sleep Button (FF)"

Definition at line 101 of file acpi_drivers.h.

◆ ACPI_BUTTON_DRIVER_NAME

#define ACPI_BUTTON_DRIVER_NAME   "ACPI Button Driver"

Definition at line 82 of file acpi_drivers.h.

◆ ACPI_BUTTON_FILE_INFO

#define ACPI_BUTTON_FILE_INFO   "info"

Definition at line 84 of file acpi_drivers.h.

◆ ACPI_BUTTON_FILE_STATE

#define ACPI_BUTTON_FILE_STATE   "state"

Definition at line 85 of file acpi_drivers.h.

◆ ACPI_BUTTON_HID_LID

#define ACPI_BUTTON_HID_LID   "PNP0C0D"

Definition at line 106 of file acpi_drivers.h.

◆ ACPI_BUTTON_HID_POWER

#define ACPI_BUTTON_HID_POWER   "PNP0C0C"

Definition at line 90 of file acpi_drivers.h.

◆ ACPI_BUTTON_HID_POWERF

#define ACPI_BUTTON_HID_POWERF   "ACPI_FPB"

Definition at line 91 of file acpi_drivers.h.

◆ ACPI_BUTTON_HID_SLEEP

#define ACPI_BUTTON_HID_SLEEP   "PNP0C0E"

Definition at line 98 of file acpi_drivers.h.

◆ ACPI_BUTTON_HID_SLEEPF

#define ACPI_BUTTON_HID_SLEEPF   "ACPI_FSB"

Definition at line 99 of file acpi_drivers.h.

◆ ACPI_BUTTON_NOTIFY_STATUS

#define ACPI_BUTTON_NOTIFY_STATUS   0x80

Definition at line 87 of file acpi_drivers.h.

◆ ACPI_BUTTON_SUBCLASS_LID

#define ACPI_BUTTON_SUBCLASS_LID   "lid"

Definition at line 105 of file acpi_drivers.h.

◆ ACPI_BUTTON_SUBCLASS_POWER

#define ACPI_BUTTON_SUBCLASS_POWER   "power"

Definition at line 89 of file acpi_drivers.h.

◆ ACPI_BUTTON_SUBCLASS_SLEEP

#define ACPI_BUTTON_SUBCLASS_SLEEP   "sleep"

Definition at line 97 of file acpi_drivers.h.

◆ ACPI_BUTTON_TYPE_LID

#define ACPI_BUTTON_TYPE_LID   0x05

Definition at line 108 of file acpi_drivers.h.

◆ ACPI_BUTTON_TYPE_POWER

#define ACPI_BUTTON_TYPE_POWER   0x01

Definition at line 94 of file acpi_drivers.h.

◆ ACPI_BUTTON_TYPE_POWERF

#define ACPI_BUTTON_TYPE_POWERF   0x02

Definition at line 95 of file acpi_drivers.h.

◆ ACPI_BUTTON_TYPE_SLEEP

#define ACPI_BUTTON_TYPE_SLEEP   0x03

Definition at line 102 of file acpi_drivers.h.

◆ ACPI_BUTTON_TYPE_SLEEPF

#define ACPI_BUTTON_TYPE_SLEEPF   0x04

Definition at line 103 of file acpi_drivers.h.

◆ ACPI_BUTTON_TYPE_UNKNOWN

#define ACPI_BUTTON_TYPE_UNKNOWN   0x00

Definition at line 86 of file acpi_drivers.h.

◆ ACPI_DEBUG_DRIVERS

#define ACPI_DEBUG_DRIVERS   4

Definition at line 293 of file acpi_drivers.h.

◆ ACPI_DEBUG_HIGH

#define ACPI_DEBUG_HIGH   3

Definition at line 292 of file acpi_drivers.h.

◆ ACPI_DEBUG_LOW

#define ACPI_DEBUG_LOW   1

Definition at line 290 of file acpi_drivers.h.

◆ ACPI_DEBUG_MEDIUM

#define ACPI_DEBUG_MEDIUM   2

Definition at line 291 of file acpi_drivers.h.

◆ ACPI_DEBUG_RESTORE

#define ACPI_DEBUG_RESTORE   0

Definition at line 289 of file acpi_drivers.h.

◆ ACPI_EC_CLASS

#define ACPI_EC_CLASS   "embedded_controller"

Definition at line 118 of file acpi_drivers.h.

◆ ACPI_EC_COMPONENT

#define ACPI_EC_COMPONENT   0x00100000

Definition at line 117 of file acpi_drivers.h.

◆ ACPI_EC_DEVICE_NAME

#define ACPI_EC_DEVICE_NAME   "Embedded Controller"

Definition at line 121 of file acpi_drivers.h.

◆ ACPI_EC_DRIVER_NAME

#define ACPI_EC_DRIVER_NAME   "ACPI Embedded Controller Driver"

Definition at line 120 of file acpi_drivers.h.

◆ ACPI_EC_FILE_INFO

#define ACPI_EC_FILE_INFO   "info"

Definition at line 122 of file acpi_drivers.h.

◆ ACPI_EC_HID

#define ACPI_EC_HID   "PNP0C09"

Definition at line 119 of file acpi_drivers.h.

◆ ACPI_FAN_CLASS

#define ACPI_FAN_CLASS   "fan"

Definition at line 138 of file acpi_drivers.h.

◆ ACPI_FAN_COMPONENT

#define ACPI_FAN_COMPONENT   0x00200000

Definition at line 137 of file acpi_drivers.h.

◆ ACPI_FAN_DEVICE_NAME

#define ACPI_FAN_DEVICE_NAME   "Fan"

Definition at line 141 of file acpi_drivers.h.

◆ ACPI_FAN_DRIVER_NAME

#define ACPI_FAN_DRIVER_NAME   "ACPI Fan Driver"

Definition at line 140 of file acpi_drivers.h.

◆ ACPI_FAN_FILE_STATE

#define ACPI_FAN_FILE_STATE   "state"

Definition at line 142 of file acpi_drivers.h.

◆ ACPI_FAN_HID

#define ACPI_FAN_HID   "PNP0C0B"

Definition at line 139 of file acpi_drivers.h.

◆ ACPI_FAN_NOTIFY_STATUS

#define ACPI_FAN_NOTIFY_STATUS   0x80

Definition at line 143 of file acpi_drivers.h.

◆ ACPI_MAX_STRING

#define ACPI_MAX_STRING   80

Definition at line 29 of file acpi_drivers.h.

◆ ACPI_POWER_CLASS

#define ACPI_POWER_CLASS   "power_resource"

Definition at line 197 of file acpi_drivers.h.

◆ ACPI_POWER_COMPONENT

#define ACPI_POWER_COMPONENT   0x00800000

Definition at line 196 of file acpi_drivers.h.

◆ ACPI_POWER_DEVICE_NAME

#define ACPI_POWER_DEVICE_NAME   "Power Resource"

Definition at line 200 of file acpi_drivers.h.

◆ ACPI_POWER_DRIVER_NAME

#define ACPI_POWER_DRIVER_NAME   "ACPI Power Resource Driver"

Definition at line 199 of file acpi_drivers.h.

◆ ACPI_POWER_FILE_INFO

#define ACPI_POWER_FILE_INFO   "info"

Definition at line 201 of file acpi_drivers.h.

◆ ACPI_POWER_FILE_STATUS

#define ACPI_POWER_FILE_STATUS   "state"

Definition at line 202 of file acpi_drivers.h.

◆ ACPI_POWER_HID

#define ACPI_POWER_HID   "ACPI_PWR"

Definition at line 198 of file acpi_drivers.h.

◆ ACPI_POWER_RESOURCE_STATE_OFF

#define ACPI_POWER_RESOURCE_STATE_OFF   0x00

Definition at line 203 of file acpi_drivers.h.

◆ ACPI_POWER_RESOURCE_STATE_ON

#define ACPI_POWER_RESOURCE_STATE_ON   0x01

Definition at line 204 of file acpi_drivers.h.

◆ ACPI_POWER_RESOURCE_STATE_UNKNOWN

#define ACPI_POWER_RESOURCE_STATE_UNKNOWN   0xFF

Definition at line 205 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_CLASS

#define ACPI_PROCESSOR_CLASS   "processor"

Definition at line 220 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_COMPONENT

#define ACPI_PROCESSOR_COMPONENT   0x01000000

Definition at line 219 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_DEVICE_NAME

#define ACPI_PROCESSOR_DEVICE_NAME   "Processor"

Definition at line 223 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_DRIVER_NAME

#define ACPI_PROCESSOR_DRIVER_NAME   "ACPI Processor Driver"

Definition at line 222 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_FILE_INFO

#define ACPI_PROCESSOR_FILE_INFO   "info"

Definition at line 224 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_FILE_LIMIT

#define ACPI_PROCESSOR_FILE_LIMIT   "limit"

Definition at line 228 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_FILE_PERFORMANCE

#define ACPI_PROCESSOR_FILE_PERFORMANCE   "performance"

Definition at line 226 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_FILE_POWER

#define ACPI_PROCESSOR_FILE_POWER   "power"

Definition at line 225 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_FILE_THROTTLING

#define ACPI_PROCESSOR_FILE_THROTTLING   "throttling"

Definition at line 227 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_HID

#define ACPI_PROCESSOR_HID   "Processor"

Definition at line 221 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_LIMIT_DECREMENT

#define ACPI_PROCESSOR_LIMIT_DECREMENT   0x02

Definition at line 233 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_LIMIT_INCREMENT

#define ACPI_PROCESSOR_LIMIT_INCREMENT   0x01

Definition at line 232 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_LIMIT_NONE

#define ACPI_PROCESSOR_LIMIT_NONE   0x00

Definition at line 231 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_NOTIFY_PERFORMANCE

#define ACPI_PROCESSOR_NOTIFY_PERFORMANCE   0x80

Definition at line 229 of file acpi_drivers.h.

◆ ACPI_PROCESSOR_NOTIFY_POWER

#define ACPI_PROCESSOR_NOTIFY_POWER   0x81

Definition at line 230 of file acpi_drivers.h.

◆ ACPI_SYSTEM_CLASS

#define ACPI_SYSTEM_CLASS   "system"

Definition at line 243 of file acpi_drivers.h.

◆ ACPI_SYSTEM_COMPONENT

#define ACPI_SYSTEM_COMPONENT   0x02000000

Definition at line 242 of file acpi_drivers.h.

◆ ACPI_SYSTEM_DEVICE_NAME

#define ACPI_SYSTEM_DEVICE_NAME   "System"

Definition at line 246 of file acpi_drivers.h.

◆ ACPI_SYSTEM_DRIVER_NAME

#define ACPI_SYSTEM_DRIVER_NAME   "ACPI System Driver"

Definition at line 245 of file acpi_drivers.h.

◆ ACPI_SYSTEM_FILE_ALARM

#define ACPI_SYSTEM_FILE_ALARM   "alarm"

Definition at line 249 of file acpi_drivers.h.

◆ ACPI_SYSTEM_FILE_DEBUG_LAYER

#define ACPI_SYSTEM_FILE_DEBUG_LAYER   "debug_layer"

Definition at line 253 of file acpi_drivers.h.

◆ ACPI_SYSTEM_FILE_DEBUG_LEVEL

#define ACPI_SYSTEM_FILE_DEBUG_LEVEL   "debug_level"

Definition at line 254 of file acpi_drivers.h.

◆ ACPI_SYSTEM_FILE_DSDT

#define ACPI_SYSTEM_FILE_DSDT   "dsdt"

Definition at line 250 of file acpi_drivers.h.

◆ ACPI_SYSTEM_FILE_EVENT

#define ACPI_SYSTEM_FILE_EVENT   "event"

Definition at line 248 of file acpi_drivers.h.

◆ ACPI_SYSTEM_FILE_FADT

#define ACPI_SYSTEM_FILE_FADT   "fadt"

Definition at line 251 of file acpi_drivers.h.

◆ ACPI_SYSTEM_FILE_INFO

#define ACPI_SYSTEM_FILE_INFO   "info"

Definition at line 247 of file acpi_drivers.h.

◆ ACPI_SYSTEM_FILE_SLEEP

#define ACPI_SYSTEM_FILE_SLEEP   "sleep"

Definition at line 252 of file acpi_drivers.h.

◆ ACPI_SYSTEM_HID

#define ACPI_SYSTEM_HID   "ACPI_SYS"

Definition at line 244 of file acpi_drivers.h.

◆ ACPI_THERMAL_CLASS

#define ACPI_THERMAL_CLASS   "thermal_zone"

Definition at line 265 of file acpi_drivers.h.

◆ ACPI_THERMAL_COMPONENT

#define ACPI_THERMAL_COMPONENT   0x04000000

Definition at line 264 of file acpi_drivers.h.

◆ ACPI_THERMAL_DEVICE_NAME

#define ACPI_THERMAL_DEVICE_NAME   "Thermal Zone"

Definition at line 268 of file acpi_drivers.h.

◆ ACPI_THERMAL_DRIVER_NAME

#define ACPI_THERMAL_DRIVER_NAME   "ACPI Thermal Zone Driver"

Definition at line 267 of file acpi_drivers.h.

◆ ACPI_THERMAL_FILE_COOLING_MODE

#define ACPI_THERMAL_FILE_COOLING_MODE   "cooling_mode"

Definition at line 272 of file acpi_drivers.h.

◆ ACPI_THERMAL_FILE_POLLING_FREQ

#define ACPI_THERMAL_FILE_POLLING_FREQ   "polling_frequency"

Definition at line 273 of file acpi_drivers.h.

◆ ACPI_THERMAL_FILE_STATE

#define ACPI_THERMAL_FILE_STATE   "state"

Definition at line 269 of file acpi_drivers.h.

◆ ACPI_THERMAL_FILE_TEMPERATURE

#define ACPI_THERMAL_FILE_TEMPERATURE   "temperature"

Definition at line 270 of file acpi_drivers.h.

◆ ACPI_THERMAL_FILE_TRIP_POINTS

#define ACPI_THERMAL_FILE_TRIP_POINTS   "trip_points"

Definition at line 271 of file acpi_drivers.h.

◆ ACPI_THERMAL_HID

#define ACPI_THERMAL_HID   "ThermalZone"

Definition at line 266 of file acpi_drivers.h.

◆ ACPI_THERMAL_MODE_ACTIVE

#define ACPI_THERMAL_MODE_ACTIVE   0x00

Definition at line 279 of file acpi_drivers.h.

◆ ACPI_THERMAL_MODE_PASSIVE

#define ACPI_THERMAL_MODE_PASSIVE   0x01

Definition at line 280 of file acpi_drivers.h.

◆ ACPI_THERMAL_NOTIFY_CRITICAL

#define ACPI_THERMAL_NOTIFY_CRITICAL   0xF0

Definition at line 277 of file acpi_drivers.h.

◆ ACPI_THERMAL_NOTIFY_DEVICES

#define ACPI_THERMAL_NOTIFY_DEVICES   0x82

Definition at line 276 of file acpi_drivers.h.

◆ ACPI_THERMAL_NOTIFY_HOT

#define ACPI_THERMAL_NOTIFY_HOT   0xF1

Definition at line 278 of file acpi_drivers.h.

◆ ACPI_THERMAL_NOTIFY_TEMPERATURE

#define ACPI_THERMAL_NOTIFY_TEMPERATURE   0x80

Definition at line 274 of file acpi_drivers.h.

◆ ACPI_THERMAL_NOTIFY_THRESHOLDS

#define ACPI_THERMAL_NOTIFY_THRESHOLDS   0x81

Definition at line 275 of file acpi_drivers.h.

◆ ACPI_THERMAL_PATH_POWEROFF

#define ACPI_THERMAL_PATH_POWEROFF   "/sbin/poweroff"

Definition at line 281 of file acpi_drivers.h.

Function Documentation

◆ acpi_button_exit()

void acpi_button_exit ( void  )

Definition at line 314 of file button.c.

315{
316 ACPI_FUNCTION_TRACE("acpi_button_exit");
317
319
321}
#define ACPI_FUNCTION_TRACE(a)
Definition: acoutput.h:480
#define return_VOID
Definition: acoutput.h:495
void acpi_bus_unregister_driver(struct acpi_driver *driver)
Definition: bus.c:1056
static struct acpi_driver acpi_button_driver
Definition: button.c:38

◆ acpi_button_init()

int acpi_button_init ( void  )

Definition at line 298 of file button.c.

299{
300 int result = 0;
301
302 ACPI_FUNCTION_TRACE("acpi_button_init");
303
305 if (result < 0) {
306 return_VALUE(-15);
307 }
308
309 return_VALUE(0);
310}
#define return_VALUE(s)
Definition: acoutput.h:499
int acpi_bus_register_driver(struct acpi_driver *driver)
Definition: bus.c:1029
GLuint64EXT * result
Definition: glext.h:11304

Referenced by acpi_init().

◆ acpi_motherboard_init()

int acpi_motherboard_init ( void  )

◆ acpi_power_exit()

void acpi_power_exit ( void  )

◆ acpi_power_get_inferred_state()

int acpi_power_get_inferred_state ( struct acpi_device device)

Definition at line 444 of file power.c.

446{
447 int result = 0;
448 struct acpi_handle_list *list = NULL;
449 int list_state = 0;
450 int i = 0;
451
452
453 if (!device)
454 return_VALUE(-1);
455
456 device->power.state = ACPI_STATE_UNKNOWN;
457
458 /*
459 * We know a device's inferred power state when all the resources
460 * required for a given D-state are 'on'.
461 */
462 for (i=ACPI_STATE_D0; i<ACPI_STATE_D3; i++) {
463 list = &device->power.states[i].resources;
464 if (list->count < 1)
465 continue;
466
467 result = acpi_power_get_list_state(list, &list_state);
468 if (result)
470
471 if (list_state == ACPI_POWER_RESOURCE_STATE_ON) {
472 device->power.state = i;
473 return_VALUE(0);
474 }
475 }
476
477 device->power.state = ACPI_STATE_D3;
478
479 return_VALUE(0);
480}
#define ACPI_STATE_D0
Definition: actypes.h:633
#define ACPI_STATE_D3
Definition: actypes.h:636
#define ACPI_STATE_UNKNOWN
Definition: actypes.h:622
Definition: list.h:37
#define NULL
Definition: types.h:112
#define ACPI_POWER_RESOURCE_STATE_ON
Definition: power.c:52
static int acpi_power_get_list_state(struct acpi_handle_list *list, int *state)
Definition: power.c:150
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
Definition: glfuncs.h:248
Definition: devices.h:37

Referenced by acpi_bus_get_power().

◆ acpi_power_init()

int acpi_power_init ( void  )

Definition at line 660 of file power.c.

661{
662 int result = 0;
663
664 DPRINT("acpi_power_init\n");
665
667
668
670 if (result < 0) {
671 return_VALUE(-15);
672 }
673
674 return_VALUE(0);
675}
static struct acpi_driver acpi_power_driver
Definition: power.c:61
static struct list_head acpi_power_resource_list
Definition: power.c:86
#define INIT_LIST_HEAD(ptr)
Definition: list.h:24
#define DPRINT
Definition: sndvol32.h:73

Referenced by acpi_init().

◆ acpi_power_transition()

int acpi_power_transition ( struct acpi_device device,
int  state 
)

Definition at line 484 of file power.c.

487{
488 int result = 0;
489 struct acpi_handle_list *cl = NULL; /* Current Resources */
490 struct acpi_handle_list *tl = NULL; /* Target Resources */
491 unsigned int i = 0;
492
493 if (!device || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3))
494 return_VALUE(-1);
495
496 if ((device->power.state < ACPI_STATE_D0) || (device->power.state > ACPI_STATE_D3))
497 return_VALUE(-15);
498
499 cl = &device->power.states[device->power.state].resources;
500 tl = &device->power.states[state].resources;
501
502 /* TBD: Resources must be ordered. */
503
504 /*
505 * First we reference all power resources required in the target list
506 * (e.g. so the device doesn't lose power while transitioning).
507 */
508 for (i = 0; i < tl->count; i++) {
510 if (result)
511 goto end;
512 }
513
514 if (device->power.state == state) {
515 goto end;
516 }
517
518 /*
519 * Then we dereference all power resources used in the current list.
520 */
521 for (i = 0; i < cl->count; i++) {
523 if (result)
524 goto end;
525 }
526
527 end:
528 if (result)
529 device->power.state = ACPI_STATE_UNKNOWN;
530 else {
531 /* We shouldn't change the state till all above operations succeed */
532 device->power.state = state;
533 }
534
535 return result;
536}
static int state
Definition: maze.c:121
static int acpi_power_on(ACPI_HANDLE handle, struct acpi_device *dev)
Definition: power.c:186
static int acpi_power_off_device(ACPI_HANDLE handle, struct acpi_device *dev)
Definition: power.c:237
GLuint GLuint end
Definition: gl.h:1545
UINT32 count
Definition: acpi_bus.h:37
ACPI_HANDLE handles[ACPI_MAX_HANDLES]
Definition: acpi_bus.h:38

Referenced by acpi_bus_set_power().

◆ acpi_processor_set_thermal_limit()

int acpi_processor_set_thermal_limit ( ACPI_HANDLE  handle,
int  type 
)

◆ acpi_set_debug()

static void acpi_set_debug ( UINT32  flag)
inlinestatic

Definition at line 299 of file acpi_drivers.h.

301{
302 static UINT32 layer_save;
303 static UINT32 level_save;
304
305 switch (flag) {
307 acpi_dbg_layer = layer_save;
308 acpi_dbg_level = level_save;
309 break;
310 case ACPI_DEBUG_LOW:
312 case ACPI_DEBUG_HIGH:
314 layer_save = acpi_dbg_layer;
315 level_save = acpi_dbg_level;
316 break;
317 }
318
319 switch (flag) {
320 case ACPI_DEBUG_LOW:
323 break;
327 break;
328 case ACPI_DEBUG_HIGH:
329 acpi_dbg_layer = 0xFFFFFFFF;
330 acpi_dbg_level = 0xFFFFFFFF;
331 break;
334 acpi_dbg_level = 0xFFFFFFFF;
335 break;
336 }
337}
unsigned int UINT32
#define ACPI_ALL_DRIVERS
Definition: acoutput.h:82
#define ACPI_DEBUG_DEFAULT
Definition: acoutput.h:189
#define ACPI_COMPONENT_DEFAULT
Definition: acoutput.h:78
#define ACPI_LV_ALL_EXCEPTIONS
Definition: acoutput.h:93
#define ACPI_LV_FUNCTIONS
Definition: acoutput.h:117
#define ACPI_DEBUG_HIGH
Definition: acpi_drivers.h:292
#define ACPI_DEBUG_LOW
Definition: acpi_drivers.h:290
UINT32 acpi_dbg_layer
#define ACPI_DEBUG_MEDIUM
Definition: acpi_drivers.h:291
#define ACPI_DEBUG_DRIVERS
Definition: acpi_drivers.h:293
#define ACPI_DEBUG_RESTORE
Definition: acpi_drivers.h:289
UINT32 acpi_dbg_level
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 flag
Definition: glfuncs.h:52

◆ acpi_system_exit()

void acpi_system_exit ( void  )

Definition at line 414 of file system.c.

415{
416 ACPI_FUNCTION_TRACE("acpi_system_exit");
419}
static struct acpi_driver acpi_system_driver
Definition: system.c:47

Referenced by acpi_bus_exit().

◆ acpi_system_init()

int acpi_system_init ( void  )

Definition at line 399 of file system.c.

400{
401 int result = 0;
402
403 ACPI_FUNCTION_TRACE("acpi_system_init");
404
406 if (result < 0)
408
409 return_VALUE(0);
410}
#define AE_NOT_FOUND
Definition: acexcep.h:113

Referenced by acpi_init().

Variable Documentation

◆ acpi_dbg_layer

UINT32 acpi_dbg_layer
extern

Referenced by acpi_set_debug().

◆ acpi_dbg_level

UINT32 acpi_dbg_level
extern

Referenced by acpi_set_debug().