diff options
author | njl <njl@FreeBSD.org> | 2003-07-13 22:44:13 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2003-07-13 22:44:13 +0000 |
commit | 148a8cc4ac210f6d3692eb478d20cc64818d274a (patch) | |
tree | dd1a453ab93efa28848b21047ec45d003c6f262e /sys/contrib/dev/acpica/tbxface.c | |
parent | 857b9ae7f340e84e806f355c2a19d9cac1ab3faf (diff) | |
download | FreeBSD-src-148a8cc4ac210f6d3692eb478d20cc64818d274a.zip FreeBSD-src-148a8cc4ac210f6d3692eb478d20cc64818d274a.tar.gz |
ACPICA import from the 0619 dist.
Diffstat (limited to 'sys/contrib/dev/acpica/tbxface.c')
-rw-r--r-- | sys/contrib/dev/acpica/tbxface.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/contrib/dev/acpica/tbxface.c b/sys/contrib/dev/acpica/tbxface.c index 6a345dc..ede9724 100644 --- a/sys/contrib/dev/acpica/tbxface.c +++ b/sys/contrib/dev/acpica/tbxface.c @@ -2,7 +2,7 @@ * * Module Name: tbxface - Public interfaces to the ACPI subsystem * ACPI table oriented interfaces - * $Revision: 61 $ + * $Revision: 62 $ * *****************************************************************************/ @@ -319,7 +319,7 @@ ACPI_STATUS AcpiUnloadTable ( ACPI_TABLE_TYPE TableType) { - ACPI_TABLE_DESC *ListHead; + ACPI_TABLE_DESC *TableDesc; ACPI_FUNCTION_TRACE ("AcpiUnloadTable"); @@ -335,8 +335,8 @@ AcpiUnloadTable ( /* Find all tables of the requested type */ - ListHead = &AcpiGbl_AcpiTables[TableType]; - do + TableDesc = AcpiGbl_TableLists[TableType].Next; + while (TableDesc); { /* * Delete all namespace entries owned by this table. Note that these @@ -344,14 +344,14 @@ AcpiUnloadTable ( * "Scope" operator. Thus, we need to track ownership by an ID, not * simply a position within the hierarchy */ - AcpiNsDeleteNamespaceByOwner (ListHead->TableId); + AcpiNsDeleteNamespaceByOwner (TableDesc->TableId); - /* Delete (or unmap) the actual table */ - - AcpiTbDeleteAcpiTable (TableType); + TableDesc = TableDesc->Next; + } - } while (ListHead != &AcpiGbl_AcpiTables[TableType]); + /* Delete (or unmap) all tables of this type */ + AcpiTbDeleteTablesByType (TableType); return_ACPI_STATUS (AE_OK); } @@ -400,7 +400,7 @@ AcpiGetTableHeader ( /* Check the table type and instance */ if ((TableType > ACPI_TABLE_MAX) || - (ACPI_IS_SINGLE_TABLE (AcpiGbl_AcpiTableData[TableType].Flags) && + (ACPI_IS_SINGLE_TABLE (AcpiGbl_TableData[TableType].Flags) && Instance > 1)) { return_ACPI_STATUS (AE_BAD_PARAMETER); @@ -486,7 +486,7 @@ AcpiGetTable ( /* Check the table type and instance */ if ((TableType > ACPI_TABLE_MAX) || - (ACPI_IS_SINGLE_TABLE (AcpiGbl_AcpiTableData[TableType].Flags) && + (ACPI_IS_SINGLE_TABLE (AcpiGbl_TableData[TableType].Flags) && Instance > 1)) { return_ACPI_STATUS (AE_BAD_PARAMETER); |