|
@@ -732,16 +732,17 @@ typedef u32 acpi_event_type;
|
|
* The encoding of acpi_event_status is illustrated below.
|
|
* The encoding of acpi_event_status is illustrated below.
|
|
* Note that a set bit (1) indicates the property is TRUE
|
|
* Note that a set bit (1) indicates the property is TRUE
|
|
* (e.g. if bit 0 is set then the event is enabled).
|
|
* (e.g. if bit 0 is set then the event is enabled).
|
|
- * +-------------+-+-+-+-+-+
|
|
|
|
- * | Bits 31:5 |4|3|2|1|0|
|
|
|
|
- * +-------------+-+-+-+-+-+
|
|
|
|
- * | | | | | |
|
|
|
|
- * | | | | | +- Enabled?
|
|
|
|
- * | | | | +--- Enabled for wake?
|
|
|
|
- * | | | +----- Status bit set?
|
|
|
|
- * | | +------- Enable bit set?
|
|
|
|
- * | +--------- Has a handler?
|
|
|
|
- * +--------------- <Reserved>
|
|
|
|
|
|
+ * +-------------+-+-+-+-+-+-+
|
|
|
|
+ * | Bits 31:6 |5|4|3|2|1|0|
|
|
|
|
+ * +-------------+-+-+-+-+-+-+
|
|
|
|
+ * | | | | | | |
|
|
|
|
+ * | | | | | | +- Enabled?
|
|
|
|
+ * | | | | | +--- Enabled for wake?
|
|
|
|
+ * | | | | +----- Status bit set?
|
|
|
|
+ * | | | +------- Enable bit set?
|
|
|
|
+ * | | +--------- Has a handler?
|
|
|
|
+ * | +----------- Masked?
|
|
|
|
+ * +----------------- <Reserved>
|
|
*/
|
|
*/
|
|
typedef u32 acpi_event_status;
|
|
typedef u32 acpi_event_status;
|
|
|
|
|
|
@@ -751,6 +752,7 @@ typedef u32 acpi_event_status;
|
|
#define ACPI_EVENT_FLAG_STATUS_SET (acpi_event_status) 0x04
|
|
#define ACPI_EVENT_FLAG_STATUS_SET (acpi_event_status) 0x04
|
|
#define ACPI_EVENT_FLAG_ENABLE_SET (acpi_event_status) 0x08
|
|
#define ACPI_EVENT_FLAG_ENABLE_SET (acpi_event_status) 0x08
|
|
#define ACPI_EVENT_FLAG_HAS_HANDLER (acpi_event_status) 0x10
|
|
#define ACPI_EVENT_FLAG_HAS_HANDLER (acpi_event_status) 0x10
|
|
|
|
+#define ACPI_EVENT_FLAG_MASKED (acpi_event_status) 0x20
|
|
#define ACPI_EVENT_FLAG_SET ACPI_EVENT_FLAG_STATUS_SET
|
|
#define ACPI_EVENT_FLAG_SET ACPI_EVENT_FLAG_STATUS_SET
|
|
|
|
|
|
/* Actions for acpi_set_gpe, acpi_gpe_wakeup, acpi_hw_low_set_gpe */
|
|
/* Actions for acpi_set_gpe, acpi_gpe_wakeup, acpi_hw_low_set_gpe */
|
|
@@ -761,14 +763,15 @@ typedef u32 acpi_event_status;
|
|
|
|
|
|
/*
|
|
/*
|
|
* GPE info flags - Per GPE
|
|
* GPE info flags - Per GPE
|
|
- * +-------+-+-+---+
|
|
|
|
- * | 7:5 |4|3|2:0|
|
|
|
|
- * +-------+-+-+---+
|
|
|
|
- * | | | |
|
|
|
|
- * | | | +-- Type of dispatch:to method, handler, notify, or none
|
|
|
|
- * | | +----- Interrupt type: edge or level triggered
|
|
|
|
- * | +------- Is a Wake GPE
|
|
|
|
- * +------------ <Reserved>
|
|
|
|
|
|
+ * +---+-+-+-+---+
|
|
|
|
+ * |7:6|5|4|3|2:0|
|
|
|
|
+ * +---+-+-+-+---+
|
|
|
|
+ * | | | | |
|
|
|
|
+ * | | | | +-- Type of dispatch:to method, handler, notify, or none
|
|
|
|
+ * | | | +----- Interrupt type: edge or level triggered
|
|
|
|
+ * | | +------- Is a Wake GPE
|
|
|
|
+ * | +--------- Is GPE masked by the software GPE masking machanism
|
|
|
|
+ * +------------ <Reserved>
|
|
*/
|
|
*/
|
|
#define ACPI_GPE_DISPATCH_NONE (u8) 0x00
|
|
#define ACPI_GPE_DISPATCH_NONE (u8) 0x00
|
|
#define ACPI_GPE_DISPATCH_METHOD (u8) 0x01
|
|
#define ACPI_GPE_DISPATCH_METHOD (u8) 0x01
|