36 #include <linux/list.h>
45 enum acpi_irq_model_id {
46 ACPI_IRQ_MODEL_PIC = 0,
47 ACPI_IRQ_MODEL_IOAPIC,
48 ACPI_IRQ_MODEL_IOSAPIC,
49 ACPI_IRQ_MODEL_PLATFORM,
55 enum acpi_interrupt_id {
56 ACPI_INTERRUPT_PMI = 1,
62 #define ACPI_SPACE_MEM 0
64 enum acpi_address_range_id {
65 ACPI_ADDRESS_RANGE_MEMORY = 1,
66 ACPI_ADDRESS_RANGE_RESERVED = 2,
67 ACPI_ADDRESS_RANGE_ACPI = 3,
68 ACPI_ADDRESS_RANGE_NVS = 4,
69 ACPI_ADDRESS_RANGE_COUNT
90 int entry_id, acpi_table_entry_handler handler,
unsigned int max_entries);
102 #ifdef CONFIG_ACPI_HOTPLUG_CPU
105 int acpi_unmap_lsapic(
int cpu);
121 #ifdef CONFIG_X86_IO_APIC
124 #define acpi_get_override_irq(gsi, trigger, polarity) (-1)
140 struct acpi_pci_driver {
143 void (*
remove)(
struct acpi_pci_root *
root);
152 const u8 *wdata,
unsigned wdata_len,
153 u8 *rdata,
unsigned rdata_len);
156 #if defined(CONFIG_ACPI_WMI) || defined(CONFIG_ACPI_WMI_MODULE)
169 wmi_notify_handler handler,
void *
data);
176 #define ACPI_VIDEO_OUTPUT_SWITCHING 0x0001
177 #define ACPI_VIDEO_DEVICE_POSTING 0x0002
178 #define ACPI_VIDEO_ROM_AVAILABLE 0x0004
179 #define ACPI_VIDEO_BACKLIGHT 0x0008
180 #define ACPI_VIDEO_BACKLIGHT_FORCE_VENDOR 0x0010
181 #define ACPI_VIDEO_BACKLIGHT_FORCE_VIDEO 0x0020
182 #define ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VENDOR 0x0040
183 #define ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VIDEO 0x0080
184 #define ACPI_VIDEO_BACKLIGHT_DMI_VENDOR 0x0100
185 #define ACPI_VIDEO_BACKLIGHT_DMI_VIDEO 0x0200
186 #define ACPI_VIDEO_OUTPUT_SWITCHING_DMI_VENDOR 0x0400
187 #define ACPI_VIDEO_OUTPUT_SWITCHING_DMI_VIDEO 0x0800
189 #if defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE)
196 extern int acpi_video_display_switch_support(
void);
223 static inline int acpi_video_display_switch_support(
void)
234 #ifdef CONFIG_ACPI_NUMA
249 extern int pnpacpi_disabled;
251 #define PXM_INVAL (-1)
260 #ifdef CONFIG_PM_SLEEP
261 void __init acpi_no_s4_hw_signature(
void);
262 void __init acpi_old_suspend_ordering(
void);
263 void __init acpi_nvs_nosave(
void);
266 struct acpi_osc_context {
273 #define OSC_QUERY_TYPE 0
274 #define OSC_SUPPORT_TYPE 1
275 #define OSC_CONTROL_TYPE 2
278 #define OSC_QUERY_ENABLE 1
279 #define OSC_REQUEST_ERROR 2
280 #define OSC_INVALID_UUID_ERROR 4
281 #define OSC_INVALID_REVISION_ERROR 8
282 #define OSC_CAPABILITIES_MASK_ERROR 16
287 #define OSC_SB_PAD_SUPPORT 1
288 #define OSC_SB_PPC_OST_SUPPORT 2
289 #define OSC_SB_PR3_SUPPORT 4
290 #define OSC_SB_HOTPLUG_OST_SUPPORT 8
291 #define OSC_SB_APEI_SUPPORT 16
297 #define OSC_EXT_PCI_CONFIG_SUPPORT 1
298 #define OSC_ACTIVE_STATE_PWR_SUPPORT 2
299 #define OSC_CLOCK_PWR_CAPABILITY_SUPPORT 4
300 #define OSC_PCI_SEGMENT_GROUPS_SUPPORT 8
301 #define OSC_MSI_SUPPORT 16
302 #define OSC_PCI_SUPPORT_MASKS 0x1f
305 #define OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 1
306 #define OSC_SHPC_NATIVE_HP_CONTROL 2
307 #define OSC_PCI_EXPRESS_PME_CONTROL 4
308 #define OSC_PCI_EXPRESS_AER_CONTROL 8
309 #define OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 16
311 #define OSC_PCI_CONTROL_MASKS (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \
312 OSC_SHPC_NATIVE_HP_CONTROL | \
313 OSC_PCI_EXPRESS_PME_CONTROL | \
314 OSC_PCI_EXPRESS_AER_CONTROL | \
315 OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL)
317 #define OSC_PCI_NATIVE_HOTPLUG (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \
318 OSC_SHPC_NATIVE_HP_CONTROL)
324 #if defined(CONFIG_ACPI_HOTPLUG_CPU) && \
325 (defined(CONFIG_ACPI_HOTPLUG_MEMORY) || \
326 defined(CONFIG_ACPI_HOTPLUG_MEMORY_MODULE)) && \
327 (defined(CONFIG_ACPI_CONTAINER) || \
328 defined(CONFIG_ACPI_CONTAINER_MODULE))
329 #define ACPI_HOTPLUG_OST
333 #define ACPI_OST_EC_OSPM_SHUTDOWN 0x100
334 #define ACPI_OST_EC_OSPM_EJECT 0x103
335 #define ACPI_OST_EC_OSPM_INSERTION 0x200
338 #define ACPI_OST_SC_SUCCESS 0x0
339 #define ACPI_OST_SC_NON_SPECIFIC_FAILURE 0x1
340 #define ACPI_OST_SC_UNRECOGNIZED_NOTIFY 0x2
343 #define ACPI_OST_SC_OS_SHUTDOWN_DENIED 0x80
344 #define ACPI_OST_SC_OS_SHUTDOWN_IN_PROGRESS 0x81
345 #define ACPI_OST_SC_OS_SHUTDOWN_COMPLETED 0x82
346 #define ACPI_OST_SC_OS_SHUTDOWN_NOT_SUPPORTED 0x83
349 #define ACPI_OST_SC_EJECT_NOT_SUPPORTED 0x80
350 #define ACPI_OST_SC_DEVICE_IN_USE 0x81
351 #define ACPI_OST_SC_DEVICE_BUSY 0x82
352 #define ACPI_OST_SC_EJECT_DEPENDENCY_BUSY 0x83
353 #define ACPI_OST_SC_EJECT_IN_PROGRESS 0x84
356 #define ACPI_OST_SC_INSERT_IN_PROGRESS 0x80
357 #define ACPI_OST_SC_DRIVER_LOAD_FAILURE 0x81
358 #define ACPI_OST_SC_INSERT_NOT_SUPPORTED 0x82
369 #define acpi_disabled 1
425 u32 pm1a_ctrl,
u32 pm1b_ctrl));
428 u32 pm1a_control,
u32 pm1b_control);
430 #define acpi_os_set_prepare_sleep(func, pm1a_ctrl, pm1b_ctrl) do { } while (0)