Merge branch 'acpica-gpe' into release
This commit is contained in:
@@ -71,8 +71,9 @@
|
||||
#define ACPI_TOOLS 0x00002000
|
||||
#define ACPI_EXAMPLE 0x00004000
|
||||
#define ACPI_DRIVER 0x00008000
|
||||
#define DT_COMPILER 0x00010000
|
||||
|
||||
#define ACPI_ALL_COMPONENTS 0x0000FFFF
|
||||
#define ACPI_ALL_COMPONENTS 0x0001FFFF
|
||||
#define ACPI_COMPONENT_DEFAULT (ACPI_ALL_COMPONENTS)
|
||||
|
||||
/* Component IDs reserved for ACPI drivers */
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
/* Current ACPICA subsystem version in YYYYMMDD format */
|
||||
|
||||
#define ACPI_CA_VERSION 0x20100428
|
||||
#define ACPI_CA_VERSION 0x20100702
|
||||
|
||||
#include "actypes.h"
|
||||
#include "actbl.h"
|
||||
@@ -63,7 +63,6 @@ extern u32 acpi_dbg_layer;
|
||||
extern u8 acpi_gbl_enable_interpreter_slack;
|
||||
extern u8 acpi_gbl_all_methods_serialized;
|
||||
extern u8 acpi_gbl_create_osi_method;
|
||||
extern u8 acpi_gbl_leave_wake_gpes_disabled;
|
||||
extern u8 acpi_gbl_use_default_register_widths;
|
||||
extern acpi_name acpi_gbl_trace_method_name;
|
||||
extern u32 acpi_gbl_trace_flags;
|
||||
@@ -282,16 +281,16 @@ acpi_status acpi_get_event_status(u32 event, acpi_event_status * event_status);
|
||||
/*
|
||||
* GPE Interfaces
|
||||
*/
|
||||
acpi_status acpi_set_gpe(acpi_handle gpe_device, u32 gpe_number, u8 action);
|
||||
acpi_status acpi_enable_gpe(acpi_handle gpe_device, u32 gpe_number);
|
||||
|
||||
acpi_status
|
||||
acpi_enable_gpe(acpi_handle gpe_device, u32 gpe_number, u8 gpe_type);
|
||||
acpi_status acpi_disable_gpe(acpi_handle gpe_device, u32 gpe_number);
|
||||
|
||||
acpi_status
|
||||
acpi_disable_gpe(acpi_handle gpe_device, u32 gpe_number, u8 gpe_type);
|
||||
acpi_status acpi_gpe_can_wake(acpi_handle gpe_device, u32 gpe_number);
|
||||
|
||||
acpi_status acpi_clear_gpe(acpi_handle gpe_device, u32 gpe_number);
|
||||
|
||||
acpi_status acpi_gpe_wakeup(acpi_handle gpe_device, u32 gpe_number, u8 action);
|
||||
|
||||
acpi_status
|
||||
acpi_get_gpe_status(acpi_handle gpe_device,
|
||||
u32 gpe_number, acpi_event_status *event_status);
|
||||
|
||||
@@ -77,8 +77,18 @@
|
||||
#define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
|
||||
#define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
|
||||
#define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
|
||||
#define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
|
||||
#define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
|
||||
|
||||
#ifdef ACPI_UNDEFINED_TABLES
|
||||
/*
|
||||
* These tables have been seen in the field, but no definition has been found
|
||||
*/
|
||||
#define ACPI_SIG_ATKG "ATKG"
|
||||
#define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
|
||||
#define ACPI_SIG_IEIT "IEIT"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* All tables must be byte-packed to match the ACPI specification, since
|
||||
* the tables are provided by the system BIOS.
|
||||
@@ -907,6 +917,44 @@ enum acpi_wdat_instructions {
|
||||
ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
|
||||
};
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* WDDT - Watchdog Descriptor Table
|
||||
* Version 1
|
||||
*
|
||||
* Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
|
||||
* Version 001, September 2002
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
struct acpi_table_wddt {
|
||||
struct acpi_table_header header; /* Common ACPI table header */
|
||||
u16 spec_version;
|
||||
u16 table_version;
|
||||
u16 pci_vendor_id;
|
||||
struct acpi_generic_address address;
|
||||
u16 max_count; /* Maximum counter value supported */
|
||||
u16 min_count; /* Minimum counter value supported */
|
||||
u16 period;
|
||||
u16 status;
|
||||
u16 capability;
|
||||
};
|
||||
|
||||
/* Flags for Status field above */
|
||||
|
||||
#define ACPI_WDDT_AVAILABLE (1)
|
||||
#define ACPI_WDDT_ACTIVE (1<<1)
|
||||
#define ACPI_WDDT_TCO_OS_OWNED (1<<2)
|
||||
#define ACPI_WDDT_USER_RESET (1<<11)
|
||||
#define ACPI_WDDT_WDT_RESET (1<<12)
|
||||
#define ACPI_WDDT_POWER_FAIL (1<<13)
|
||||
#define ACPI_WDDT_UNKNOWN_RESET (1<<14)
|
||||
|
||||
/* Flags for Capability field above */
|
||||
|
||||
#define ACPI_WDDT_AUTO_RESET (1)
|
||||
#define ACPI_WDDT_ALERT_SUPPORT (1<<1)
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* WDRT - Watchdog Resource Table
|
||||
|
||||
@@ -663,18 +663,12 @@ typedef u32 acpi_event_status;
|
||||
#define ACPI_GPE_MAX 0xFF
|
||||
#define ACPI_NUM_GPE 256
|
||||
|
||||
/* Actions for acpi_set_gpe and acpi_hw_low_set_gpe */
|
||||
/* Actions for acpi_gpe_wakeup, acpi_hw_low_set_gpe */
|
||||
|
||||
#define ACPI_GPE_ENABLE 0
|
||||
#define ACPI_GPE_DISABLE 1
|
||||
#define ACPI_GPE_COND_ENABLE 2
|
||||
|
||||
/* gpe_types for acpi_enable_gpe and acpi_disable_gpe */
|
||||
|
||||
#define ACPI_GPE_TYPE_WAKE (u8) 0x01
|
||||
#define ACPI_GPE_TYPE_RUNTIME (u8) 0x02
|
||||
#define ACPI_GPE_TYPE_WAKE_RUN (u8) 0x03
|
||||
|
||||
/*
|
||||
* GPE info flags - Per GPE
|
||||
* +-------+---+-+-+
|
||||
|
||||
Reference in New Issue
Block a user