mirror of
https://github.com/acpica/acpica/
synced 2025-01-15 22:09:17 +03:00
Update for GPE flags
date 2004.04.27.17.56.00; author rmoore1; state Exp;
This commit is contained in:
parent
66169d36ee
commit
3c23bb9b10
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: actypes.h - Common data types for the entire ACPI subsystem
|
||||
* $Revision: 1.268 $
|
||||
* $Revision: 1.269 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -636,47 +636,56 @@ typedef UINT32 ACPI_EVENT_STATUS;
|
||||
#define ACPI_GPE_MAX 0xFF
|
||||
#define ACPI_NUM_GPE 256
|
||||
|
||||
#define ACPI_GPE_ENABLE 0
|
||||
#define ACPI_GPE_DISABLE 1
|
||||
|
||||
|
||||
/*
|
||||
* GPE info flags - Per GPE
|
||||
* +-+---+-+---+-+-+
|
||||
* |7|6:5|4|3:2|1|0|
|
||||
* +-+---+-+---+-+-+
|
||||
* | | | | | |
|
||||
* | | | | | +--- Interrupt type: Edge or Level Triggered
|
||||
* | | | | +--- Enabled for wake?
|
||||
* | | | +----- Type: Wake-only, Runtime-only, or wake/runtime
|
||||
* | | +--- System state when GPE ocurred (running/waking)
|
||||
* | +--- Type of dispatch -- to method, handler, or none
|
||||
* +--- <Reserved>
|
||||
* +-+-+-+---+---+-+
|
||||
* |7|6|5|4:3|2:1|0|
|
||||
* +-+-+-+---+---+-+
|
||||
* | | | | | |
|
||||
* | | | | | +--- Interrupt type: Edge or Level Triggered
|
||||
* | | | | +--- Type: Wake-only, Runtime-only, or wake/runtime
|
||||
* | | | +--- Type of dispatch -- to method, handler, or none
|
||||
* | | +--- Enabled for runtime?
|
||||
* | +--- Enabled for wake?
|
||||
* +--- System state when GPE ocurred (running/waking)
|
||||
*/
|
||||
#define ACPI_GPE_XRUPT_TYPE_MASK (UINT8) 0x01
|
||||
#define ACPI_GPE_LEVEL_TRIGGERED (UINT8) 0x01
|
||||
#define ACPI_GPE_EDGE_TRIGGERED (UINT8) 0x00
|
||||
|
||||
#define ACPI_GPE_WAKE_ENABLE_MASK (UINT8) 0x02
|
||||
#define ACPI_GPE_WAKE_ENABLED (UINT8) 0x02
|
||||
#define ACPI_GPE_WAKE_DISABLED (UINT8) 0x00 /* Default */
|
||||
#define ACPI_GPE_TYPE_MASK (UINT8) 0x06
|
||||
#define ACPI_GPE_TYPE_WAKE_RUN (UINT8) 0x06
|
||||
#define ACPI_GPE_TYPE_WAKE (UINT8) 0x02
|
||||
#define ACPI_GPE_TYPE_RUNTIME (UINT8) 0x04 /* Default */
|
||||
|
||||
#define ACPI_GPE_TYPE_MASK (UINT8) 0x0C
|
||||
#define ACPI_GPE_TYPE_WAKE_RUN (UINT8) 0x0C
|
||||
#define ACPI_GPE_TYPE_WAKE (UINT8) 0x04
|
||||
#define ACPI_GPE_TYPE_RUNTIME (UINT8) 0x08 /* Default */
|
||||
#define ACPI_GPE_DISPATCH_MASK (UINT8) 0x18
|
||||
#define ACPI_GPE_DISPATCH_HANDLER (UINT8) 0x08
|
||||
#define ACPI_GPE_DISPATCH_METHOD (UINT8) 0x10
|
||||
#define ACPI_GPE_DISPATCH_NOT_USED (UINT8) 0x00 /* Default */
|
||||
|
||||
#define ACPI_GPE_SYSTEM_MASK (UINT8) 0x10
|
||||
#define ACPI_GPE_SYSTEM_RUNNING (UINT8) 0x10
|
||||
#define ACPI_GPE_RUN_ENABLE_MASK (UINT8) 0x20
|
||||
#define ACPI_GPE_RUN_ENABLED (UINT8) 0x20
|
||||
#define ACPI_GPE_RUN_DISABLED (UINT8) 0x00 /* Default */
|
||||
|
||||
#define ACPI_GPE_WAKE_ENABLE_MASK (UINT8) 0x40
|
||||
#define ACPI_GPE_WAKE_ENABLED (UINT8) 0x40
|
||||
#define ACPI_GPE_WAKE_DISABLED (UINT8) 0x00 /* Default */
|
||||
|
||||
#define ACPI_GPE_ENABLE_MASK (UINT8) 0x60 /* Both run/wake */
|
||||
|
||||
#define ACPI_GPE_SYSTEM_MASK (UINT8) 0x80
|
||||
#define ACPI_GPE_SYSTEM_RUNNING (UINT8) 0x80
|
||||
#define ACPI_GPE_SYSTEM_WAKING (UINT8) 0x00
|
||||
|
||||
#define ACPI_GPE_DISPATCH_MASK (UINT8) 0x60
|
||||
#define ACPI_GPE_DISPATCH_HANDLER (UINT8) 0x20
|
||||
#define ACPI_GPE_DISPATCH_METHOD (UINT8) 0x40
|
||||
#define ACPI_GPE_DISPATCH_NOT_USED (UINT8) 0x00 /* Default */
|
||||
|
||||
|
||||
/*
|
||||
* Flags for GPE and Lock interfaces
|
||||
*/
|
||||
#define ACPI_EVENT_WAKE_ENABLE 0x2
|
||||
#define ACPI_EVENT_WAKE_DISABLE 0x2
|
||||
#define ACPI_EVENT_WAKE_ENABLE 0x2 /* AcpiGpeEnable */
|
||||
#define ACPI_EVENT_WAKE_DISABLE 0x2 /* AcpiGpeDisable */
|
||||
|
||||
#define ACPI_NOT_ISR 0x1
|
||||
#define ACPI_ISR 0x0
|
||||
|
Loading…
Reference in New Issue
Block a user