version 1.1.1.4, 2014/10/25 20:57:58 |
version 1.1.1.4.2.3, 2017/02/05 13:40:50 |
|
|
*****************************************************************************/ |
*****************************************************************************/ |
|
|
/* |
/* |
* Copyright (C) 2000 - 2014, Intel Corp. |
* Copyright (C) 2000 - 2017, Intel Corp. |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
Line 203 AcpiEvFixedEventInitialize ( |
|
Line 203 AcpiEvFixedEventInitialize ( |
|
if (AcpiGbl_FixedEventInfo[i].EnableRegisterId != 0xFF) |
if (AcpiGbl_FixedEventInfo[i].EnableRegisterId != 0xFF) |
{ |
{ |
Status = AcpiWriteBitRegister ( |
Status = AcpiWriteBitRegister ( |
AcpiGbl_FixedEventInfo[i].EnableRegisterId, |
AcpiGbl_FixedEventInfo[i].EnableRegisterId, |
ACPI_DISABLE_EVENT); |
ACPI_DISABLE_EVENT); |
if (ACPI_FAILURE (Status)) |
if (ACPI_FAILURE (Status)) |
{ |
{ |
return (Status); |
return (Status); |
Line 307 AcpiEvFixedEventDispatch ( |
|
Line 307 AcpiEvFixedEventDispatch ( |
|
/* Clear the status bit */ |
/* Clear the status bit */ |
|
|
(void) AcpiWriteBitRegister ( |
(void) AcpiWriteBitRegister ( |
AcpiGbl_FixedEventInfo[Event].StatusRegisterId, |
AcpiGbl_FixedEventInfo[Event].StatusRegisterId, |
ACPI_CLEAR_STATUS); |
ACPI_CLEAR_STATUS); |
|
|
/* |
/* |
* Make sure that a handler exists. If not, report an error |
* Make sure that a handler exists. If not, report an error |
Line 317 AcpiEvFixedEventDispatch ( |
|
Line 317 AcpiEvFixedEventDispatch ( |
|
if (!AcpiGbl_FixedEventHandlers[Event].Handler) |
if (!AcpiGbl_FixedEventHandlers[Event].Handler) |
{ |
{ |
(void) AcpiWriteBitRegister ( |
(void) AcpiWriteBitRegister ( |
AcpiGbl_FixedEventInfo[Event].EnableRegisterId, |
AcpiGbl_FixedEventInfo[Event].EnableRegisterId, |
ACPI_DISABLE_EVENT); |
ACPI_DISABLE_EVENT); |
|
|
ACPI_ERROR ((AE_INFO, |
ACPI_ERROR ((AE_INFO, |
"No installed handler for fixed event - %s (%u), disabling", |
"No installed handler for fixed event - %s (%u), disabling", |
Line 330 AcpiEvFixedEventDispatch ( |
|
Line 330 AcpiEvFixedEventDispatch ( |
|
/* Invoke the Fixed Event handler */ |
/* Invoke the Fixed Event handler */ |
|
|
return ((AcpiGbl_FixedEventHandlers[Event].Handler)( |
return ((AcpiGbl_FixedEventHandlers[Event].Handler)( |
AcpiGbl_FixedEventHandlers[Event].Context)); |
AcpiGbl_FixedEventHandlers[Event].Context)); |
} |
} |
|
|
#endif /* !ACPI_REDUCED_HARDWARE */ |
#endif /* !ACPI_REDUCED_HARDWARE */ |