summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/utinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/utinit.c')
-rw-r--r--sys/contrib/dev/acpica/utinit.c42
1 files changed, 27 insertions, 15 deletions
diff --git a/sys/contrib/dev/acpica/utinit.c b/sys/contrib/dev/acpica/utinit.c
index fc337e2..f346eea 100644
--- a/sys/contrib/dev/acpica/utinit.c
+++ b/sys/contrib/dev/acpica/utinit.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: utinit - Common ACPI subsystem initialization
- * $Revision: 118 $
+ * $Revision: 1.123 $
*
*****************************************************************************/
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -124,19 +124,29 @@
#define _COMPONENT ACPI_UTILITIES
ACPI_MODULE_NAME ("utinit")
+/* Local prototypes */
+
+static void
+AcpiUtFadtRegisterError (
+ char *RegisterName,
+ UINT32 Value,
+ ACPI_SIZE Offset);
+
+static void AcpiUtTerminate (
+ void);
+
/*******************************************************************************
*
* FUNCTION: AcpiUtFadtRegisterError
*
- * PARAMETERS: *RegisterName - Pointer to string identifying register
+ * PARAMETERS: RegisterName - Pointer to string identifying register
* Value - Actual register contents value
- * AcpiTestSpecSection - TDS section containing assertion
- * AcpiAssertion - Assertion number being tested
+ * Offset - Byte offset in the FADT
*
* RETURN: AE_BAD_VALUE
*
- * DESCRIPTION: Display failure message and link failure to TDS assertion
+ * DESCRIPTION: Display failure message
*
******************************************************************************/
@@ -250,12 +260,13 @@ AcpiUtValidateFadt (
*
* RETURN: none
*
- * DESCRIPTION: free global memory
+ * DESCRIPTION: Free global memory
*
******************************************************************************/
-void
-AcpiUtTerminate (void)
+static void
+AcpiUtTerminate (
+ void)
{
ACPI_GPE_BLOCK_INFO *GpeBlock;
ACPI_GPE_BLOCK_INFO *NextGpeBlock;
@@ -267,8 +278,6 @@ AcpiUtTerminate (void)
/* Free global tables, etc. */
-
-
/* Free global GPE blocks and related info structures */
GpeXruptInfo = AcpiGbl_GpeXruptListHead;
@@ -307,7 +316,8 @@ AcpiUtTerminate (void)
******************************************************************************/
void
-AcpiUtSubsystemShutdown (void)
+AcpiUtSubsystemShutdown (
+ void)
{
ACPI_FUNCTION_TRACE ("UtSubsystemShutdown");
@@ -316,14 +326,16 @@ AcpiUtSubsystemShutdown (void)
if (AcpiGbl_Shutdown)
{
- ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "ACPI Subsystem is already terminated\n"));
+ ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
+ "ACPI Subsystem is already terminated\n"));
return_VOID;
}
/* Subsystem appears active, go ahead and shut it down */
AcpiGbl_Shutdown = TRUE;
- ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Shutting down ACPI Subsystem...\n"));
+ ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
+ "Shutting down ACPI Subsystem...\n"));
/* Close the AcpiEvent Handling */
@@ -339,7 +351,7 @@ AcpiUtSubsystemShutdown (void)
/* Purge the local caches */
- (void) AcpiPurgeCachedObjects ();
+ (void) AcpiUtDeleteCaches ();
/* Debug only - display leftover memory allocation, if any */
OpenPOWER on IntegriCloud