diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2002-07-09 17:51:31 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2002-07-09 17:51:31 +0000 |
commit | 80fd7f7b7e25faf86d25d2c97b3a0dfbedb12552 (patch) | |
tree | ea70a54a7d2f53270d0147b285a5fa912b760051 /sys/contrib/dev/acpica/tbinstal.c | |
parent | 6b92cff93be2b7ae83deb340b753b02444cdcacd (diff) | |
download | FreeBSD-src-80fd7f7b7e25faf86d25d2c97b3a0dfbedb12552.zip FreeBSD-src-80fd7f7b7e25faf86d25d2c97b3a0dfbedb12552.tar.gz |
Vendor import of the Intel ACPI CA 20020611 drop.
Diffstat (limited to 'sys/contrib/dev/acpica/tbinstal.c')
-rw-r--r-- | sys/contrib/dev/acpica/tbinstal.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/sys/contrib/dev/acpica/tbinstal.c b/sys/contrib/dev/acpica/tbinstal.c index 819c6ce..24a0915 100644 --- a/sys/contrib/dev/acpica/tbinstal.c +++ b/sys/contrib/dev/acpica/tbinstal.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: tbinstal - ACPI table installation and removal - * $Revision: 57 $ + * $Revision: 61 $ * *****************************************************************************/ @@ -180,8 +180,7 @@ AcpiTbMatchSignature ( * * FUNCTION: AcpiTbInstallTable * - * PARAMETERS: TablePtr - Input buffer pointer, optional - * TableInfo - Return value from AcpiTbGetTable + * PARAMETERS: TableInfo - Return value from AcpiTbGetTable * * RETURN: Status * @@ -193,7 +192,6 @@ AcpiTbMatchSignature ( ACPI_STATUS AcpiTbInstallTable ( - ACPI_TABLE_HEADER *TablePtr, ACPI_TABLE_DESC *TableInfo) { ACPI_STATUS Status; @@ -205,7 +203,7 @@ AcpiTbInstallTable ( * Check the table signature and make sure it is recognized * Also checks the header checksum */ - Status = AcpiTbRecognizeTable (TablePtr, TableInfo); + Status = AcpiTbRecognizeTable (TableInfo); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); @@ -235,8 +233,7 @@ AcpiTbInstallTable ( * * FUNCTION: AcpiTbRecognizeTable * - * PARAMETERS: TablePtr - Input buffer pointer, optional - * TableInfo - Return value from AcpiTbGetTable + * PARAMETERS: TableInfo - Return value from AcpiTbGetTable * * RETURN: Status * @@ -254,7 +251,6 @@ AcpiTbInstallTable ( ACPI_STATUS AcpiTbRecognizeTable ( - ACPI_TABLE_HEADER *TablePtr, ACPI_TABLE_DESC *TableInfo) { ACPI_TABLE_HEADER *TableHeader; @@ -294,7 +290,7 @@ AcpiTbRecognizeTable ( /* Return the table type and length via the info struct */ - TableInfo->Length = TableHeader->Length; + TableInfo->Length = (ACPI_SIZE) TableHeader->Length; /* * Validate checksum for _most_ tables, @@ -303,13 +299,15 @@ AcpiTbRecognizeTable ( if (TableInfo->Type != ACPI_TABLE_FACS) { Status = AcpiTbVerifyTableChecksum (TableHeader); - if (ACPI_FAILURE (Status) && - (!ACPI_CHECKSUM_ABORT)) + +#if (!ACPI_CHECKSUM_ABORT) + if (ACPI_FAILURE (Status)) { /* Ignore the error if configuration says so */ Status = AE_OK; } +#endif } return_ACPI_STATUS (Status); @@ -615,6 +613,9 @@ AcpiTbDeleteSingleTable ( AcpiOsUnmapMemory (TableDesc->BasePointer, TableDesc->Length); break; + + default: + break; } } } @@ -626,7 +627,7 @@ AcpiTbDeleteSingleTable ( * * PARAMETERS: TableInfo - A table info struct * - * RETURN: None. + * RETURN: Pointer to the next table in the list (of same type) * * DESCRIPTION: Free the memory associated with an internal ACPI table that * is either installed or has never been installed. @@ -641,7 +642,7 @@ AcpiTbUninstallTable ( ACPI_TABLE_DESC *NextDesc; - ACPI_FUNCTION_TRACE_PTR ("TbDeleteSingleTable", TableDesc); + ACPI_FUNCTION_TRACE_PTR ("AcpiTbUninstallTable", TableDesc); if (!TableDesc) |