<dec f='src/src/sys/external/bsd/acpica/dist/include/acpixf.h' l='913' type='ACPI_STATUS AcpiSetGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)'/>
<def f='src/src/sys/external/bsd/acpica/dist/events/evxfgpe.c' l='242' ll='292' type='ACPI_STATUS AcpiSetGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)'/>
<doc f='src/src/sys/external/bsd/acpica/dist/events/evxfgpe.c' l='213'>/*******************************************************************************
 *
 * FUNCTION:    AcpiSetGpe
 *
 * PARAMETERS:  GpeDevice           - Parent GPE Device. NULL for GPE0/GPE1
 *              GpeNumber           - GPE level within the GPE block
 *              Action              - ACPI_GPE_ENABLE or ACPI_GPE_DISABLE
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Enable or disable an individual GPE. This function bypasses
 *              the reference count mechanism used in the AcpiEnableGpe(),
 *              AcpiDisableGpe() interfaces.
 *              This API is typically used by the GPE raw handler mode driver
 *              to switch between the polling mode and the interrupt mode after
 *              the driver has enabled the GPE.
 *              The APIs should be invoked in this order:
 *               AcpiEnableGpe()              &lt;- Ensure the reference count &gt; 0
 *               AcpiSetGpe(ACPI_GPE_DISABLE) &lt;- Enter polling mode
 *               AcpiSetGpe(ACPI_GPE_ENABLE)  &lt;- Leave polling mode
 *               AcpiDisableGpe()             &lt;- Decrease the reference count
 *
 * Note: If a GPE is shared by 2 silicon components, then both the drivers
 *       should support GPE polling mode or disabling the GPE for long period
 *       for one driver may break the other. So use it with care since all
 *       firmware _Lxx/_Exx handlers currently rely on the GPE interrupt mode.
 *
 ******************************************************************************/</doc>
