src/add-ons/kernel/bus_managers/acpi/acpica/components/events/evevent.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiEvFixedEventDispatch
 *
 * PARAMETERS:  Event               - Event type
 *
 * RETURN:      INTERRUPT_HANDLED or INTERRUPT_NOT_HANDLED
 *
 * DESCRIPTION: Clears the status bit for the requested event, calls the
 *              handler that previously registered for the event.
 *              NOTE: If there is no handler for the event, the event is
 *              disabled to prevent further interrupts.
 *
 ******************************************************************************/
AcpiEvFixedEventDispatch
PARAMETERS:  Event               - Event type



Clears the status bit for the requested event, calls the
handler that previously registered for the event.
NOTE: If there is no handler for the event, the event is
disabled to prevent further interrupts.
AcpiEvFixedEventDispatch PARAMETERS : Event - Event type Clears the status bit for the requested event calls the handler that previously registered for the event . NOTE : If there is no handler for the event the event is disabled to prevent further interrupts .
static UINT32
AcpiEvFixedEventDispatch (
    UINT32                  Event)
{
    ACPI_FUNCTION_ENTRY ();
    (void) AcpiWriteBitRegister (
        AcpiGbl_FixedEventInfo[Event].StatusRegisterId,
        ACPI_CLEAR_STATUS);
    if (!AcpiGbl_FixedEventHandlers[Event].Handler)
    {
        (void) AcpiWriteBitRegister (
            AcpiGbl_FixedEventInfo[Event].EnableRegisterId,
            ACPI_DISABLE_EVENT);
        ACPI_ERROR ((AE_INFO,
            "No installed handler for fixed event - %s (%u), disabling",
            AcpiUtGetEventName (Event), Event));
        return (ACPI_INTERRUPT_NOT_HANDLED);
    }
    return ((AcpiGbl_FixedEventHandlers[Event].Handler)(
        AcpiGbl_FixedEventHandlers[Event].Context));
}
static UINT32 AcpiEvFixedEventDispatch ( UINT32 Event ) { ACPI_FUNCTION_ENTRY ( ) ; ( void ) AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo [ Event ] . StatusRegisterId , ACPI_CLEAR_STATUS ) ; if ( ! AcpiGbl_FixedEventHandlers [ Event ] . Handler ) { ( void ) AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo [ Event ] . EnableRegisterId , ACPI_DISABLE_EVENT ) ; ACPI_ERROR ( ( AE_INFO , " " , AcpiUtGetEventName ( Event ) , Event ) ) ; return ( ACPI_INTERRUPT_NOT_HANDLED ) ; } return ( ( AcpiGbl_FixedEventHandlers [ Event ] . Handler ) ( AcpiGbl_FixedEventHandlers [ Event ] . Context ) ) ; }
FUNCTION:    AcpiEvFixedEventDispatch
 PARAMETERS:  Event               - Event type
FUNCTION : AcpiEvFixedEventDispatch PARAMETERS : Event - Event type
/* Clear the status bit */ /*
     * Make sure that a handler exists. If not, report an error
     * and disable the event to prevent further interrupts.
     */ /* Invoke the Fixed Event handler */