Deleted Added
full compact
actypes.h (202771) actypes.h (206117)
1/******************************************************************************
2 *
3 * Name: actypes.h - Common data types for the entire ACPI subsystem
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 728 unchanged lines hidden (view full) ---

737
738/*
739 * General Purpose Events (GPE)
740 */
741#define ACPI_GPE_INVALID 0xFF
742#define ACPI_GPE_MAX 0xFF
743#define ACPI_NUM_GPE 256
744
1/******************************************************************************
2 *
3 * Name: actypes.h - Common data types for the entire ACPI subsystem
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 728 unchanged lines hidden (view full) ---

737
738/*
739 * General Purpose Events (GPE)
740 */
741#define ACPI_GPE_INVALID 0xFF
742#define ACPI_GPE_MAX 0xFF
743#define ACPI_NUM_GPE 256
744
745/* Actions for AcpiSetGpe */
746
745#define ACPI_GPE_ENABLE 0
746#define ACPI_GPE_DISABLE 1
747
747#define ACPI_GPE_ENABLE 0
748#define ACPI_GPE_DISABLE 1
749
750/* GpeTypes for AcpiEnableGpe and AcpiDisableGpe */
748
751
752#define ACPI_GPE_TYPE_WAKE (UINT8) 0x01
753#define ACPI_GPE_TYPE_RUNTIME (UINT8) 0x02
754#define ACPI_GPE_TYPE_WAKE_RUN (UINT8) 0x03
755
749/*
750 * GPE info flags - Per GPE
756/*
757 * GPE info flags - Per GPE
751 * +-+-+-+---+---+-+
752 * |7|6|5|4:3|2:1|0|
753 * +-+-+-+---+---+-+
754 * | | | | | |
755 * | | | | | +--- Interrupt type: Edge or Level Triggered
756 * | | | | +--- Type: Wake-only, Runtime-only, or wake/runtime
757 * | | | +--- Type of dispatch -- to method, handler, or none
758 * | | +--- Enabled for runtime?
759 * | +--- Enabled for wake?
760 * +--- Unused
758 * +-------+---+-+-+
759 * | 7:4 |3:2|1|0|
760 * +-------+---+-+-+
761 * | | | |
762 * | | | +--- Interrupt type: edge or level triggered
763 * | | +----- GPE can wake the system
764 * | +-------- Type of dispatch:to method, handler, or none
765 * +-------------- <Reserved>
761 */
762#define ACPI_GPE_XRUPT_TYPE_MASK (UINT8) 0x01
763#define ACPI_GPE_LEVEL_TRIGGERED (UINT8) 0x01
764#define ACPI_GPE_EDGE_TRIGGERED (UINT8) 0x00
765
766 */
767#define ACPI_GPE_XRUPT_TYPE_MASK (UINT8) 0x01
768#define ACPI_GPE_LEVEL_TRIGGERED (UINT8) 0x01
769#define ACPI_GPE_EDGE_TRIGGERED (UINT8) 0x00
770
766#define ACPI_GPE_TYPE_MASK (UINT8) 0x06
767#define ACPI_GPE_TYPE_WAKE_RUN (UINT8) 0x06
768#define ACPI_GPE_TYPE_WAKE (UINT8) 0x02
769#define ACPI_GPE_TYPE_RUNTIME (UINT8) 0x04 /* Default */
771#define ACPI_GPE_CAN_WAKE (UINT8) 0x02
770
772
771#define ACPI_GPE_DISPATCH_MASK (UINT8) 0x18
772#define ACPI_GPE_DISPATCH_HANDLER (UINT8) 0x08
773#define ACPI_GPE_DISPATCH_METHOD (UINT8) 0x10
774#define ACPI_GPE_DISPATCH_NOT_USED (UINT8) 0x00 /* Default */
773#define ACPI_GPE_DISPATCH_MASK (UINT8) 0x0C
774#define ACPI_GPE_DISPATCH_HANDLER (UINT8) 0x04
775#define ACPI_GPE_DISPATCH_METHOD (UINT8) 0x08
776#define ACPI_GPE_DISPATCH_NOT_USED (UINT8) 0x00
775
777
776#define ACPI_GPE_RUN_ENABLE_MASK (UINT8) 0x20
777#define ACPI_GPE_RUN_ENABLED (UINT8) 0x20
778#define ACPI_GPE_RUN_DISABLED (UINT8) 0x00 /* Default */
779
780#define ACPI_GPE_WAKE_ENABLE_MASK (UINT8) 0x40
781#define ACPI_GPE_WAKE_ENABLED (UINT8) 0x40
782#define ACPI_GPE_WAKE_DISABLED (UINT8) 0x00 /* Default */
783
784#define ACPI_GPE_ENABLE_MASK (UINT8) 0x60 /* Both run/wake */
785
786/*
787 * Flags for GPE and Lock interfaces
788 */
778/*
779 * Flags for GPE and Lock interfaces
780 */
789#define ACPI_EVENT_WAKE_ENABLE 0x2 /* AcpiGpeEnable */
790#define ACPI_EVENT_WAKE_DISABLE 0x2 /* AcpiGpeDisable */
791
792#define ACPI_NOT_ISR 0x1
793#define ACPI_ISR 0x0
794
795
796/* Notify types */
797
798#define ACPI_SYSTEM_NOTIFY 0x1
799#define ACPI_DEVICE_NOTIFY 0x2

--- 447 unchanged lines hidden ---
781#define ACPI_NOT_ISR 0x1
782#define ACPI_ISR 0x0
783
784
785/* Notify types */
786
787#define ACPI_SYSTEM_NOTIFY 0x1
788#define ACPI_DEVICE_NOTIFY 0x2

--- 447 unchanged lines hidden ---