diff options
author | Robert Moore <Robert.Moore@intel.com> | 2018-02-28 07:35:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-28 07:35:32 -0800 |
commit | 1d8ac4f55cdd8873f2c64d674755590d9c9c3d78 (patch) | |
tree | 4fcc62abe5a2a0a21ef188f94388311bb95b186b /source/include/acevents.h | |
parent | c2be4a470d32ea228b098c4a996590ec66f4153b (diff) | |
parent | b0b93a14d53f9746db12fe64b4823d251b7c3364 (diff) | |
download | acpica-1d8ac4f55cdd8873f2c64d674755590d9c9c3d78.tar.gz |
Merge pull request #322 from zetalog/acpica-gpe
Acpica gpe
Diffstat (limited to 'source/include/acevents.h')
-rw-r--r-- | source/include/acevents.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/include/acevents.h b/source/include/acevents.h index b6737da54..3dc36606b 100644 --- a/source/include/acevents.h +++ b/source/include/acevents.h @@ -154,6 +154,21 @@ /* + * Conditions to trigger post enabling GPE polling: + * It is not sufficient to trigger edge-triggered GPE with specific GPE + * chips, software need to poll once after enabling. + */ +#ifdef ACPI_USE_GPE_POLLING +#define ACPI_GPE_IS_POLLING_NEEDED(__gpe__) \ + ((__gpe__)->RuntimeCount == 1 && \ + (__gpe__)->Flags & ACPI_GPE_INITIALIZED && \ + ((__gpe__)->Flags & ACPI_GPE_XRUPT_TYPE_MASK) == ACPI_GPE_EDGE_TRIGGERED) +#else +#define ACPI_GPE_IS_POLLING_NEEDED(__gpe__) FALSE +#endif + + +/* * evevent */ ACPI_STATUS @@ -250,6 +265,12 @@ ACPI_STATUS AcpiEvFinishGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo); +UINT32 +AcpiEvDetectGpe ( + ACPI_NAMESPACE_NODE *GpeDevice, + ACPI_GPE_EVENT_INFO *GpeEventInfo, + UINT32 GpeNumber); + /* * evgpeblk - Upper-level GPE block support |