mirror of
https://github.com/acpica/acpica/
synced 2025-01-15 22:09:17 +03:00
Implemented AcpiInstallInitializationHandler()
date 2002.05.07.17.02.00; author rmoore1; state Exp;
This commit is contained in:
parent
309393b803
commit
b78b7fc52c
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: utxface - External interfaces for "global" ACPI functions
|
||||
* $Revision: 1.95 $
|
||||
* $Revision: 1.96 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -513,6 +513,41 @@ AcpiGetSystemInfo (
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiInstallInitializationHandler
|
||||
*
|
||||
* PARAMETERS: Handler - Callback procedure
|
||||
*
|
||||
* RETURN: Status
|
||||
*
|
||||
* DESCRIPTION: Install an initialization handler
|
||||
*
|
||||
* TBD: When a second function is added, must save the Function also.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiInstallInitializationHandler (
|
||||
ACPI_INIT_HANDLER Handler,
|
||||
UINT32 Function)
|
||||
{
|
||||
|
||||
if (!Handler)
|
||||
{
|
||||
return (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
if (AcpiGbl_InitHandler)
|
||||
{
|
||||
return (AE_ALREADY_EXISTS);
|
||||
}
|
||||
|
||||
AcpiGbl_InitHandler = Handler;
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiPurgeCachedObjects
|
||||
|
Loading…
Reference in New Issue
Block a user