aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2010-08-15 00:25:40 -0400
committerLen Brown <len.brown@intel.com>2010-08-15 00:25:40 -0400
commitc172cb73bc79fe69915b1a1a48e374aa4b1f8a59 (patch)
treeeb3d6415914968441c063f7282e824b14b5a5edb /include
parente8eb6228094bcf0c84d9aa32b6363e78da68e1f5 (diff)
parent28f4f8a9def2b1f3a6066bae791c77043ec49524 (diff)
Merge branch 'acpica-gpe' into release
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acoutput.h3
-rw-r--r--include/acpi/acpixf.h13
-rw-r--r--include/acpi/actbl2.h48
-rw-r--r--include/acpi/actypes.h8
4 files changed, 57 insertions, 15 deletions
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h
index 5e952262d6ee..bc4a6deb73b0 100644
--- a/include/acpi/acoutput.h
+++ b/include/acpi/acoutput.h
@@ -71,8 +71,9 @@
71#define ACPI_TOOLS 0x00002000 71#define ACPI_TOOLS 0x00002000
72#define ACPI_EXAMPLE 0x00004000 72#define ACPI_EXAMPLE 0x00004000
73#define ACPI_DRIVER 0x00008000 73#define ACPI_DRIVER 0x00008000
74#define DT_COMPILER 0x00010000
74 75
75#define ACPI_ALL_COMPONENTS 0x0000FFFF 76#define ACPI_ALL_COMPONENTS 0x0001FFFF
76#define ACPI_COMPONENT_DEFAULT (ACPI_ALL_COMPONENTS) 77#define ACPI_COMPONENT_DEFAULT (ACPI_ALL_COMPONENTS)
77 78
78/* Component IDs reserved for ACPI drivers */ 79/* Component IDs reserved for ACPI drivers */
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index a6ea2ac40b9c..c0786d446a00 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -47,7 +47,7 @@
47 47
48/* Current ACPICA subsystem version in YYYYMMDD format */ 48/* Current ACPICA subsystem version in YYYYMMDD format */
49 49
50#define ACPI_CA_VERSION 0x20100428 50#define ACPI_CA_VERSION 0x20100702
51 51
52#include "actypes.h" 52#include "actypes.h"
53#include "actbl.h" 53#include "actbl.h"
@@ -63,7 +63,6 @@ extern u32 acpi_dbg_layer;
63extern u8 acpi_gbl_enable_interpreter_slack; 63extern u8 acpi_gbl_enable_interpreter_slack;
64extern u8 acpi_gbl_all_methods_serialized; 64extern u8 acpi_gbl_all_methods_serialized;
65extern u8 acpi_gbl_create_osi_method; 65extern u8 acpi_gbl_create_osi_method;
66extern u8 acpi_gbl_leave_wake_gpes_disabled;
67extern u8 acpi_gbl_use_default_register_widths; 66extern u8 acpi_gbl_use_default_register_widths;
68extern acpi_name acpi_gbl_trace_method_name; 67extern acpi_name acpi_gbl_trace_method_name;
69extern u32 acpi_gbl_trace_flags; 68extern u32 acpi_gbl_trace_flags;
@@ -282,16 +281,16 @@ acpi_status acpi_get_event_status(u32 event, acpi_event_status * event_status);
282/* 281/*
283 * GPE Interfaces 282 * GPE Interfaces
284 */ 283 */
285acpi_status acpi_set_gpe(acpi_handle gpe_device, u32 gpe_number, u8 action); 284acpi_status acpi_enable_gpe(acpi_handle gpe_device, u32 gpe_number);
286 285
287acpi_status 286acpi_status acpi_disable_gpe(acpi_handle gpe_device, u32 gpe_number);
288acpi_enable_gpe(acpi_handle gpe_device, u32 gpe_number, u8 gpe_type);
289 287
290acpi_status 288acpi_status acpi_gpe_can_wake(acpi_handle gpe_device, u32 gpe_number);
291acpi_disable_gpe(acpi_handle gpe_device, u32 gpe_number, u8 gpe_type);
292 289
293acpi_status acpi_clear_gpe(acpi_handle gpe_device, u32 gpe_number); 290acpi_status acpi_clear_gpe(acpi_handle gpe_device, u32 gpe_number);
294 291
292acpi_status acpi_gpe_wakeup(acpi_handle gpe_device, u32 gpe_number, u8 action);
293
295acpi_status 294acpi_status
296acpi_get_gpe_status(acpi_handle gpe_device, 295acpi_get_gpe_status(acpi_handle gpe_device,
297 u32 gpe_number, acpi_event_status *event_status); 296 u32 gpe_number, acpi_event_status *event_status);
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index 95f4d0ef4819..d4136b28011f 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -77,8 +77,18 @@
77#define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */ 77#define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
78#define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */ 78#define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
79#define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */ 79#define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
80#define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
80#define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ 81#define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
81 82
83#ifdef ACPI_UNDEFINED_TABLES
84/*
85 * These tables have been seen in the field, but no definition has been found
86 */
87#define ACPI_SIG_ATKG "ATKG"
88#define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
89#define ACPI_SIG_IEIT "IEIT"
90#endif
91
82/* 92/*
83 * All tables must be byte-packed to match the ACPI specification, since 93 * All tables must be byte-packed to match the ACPI specification, since
84 * the tables are provided by the system BIOS. 94 * the tables are provided by the system BIOS.
@@ -909,6 +919,44 @@ enum acpi_wdat_instructions {
909 919
910/******************************************************************************* 920/*******************************************************************************
911 * 921 *
922 * WDDT - Watchdog Descriptor Table
923 * Version 1
924 *
925 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
926 * Version 001, September 2002
927 *
928 ******************************************************************************/
929
930struct acpi_table_wddt {
931 struct acpi_table_header header; /* Common ACPI table header */
932 u16 spec_version;
933 u16 table_version;
934 u16 pci_vendor_id;
935 struct acpi_generic_address address;
936 u16 max_count; /* Maximum counter value supported */
937 u16 min_count; /* Minimum counter value supported */
938 u16 period;
939 u16 status;
940 u16 capability;
941};
942
943/* Flags for Status field above */
944
945#define ACPI_WDDT_AVAILABLE (1)
946#define ACPI_WDDT_ACTIVE (1<<1)
947#define ACPI_WDDT_TCO_OS_OWNED (1<<2)
948#define ACPI_WDDT_USER_RESET (1<<11)
949#define ACPI_WDDT_WDT_RESET (1<<12)
950#define ACPI_WDDT_POWER_FAIL (1<<13)
951#define ACPI_WDDT_UNKNOWN_RESET (1<<14)
952
953/* Flags for Capability field above */
954
955#define ACPI_WDDT_AUTO_RESET (1)
956#define ACPI_WDDT_ALERT_SUPPORT (1<<1)
957
958/*******************************************************************************
959 *
912 * WDRT - Watchdog Resource Table 960 * WDRT - Watchdog Resource Table
913 * Version 1 961 * Version 1
914 * 962 *
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index d55f4a7b824d..5db8f472fec9 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -663,18 +663,12 @@ typedef u32 acpi_event_status;
663#define ACPI_GPE_MAX 0xFF 663#define ACPI_GPE_MAX 0xFF
664#define ACPI_NUM_GPE 256 664#define ACPI_NUM_GPE 256
665 665
666/* Actions for acpi_set_gpe and acpi_hw_low_set_gpe */ 666/* Actions for acpi_gpe_wakeup, acpi_hw_low_set_gpe */
667 667
668#define ACPI_GPE_ENABLE 0 668#define ACPI_GPE_ENABLE 0
669#define ACPI_GPE_DISABLE 1 669#define ACPI_GPE_DISABLE 1
670#define ACPI_GPE_COND_ENABLE 2 670#define ACPI_GPE_COND_ENABLE 2
671 671
672/* gpe_types for acpi_enable_gpe and acpi_disable_gpe */
673
674#define ACPI_GPE_TYPE_WAKE (u8) 0x01
675#define ACPI_GPE_TYPE_RUNTIME (u8) 0x02
676#define ACPI_GPE_TYPE_WAKE_RUN (u8) 0x03
677
678/* 672/*
679 * GPE info flags - Per GPE 673 * GPE info flags - Per GPE
680 * +-------+---+-+-+ 674 * +-------+---+-+-+