Implemented AcpiInstallInitializationHandler()

date	2002.05.07.17.02.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 19:23:53 +00:00
parent 309393b803
commit b78b7fc52c

View File

@ -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