FreeBSD/sys/contrib/dev/acpica/components/events/evevent.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiEvFixedEventInitialize
 *
 * PARAMETERS:  None
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Install the fixed event handlers and disable all fixed events.
 *
 ******************************************************************************/


Status

Install the fixed event handlers and disable all fixed events.
Status Install the fixed event handlers and disable all fixed events .
static ACPI_STATUS
AcpiEvFixedEventInitialize (
    void)
{
    UINT32                  i;
    ACPI_STATUS             Status;
    for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++)
    {
        AcpiGbl_FixedEventHandlers[i].Handler = NULL;
        AcpiGbl_FixedEventHandlers[i].Context = NULL;
        if (AcpiGbl_FixedEventInfo[i].EnableRegisterId != 0xFF)
        {
            Status = AcpiWriteBitRegister (
                AcpiGbl_FixedEventInfo[i].EnableRegisterId,
                ACPI_DISABLE_EVENT);
            if (ACPI_FAILURE (Status))
            {
                return (Status);
            }
        }
    }
    return (AE_OK);
}
static ACPI_STATUS AcpiEvFixedEventInitialize ( void ) { UINT32 i ; ACPI_STATUS Status ; for ( i = 0 ; i < ACPI_NUM_FIXED_EVENTS ; i ++ ) { AcpiGbl_FixedEventHandlers [ i ] . Handler = NULL ; AcpiGbl_FixedEventHandlers [ i ] . Context = NULL ; if ( AcpiGbl_FixedEventInfo [ i ] . EnableRegisterId != 0xFF ) { Status = AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo [ i ] . EnableRegisterId , ACPI_DISABLE_EVENT ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } } } return ( AE_OK ) ; }
FUNCTION:    AcpiEvFixedEventInitialize
 PARAMETERS:  None
FUNCTION : AcpiEvFixedEventInitialize PARAMETERS : None
/*
     * Initialize the structure that keeps track of fixed event handlers and
     * enable the fixed events.
     */ /* Disable the fixed event */