From b78b7fc52c4abce242f2b12ece9ab2b67afe7c39 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 19:23:53 +0000 Subject: [PATCH] Implemented AcpiInstallInitializationHandler() date 2002.05.07.17.02.00; author rmoore1; state Exp; --- source/components/utilities/utxface.c | 37 ++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/source/components/utilities/utxface.c b/source/components/utilities/utxface.c index a2809e414..d2b0322c3 100644 --- a/source/components/utilities/utxface.c +++ b/source/components/utilities/utxface.c @@ -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